games

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for games API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new games API client.

func (*Client) GetGameHighScores

func (a *Client) GetGameHighScores(params *GetGameHighScoresParams) (*GetGameHighScoresOK, error)

GetGameHighScores get game high scores API

func (*Client) SendGame

func (a *Client) SendGame(params *SendGameParams) (*SendGameOK, error)

SendGame send game API

func (*Client) SetGameScore

func (a *Client) SetGameScore(params *SetGameScoreParams) (*SetGameScoreOK, error)

SetGameScore set game score API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetGameHighScoresBadRequest

type GetGameHighScoresBadRequest struct {
	Payload *models.Error
}

GetGameHighScoresBadRequest handles this case with default header values.

Bad Request

func NewGetGameHighScoresBadRequest

func NewGetGameHighScoresBadRequest() *GetGameHighScoresBadRequest

NewGetGameHighScoresBadRequest creates a GetGameHighScoresBadRequest with default headers values

func (*GetGameHighScoresBadRequest) Error

type GetGameHighScoresEnhanceYourCalm

type GetGameHighScoresEnhanceYourCalm struct {
	Payload *models.Error
}

GetGameHighScoresEnhanceYourCalm handles this case with default header values.

Flood

func NewGetGameHighScoresEnhanceYourCalm

func NewGetGameHighScoresEnhanceYourCalm() *GetGameHighScoresEnhanceYourCalm

NewGetGameHighScoresEnhanceYourCalm creates a GetGameHighScoresEnhanceYourCalm with default headers values

func (*GetGameHighScoresEnhanceYourCalm) Error

type GetGameHighScoresForbidden

type GetGameHighScoresForbidden struct {
	Payload *models.Error
}

GetGameHighScoresForbidden handles this case with default header values.

Forbidden

func NewGetGameHighScoresForbidden

func NewGetGameHighScoresForbidden() *GetGameHighScoresForbidden

NewGetGameHighScoresForbidden creates a GetGameHighScoresForbidden with default headers values

func (*GetGameHighScoresForbidden) Error

type GetGameHighScoresInternalServerError

type GetGameHighScoresInternalServerError struct {
	Payload *models.Error
}

GetGameHighScoresInternalServerError handles this case with default header values.

Internal

func NewGetGameHighScoresInternalServerError

func NewGetGameHighScoresInternalServerError() *GetGameHighScoresInternalServerError

NewGetGameHighScoresInternalServerError creates a GetGameHighScoresInternalServerError with default headers values

func (*GetGameHighScoresInternalServerError) Error

type GetGameHighScoresNotFound

type GetGameHighScoresNotFound struct {
	Payload *models.Error
}

GetGameHighScoresNotFound handles this case with default header values.

Not Found

func NewGetGameHighScoresNotFound

func NewGetGameHighScoresNotFound() *GetGameHighScoresNotFound

NewGetGameHighScoresNotFound creates a GetGameHighScoresNotFound with default headers values

func (*GetGameHighScoresNotFound) Error

func (o *GetGameHighScoresNotFound) Error() string

type GetGameHighScoresOK

type GetGameHighScoresOK struct {
	Payload GetGameHighScoresOKBody
}

GetGameHighScoresOK handles this case with default header values.

GetGameHighScoresOK get game high scores o k

func NewGetGameHighScoresOK

func NewGetGameHighScoresOK() *GetGameHighScoresOK

NewGetGameHighScoresOK creates a GetGameHighScoresOK with default headers values

func (*GetGameHighScoresOK) Error

func (o *GetGameHighScoresOK) Error() string

type GetGameHighScoresOKBody

