generated

package
v0.0.0-...-bc89a57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	DefaultAPI *DefaultAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Stickerio API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiV1CitiesCityidBuildingqitemsGetRequest

type ApiV1CitiesCityidBuildingqitemsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidBuildingqitemsGetRequest) Execute

func (ApiV1CitiesCityidBuildingqitemsGetRequest) Lastid

func (ApiV1CitiesCityidBuildingqitemsGetRequest) Pagesize

type ApiV1CitiesCityidBuildingqitemsItemidGetRequest

type ApiV1CitiesCityidBuildingqitemsItemidGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidBuildingqitemsItemidGetRequest) Execute

type ApiV1CitiesCityidBuildingqitemsPostRequest

type ApiV1CitiesCityidBuildingqitemsPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidBuildingqitemsPostRequest) Execute

func (ApiV1CitiesCityidBuildingqitemsPostRequest) V1BuildingQueueItem

type ApiV1CitiesCityidDeleteRequest

type ApiV1CitiesCityidDeleteRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidDeleteRequest) Execute

type ApiV1CitiesCityidGetRequest

type ApiV1CitiesCityidGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidGetRequest) Execute

type ApiV1CitiesCityidInfoGetRequest

type ApiV1CitiesCityidInfoGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidInfoGetRequest) Execute

type ApiV1CitiesCityidUnitqitemsGetRequest

type ApiV1CitiesCityidUnitqitemsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidUnitqitemsGetRequest) Execute

func (ApiV1CitiesCityidUnitqitemsGetRequest) Lastid

func (ApiV1CitiesCityidUnitqitemsGetRequest) Pagesize

type ApiV1CitiesCityidUnitqitemsItemidGetRequest

type ApiV1CitiesCityidUnitqitemsItemidGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidUnitqitemsItemidGetRequest) Execute

type ApiV1CitiesCityidUnitqitemsPostRequest

type ApiV1CitiesCityidUnitqitemsPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesCityidUnitqitemsPostRequest) Execute

func (ApiV1CitiesCityidUnitqitemsPostRequest) V1UnitQueueItem

type ApiV1CitiesGetRequest

type ApiV1CitiesGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesGetRequest) Execute

func (r ApiV1CitiesGetRequest) Execute() ([]V1CityInfo, *http.Response, error)

func (ApiV1CitiesGetRequest) Lastid

func (ApiV1CitiesGetRequest) Locationbounds

func (r ApiV1CitiesGetRequest) Locationbounds(locationbounds []int32) ApiV1CitiesGetRequest

func (ApiV1CitiesGetRequest) Pagesize

func (r ApiV1CitiesGetRequest) Pagesize(pagesize int32) ApiV1CitiesGetRequest

func (ApiV1CitiesGetRequest) Playerid

func (r ApiV1CitiesGetRequest) Playerid(playerid string) ApiV1CitiesGetRequest

type ApiV1CitiesPostRequest

type ApiV1CitiesPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1CitiesPostRequest) Execute

func (r ApiV1CitiesPostRequest) Execute() (*http.Response, error)

func (ApiV1CitiesPostRequest) V1CityInfo

func (r ApiV1CitiesPostRequest) V1CityInfo(v1CityInfo V1CityInfo) ApiV1CitiesPostRequest

type ApiV1MovementsGetRequest

type ApiV1MovementsGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1MovementsGetRequest) Destinationid

func (r ApiV1MovementsGetRequest) Destinationid(destinationid string) ApiV1MovementsGetRequest

func (ApiV1MovementsGetRequest) Execute

func (ApiV1MovementsGetRequest) Lastid

func (ApiV1MovementsGetRequest) Originid

func (ApiV1MovementsGetRequest) Pagesize

type ApiV1MovementsMovementidGetRequest

type ApiV1MovementsMovementidGetRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1MovementsMovementidGetRequest) Execute

type ApiV1MovementsStartPostRequest

type ApiV1MovementsStartPostRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiV1MovementsStartPostRequest) Execute

func (ApiV1MovementsStartPostRequest) V1Movement

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) V1CitiesCityidBuildingqitemsGet

func (a *DefaultAPIService) V1CitiesCityidBuildingqitemsGet(ctx context.Context, cityid string) ApiV1CitiesCityidBuildingqitemsGetRequest

V1CitiesCityidBuildingqitemsGet List building queue items.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@return ApiV1CitiesCityidBuildingqitemsGetRequest

func (*DefaultAPIService) V1CitiesCityidBuildingqitemsGetExecute

func (a *DefaultAPIService) V1CitiesCityidBuildingqitemsGetExecute(r ApiV1CitiesCityidBuildingqitemsGetRequest) ([]V1BuildingQueueItem, *http.Response, error)

Execute executes the request

@return []V1BuildingQueueItem

func (*DefaultAPIService) V1CitiesCityidBuildingqitemsItemidGet

