summaryrefslogtreecommitdiffhomepage
path: root/models.go
blob: 7119fa930b953cb4bbed1b873d8e29fe1cdedc1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package main

import (
	"time"
)

type Vector3 struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
}

type Killmail struct {
	Id   int32  `json:"id"`
	Hash string `json:"hash"`
}

type Team []int32

type Battle struct {
	Id           string     `json:"-"`
	LastModified time.Time  `json:"-"`
	StartTime    time.Time  `json:"started_at"`
	EndTime      time.Time  `json:"ended_at"`
	Teams        [2]Team    `json:"teams"`
	Killmails    []Killmail `json:"killmails"`
	Name         string     `json:"name"`
}

type EsiKillmail struct {
	SolarSystemId int32 `json:"solar_system_id"`
	Victim        struct {
		Position      Vector3 `json:"position"`
		ShipTypeId    int32   `json:"ship_type_id"`
		CorporationId int32   `json:"corporation_id"`
		AllianceId    int32   `json:"alliance_id"`
	} `json:"victim"`
	Time time.Time `json:"killmail_time"`
}

type EsiUniverseSystem struct {
	Name string `json:"name"`
}