52 lines
1.4 KiB
Go
52 lines
1.4 KiB
Go
package esi
|
|
|
|
import "time"
|
|
|
|
type PlanetPI struct {
|
|
Links []Link `json:"links"`
|
|
Pins []Pin `json:"pins"`
|
|
Routes []Route `json:"routes"`
|
|
}
|
|
|
|
type Link struct {
|
|
DestinationPinID int64 `json:"destination_pin_id"`
|
|
LinkLevel int64 `json:"link_level"`
|
|
SourcePinID int64 `json:"source_pin_id"`
|
|
}
|
|
|
|
type Pin struct {
|
|
Contents []Content `json:"contents"`
|
|
LastCycleStart *time.Time `json:"last_cycle_start,omitempty"`
|
|
Latitude float64 `json:"latitude"`
|
|
Longitude float64 `json:"longitude"`
|
|
PinID int64 `json:"pin_id"`
|
|
TypeID int64 `json:"type_id"`
|
|
SchematicID *int64 `json:"schematic_id,omitempty"`
|
|
}
|
|
|
|
type Content struct {
|
|
Amount int64 `json:"amount"`
|
|
TypeID int64 `json:"type_id"`
|
|
}
|
|
|
|
type Route struct {
|
|
ContentTypeID int64 `json:"content_type_id"`
|
|
DestinationPinID int64 `json:"destination_pin_id"`
|
|
Quantity float64 `json:"quantity"`
|
|
RouteID int64 `json:"route_id"`
|
|
SourcePinID int64 `json:"source_pin_id"`
|
|
Waypoints []int64 `json:"waypoints"`
|
|
}
|
|
|
|
type Planets []Planet
|
|
|
|
type Planet struct {
|
|
LastUpdate time.Time `json:"last_update"`
|
|
NumPins int64 `json:"num_pins"`
|
|
OwnerID int64 `json:"owner_id"`
|
|
PlanetID int64 `json:"planet_id"`
|
|
PlanetType string `json:"planet_type"`
|
|
SolarSystemID int64 `json:"solar_system_id"`
|
|
UpgradeLevel int64 `json:"upgrade_level"`
|
|
}
|