func (a *DefaultAPIService) V1CitiesCityidBuildingqitemsItemidGet(ctx context.Context, cityid string, itemid string) ApiV1CitiesCityidBuildingqitemsItemidGetRequest

V1CitiesCityidBuildingqitemsItemidGet Get a building queue item.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@param itemid
@return ApiV1CitiesCityidBuildingqitemsItemidGetRequest

func (*DefaultAPIService) V1CitiesCityidBuildingqitemsItemidGetExecute

func (a *DefaultAPIService) V1CitiesCityidBuildingqitemsItemidGetExecute(r ApiV1CitiesCityidBuildingqitemsItemidGetRequest) (*V1BuildingQueueItem, *http.Response, error)

Execute executes the request

@return V1BuildingQueueItem

func (*DefaultAPIService) V1CitiesCityidBuildingqitemsPost

func (a *DefaultAPIService) V1CitiesCityidBuildingqitemsPost(ctx context.Context, cityid string) ApiV1CitiesCityidBuildingqitemsPostRequest

V1CitiesCityidBuildingqitemsPost Add a queue item.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@return ApiV1CitiesCityidBuildingqitemsPostRequest

func (*DefaultAPIService) V1CitiesCityidBuildingqitemsPostExecute

func (a *DefaultAPIService) V1CitiesCityidBuildingqitemsPostExecute(r ApiV1CitiesCityidBuildingqitemsPostRequest) (*http.Response, error)

Execute executes the request

func (*DefaultAPIService) V1CitiesCityidDelete

func (a *DefaultAPIService) V1CitiesCityidDelete(ctx context.Context, cityid string) ApiV1CitiesCityidDeleteRequest

V1CitiesCityidDelete Delete a city.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@return ApiV1CitiesCityidDeleteRequest

func (*DefaultAPIService) V1CitiesCityidDeleteExecute

func (a *DefaultAPIService) V1CitiesCityidDeleteExecute(r ApiV1CitiesCityidDeleteRequest) (*http.Response, error)

Execute executes the request

func (*DefaultAPIService) V1CitiesCityidGet

func (a *DefaultAPIService) V1CitiesCityidGet(ctx context.Context, cityid string) ApiV1CitiesCityidGetRequest

V1CitiesCityidGet Get a city complete state.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@return ApiV1CitiesCityidGetRequest

func (*DefaultAPIService) V1CitiesCityidGetExecute

func (a *DefaultAPIService) V1CitiesCityidGetExecute(r ApiV1CitiesCityidGetRequest) (*V1City, *http.Response, error)

Execute executes the request

@return V1City

func (*DefaultAPIService) V1CitiesCityidInfoGet

func (a *DefaultAPIService) V1CitiesCityidInfoGet(ctx context.Context, cityid string) ApiV1CitiesCityidInfoGetRequest

V1CitiesCityidInfoGet Get a city info.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@return ApiV1CitiesCityidInfoGetRequest

func (*DefaultAPIService) V1CitiesCityidInfoGetExecute

func (a *DefaultAPIService) V1CitiesCityidInfoGetExecute(r ApiV1CitiesCityidInfoGetRequest) (*V1CityInfo, *http.Response, error)

Execute executes the request

@return V1CityInfo

func (*DefaultAPIService) V1CitiesCityidUnitqitemsGet

func (a *DefaultAPIService) V1CitiesCityidUnitqitemsGet(ctx context.Context, cityid string) ApiV1CitiesCityidUnitqitemsGetRequest

V1CitiesCityidUnitqitemsGet List unit queue items.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@return ApiV1CitiesCityidUnitqitemsGetRequest

func (*DefaultAPIService) V1CitiesCityidUnitqitemsGetExecute

func (a *DefaultAPIService) V1CitiesCityidUnitqitemsGetExecute(r ApiV1CitiesCityidUnitqitemsGetRequest) ([]V1UnitQueueItem, *http.Response, error)

Execute executes the request

@return []V1UnitQueueItem

func (*DefaultAPIService) V1CitiesCityidUnitqitemsItemidGet

func (a *DefaultAPIService) V1CitiesCityidUnitqitemsItemidGet(ctx context.Context, cityid string, itemid string) ApiV1CitiesCityidUnitqitemsItemidGetRequest

V1CitiesCityidUnitqitemsItemidGet Get a unit queue item.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@param itemid
@return ApiV1CitiesCityidUnitqitemsItemidGetRequest

func (*DefaultAPIService) V1CitiesCityidUnitqitemsItemidGetExecute

func (a *DefaultAPIService) V1CitiesCityidUnitqitemsItemidGetExecute(r ApiV1CitiesCityidUnitqitemsItemidGetRequest) (*V1UnitQueueItem, *http.Response, error)

Execute executes the request

@return V1UnitQueueItem

func (*DefaultAPIService) V1CitiesCityidUnitqitemsPost

func (a *DefaultAPIService) V1CitiesCityidUnitqitemsPost(ctx context.Context, cityid string) ApiV1CitiesCityidUnitqitemsPostRequest