type GetGameHighScoresOKBody struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// error code
	// Required: true
	ErrorCode *int64 `json:"error_code"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// result
	// Required: true
	Result *models.GameHighScore `json:"result"`
}

GetGameHighScoresOKBody get game high scores o k body swagger:model GetGameHighScoresOKBody

func (*GetGameHighScoresOKBody) MarshalBinary

func (o *GetGameHighScoresOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameHighScoresOKBody) UnmarshalBinary

func (o *GetGameHighScoresOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameHighScoresOKBody) Validate

func (o *GetGameHighScoresOKBody) Validate(formats strfmt.Registry) error

Validate validates this get game high scores o k body

type GetGameHighScoresParams

type GetGameHighScoresParams struct {

	/*ChatID*/
	ChatID *int64
	/*InlineMessageID*/
	InlineMessageID *string
	/*MessageID*/
	MessageID *int64
	/*Token
	  bot's token to authorize the request

	*/
	Token *string
	/*UserID*/
	UserID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetGameHighScoresParams contains all the parameters to send to the API endpoint for the get game high scores operation typically these are written to a http.Request

func NewGetGameHighScoresParams

func NewGetGameHighScoresParams() *GetGameHighScoresParams

NewGetGameHighScoresParams creates a new GetGameHighScoresParams object with the default values initialized.

func NewGetGameHighScoresParamsWithContext

func NewGetGameHighScoresParamsWithContext(ctx context.Context) *GetGameHighScoresParams

NewGetGameHighScoresParamsWithContext creates a new GetGameHighScoresParams object with the default values initialized, and the ability to set a context for a request

func NewGetGameHighScoresParamsWithHTTPClient

func NewGetGameHighScoresParamsWithHTTPClient(client *http.Client) *GetGameHighScoresParams

NewGetGameHighScoresParamsWithHTTPClient creates a new GetGameHighScoresParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetGameHighScoresParamsWithTimeout

func NewGetGameHighScoresParamsWithTimeout(timeout time.Duration) *GetGameHighScoresParams

NewGetGameHighScoresParamsWithTimeout creates a new GetGameHighScoresParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetGameHighScoresParams) SetChatID

func (o *GetGameHighScoresParams) SetChatID(chatID *int64)

SetChatID adds the chatId to the get game high scores params

func (*GetGameHighScoresParams) SetContext

func (o *GetGameHighScoresParams) SetContext(ctx context.Context)

SetContext adds the context to the get game high scores params

func (*GetGameHighScoresParams) SetHTTPClient

func (o *GetGameHighScoresParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get game high scores params

func (*GetGameHighScoresParams) SetInlineMessageID

func (o *GetGameHighScoresParams) SetInlineMessageID(inlineMessageID *string)

SetInlineMessageID adds the inlineMessageId to the get game high scores params

func (*GetGameHighScoresParams) SetMessageID

func (o *GetGameHighScoresParams) SetMessageID(messageID *int64)

SetMessageID adds the messageId to the get game high scores params

func (*GetGameHighScoresParams) SetTimeout

func (o *GetGameHighScoresParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get game high scores params

func (*GetGameHighScoresParams) SetToken

func (o *GetGameHighScoresParams) SetToken(token *string)

SetToken adds the token to the get game high scores params

func (*GetGameHighScoresParams) SetUserID

func (o *GetGameHighScoresParams) SetUserID(userID int64)

SetUserID adds the userId to the get game high scores params

func (*GetGameHighScoresParams) WithChatID

func (o *GetGameHighScoresParams) WithChatID(chatID *int64) *GetGameHighScoresParams

WithChatID adds the chatID to the get game high scores params

func (*GetGameHighScoresParams) WithContext

WithContext adds the context to the get game high scores params

func (*GetGameHighScoresParams) WithHTTPClient

func (o *GetGameHighScoresParams) WithHTTPClient(client *http.Client) *GetGameHighScoresParams

WithHTTPClient adds the HTTPClient to the get game high scores params

func (*GetGameHighScoresParams) WithInlineMessageID

func (o *GetGameHighScoresParams) WithInlineMessageID(inlineMessageID *string) *GetGameHighScoresParams

WithInlineMessageID adds the inlineMessageID to the get game high scores params

func (*GetGameHighScoresParams) WithMessageID

func (o *GetGameHighScoresParams) WithMessageID(messageID *int64) *GetGameHighScoresParams

WithMessageID adds the messageID to the get game high scores params

func (*GetGameHighScoresParams) WithTimeout

WithTimeout adds the timeout to the get game high scores params

func (*GetGameHighScoresParams) WithToken

WithToken adds the token to the get game high scores params

func (*GetGameHighScoresParams) WithUserID

func (o *GetGameHighScoresParams) WithUserID(userID int64) *GetGameHighScoresParams

WithUserID adds the userID to the get game high scores params

func (*GetGameHighScoresParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGameHighScoresReader

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

GetGameHighScoresReader is a Reader for the GetGameHighScores structure.

func (*GetGameHighScoresReader) ReadResponse

func (o *GetGameHighScoresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetGameHighScoresUnauthorized

type GetGameHighScoresUnauthorized struct {
	Payload *models.Error
}

GetGameHighScoresUnauthorized handles this case with default header values.

Unauthorized

func NewGetGameHighScoresUnauthorized

func NewGetGameHighScoresUnauthorized() *GetGameHighScoresUnauthorized

NewGetGameHighScoresUnauthorized creates a GetGameHighScoresUnauthorized with default headers values

func (*GetGameHighScoresUnauthorized) Error

type SendGameBadRequest

type SendGameBadRequest struct {
	Payload *models.Error
}

SendGameBadRequest handles this case with default header values.

Bad Request

func NewSendGameBadRequest

func NewSendGameBadRequest() *SendGameBadRequest

NewSendGameBadRequest creates a SendGameBadRequest with default headers values

func (*SendGameBadRequest) Error

func (o *SendGameBadRequest) Error() string

type SendGameEnhanceYourCalm

type SendGameEnhanceYourCalm struct {
	Payload *models.Error
}

SendGameEnhanceYourCalm handles this case with default header values.

Flood

func NewSendGameEnhanceYourCalm

func NewSendGameEnhanceYourCalm() *SendGameEnhanceYourCalm

NewSendGameEnhanceYourCalm creates a SendGameEnhanceYourCalm with default headers values

func (*SendGameEnhanceYourCalm) Error

func (o *SendGameEnhanceYourCalm) Error() string

type SendGameForbidden

type SendGameForbidden struct {
	Payload *models.Error
}

SendGameForbidden handles this case with default header values.

Forbidden

func NewSendGameForbidden

func NewSendGameForbidden() *SendGameForbidden

NewSendGameForbidden creates a SendGameForbidden with default headers values

func (*SendGameForbidden) Error

func (o *SendGameForbidden) Error() string

type SendGameInternalServerError

type SendGameInternalServerError struct {
	Payload *models.Error
}

SendGameInternalServerError handles this case with default header values.

Internal

func NewSendGameInternalServerError

func NewSendGameInternalServerError() *SendGameInternalServerError

NewSendGameInternalServerError creates a SendGameInternalServerError with default headers values

func (*SendGameInternalServerError) Error

type SendGameNotFound

type SendGameNotFound struct {
	Payload *models.Error
}

SendGameNotFound handles this case with default header values.

Not Found

func NewSendGameNotFound

func NewSendGameNotFound() *SendGameNotFound

NewSendGameNotFound creates a SendGameNotFound with default headers values

func (*SendGameNotFound) Error

func (o *SendGameNotFound) Error() string

type SendGameOK

type SendGameOK struct {
	Payload *models.ResponseMessage
}

SendGameOK handles this case with default header values.

SendGameOK send game o k

func NewSendGameOK

func NewSendGameOK() *SendGameOK

NewSendGameOK creates a SendGameOK with default headers values

func (*SendGameOK) Error

func (o *SendGameOK) Error() string

type SendGameParams

type SendGameParams struct {

	/*Body*/
	Body *models.SendGameBody
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendGameParams contains all the parameters to send to the API endpoint for the send game operation typically these are written to a http.Request

func NewSendGameParams

func NewSendGameParams() *SendGameParams

NewSendGameParams creates a new SendGameParams object with the default values initialized.

func NewSendGameParamsWithContext

func NewSendGameParamsWithContext(ctx context.Context) *SendGameParams

NewSendGameParamsWithContext creates a new SendGameParams object with the default values initialized, and the ability to set a context for a request

func NewSendGameParamsWithHTTPClient

func NewSendGameParamsWithHTTPClient(client *http.Client) *SendGameParams

NewSendGameParamsWithHTTPClient creates a new SendGameParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendGameParamsWithTimeout

func NewSendGameParamsWithTimeout(timeout time.Duration) *SendGameParams

NewSendGameParamsWithTimeout creates a new SendGameParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendGameParams) SetBody

func (o *SendGameParams) SetBody(body *models.SendGameBody)

SetBody adds the body to the send game params

func (*SendGameParams) SetContext

func (o *SendGameParams) SetContext(ctx context.Context)

SetContext adds the context to the send game params

func (*SendGameParams) SetHTTPClient

func (o *SendGameParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the send game params

func (*SendGameParams) SetTimeout

func (o *SendGameParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the send game params

func (*SendGameParams) SetToken

func (o *SendGameParams) SetToken(token *string)

SetToken adds the token to the send game params

func (*SendGameParams) WithBody

func (o *SendGameParams) WithBody(body *models.SendGameBody) *SendGameParams

WithBody adds the body to the send game params

func (*SendGameParams) WithContext

func (o *SendGameParams) WithContext(ctx context.Context) *SendGameParams

WithContext adds the context to the send game params

func (*SendGameParams) WithHTTPClient

func (o *SendGameParams) WithHTTPClient(client *http.Client) *SendGameParams

WithHTTPClient adds the HTTPClient to the send game params

func (*SendGameParams) WithTimeout

func (o *SendGameParams) WithTimeout(timeout time.Duration) *SendGameParams

WithTimeout adds the timeout to the send game params

func (*SendGameParams) WithToken

func (o *SendGameParams) WithToken(token *string) *SendGameParams

WithToken adds the token to the send game params

func (*SendGameParams) WriteToRequest

func (o *SendGameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SendGameReader

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

SendGameReader is a Reader for the SendGame structure.

func (*SendGameReader) ReadResponse

func (o *SendGameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SendGameUnauthorized

type SendGameUnauthorized struct {
	Payload *models.Error
}

SendGameUnauthorized handles this case with default header values.

Unauthorized

func NewSendGameUnauthorized

func NewSendGameUnauthorized() *SendGameUnauthorized

NewSendGameUnauthorized creates a SendGameUnauthorized with default headers values

func (*SendGameUnauthorized) Error

func (o *SendGameUnauthorized) Error() string

type SetGameScoreBadRequest

type SetGameScoreBadRequest struct {
	Payload *models.Error
}

SetGameScoreBadRequest handles this case with default header values.

Bad Request

func NewSetGameScoreBadRequest

func NewSetGameScoreBadRequest() *SetGameScoreBadRequest

NewSetGameScoreBadRequest creates a SetGameScoreBadRequest with default headers values

func (*SetGameScoreBadRequest) Error

func (o *SetGameScoreBadRequest) Error() string

type SetGameScoreEnhanceYourCalm

type SetGameScoreEnhanceYourCalm struct {
	Payload *models.Error
}

SetGameScoreEnhanceYourCalm handles this case with default header values.

Flood

func NewSetGameScoreEnhanceYourCalm

func NewSetGameScoreEnhanceYourCalm() *SetGameScoreEnhanceYourCalm

NewSetGameScoreEnhanceYourCalm creates a SetGameScoreEnhanceYourCalm with default headers values

func (*SetGameScoreEnhanceYourCalm) Error

type SetGameScoreForbidden

type SetGameScoreForbidden struct {
	Payload *models.Error
}

SetGameScoreForbidden handles this case with default header values.

Forbidden

func NewSetGameScoreForbidden

func NewSetGameScoreForbidden() *SetGameScoreForbidden

NewSetGameScoreForbidden creates a SetGameScoreForbidden with default headers values

func (*SetGameScoreForbidden) Error

func (o *SetGameScoreForbidden) Error() string

type SetGameScoreInternalServerError

type SetGameScoreInternalServerError struct {
	Payload *models.Error
}

SetGameScoreInternalServerError handles this case with default header values.

Internal

func NewSetGameScoreInternalServerError

func NewSetGameScoreInternalServerError() *SetGameScoreInternalServerError

NewSetGameScoreInternalServerError creates a SetGameScoreInternalServerError with default headers values

func (*SetGameScoreInternalServerError) Error

type SetGameScoreNotFound

type SetGameScoreNotFound struct {
	Payload *models.Error
}

SetGameScoreNotFound handles this case with default header values.

Not Found

func NewSetGameScoreNotFound

func NewSetGameScoreNotFound() *SetGameScoreNotFound

NewSetGameScoreNotFound creates a SetGameScoreNotFound with default headers values

func (*SetGameScoreNotFound) Error

func (o *SetGameScoreNotFound) Error() string

type SetGameScoreOK

type SetGameScoreOK struct {
	Payload SetGameScoreOKBody
}

SetGameScoreOK handles this case with default header values.

SetGameScoreOK set game score o k

func NewSetGameScoreOK

func NewSetGameScoreOK() *SetGameScoreOK

NewSetGameScoreOK creates a SetGameScoreOK with default headers values

func (*SetGameScoreOK) Error

func (o *SetGameScoreOK) Error() string

type SetGameScoreOKBody

type SetGameScoreOKBody struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// error code
	// Required: true
	ErrorCode *int64 `json:"error_code"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// result
	// Required: true
	Result interface{} `json:"result"`
}

