summaryrefslogtreecommitdiffhomepage
path: root/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models.go')
-rw-r--r--models.go62
1 files changed, 54 insertions, 8 deletions
diff --git a/models.go b/models.go
index 7119fa9..3b369ca 100644
--- a/models.go
+++ b/models.go
@@ -15,29 +15,75 @@ type Killmail struct {
Hash string `json:"hash"`
}
+type Ship struct {
+ Name string `json:"name"`
+ Group string `json:"group"`
+}
+
+type Location struct {
+ Name string `json:"name"`
+ Security float32 `json:"security"`
+ Position Vector3 `json:"position"`
+ Constellation string `json:"constellation"`
+ Region string `json:"region"`
+}
+
type Team []int32
+type BattleStub struct {
+ Teams []Team `json:"teams"`
+ Killmails []Killmail `json:"killmails"`
+}
+
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"`
+ Id string `json:"-"`
+ Name string `json:"name"`
+ LastModified time.Time `json:"-"`
+ StartTime time.Time `json:"started_at"`
+ EndTime time.Time `json:"ended_at"`
+ Killmails []EsiKillmail `json:"killmails"` // How about no?
+ Teams []Team `json:"teams"`
+ Ships map[int32]Ship `json:"ships"`
+ Locations map[int32]Location `json:"locations"`
+ Names map[int32]string `json:"names'`
}
type EsiKillmail struct {
- SolarSystemId int32 `json:"solar_system_id"`
+ Id int32 `json:"killmail_id"`
+ Hash string `json:"hash"`
+ SolarSystemId int32 `json:"solar_system_id"`
Victim struct {
Position Vector3 `json:"position"`
ShipTypeId int32 `json:"ship_type_id"`
+ CharacterId int32 `json:"character_id"`
CorporationId int32 `json:"corporation_id"`
AllianceId int32 `json:"alliance_id"`
+ FactionId int32 `json:"faction_id"`
} `json:"victim"`
Time time.Time `json:"killmail_time"`
}
type EsiUniverseSystem struct {
+ Name string `json:"name"`
+ ConstellationId int32 `json:"constellation_id"`
+ Position Vector3 `json:"position"`
+ Security float32 `json:"security_status"`
+}
+
+type EsiUniverseConstellation struct {
+ Name string `json:"name"`
+ RegionId int32 `json:"region_id"`
+}
+
+type EsiUniverseRegion struct {
+ Name string `json:"name"`
+}
+
+type EsiType struct {
+ Name string `json:"name"`
+ GroupId int32 `json:"group_id"`
+}
+
+type EsiGroup struct {
Name string `json:"name"`
}