V1CitiesCityidUnitqitemsPost Add a queue item.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cityid
@return ApiV1CitiesCityidUnitqitemsPostRequest

func (*DefaultAPIService) V1CitiesCityidUnitqitemsPostExecute

func (a *DefaultAPIService) V1CitiesCityidUnitqitemsPostExecute(r ApiV1CitiesCityidUnitqitemsPostRequest) (*http.Response, error)

Execute executes the request

func (*DefaultAPIService) V1CitiesGet

V1CitiesGet List city infos with the given filters.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1CitiesGetRequest

func (*DefaultAPIService) V1CitiesGetExecute

func (a *DefaultAPIService) V1CitiesGetExecute(r ApiV1CitiesGetRequest) ([]V1CityInfo, *http.Response, error)

Execute executes the request

@return []V1CityInfo

func (*DefaultAPIService) V1CitiesPost

V1CitiesPost Create a city.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1CitiesPostRequest

func (*DefaultAPIService) V1CitiesPostExecute

func (a *DefaultAPIService) V1CitiesPostExecute(r ApiV1CitiesPostRequest) (*http.Response, error)

Execute executes the request

func (*DefaultAPIService) V1MovementsGet

V1MovementsGet List the movements happening for the player.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1MovementsGetRequest

func (*DefaultAPIService) V1MovementsGetExecute

func (a *DefaultAPIService) V1MovementsGetExecute(r ApiV1MovementsGetRequest) ([]V1Movement, *http.Response, error)

Execute executes the request

@return []V1Movement

func (*DefaultAPIService) V1MovementsMovementidGet

func (a *DefaultAPIService) V1MovementsMovementidGet(ctx context.Context, movementid string) ApiV1MovementsMovementidGetRequest

V1MovementsMovementidGet Get a movement for the player.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param movementid
@return ApiV1MovementsMovementidGetRequest

func (*DefaultAPIService) V1MovementsMovementidGetExecute

func (a *DefaultAPIService) V1MovementsMovementidGetExecute(r ApiV1MovementsMovementidGetRequest) (*V1Movement, *http.Response, error)

Execute executes the request

@return V1Movement

func (*DefaultAPIService) V1MovementsStartPost

func (a *DefaultAPIService) V1MovementsStartPost(ctx context.Context) ApiV1MovementsStartPostRequest

V1MovementsStartPost Start a movement.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1MovementsStartPostRequest

func (*DefaultAPIService) V1MovementsStartPostExecute

func (a *DefaultAPIService) V1MovementsStartPostExecute(r ApiV1MovementsStartPostRequest) (*http.Response, error)

Execute executes the request

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableV1BuildingQueueItem

type NullableV1BuildingQueueItem struct {
	// contains filtered or unexported fields
}

func NewNullableV1BuildingQueueItem

func NewNullableV1BuildingQueueItem(val *V1BuildingQueueItem) *NullableV1BuildingQueueItem

func (NullableV1BuildingQueueItem) Get

func (NullableV1BuildingQueueItem) IsSet

func (NullableV1BuildingQueueItem) MarshalJSON

func (v NullableV1BuildingQueueItem) MarshalJSON() ([]byte, error)

func (*NullableV1BuildingQueueItem) Set

func (*NullableV1BuildingQueueItem) UnmarshalJSON

func (v *NullableV1BuildingQueueItem) UnmarshalJSON(src []byte) error

func (*NullableV1BuildingQueueItem) Unset

func (v *NullableV1BuildingQueueItem) Unset()

type NullableV1City

type NullableV1City struct {
	// contains filtered or unexported fields
}

func NewNullableV1City

func NewNullableV1City(val *V1City) *NullableV1City

func (NullableV1City) Get

func (v NullableV1City) Get() *V1City

func (NullableV1City) IsSet

func (v NullableV1City) IsSet() bool

func (NullableV1City) MarshalJSON

func (v NullableV1City) MarshalJSON() ([]byte, error)

func (*NullableV1City) Set

func (v *NullableV1City) Set(val *V1City)

func (*NullableV1City) UnmarshalJSON

func (v *NullableV1City) UnmarshalJSON(src []byte) error

func (*NullableV1City) Unset

func (v *NullableV1City) Unset()

type NullableV1CityInfo

type NullableV1CityInfo struct {
	// contains filtered or unexported fields
}

func NewNullableV1CityInfo

func NewNullableV1CityInfo(val *V1CityInfo) *NullableV1CityInfo

func (NullableV1CityInfo) Get

func (v NullableV1CityInfo) Get() *V1CityInfo

func (NullableV1CityInfo) IsSet

func (v NullableV1CityInfo) IsSet() bool

func (NullableV1CityInfo) MarshalJSON

func (v NullableV1CityInfo) MarshalJSON() ([]byte, error)

func (*NullableV1CityInfo) Set

