Skip to content

Latest commit

 

History

History
161 lines (86 loc) · 4.31 KB

Agent.md

File metadata and controls

161 lines (86 loc) · 4.31 KB

Agent

Properties

Name Type Description Notes
AccountId Pointer to string Account ID that is tied to this agent. Only included on your own agent. [optional]
Symbol string Symbol of the agent.
Headquarters string The headquarters of the agent.
Credits int64 The number of credits the agent has available. Credits can be negative if funds have been overdrawn.
StartingFaction string The faction the agent started with.
ShipCount int32 How many ships are owned by the agent.

Methods

NewAgent

func NewAgent(symbol string, headquarters string, credits int64, startingFaction string, shipCount int32, ) *Agent

NewAgent instantiates a new Agent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewAgentWithDefaults

func NewAgentWithDefaults() *Agent

NewAgentWithDefaults instantiates a new Agent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetAccountId

func (o *Agent) GetAccountId() string

GetAccountId returns the AccountId field if non-nil, zero value otherwise.

GetAccountIdOk

func (o *Agent) GetAccountIdOk() (*string, bool)

GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAccountId

func (o *Agent) SetAccountId(v string)

SetAccountId sets AccountId field to given value.

HasAccountId

func (o *Agent) HasAccountId() bool

HasAccountId returns a boolean if a field has been set.

GetSymbol

func (o *Agent) GetSymbol() string

GetSymbol returns the Symbol field if non-nil, zero value otherwise.

GetSymbolOk

func (o *Agent) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSymbol

func (o *Agent) SetSymbol(v string)

SetSymbol sets Symbol field to given value.

GetHeadquarters

func (o *Agent) GetHeadquarters() string

GetHeadquarters returns the Headquarters field if non-nil, zero value otherwise.

GetHeadquartersOk

func (o *Agent) GetHeadquartersOk() (*string, bool)

GetHeadquartersOk returns a tuple with the Headquarters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHeadquarters

func (o *Agent) SetHeadquarters(v string)

SetHeadquarters sets Headquarters field to given value.

GetCredits

func (o *Agent) GetCredits() int64

GetCredits returns the Credits field if non-nil, zero value otherwise.

GetCreditsOk

func (o *Agent) GetCreditsOk() (*int64, bool)

GetCreditsOk returns a tuple with the Credits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCredits

func (o *Agent) SetCredits(v int64)

SetCredits sets Credits field to given value.

GetStartingFaction

func (o *Agent) GetStartingFaction() string

GetStartingFaction returns the StartingFaction field if non-nil, zero value otherwise.

GetStartingFactionOk

func (o *Agent) GetStartingFactionOk() (*string, bool)

GetStartingFactionOk returns a tuple with the StartingFaction field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStartingFaction

func (o *Agent) SetStartingFaction(v string)

SetStartingFaction sets StartingFaction field to given value.

GetShipCount

func (o *Agent) GetShipCount() int32

GetShipCount returns the ShipCount field if non-nil, zero value otherwise.

GetShipCountOk

func (o *Agent) GetShipCountOk() (*int32, bool)

GetShipCountOk returns a tuple with the ShipCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetShipCount

func (o *Agent) SetShipCount(v int32)

SetShipCount sets ShipCount field to given value.

[Back to Model list] [Back to API list] [Back to README]