62 lines
1.9 KiB
Go
62 lines
1.9 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"`
|
|
Latitude float64 `json:"latitude"`
|
|
Longitude float64 `json:"longitude"`
|
|
PinID int64 `json:"pin_id"`
|
|
TypeID int64 `json:"type_id"`
|
|
LastCycleStart *time.Time `json:"last_cycle_start,omitempty"`
|
|
SchematicID *int64 `json:"schematic_id,omitempty"`
|
|
ExpiryTime *time.Time `json:"expiry_time,omitempty"`
|
|
ExtractorDetails *ExtractorDetails `json:"extractor_details,omitempty"`
|
|
InstallTime *time.Time `json:"install_time,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"`
|
|
}
|
|
|
|
type ExtractorDetails struct {
|
|
CycleTime int64 `json:"cycle_time"`
|
|
HeadRadius float64 `json:"head_radius"`
|
|
ProductTypeID int64 `json:"product_type_id"`
|
|
QtyPerCycle int64 `json:"qty_per_cycle"`
|
|
}
|