func (v *NullableV1CityInfo) Set(val *V1CityInfo)

func (*NullableV1CityInfo) UnmarshalJSON

func (v *NullableV1CityInfo) UnmarshalJSON(src []byte) error

func (*NullableV1CityInfo) Unset

func (v *NullableV1CityInfo) Unset()

type NullableV1CityResources

type NullableV1CityResources struct {
	// contains filtered or unexported fields
}

func NewNullableV1CityResources

func NewNullableV1CityResources(val *V1CityResources) *NullableV1CityResources

func (NullableV1CityResources) Get

func (NullableV1CityResources) IsSet

func (v NullableV1CityResources) IsSet() bool

func (NullableV1CityResources) MarshalJSON

func (v NullableV1CityResources) MarshalJSON() ([]byte, error)

func (*NullableV1CityResources) Set

func (*NullableV1CityResources) UnmarshalJSON

func (v *NullableV1CityResources) UnmarshalJSON(src []byte) error

func (*NullableV1CityResources) Unset

func (v *NullableV1CityResources) Unset()

type NullableV1Movement

type NullableV1Movement struct {
	// contains filtered or unexported fields
}

func NewNullableV1Movement

func NewNullableV1Movement(val *V1Movement) *NullableV1Movement

func (NullableV1Movement) Get

func (v NullableV1Movement) Get() *V1Movement

func (NullableV1Movement) IsSet

func (v NullableV1Movement) IsSet() bool

func (NullableV1Movement) MarshalJSON

func (v NullableV1Movement) MarshalJSON() ([]byte, error)

func (*NullableV1Movement) Set

func (v *NullableV1Movement) Set(val *V1Movement)

func (*NullableV1Movement) UnmarshalJSON

func (v *NullableV1Movement) UnmarshalJSON(src []byte) error

func (*NullableV1Movement) Unset

func (v *NullableV1Movement) Unset()

type NullableV1UnitQueueItem

type NullableV1UnitQueueItem struct {
	// contains filtered or unexported fields
}

func NewNullableV1UnitQueueItem

func NewNullableV1UnitQueueItem(val *V1UnitQueueItem) *NullableV1UnitQueueItem

func (NullableV1UnitQueueItem) Get

func (NullableV1UnitQueueItem) IsSet

func (v NullableV1UnitQueueItem) IsSet() bool

func (NullableV1UnitQueueItem) MarshalJSON

func (v NullableV1UnitQueueItem) MarshalJSON() ([]byte, error)

func (*NullableV1UnitQueueItem) Set

func (*NullableV1UnitQueueItem) UnmarshalJSON

func (v *NullableV1UnitQueueItem) UnmarshalJSON(src []byte) error

func (*NullableV1UnitQueueItem) Unset

func (v *NullableV1UnitQueueItem) Unset()

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type V1BuildingQueueItem

type V1BuildingQueueItem struct {
	Id          string `json:"id"`
	QueuedEpoch int64  `json:"queuedEpoch"`
	DurationSec int64  `json:"durationSec"`
	Level       int64  `json:"level"`
	Building    string `json:"building"`
}

V1BuildingQueueItem struct for V1BuildingQueueItem

func NewV1BuildingQueueItem

func NewV1BuildingQueueItem(id string, queuedEpoch int64, durationSec int64, level int64, building string) *V1BuildingQueueItem

NewV1BuildingQueueItem instantiates a new V1BuildingQueueItem 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

func NewV1BuildingQueueItemWithDefaults

func NewV1BuildingQueueItemWithDefaults() *V1BuildingQueueItem

NewV1BuildingQueueItemWithDefaults instantiates a new V1BuildingQueueItem 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

func (*V1BuildingQueueItem) GetBuilding

func (o *V1BuildingQueueItem) GetBuilding() string

GetBuilding returns the Building field value

func (*V1BuildingQueueItem) GetBuildingOk

func (o *V1BuildingQueueItem) GetBuildingOk() (*string, bool)

GetBuildingOk returns a tuple with the Building field value and a boolean to check if the value has been set.

func (*V1BuildingQueueItem) GetDurationSec

func (o *V1BuildingQueueItem) GetDurationSec() int64

GetDurationSec returns the DurationSec field value

func (*V1BuildingQueueItem) GetDurationSecOk

func (o *V1BuildingQueueItem) GetDurationSecOk() (*int64, bool)

GetDurationSecOk returns a tuple with the DurationSec field value and a boolean to check if the value has been set.

func (*V1BuildingQueueItem) GetId

func (o *V1BuildingQueueItem) GetId() string

GetId returns the Id field value

func (*V1BuildingQueueItem) GetIdOk

func (o *V1BuildingQueueItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*V1BuildingQueueItem) GetLevel

func (o *V1BuildingQueueItem) GetLevel() int64

GetLevel returns the Level field value

func (*V1BuildingQueueItem) GetLevelOk

func (o *V1BuildingQueueItem) GetLevelOk() (*int64, bool)

