summaryrefslogtreecommitdiffhomepage
path: root/models.go
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-05-08 00:43:14 +0200
committerAki <please@ignore.pl>2021-05-08 00:43:14 +0200
commit0c6f300f90bf576ffd67df7331fc57b55c5484d3 (patch)
treea89c3aed3c17fc0104c0e51be794a1f2eb95eef6 /models.go
parenta446a7ddf00a700079960e73a9b82f46d22c6ce4 (diff)
downloadfield-0c6f300f90bf576ffd67df7331fc57b55c5484d3.zip
field-0c6f300f90bf576ffd67df7331fc57b55c5484d3.tar.gz
field-0c6f300f90bf576ffd67df7331fc57b55c5484d3.tar.bz2
Added start and end dates to recent items
Diffstat (limited to 'models.go')
-rw-r--r--models.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models.go b/models.go
index 95c30c8..d79850b 100644
--- a/models.go
+++ b/models.go
@@ -14,6 +14,8 @@ type Team []uint32
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"`
@@ -28,6 +30,7 @@ type EsiKillmail struct {
Z float64 `json:"z"`
} `json:"position"`
} `json:"victim"`
+ Time time.Time `json:"killmail_time"`
}
type EsiUniverseSystem struct {