summaryrefslogtreecommitdiff
path: root/golang/pkg/model/shipyard.go
blob: 2ba2e95a8adb90bb7c13af9dfd911c536bdad4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package model

import "time"

type Shipyard struct {
	ModificationFee int                   `json:"modificationFee"`
	Symbol          string                `json:"symbol"`
	ShipTypes       []CommonType          `json:"shipTypes"`
	Transactions    []ShipyardTransaction `json:"transactions"`
	Ships           []ShipyardShip        `json:"ships"`
}

type ShipyardShip struct {
	Activity string `json:"activity"`
	// crew
	//Description string `json:"description"`
	// engine
	// frame
	// modules
	// mounts
	//Name         string   `json:"name"`
	PurchasePrice int `json:"purchasePrice"`
	// reactor
	Supply string `json:"supply"`
	Type   string `json:"type"`
}

type ShipyardTransaction struct {
	AgentSymbol    string    `json:"agentSymbol"`
	Price          int       `json:"price"`
	ShipSymbol     string    `json:"shipSymbol"`
	ShipType       string    `json:"shipType"`
	Timestamp      time.Time `json:"timestamp"`
	WaypointSymbol string    `json:"waypointSymbol"`
}