GetLevelOk returns a tuple with the Level field value and a boolean to check if the value has been set.

func (*V1BuildingQueueItem) GetQueuedEpoch

func (o *V1BuildingQueueItem) GetQueuedEpoch() int64

GetQueuedEpoch returns the QueuedEpoch field value

func (*V1BuildingQueueItem) GetQueuedEpochOk

func (o *V1BuildingQueueItem) GetQueuedEpochOk() (*int64, bool)

GetQueuedEpochOk returns a tuple with the QueuedEpoch field value and a boolean to check if the value has been set.

func (V1BuildingQueueItem) MarshalJSON

func (o V1BuildingQueueItem) MarshalJSON() ([]byte, error)

func (*V1BuildingQueueItem) SetBuilding

func (o *V1BuildingQueueItem) SetBuilding(v string)

SetBuilding sets field value

func (*V1BuildingQueueItem) SetDurationSec

func (o *V1BuildingQueueItem) SetDurationSec(v int64)

SetDurationSec sets field value

func (*V1BuildingQueueItem) SetId

func (o *V1BuildingQueueItem) SetId(v string)

SetId sets field value

func (*V1BuildingQueueItem) SetLevel

func (o *V1BuildingQueueItem) SetLevel(v int64)

SetLevel sets field value

func (*V1BuildingQueueItem) SetQueuedEpoch

func (o *V1BuildingQueueItem) SetQueuedEpoch(v int64)

SetQueuedEpoch sets field value

func (V1BuildingQueueItem) ToMap

func (o V1BuildingQueueItem) ToMap() (map[string]interface{}, error)

func (*V1BuildingQueueItem) UnmarshalJSON

func (o *V1BuildingQueueItem) UnmarshalJSON(data []byte) (err error)

type V1City

type V1City struct {
	CityInfo      V1CityInfo       `json:"cityInfo"`
	Buildings     map[string]int64 `json:"buildings"`
	CityResources V1CityResources  `json:"cityResources"`
	UnitCount     map[string]int64 `json:"unitCount"`
}

V1City struct for V1City

func NewV1City

func NewV1City(cityInfo V1CityInfo, buildings map[string]int64, cityResources V1CityResources, unitCount map[string]int64) *V1City

NewV1City instantiates a new V1City 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

func NewV1CityWithDefaults

func NewV1CityWithDefaults() *V1City

NewV1CityWithDefaults instantiates a new V1City 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

func (*V1City) GetBuildings

func (o *V1City) GetBuildings() map[string]int64

GetBuildings returns the Buildings field value

func (*V1City) GetBuildingsOk

func (o *V1City) GetBuildingsOk() (*map[string]int64, bool)

GetBuildingsOk returns a tuple with the Buildings field value and a boolean to check if the value has been set.

func (*V1City) GetCityInfo

func (o *V1City) GetCityInfo() V1CityInfo

GetCityInfo returns the CityInfo field value

func (*V1City) GetCityInfoOk

func (o *V1City) GetCityInfoOk() (*V1CityInfo, bool)

GetCityInfoOk returns a tuple with the CityInfo field value and a boolean to check if the value has been set.

func (*V1City) GetCityResources

func (o *V1City) GetCityResources() V1CityResources

GetCityResources returns the CityResources field value

func (*V1City) GetCityResourcesOk

func (o *V1City) GetCityResourcesOk() (*V1CityResources, bool)

GetCityResourcesOk returns a tuple with the CityResources field value and a boolean to check if the value has been set.

func (*V1City) GetUnitCount

func (o *V1City) GetUnitCount() map[string]int64

GetUnitCount returns the UnitCount field value

func (*V1City) GetUnitCountOk

func (o *V1City) GetUnitCountOk() (*map[string]int64, bool)

GetUnitCountOk returns a tuple with the UnitCount field value and a boolean to check if the value has been set.

func (V1City) MarshalJSON

func (o V1City) MarshalJSON() ([]byte, error)

func (*V1City) SetBuildings

func (o *V1City) SetBuildings(v map[string]int64)

SetBuildings sets field value

func (*V1City) SetCityInfo

func (o *V1City) SetCityInfo(v V1CityInfo)

SetCityInfo sets field value

func (*V1City) SetCityResources

func (o *V1City) SetCityResources(v V1CityResources)

SetCityResources sets field value

func (*V1City) SetUnitCount

func (o *V1City) SetUnitCount(v map[string]int64)

SetUnitCount sets field value

func (V1City) ToMap

func (o V1City) ToMap() (map[string]interface{}, error)

func (*V1City) UnmarshalJSON

func (o *V1City) UnmarshalJSON(data []byte) (err error)

type V1CityInfo

type V1CityInfo struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	PlayerID  string `json:"playerID"`
	LocationX int32  `json:"locationX"`
	LocationY int32  `json:"locationY"`
}

V1CityInfo struct for V1CityInfo

func NewV1CityInfo

