Documentation ¶
Index ¶
- type Client
- func (a *Client) GetGameHighScores(params *GetGameHighScoresParams) (*GetGameHighScoresOK, error)
- func (a *Client) SendGame(params *SendGameParams) (*SendGameOK, error)
- func (a *Client) SetGameScore(params *SetGameScoreParams) (*SetGameScoreOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetGameHighScoresBadRequest
- type GetGameHighScoresEnhanceYourCalm
- type GetGameHighScoresForbidden
- type GetGameHighScoresInternalServerError
- type GetGameHighScoresNotFound
- type GetGameHighScoresOK
- type GetGameHighScoresOKBody
- type GetGameHighScoresParams
- func NewGetGameHighScoresParams() *GetGameHighScoresParams
- func NewGetGameHighScoresParamsWithContext(ctx context.Context) *GetGameHighScoresParams
- func NewGetGameHighScoresParamsWithHTTPClient(client *http.Client) *GetGameHighScoresParams
- func NewGetGameHighScoresParamsWithTimeout(timeout time.Duration) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) SetChatID(chatID *int64)
- func (o *GetGameHighScoresParams) SetContext(ctx context.Context)
- func (o *GetGameHighScoresParams) SetHTTPClient(client *http.Client)
- func (o *GetGameHighScoresParams) SetInlineMessageID(inlineMessageID *string)
- func (o *GetGameHighScoresParams) SetMessageID(messageID *int64)
- func (o *GetGameHighScoresParams) SetTimeout(timeout time.Duration)
- func (o *GetGameHighScoresParams) SetToken(token *string)
- func (o *GetGameHighScoresParams) SetUserID(userID int64)
- func (o *GetGameHighScoresParams) WithChatID(chatID *int64) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WithContext(ctx context.Context) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WithHTTPClient(client *http.Client) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WithInlineMessageID(inlineMessageID *string) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WithMessageID(messageID *int64) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WithTimeout(timeout time.Duration) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WithToken(token *string) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WithUserID(userID int64) *GetGameHighScoresParams
- func (o *GetGameHighScoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGameHighScoresReader
- type GetGameHighScoresUnauthorized
- type SendGameBadRequest
- type SendGameEnhanceYourCalm
- type SendGameForbidden
- type SendGameInternalServerError
- type SendGameNotFound
- type SendGameOK
- type SendGameParams
- func (o *SendGameParams) SetBody(body *models.SendGameBody)
- func (o *SendGameParams) SetContext(ctx context.Context)
- func (o *SendGameParams) SetHTTPClient(client *http.Client)
- func (o *SendGameParams) SetTimeout(timeout time.Duration)
- func (o *SendGameParams) SetToken(token *string)
- func (o *SendGameParams) WithBody(body *models.SendGameBody) *SendGameParams
- func (o *SendGameParams) WithContext(ctx context.Context) *SendGameParams
- func (o *SendGameParams) WithHTTPClient(client *http.Client) *SendGameParams
- func (o *SendGameParams) WithTimeout(timeout time.Duration) *SendGameParams
- func (o *SendGameParams) WithToken(token *string) *SendGameParams
- func (o *SendGameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendGameReader
- type SendGameUnauthorized
- type SetGameScoreBadRequest
- type SetGameScoreEnhanceYourCalm
- type SetGameScoreForbidden
- type SetGameScoreInternalServerError
- type SetGameScoreNotFound
- type SetGameScoreOK
- type SetGameScoreOKBody
- type SetGameScoreParams
- func (o *SetGameScoreParams) SetChatID(chatID *int64)
- func (o *SetGameScoreParams) SetContext(ctx context.Context)
- func (o *SetGameScoreParams) SetDisableEditMessage(disableEditMessage *bool)
- func (o *SetGameScoreParams) SetForce(force *bool)
- func (o *SetGameScoreParams) SetHTTPClient(client *http.Client)
- func (o *SetGameScoreParams) SetInlineMessageID(inlineMessageID *string)
- func (o *SetGameScoreParams) SetMessageID(messageID *int64)
- func (o *SetGameScoreParams) SetScore(score int64)
- func (o *SetGameScoreParams) SetTimeout(timeout time.Duration)
- func (o *SetGameScoreParams) SetToken(token *string)
- func (o *SetGameScoreParams) SetUserID(userID int64)
- func (o *SetGameScoreParams) WithChatID(chatID *int64) *SetGameScoreParams
- func (o *SetGameScoreParams) WithContext(ctx context.Context) *SetGameScoreParams
- func (o *SetGameScoreParams) WithDisableEditMessage(disableEditMessage *bool) *SetGameScoreParams
- func (o *SetGameScoreParams) WithForce(force *bool) *SetGameScoreParams
- func (o *SetGameScoreParams) WithHTTPClient(client *http.Client) *SetGameScoreParams
- func (o *SetGameScoreParams) WithInlineMessageID(inlineMessageID *string) *SetGameScoreParams
- func (o *SetGameScoreParams) WithMessageID(messageID *int64) *SetGameScoreParams
- func (o *SetGameScoreParams) WithScore(score int64) *SetGameScoreParams
- func (o *SetGameScoreParams) WithTimeout(timeout time.Duration) *SetGameScoreParams
- func (o *SetGameScoreParams) WithToken(token *string) *SetGameScoreParams
- func (o *SetGameScoreParams) WithUserID(userID int64) *SetGameScoreParams
- func (o *SetGameScoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetGameScoreReader
- type SetGameScoreUnauthorized
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 ¶
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 ¶
func (o *GetGameHighScoresBadRequest) Error() string
type GetGameHighScoresEnhanceYourCalm ¶
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 ¶
func (o *GetGameHighScoresEnhanceYourCalm) Error() string
type GetGameHighScoresForbidden ¶
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 ¶
func (o *GetGameHighScoresForbidden) Error() string
type GetGameHighScoresInternalServerError ¶
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 ¶
func (o *GetGameHighScoresInternalServerError) Error() string
type GetGameHighScoresNotFound ¶
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
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 ¶
func (o *GetGameHighScoresParams) WithContext(ctx context.Context) *GetGameHighScoresParams
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 ¶
func (o *GetGameHighScoresParams) WithTimeout(timeout time.Duration) *GetGameHighScoresParams
WithTimeout adds the timeout to the get game high scores params
func (*GetGameHighScoresParams) WithToken ¶
func (o *GetGameHighScoresParams) WithToken(token *string) *GetGameHighScoresParams
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 ¶
func (o *GetGameHighScoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *GetGameHighScoresUnauthorized) Error() string
type SendGameBadRequest ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *SendGameInternalServerError) Error() string
type SendGameNotFound ¶
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 {
}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 ¶
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 ¶
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 ¶
func (o *SetGameScoreEnhanceYourCalm) Error() string
type SetGameScoreForbidden ¶
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 ¶
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 ¶
func (o *SetGameScoreInternalServerError) Error() string
type SetGameScoreNotFound ¶
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
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 ¶
func (o *SetGameScoreParams) WithContext(ctx context.Context) *SetGameScoreParams
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 {
}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