SetGameScoreOKBody set game score o k body swagger:model SetGameScoreOKBody

func (*SetGameScoreOKBody) MarshalBinary

func (o *SetGameScoreOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetGameScoreOKBody) UnmarshalBinary

func (o *SetGameScoreOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetGameScoreOKBody) Validate

func (o *SetGameScoreOKBody) Validate(formats strfmt.Registry) error

Validate validates this set game score o k body

type SetGameScoreParams

type SetGameScoreParams struct {

	/*ChatID*/
	ChatID *int64
	/*DisableEditMessage*/
	DisableEditMessage *bool
	/*Force*/
	Force *bool
	/*InlineMessageID*/
	InlineMessageID *string
	/*MessageID*/
	MessageID *int64
	/*Score*/
	Score int64
	/*Token
	  bot's token to authorize the request

	*/
	Token *string
	/*UserID*/
	UserID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetGameScoreParams contains all the parameters to send to the API endpoint for the set game score operation typically these are written to a http.Request

func NewSetGameScoreParams

func NewSetGameScoreParams() *SetGameScoreParams

NewSetGameScoreParams creates a new SetGameScoreParams object with the default values initialized.

func NewSetGameScoreParamsWithContext

func NewSetGameScoreParamsWithContext(ctx context.Context) *SetGameScoreParams

NewSetGameScoreParamsWithContext creates a new SetGameScoreParams object with the default values initialized, and the ability to set a context for a request

func NewSetGameScoreParamsWithHTTPClient

func NewSetGameScoreParamsWithHTTPClient(client *http.Client) *SetGameScoreParams

NewSetGameScoreParamsWithHTTPClient creates a new SetGameScoreParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetGameScoreParamsWithTimeout

func NewSetGameScoreParamsWithTimeout(timeout time.Duration) *SetGameScoreParams

NewSetGameScoreParamsWithTimeout creates a new SetGameScoreParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetGameScoreParams) SetChatID