func NewV1CityInfo(id string, name string, playerID string, locationX int32, locationY int32) *V1CityInfo

NewV1CityInfo instantiates a new V1CityInfo 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

func NewV1CityInfoWithDefaults

func NewV1CityInfoWithDefaults() *V1CityInfo

NewV1CityInfoWithDefaults instantiates a new V1CityInfo 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

func (*V1CityInfo) GetId

func (o *V1CityInfo) GetId() string

GetId returns the Id field value

func (*V1CityInfo) GetIdOk

func (o *V1CityInfo) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*V1CityInfo) GetLocationX

func (o *V1CityInfo) GetLocationX() int32

GetLocationX returns the LocationX field value

func (*V1CityInfo) GetLocationXOk

func (o *V1CityInfo) GetLocationXOk() (*int32, bool)

GetLocationXOk returns a tuple with the LocationX field value and a boolean to check if the value has been set.

func (*V1CityInfo) GetLocationY

func (o *V1CityInfo) GetLocationY() int32

GetLocationY returns the LocationY field value

func (*V1CityInfo) GetLocationYOk

func (o *V1CityInfo) GetLocationYOk() (*int32, bool)

GetLocationYOk returns a tuple with the LocationY field value and a boolean to check if the value has been set.

func (*V1CityInfo) GetName

func (o *V1CityInfo) GetName() string

GetName returns the Name field value

func (*V1CityInfo) GetNameOk

func (o *V1CityInfo) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*V1CityInfo) GetPlayerID

func (o *V1CityInfo) GetPlayerID() string

GetPlayerID returns the PlayerID field value

func (*V1CityInfo) GetPlayerIDOk

func (o *V1CityInfo) GetPlayerIDOk() (*string, bool)

GetPlayerIDOk returns a tuple with the PlayerID field value and a boolean to check if the value has been set.

func (V1CityInfo) MarshalJSON

func (o V1CityInfo) MarshalJSON() ([]byte, error)

func (*V1CityInfo) SetId

func (o *V1CityInfo) SetId(v string)

SetId sets field value

func (*V1CityInfo) SetLocationX

func (o *V1CityInfo) SetLocationX(v int32)

SetLocationX sets field value

func (*V1CityInfo) SetLocationY

func (o *V1CityInfo) SetLocationY(v int32)

SetLocationY sets field value

func (*V1CityInfo) SetName

func (o *V1CityInfo) SetName(v string)

SetName sets field value

func (*V1CityInfo) SetPlayerID

func (o *V1CityInfo) SetPlayerID(v string)

SetPlayerID sets field value

func (V1CityInfo) ToMap

func (o V1CityInfo) ToMap() (map[string]interface{}, error)

func (*V1CityInfo) UnmarshalJSON

func (o *V1CityInfo) UnmarshalJSON(data []byte) (err error)

type V1CityResources

type V1CityResources struct {
	Epoch     int64            `json:"epoch"`
	BaseCount map[string]int64 `json:"baseCount"`
}

V1CityResources struct for V1CityResources

func NewV1CityResources

func NewV1CityResources(epoch int64, baseCount map[string]int64) *V1CityResources

NewV1CityResources instantiates a new V1CityResources 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

func NewV1CityResourcesWithDefaults

func NewV1CityResourcesWithDefaults() *V1CityResources

NewV1CityResourcesWithDefaults instantiates a new V1CityResources 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

func (*V1CityResources) GetBaseCount

func (o *V1CityResources) GetBaseCount() map[string]int64

GetBaseCount returns the BaseCount field value

func (*V1CityResources) GetBaseCountOk

func (o *V1CityResources) GetBaseCountOk() (*map[string]int64, bool)

GetBaseCountOk returns a tuple with the BaseCount field value and a boolean to check if the value has been set.

func (*V1CityResources) GetEpoch

func (o *V1CityResources) GetEpoch() int64

GetEpoch returns the Epoch field value

func (*V1CityResources) GetEpochOk

func (o *V1CityResources) GetEpochOk() (*int64, bool)

GetEpochOk returns a tuple with the Epoch field value and a boolean to check if the value has been set.

func (V1CityResources) MarshalJSON

func (o V1CityResources) MarshalJSON() ([]byte, error)

func (*V1CityResources) SetBaseCount

func (o *V1CityResources) SetBaseCount(v map[string]int64)

SetBaseCount sets field value

func (*V1CityResources) SetEpoch

func (o *V1CityResources) SetEpoch(v int64)

SetEpoch sets field value

func (V1CityResources) ToMap

func (o V1CityResources) ToMap() (map[string]interface{}, error)

func (*V1CityResources) UnmarshalJSON

func (o *V1CityResources) UnmarshalJSON(data []byte) (err error)

type V1Movement

