summaryrefslogtreecommitdiff
path: root/golang/pkg/api/agents.go
blob: aa8107a6811c207e740293c1a3c7291ac844d63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package api

type AgentMessage struct {
	AccountID       string `json:"accountId"`
	Credits         int    `json:"credits"`
	Headquarters    string `json:"headquarters"`
	ShipCount       int    `json:"shipCount"`
	StartingFaction string `json:"startingFaction"`
	Symbol          string `json:"symbol"`
}

func (c *Client) MyAgent() (APIMessage[AgentMessage, any], error) {
	return Send[AgentMessage](c, "GET", "/my/agent", nil)
}