diff options
Diffstat (limited to 'golang/pkg/model/route.go')
-rw-r--r-- | golang/pkg/model/route.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/golang/pkg/model/route.go b/golang/pkg/model/route.go new file mode 100644 index 0000000..0533e61 --- /dev/null +++ b/golang/pkg/model/route.go @@ -0,0 +1,17 @@ +package model + +import "time" + +type Route struct { + Arrival time.Time `json:"arrival"` + DepartureTime time.Time `json:"departureTime"` + Destination RouteEndpoint `json:"destination"` +} + +type RouteEndpoint struct { + Type string `json:"type"` + Symbol string `json:"symbol"` + SystemSymbol string `json:"systemSymbol"` + X int `json:"x"` + Y int `json:"y"` +} |