type V1Movement struct {
	Id             string           `json:"id"`
	PlayerID       string           `json:"playerID"`
	OriginID       string           `json:"originID"`
	DestinationID  string           `json:"destinationID"`
	DestinationX   int32            `json:"destinationX"`
	DestinationY   int32            `json:"destinationY"`
	DepartureEpoch int64            `json:"departureEpoch"`
	Speed          float64          `json:"speed"`
	UnitCount      map[string]int64 `json:"unitCount"`
	ResourceCount  map[string]int64 `json:"resourceCount"`
}

V1Movement struct for V1Movement

func NewV1Movement

func NewV1Movement(id string, playerID string, originID string, destinationID string, destinationX int32, destinationY int32, departureEpoch int64, speed float64, unitCount map[string]int64, resourceCount map[string]int64) *V1Movement

NewV1Movement instantiates a new V1Movement 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

func NewV1MovementWithDefaults

func NewV1MovementWithDefaults() *V1Movement

NewV1MovementWithDefaults instantiates a new V1Movement 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

func (*V1Movement) GetDepartureEpoch

func (o *V1Movement) GetDepartureEpoch() int64

GetDepartureEpoch returns the DepartureEpoch field value

func (*V1Movement) GetDepartureEpochOk

func (o *V1Movement) GetDepartureEpochOk() (*int64, bool)

GetDepartureEpochOk returns a tuple with the DepartureEpoch field value and a boolean to check if the value has been set.

func (*V1Movement) GetDestinationID

func (o *V1Movement) GetDestinationID() string

GetDestinationID returns the DestinationID field value

func (*V1Movement) GetDestinationIDOk

func (o *V1Movement) GetDestinationIDOk() (*string, bool)

GetDestinationIDOk returns a tuple with the DestinationID field value and a boolean to check if the value has been set.

func (*V1Movement) GetDestinationX

func (o *V1Movement) GetDestinationX() int32

GetDestinationX returns the DestinationX field value

func (*V1Movement) GetDestinationXOk

func (o *V1Movement) GetDestinationXOk() (*int32, bool)

GetDestinationXOk returns a tuple with the DestinationX field value and a boolean to check if the value has been set.

func (*V1Movement) GetDestinationY

func (o *V1Movement) GetDestinationY() int32

GetDestinationY returns the DestinationY field value

func (*V1Movement) GetDestinationYOk

func (o *V1Movement) GetDestinationYOk() (*int32, bool)

GetDestinationYOk returns a tuple with the DestinationY field value and a boolean to check if the value has been set.

func (*V1Movement) GetId

func (o *V1Movement) GetId() string

GetId returns the Id field value

func (*V1Movement) GetIdOk

func (o *V1Movement) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*V1Movement) GetOriginID

func (o *V1Movement) GetOriginID() string

GetOriginID returns the OriginID field value

func (*V1Movement) GetOriginIDOk

func (o *V1Movement) GetOriginIDOk() (*string, bool)

GetOriginIDOk returns a tuple with the OriginID field value and a boolean to check if the value has been set.

func (*V1Movement) GetPlayerID

func (o *V1Movement) GetPlayerID() string

GetPlayerID returns the PlayerID field value

func (*V1Movement) GetPlayerIDOk

func (o *V1Movement) GetPlayerIDOk() (*string, bool)

GetPlayerIDOk returns a tuple with the PlayerID field value and a boolean to check if the value has been set.

func (*V1Movement) GetResourceCount

func (o *V1Movement) GetResourceCount() map[string]int64

GetResourceCount returns the ResourceCount field value

func (*V1Movement) GetResourceCountOk

func (o *V1Movement) GetResourceCountOk() (*map[string]int64, bool)

GetResourceCountOk returns a tuple with the ResourceCount field value and a boolean to check if the value has been set.

func (*V1Movement) GetSpeed

func (o *V1Movement) GetSpeed() float64

GetSpeed returns the Speed field value

func (*V1Movement) GetSpeedOk

func (o *V1Movement) GetSpeedOk() (*float64, bool)

GetSpeedOk returns a tuple with the Speed field value and a boolean to check if the value has been set.

func (*V1Movement) GetUnitCount

func (o *V1Movement) GetUnitCount() map[string]int64

GetUnitCount returns the UnitCount field value

func (*V1Movement) GetUnitCountOk

func (o *V1Movement) GetUnitCountOk() (*map[string]int64, bool)

GetUnitCountOk returns a tuple with the UnitCount field value and a boolean to check if the value has been set.

func (V1Movement) MarshalJSON

func (o V1Movement) MarshalJSON() ([]byte, error)

func (*V1Movement) SetDepartureEpoch

func (o *V1Movement) SetDepartureEpoch(v int64)

SetDepartureEpoch sets field value

func (*V1Movement) SetDestinationID

func (o *V1Movement) SetDestinationID(v string)

SetDestinationID sets field value

func (*V1Movement) SetDestinationX

func (o *V1Movement) SetDestinationX(v int32)

SetDestinationX sets field value

func (*V1Movement) SetDestinationY