func (o *SetGameScoreParams) SetChatID(chatID *int64)

SetChatID adds the chatId to the set game score params

func (*SetGameScoreParams) SetContext

func (o *SetGameScoreParams) SetContext(ctx context.Context)

SetContext adds the context to the set game score params

func (*SetGameScoreParams) SetDisableEditMessage

func (o *SetGameScoreParams) SetDisableEditMessage(disableEditMessage *bool)

SetDisableEditMessage adds the disableEditMessage to the set game score params

func (*SetGameScoreParams) SetForce

func (o *SetGameScoreParams) SetForce(force *bool)

SetForce adds the force to the set game score params

func (*SetGameScoreParams) SetHTTPClient

func (o *SetGameScoreParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set game score params

func (*SetGameScoreParams) SetInlineMessageID

func (o *SetGameScoreParams) SetInlineMessageID(inlineMessageID *string)

SetInlineMessageID adds the inlineMessageId to the set game score params

func (*SetGameScoreParams) SetMessageID

func (o *SetGameScoreParams) SetMessageID(messageID *int64)

SetMessageID adds the messageId to the set game score params

func (*SetGameScoreParams) SetScore

func (o *SetGameScoreParams) SetScore(score int64)

SetScore adds the score to the set game score params

func (*SetGameScoreParams) SetTimeout

func (o *SetGameScoreParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set game score params

func (*SetGameScoreParams) SetToken

func (o *SetGameScoreParams) SetToken(token *string)

SetToken adds the token to the set game score params

func (*SetGameScoreParams) SetUserID

func (o *SetGameScoreParams) SetUserID(userID int64)

SetUserID adds the userId to the set game score params

func (*SetGameScoreParams) WithChatID

func (o *SetGameScoreParams) WithChatID(chatID *int64) *SetGameScoreParams

WithChatID adds the chatID to the set game score params

func (*SetGameScoreParams) WithContext

WithContext adds the context to the set game score params

func (*SetGameScoreParams) WithDisableEditMessage

func (o *SetGameScoreParams) WithDisableEditMessage(disableEditMessage *bool) *SetGameScoreParams

WithDisableEditMessage adds the disableEditMessage to the set game score params

func (*SetGameScoreParams) WithForce

func (o *SetGameScoreParams) WithForce(force *bool) *SetGameScoreParams

WithForce adds the force to the set game score params

func (*SetGameScoreParams) WithHTTPClient

func (o *SetGameScoreParams) WithHTTPClient(client *http.Client) *SetGameScoreParams

WithHTTPClient adds the HTTPClient to the set game score params

func (*SetGameScoreParams) WithInlineMessageID

func (o *SetGameScoreParams) WithInlineMessageID(inlineMessageID *string) *SetGameScoreParams

WithInlineMessageID adds the inlineMessageID to the set game score params

func (*SetGameScoreParams) WithMessageID

func (o *SetGameScoreParams) WithMessageID(messageID *int64) *SetGameScoreParams

WithMessageID adds the messageID to the set game score params

func (*SetGameScoreParams) WithScore

func (o *SetGameScoreParams) WithScore(score int64) *SetGameScoreParams

WithScore adds the score to the set game score params

func (*SetGameScoreParams) WithTimeout

func (o *SetGameScoreParams) WithTimeout(timeout time.Duration) *SetGameScoreParams

WithTimeout adds the timeout to the set game score params

func (*SetGameScoreParams) WithToken

func (o *SetGameScoreParams) WithToken(token *string) *SetGameScoreParams

WithToken adds the token to the set game score params

func (*SetGameScoreParams) WithUserID

func (o *SetGameScoreParams) WithUserID(userID int64) *SetGameScoreParams

WithUserID adds the userID to the set game score params

func (*SetGameScoreParams) WriteToRequest

func (o *SetGameScoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SetGameScoreReader

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

SetGameScoreReader is a Reader for the SetGameScore structure.

func (*SetGameScoreReader) ReadResponse

func (o *SetGameScoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SetGameScoreUnauthorized

type SetGameScoreUnauthorized struct {
	Payload *models.Error
}

SetGameScoreUnauthorized handles this case with default header values.

Unauthorized

func NewSetGameScoreUnauthorized

func NewSetGameScoreUnauthorized() *SetGameScoreUnauthorized

NewSetGameScoreUnauthorized creates a SetGameScoreUnauthorized with default headers values

func (*SetGameScoreUnauthorized) Error

func (o *SetGameScoreUnauthorized) Error() string

Jump to

Keyboard shortcuts

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