func (o *V1Movement) SetDestinationY(v int32)

SetDestinationY sets field value

func (*V1Movement) SetId

func (o *V1Movement) SetId(v string)

SetId sets field value

func (*V1Movement) SetOriginID

func (o *V1Movement) SetOriginID(v string)

SetOriginID sets field value

func (*V1Movement) SetPlayerID

func (o *V1Movement) SetPlayerID(v string)

SetPlayerID sets field value

func (*V1Movement) SetResourceCount

func (o *V1Movement) SetResourceCount(v map[string]int64)

SetResourceCount sets field value

func (*V1Movement) SetSpeed

func (o *V1Movement) SetSpeed(v float64)

SetSpeed sets field value

func (*V1Movement) SetUnitCount

func (o *V1Movement) SetUnitCount(v map[string]int64)

SetUnitCount sets field value

func (V1Movement) ToMap

func (o V1Movement) ToMap() (map[string]interface{}, error)

func (*V1Movement) UnmarshalJSON

func (o *V1Movement) UnmarshalJSON(data []byte) (err error)

type V1UnitQueueItem

type V1UnitQueueItem struct {
	Id          string `json:"id"`
	QueuedEpoch int64  `json:"queuedEpoch"`
	DurationSec int64  `json:"durationSec"`
	UnitCount   int64  `json:"unitCount"`
	UnitType    string `json:"unitType"`
}

V1UnitQueueItem struct for V1UnitQueueItem

func NewV1UnitQueueItem

func NewV1UnitQueueItem(id string, queuedEpoch int64, durationSec int64, unitCount int64, unitType string) *V1UnitQueueItem

NewV1UnitQueueItem instantiates a new V1UnitQueueItem 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

func NewV1UnitQueueItemWithDefaults

func NewV1UnitQueueItemWithDefaults() *V1UnitQueueItem

NewV1UnitQueueItemWithDefaults instantiates a new V1UnitQueueItem 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

func (*V1UnitQueueItem) GetDurationSec

func (o *V1UnitQueueItem) GetDurationSec() int64

GetDurationSec returns the DurationSec field value

func (*V1UnitQueueItem) GetDurationSecOk

func (o *V1UnitQueueItem) GetDurationSecOk() (*int64, bool)

GetDurationSecOk returns a tuple with the DurationSec field value and a boolean to check if the value has been set.

func (*V1UnitQueueItem) GetId

func (o *V1UnitQueueItem) GetId() string

GetId returns the Id field value

func (*V1UnitQueueItem) GetIdOk

func (o *V1UnitQueueItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*V1UnitQueueItem) GetQueuedEpoch

func (o *V1UnitQueueItem) GetQueuedEpoch() int64

GetQueuedEpoch returns the QueuedEpoch field value

func (*V1UnitQueueItem) GetQueuedEpochOk

func (o *V1UnitQueueItem) GetQueuedEpochOk() (*int64, bool)

GetQueuedEpochOk returns a tuple with the QueuedEpoch field value and a boolean to check if the value has been set.

func (*V1UnitQueueItem) GetUnitCount

func (o *V1UnitQueueItem) GetUnitCount() int64

GetUnitCount returns the UnitCount field value

func (*V1UnitQueueItem) GetUnitCountOk

func (o *V1UnitQueueItem) GetUnitCountOk() (*int64, bool)

GetUnitCountOk returns a tuple with the UnitCount field value and a boolean to check if the value has been set.

func (*V1UnitQueueItem) GetUnitType

func (o *V1UnitQueueItem) GetUnitType() string

GetUnitType returns the UnitType field value

func (*V1UnitQueueItem) GetUnitTypeOk

func (o *V1UnitQueueItem) GetUnitTypeOk() (*string, bool)

GetUnitTypeOk returns a tuple with the UnitType field value and a boolean to check if the value has been set.

func (V1UnitQueueItem) MarshalJSON

func (o V1UnitQueueItem) MarshalJSON() ([]byte, error)

func (*V1UnitQueueItem) SetDurationSec

func (o *V1UnitQueueItem) SetDurationSec(v int64)

SetDurationSec sets field value

func (*V1UnitQueueItem) SetId

func (o *V1UnitQueueItem) SetId(v string)

SetId sets field value

func (*V1UnitQueueItem) SetQueuedEpoch

func (o *V1UnitQueueItem) SetQueuedEpoch(v int64)

SetQueuedEpoch sets field value

func (*V1UnitQueueItem) SetUnitCount

func (o *V1UnitQueueItem) SetUnitCount(v int64)

SetUnitCount sets field value

func (*V1UnitQueueItem) SetUnitType

func (o *V1UnitQueueItem) SetUnitType(v string)

SetUnitType sets field value

func (V1UnitQueueItem) ToMap

func (o V1UnitQueueItem) ToMap() (map[string]interface{}, error)

func (*V1UnitQueueItem) UnmarshalJSON

func (o *V1UnitQueueItem) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL