Documentation ¶
Index ¶
- Constants
- type AdminGetUserRewardsForbidden
- type AdminGetUserRewardsInternalServerError
- type AdminGetUserRewardsOK
- type AdminGetUserRewardsParams
- func NewAdminGetUserRewardsParams() *AdminGetUserRewardsParams
- func NewAdminGetUserRewardsParamsWithContext(ctx context.Context) *AdminGetUserRewardsParams
- func NewAdminGetUserRewardsParamsWithHTTPClient(client *http.Client) *AdminGetUserRewardsParams
- func NewAdminGetUserRewardsParamsWithTimeout(timeout time.Duration) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminGetUserRewardsParams) SetContext(ctx context.Context)
- func (o *AdminGetUserRewardsParams) SetFlightId(flightId string)
- func (o *AdminGetUserRewardsParams) SetHTTPClient(client *http.Client)
- func (o *AdminGetUserRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminGetUserRewardsParams) SetLimit(limit *int64)
- func (o *AdminGetUserRewardsParams) SetNamespace(namespace string)
- func (o *AdminGetUserRewardsParams) SetOffset(offset *int64)
- func (o *AdminGetUserRewardsParams) SetSortBy(sortBy *string)
- func (o *AdminGetUserRewardsParams) SetStatus(status *string)
- func (o *AdminGetUserRewardsParams) SetTimeout(timeout time.Duration)
- func (o *AdminGetUserRewardsParams) SetUserID(userID string)
- func (o *AdminGetUserRewardsParams) WithContext(ctx context.Context) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithHTTPClient(client *http.Client) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithLimit(limit *int64) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithNamespace(namespace string) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithOffset(offset *int64) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithSortBy(sortBy *string) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithStatus(status *string) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithTimeout(timeout time.Duration) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WithUserID(userID string) *AdminGetUserRewardsParams
- func (o *AdminGetUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminGetUserRewardsReader
- type AdminGetUserRewardsUnauthorized
- type Client
- func (a *Client) AdminGetUserRewards(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, *AdminGetUserRewardsUnauthorized, ...)deprecated
- func (a *Client) AdminGetUserRewardsShort(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, error)
- func (a *Client) PublicClaimUserRewards(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, *PublicClaimUserRewardsUnauthorized, ...)deprecated
- func (a *Client) PublicClaimUserRewardsShort(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, error)
- func (a *Client) PublicGetUserRewards(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, *PublicGetUserRewardsUnauthorized, ...)deprecated
- func (a *Client) PublicGetUserRewardsShort(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublicClaimUserRewardsForbidden
- type PublicClaimUserRewardsInternalServerError
- type PublicClaimUserRewardsNotFound
- type PublicClaimUserRewardsOK
- type PublicClaimUserRewardsParams
- func NewPublicClaimUserRewardsParams() *PublicClaimUserRewardsParams
- func NewPublicClaimUserRewardsParamsWithContext(ctx context.Context) *PublicClaimUserRewardsParams
- func NewPublicClaimUserRewardsParamsWithHTTPClient(client *http.Client) *PublicClaimUserRewardsParams
- func NewPublicClaimUserRewardsParamsWithTimeout(timeout time.Duration) *PublicClaimUserRewardsParams
- func (o *PublicClaimUserRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicClaimUserRewardsParams) SetBody(body *challengeclientmodels.ModelClaimUserRewardsReq)
- func (o *PublicClaimUserRewardsParams) SetContext(ctx context.Context)
- func (o *PublicClaimUserRewardsParams) SetFlightId(flightId string)
- func (o *PublicClaimUserRewardsParams) SetHTTPClient(client *http.Client)
- func (o *PublicClaimUserRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicClaimUserRewardsParams) SetNamespace(namespace string)
- func (o *PublicClaimUserRewardsParams) SetTimeout(timeout time.Duration)
- func (o *PublicClaimUserRewardsParams) WithBody(body *challengeclientmodels.ModelClaimUserRewardsReq) *PublicClaimUserRewardsParams
- func (o *PublicClaimUserRewardsParams) WithContext(ctx context.Context) *PublicClaimUserRewardsParams
- func (o *PublicClaimUserRewardsParams) WithHTTPClient(client *http.Client) *PublicClaimUserRewardsParams
- func (o *PublicClaimUserRewardsParams) WithNamespace(namespace string) *PublicClaimUserRewardsParams
- func (o *PublicClaimUserRewardsParams) WithTimeout(timeout time.Duration) *PublicClaimUserRewardsParams
- func (o *PublicClaimUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicClaimUserRewardsReader
- type PublicClaimUserRewardsUnauthorized
- type PublicGetUserRewardsForbidden
- type PublicGetUserRewardsInternalServerError
- type PublicGetUserRewardsOK
- type PublicGetUserRewardsParams
- func NewPublicGetUserRewardsParams() *PublicGetUserRewardsParams
- func NewPublicGetUserRewardsParamsWithContext(ctx context.Context) *PublicGetUserRewardsParams
- func NewPublicGetUserRewardsParamsWithHTTPClient(client *http.Client) *PublicGetUserRewardsParams
- func NewPublicGetUserRewardsParamsWithTimeout(timeout time.Duration) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicGetUserRewardsParams) SetContext(ctx context.Context)
- func (o *PublicGetUserRewardsParams) SetFlightId(flightId string)
- func (o *PublicGetUserRewardsParams) SetHTTPClient(client *http.Client)
- func (o *PublicGetUserRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicGetUserRewardsParams) SetLimit(limit *int64)
- func (o *PublicGetUserRewardsParams) SetNamespace(namespace string)
- func (o *PublicGetUserRewardsParams) SetOffset(offset *int64)
- func (o *PublicGetUserRewardsParams) SetSortBy(sortBy *string)
- func (o *PublicGetUserRewardsParams) SetStatus(status *string)
- func (o *PublicGetUserRewardsParams) SetTimeout(timeout time.Duration)
- func (o *PublicGetUserRewardsParams) WithContext(ctx context.Context) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WithHTTPClient(client *http.Client) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WithLimit(limit *int64) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WithNamespace(namespace string) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WithOffset(offset *int64) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WithSortBy(sortBy *string) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WithStatus(status *string) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WithTimeout(timeout time.Duration) *PublicGetUserRewardsParams
- func (o *PublicGetUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicGetUserRewardsReader
- type PublicGetUserRewardsUnauthorized
Constants ¶
const ( AdminGetUserRewardsCLAIMEDConstant = "CLAIMED" AdminGetUserRewardsUNCLAIMEDConstant = "UNCLAIMED" )
Get the enum in AdminGetUserRewardsParams
const ( PublicGetUserRewardsCLAIMEDConstant = "CLAIMED" PublicGetUserRewardsUNCLAIMEDConstant = "UNCLAIMED" )
Get the enum in PublicGetUserRewardsParams
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminGetUserRewardsForbidden ¶
type AdminGetUserRewardsForbidden struct {
Payload *challengeclientmodels.IamErrorResponse
}
AdminGetUserRewardsForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewAdminGetUserRewardsForbidden ¶
func NewAdminGetUserRewardsForbidden() *AdminGetUserRewardsForbidden
NewAdminGetUserRewardsForbidden creates a AdminGetUserRewardsForbidden with default headers values
func (*AdminGetUserRewardsForbidden) Error ¶
func (o *AdminGetUserRewardsForbidden) Error() string
func (*AdminGetUserRewardsForbidden) GetPayload ¶
func (o *AdminGetUserRewardsForbidden) GetPayload() *challengeclientmodels.IamErrorResponse
func (*AdminGetUserRewardsForbidden) ToJSONString ¶
func (o *AdminGetUserRewardsForbidden) ToJSONString() string
type AdminGetUserRewardsInternalServerError ¶
type AdminGetUserRewardsInternalServerError struct {
Payload *challengeclientmodels.ResponseError
}
AdminGetUserRewardsInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>
func NewAdminGetUserRewardsInternalServerError ¶
func NewAdminGetUserRewardsInternalServerError() *AdminGetUserRewardsInternalServerError
NewAdminGetUserRewardsInternalServerError creates a AdminGetUserRewardsInternalServerError with default headers values
func (*AdminGetUserRewardsInternalServerError) Error ¶
func (o *AdminGetUserRewardsInternalServerError) Error() string
func (*AdminGetUserRewardsInternalServerError) GetPayload ¶
func (o *AdminGetUserRewardsInternalServerError) GetPayload() *challengeclientmodels.ResponseError
func (*AdminGetUserRewardsInternalServerError) ToJSONString ¶
func (o *AdminGetUserRewardsInternalServerError) ToJSONString() string
type AdminGetUserRewardsOK ¶
type AdminGetUserRewardsOK struct {
Payload *challengeclientmodels.ModelListUserRewardsResponse
}
AdminGetUserRewardsOK handles this case with default header values.
OK
func NewAdminGetUserRewardsOK ¶
func NewAdminGetUserRewardsOK() *AdminGetUserRewardsOK
NewAdminGetUserRewardsOK creates a AdminGetUserRewardsOK with default headers values
func (*AdminGetUserRewardsOK) Error ¶
func (o *AdminGetUserRewardsOK) Error() string
func (*AdminGetUserRewardsOK) GetPayload ¶
func (o *AdminGetUserRewardsOK) GetPayload() *challengeclientmodels.ModelListUserRewardsResponse
func (*AdminGetUserRewardsOK) ToJSONString ¶
func (o *AdminGetUserRewardsOK) ToJSONString() string
type AdminGetUserRewardsParams ¶
type AdminGetUserRewardsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the game */ Namespace string /*UserID user id */ UserID string /*Limit limit the amount of data retrieved */ Limit *int64 /*Offset offset */ Offset *int64 /*SortBy sort list by attributes. default value: updatedAt:desc. available value: <li>createdAt, createdAt:desc, createdAt:asc</li> <li>updatedAt, updatedAt:desc, updatedAt:asc</li> */ SortBy *string /*Status user reward status */ Status *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
AdminGetUserRewardsParams contains all the parameters to send to the API endpoint for the admin get user rewards operation typically these are written to a http.Request
func NewAdminGetUserRewardsParams ¶
func NewAdminGetUserRewardsParams() *AdminGetUserRewardsParams
NewAdminGetUserRewardsParams creates a new AdminGetUserRewardsParams object with the default values initialized.
func NewAdminGetUserRewardsParamsWithContext ¶
func NewAdminGetUserRewardsParamsWithContext(ctx context.Context) *AdminGetUserRewardsParams
NewAdminGetUserRewardsParamsWithContext creates a new AdminGetUserRewardsParams object with the default values initialized, and the ability to set a context for a request
func NewAdminGetUserRewardsParamsWithHTTPClient ¶
func NewAdminGetUserRewardsParamsWithHTTPClient(client *http.Client) *AdminGetUserRewardsParams
NewAdminGetUserRewardsParamsWithHTTPClient creates a new AdminGetUserRewardsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminGetUserRewardsParamsWithTimeout ¶
func NewAdminGetUserRewardsParamsWithTimeout(timeout time.Duration) *AdminGetUserRewardsParams
NewAdminGetUserRewardsParamsWithTimeout creates a new AdminGetUserRewardsParams object with the default values initialized, and the ability to set a timeout on a request
func (*AdminGetUserRewardsParams) SetAuthInfoWriter ¶
func (o *AdminGetUserRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetContext ¶
func (o *AdminGetUserRewardsParams) SetContext(ctx context.Context)
SetContext adds the context to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetFlightId ¶
func (o *AdminGetUserRewardsParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*AdminGetUserRewardsParams) SetHTTPClient ¶
func (o *AdminGetUserRewardsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetHTTPClientTransport ¶
func (o *AdminGetUserRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetLimit ¶
func (o *AdminGetUserRewardsParams) SetLimit(limit *int64)
SetLimit adds the limit to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetNamespace ¶
func (o *AdminGetUserRewardsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetOffset ¶
func (o *AdminGetUserRewardsParams) SetOffset(offset *int64)
SetOffset adds the offset to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetSortBy ¶
func (o *AdminGetUserRewardsParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetStatus ¶
func (o *AdminGetUserRewardsParams) SetStatus(status *string)
SetStatus adds the status to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetTimeout ¶
func (o *AdminGetUserRewardsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin get user rewards params
func (*AdminGetUserRewardsParams) SetUserID ¶
func (o *AdminGetUserRewardsParams) SetUserID(userID string)
SetUserID adds the userId to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithContext ¶
func (o *AdminGetUserRewardsParams) WithContext(ctx context.Context) *AdminGetUserRewardsParams
WithContext adds the context to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithHTTPClient ¶
func (o *AdminGetUserRewardsParams) WithHTTPClient(client *http.Client) *AdminGetUserRewardsParams
WithHTTPClient adds the HTTPClient to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithLimit ¶
func (o *AdminGetUserRewardsParams) WithLimit(limit *int64) *AdminGetUserRewardsParams
WithLimit adds the limit to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithNamespace ¶
func (o *AdminGetUserRewardsParams) WithNamespace(namespace string) *AdminGetUserRewardsParams
WithNamespace adds the namespace to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithOffset ¶
func (o *AdminGetUserRewardsParams) WithOffset(offset *int64) *AdminGetUserRewardsParams
WithOffset adds the offset to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithSortBy ¶
func (o *AdminGetUserRewardsParams) WithSortBy(sortBy *string) *AdminGetUserRewardsParams
WithSortBy adds the sortBy to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithStatus ¶
func (o *AdminGetUserRewardsParams) WithStatus(status *string) *AdminGetUserRewardsParams
WithStatus adds the status to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithTimeout ¶
func (o *AdminGetUserRewardsParams) WithTimeout(timeout time.Duration) *AdminGetUserRewardsParams
WithTimeout adds the timeout to the admin get user rewards params
func (*AdminGetUserRewardsParams) WithUserID ¶
func (o *AdminGetUserRewardsParams) WithUserID(userID string) *AdminGetUserRewardsParams
WithUserID adds the userID to the admin get user rewards params
func (*AdminGetUserRewardsParams) WriteToRequest ¶
func (o *AdminGetUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminGetUserRewardsReader ¶
type AdminGetUserRewardsReader struct {
// contains filtered or unexported fields
}
AdminGetUserRewardsReader is a Reader for the AdminGetUserRewards structure.
func (*AdminGetUserRewardsReader) ReadResponse ¶
func (o *AdminGetUserRewardsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminGetUserRewardsUnauthorized ¶
type AdminGetUserRewardsUnauthorized struct {
}AdminGetUserRewardsUnauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>
func NewAdminGetUserRewardsUnauthorized ¶
func NewAdminGetUserRewardsUnauthorized() *AdminGetUserRewardsUnauthorized
NewAdminGetUserRewardsUnauthorized creates a AdminGetUserRewardsUnauthorized with default headers values
func (*AdminGetUserRewardsUnauthorized) Error ¶
func (o *AdminGetUserRewardsUnauthorized) Error() string
func (*AdminGetUserRewardsUnauthorized) GetPayload ¶
func (o *AdminGetUserRewardsUnauthorized) GetPayload() *challengeclientmodels.IamErrorResponse
func (*AdminGetUserRewardsUnauthorized) ToJSONString ¶
func (o *AdminGetUserRewardsUnauthorized) ToJSONString() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for player reward API
func (*Client) AdminGetUserRewards
deprecated
func (a *Client) AdminGetUserRewards(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, *AdminGetUserRewardsUnauthorized, *AdminGetUserRewardsForbidden, *AdminGetUserRewardsInternalServerError, error)
Deprecated: 2022-08-10 - Use AdminGetUserRewardsShort instead.
AdminGetUserRewards list user's rewards
- Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]
func (*Client) AdminGetUserRewardsShort ¶
func (a *Client) AdminGetUserRewardsShort(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, error)
AdminGetUserRewardsShort list user's rewards
- Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]
func (*Client) PublicClaimUserRewards
deprecated
func (a *Client) PublicClaimUserRewards(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, *PublicClaimUserRewardsUnauthorized, *PublicClaimUserRewardsForbidden, *PublicClaimUserRewardsNotFound, *PublicClaimUserRewardsInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicClaimUserRewardsShort instead.
PublicClaimUserRewards claim user's rewards
- Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]
func (*Client) PublicClaimUserRewardsShort ¶
func (a *Client) PublicClaimUserRewardsShort(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, error)
PublicClaimUserRewardsShort claim user's rewards
- Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]
func (*Client) PublicGetUserRewards
deprecated
func (a *Client) PublicGetUserRewards(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, *PublicGetUserRewardsUnauthorized, *PublicGetUserRewardsForbidden, *PublicGetUserRewardsInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicGetUserRewardsShort instead.
PublicGetUserRewards list user's rewards
- Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]
func (*Client) PublicGetUserRewardsShort ¶
func (a *Client) PublicGetUserRewardsShort(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, error)
PublicGetUserRewardsShort list user's rewards
- Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { AdminGetUserRewards(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, *AdminGetUserRewardsUnauthorized, *AdminGetUserRewardsForbidden, *AdminGetUserRewardsInternalServerError, error) AdminGetUserRewardsShort(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, error) PublicGetUserRewards(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, *PublicGetUserRewardsUnauthorized, *PublicGetUserRewardsForbidden, *PublicGetUserRewardsInternalServerError, error) PublicGetUserRewardsShort(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, error) PublicClaimUserRewards(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, *PublicClaimUserRewardsUnauthorized, *PublicClaimUserRewardsForbidden, *PublicClaimUserRewardsNotFound, *PublicClaimUserRewardsInternalServerError, error) PublicClaimUserRewardsShort(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new player reward API client.
type PublicClaimUserRewardsForbidden ¶
type PublicClaimUserRewardsForbidden struct {
Payload *challengeclientmodels.IamErrorResponse
}
PublicClaimUserRewardsForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewPublicClaimUserRewardsForbidden ¶
func NewPublicClaimUserRewardsForbidden() *PublicClaimUserRewardsForbidden
NewPublicClaimUserRewardsForbidden creates a PublicClaimUserRewardsForbidden with default headers values
func (*PublicClaimUserRewardsForbidden) Error ¶
func (o *PublicClaimUserRewardsForbidden) Error() string
func (*PublicClaimUserRewardsForbidden) GetPayload ¶
func (o *PublicClaimUserRewardsForbidden) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicClaimUserRewardsForbidden) ToJSONString ¶
func (o *PublicClaimUserRewardsForbidden) ToJSONString() string
type PublicClaimUserRewardsInternalServerError ¶
type PublicClaimUserRewardsInternalServerError struct {
Payload *challengeclientmodels.ResponseError
}
PublicClaimUserRewardsInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>
func NewPublicClaimUserRewardsInternalServerError ¶
func NewPublicClaimUserRewardsInternalServerError() *PublicClaimUserRewardsInternalServerError
NewPublicClaimUserRewardsInternalServerError creates a PublicClaimUserRewardsInternalServerError with default headers values
func (*PublicClaimUserRewardsInternalServerError) Error ¶
func (o *PublicClaimUserRewardsInternalServerError) Error() string
func (*PublicClaimUserRewardsInternalServerError) GetPayload ¶
func (o *PublicClaimUserRewardsInternalServerError) GetPayload() *challengeclientmodels.ResponseError
func (*PublicClaimUserRewardsInternalServerError) ToJSONString ¶
func (o *PublicClaimUserRewardsInternalServerError) ToJSONString() string
type PublicClaimUserRewardsNotFound ¶
type PublicClaimUserRewardsNotFound struct {
Payload *challengeclientmodels.IamErrorResponse
}
PublicClaimUserRewardsNotFound handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>
func NewPublicClaimUserRewardsNotFound ¶
func NewPublicClaimUserRewardsNotFound() *PublicClaimUserRewardsNotFound
NewPublicClaimUserRewardsNotFound creates a PublicClaimUserRewardsNotFound with default headers values
func (*PublicClaimUserRewardsNotFound) Error ¶
func (o *PublicClaimUserRewardsNotFound) Error() string
func (*PublicClaimUserRewardsNotFound) GetPayload ¶
func (o *PublicClaimUserRewardsNotFound) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicClaimUserRewardsNotFound) ToJSONString ¶
func (o *PublicClaimUserRewardsNotFound) ToJSONString() string
type PublicClaimUserRewardsOK ¶
type PublicClaimUserRewardsOK struct {
Payload []*challengeclientmodels.ModelUserReward
}
PublicClaimUserRewardsOK handles this case with default header values.
OK
func NewPublicClaimUserRewardsOK ¶
func NewPublicClaimUserRewardsOK() *PublicClaimUserRewardsOK
NewPublicClaimUserRewardsOK creates a PublicClaimUserRewardsOK with default headers values
func (*PublicClaimUserRewardsOK) Error ¶
func (o *PublicClaimUserRewardsOK) Error() string
func (*PublicClaimUserRewardsOK) GetPayload ¶
func (o *PublicClaimUserRewardsOK) GetPayload() []*challengeclientmodels.ModelUserReward
func (*PublicClaimUserRewardsOK) ToJSONString ¶
func (o *PublicClaimUserRewardsOK) ToJSONString() string
type PublicClaimUserRewardsParams ¶
type PublicClaimUserRewardsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *challengeclientmodels.ModelClaimUserRewardsReq /*Namespace namespace of the game */ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
PublicClaimUserRewardsParams contains all the parameters to send to the API endpoint for the public claim user rewards operation typically these are written to a http.Request
func NewPublicClaimUserRewardsParams ¶
func NewPublicClaimUserRewardsParams() *PublicClaimUserRewardsParams
NewPublicClaimUserRewardsParams creates a new PublicClaimUserRewardsParams object with the default values initialized.
func NewPublicClaimUserRewardsParamsWithContext ¶
func NewPublicClaimUserRewardsParamsWithContext(ctx context.Context) *PublicClaimUserRewardsParams
NewPublicClaimUserRewardsParamsWithContext creates a new PublicClaimUserRewardsParams object with the default values initialized, and the ability to set a context for a request
func NewPublicClaimUserRewardsParamsWithHTTPClient ¶
func NewPublicClaimUserRewardsParamsWithHTTPClient(client *http.Client) *PublicClaimUserRewardsParams
NewPublicClaimUserRewardsParamsWithHTTPClient creates a new PublicClaimUserRewardsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicClaimUserRewardsParamsWithTimeout ¶
func NewPublicClaimUserRewardsParamsWithTimeout(timeout time.Duration) *PublicClaimUserRewardsParams
NewPublicClaimUserRewardsParamsWithTimeout creates a new PublicClaimUserRewardsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicClaimUserRewardsParams) SetAuthInfoWriter ¶
func (o *PublicClaimUserRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public claim user rewards params
func (*PublicClaimUserRewardsParams) SetBody ¶
func (o *PublicClaimUserRewardsParams) SetBody(body *challengeclientmodels.ModelClaimUserRewardsReq)
SetBody adds the body to the public claim user rewards params
func (*PublicClaimUserRewardsParams) SetContext ¶
func (o *PublicClaimUserRewardsParams) SetContext(ctx context.Context)
SetContext adds the context to the public claim user rewards params
func (*PublicClaimUserRewardsParams) SetFlightId ¶
func (o *PublicClaimUserRewardsParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicClaimUserRewardsParams) SetHTTPClient ¶
func (o *PublicClaimUserRewardsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public claim user rewards params
func (*PublicClaimUserRewardsParams) SetHTTPClientTransport ¶
func (o *PublicClaimUserRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public claim user rewards params
func (*PublicClaimUserRewardsParams) SetNamespace ¶
func (o *PublicClaimUserRewardsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public claim user rewards params
func (*PublicClaimUserRewardsParams) SetTimeout ¶
func (o *PublicClaimUserRewardsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public claim user rewards params
func (*PublicClaimUserRewardsParams) WithBody ¶
func (o *PublicClaimUserRewardsParams) WithBody(body *challengeclientmodels.ModelClaimUserRewardsReq) *PublicClaimUserRewardsParams
WithBody adds the body to the public claim user rewards params
func (*PublicClaimUserRewardsParams) WithContext ¶
func (o *PublicClaimUserRewardsParams) WithContext(ctx context.Context) *PublicClaimUserRewardsParams
WithContext adds the context to the public claim user rewards params
func (*PublicClaimUserRewardsParams) WithHTTPClient ¶
func (o *PublicClaimUserRewardsParams) WithHTTPClient(client *http.Client) *PublicClaimUserRewardsParams
WithHTTPClient adds the HTTPClient to the public claim user rewards params
func (*PublicClaimUserRewardsParams) WithNamespace ¶
func (o *PublicClaimUserRewardsParams) WithNamespace(namespace string) *PublicClaimUserRewardsParams
WithNamespace adds the namespace to the public claim user rewards params
func (*PublicClaimUserRewardsParams) WithTimeout ¶
func (o *PublicClaimUserRewardsParams) WithTimeout(timeout time.Duration) *PublicClaimUserRewardsParams
WithTimeout adds the timeout to the public claim user rewards params
func (*PublicClaimUserRewardsParams) WriteToRequest ¶
func (o *PublicClaimUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicClaimUserRewardsReader ¶
type PublicClaimUserRewardsReader struct {
// contains filtered or unexported fields
}
PublicClaimUserRewardsReader is a Reader for the PublicClaimUserRewards structure.
func (*PublicClaimUserRewardsReader) ReadResponse ¶
func (o *PublicClaimUserRewardsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicClaimUserRewardsUnauthorized ¶
type PublicClaimUserRewardsUnauthorized struct {
}PublicClaimUserRewardsUnauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>
func NewPublicClaimUserRewardsUnauthorized ¶
func NewPublicClaimUserRewardsUnauthorized() *PublicClaimUserRewardsUnauthorized
NewPublicClaimUserRewardsUnauthorized creates a PublicClaimUserRewardsUnauthorized with default headers values
func (*PublicClaimUserRewardsUnauthorized) Error ¶
func (o *PublicClaimUserRewardsUnauthorized) Error() string
func (*PublicClaimUserRewardsUnauthorized) GetPayload ¶
func (o *PublicClaimUserRewardsUnauthorized) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicClaimUserRewardsUnauthorized) ToJSONString ¶
func (o *PublicClaimUserRewardsUnauthorized) ToJSONString() string
type PublicGetUserRewardsForbidden ¶
type PublicGetUserRewardsForbidden struct {
Payload *challengeclientmodels.IamErrorResponse
}
PublicGetUserRewardsForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewPublicGetUserRewardsForbidden ¶
func NewPublicGetUserRewardsForbidden() *PublicGetUserRewardsForbidden
NewPublicGetUserRewardsForbidden creates a PublicGetUserRewardsForbidden with default headers values
func (*PublicGetUserRewardsForbidden) Error ¶
func (o *PublicGetUserRewardsForbidden) Error() string
func (*PublicGetUserRewardsForbidden) GetPayload ¶
func (o *PublicGetUserRewardsForbidden) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicGetUserRewardsForbidden) ToJSONString ¶
func (o *PublicGetUserRewardsForbidden) ToJSONString() string
type PublicGetUserRewardsInternalServerError ¶
type PublicGetUserRewardsInternalServerError struct {
Payload *challengeclientmodels.ResponseError
}
PublicGetUserRewardsInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>
func NewPublicGetUserRewardsInternalServerError ¶
func NewPublicGetUserRewardsInternalServerError() *PublicGetUserRewardsInternalServerError
NewPublicGetUserRewardsInternalServerError creates a PublicGetUserRewardsInternalServerError with default headers values
func (*PublicGetUserRewardsInternalServerError) Error ¶
func (o *PublicGetUserRewardsInternalServerError) Error() string
func (*PublicGetUserRewardsInternalServerError) GetPayload ¶
func (o *PublicGetUserRewardsInternalServerError) GetPayload() *challengeclientmodels.ResponseError
func (*PublicGetUserRewardsInternalServerError) ToJSONString ¶
func (o *PublicGetUserRewardsInternalServerError) ToJSONString() string
type PublicGetUserRewardsOK ¶
type PublicGetUserRewardsOK struct {
Payload *challengeclientmodels.ModelListUserRewardsResponse
}
PublicGetUserRewardsOK handles this case with default header values.
OK
func NewPublicGetUserRewardsOK ¶
func NewPublicGetUserRewardsOK() *PublicGetUserRewardsOK
NewPublicGetUserRewardsOK creates a PublicGetUserRewardsOK with default headers values
func (*PublicGetUserRewardsOK) Error ¶
func (o *PublicGetUserRewardsOK) Error() string
func (*PublicGetUserRewardsOK) GetPayload ¶
func (o *PublicGetUserRewardsOK) GetPayload() *challengeclientmodels.ModelListUserRewardsResponse
func (*PublicGetUserRewardsOK) ToJSONString ¶
func (o *PublicGetUserRewardsOK) ToJSONString() string
type PublicGetUserRewardsParams ¶
type PublicGetUserRewardsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the game */ Namespace string /*Limit limit the amount of data retrieved */ Limit *int64 /*Offset offset */ Offset *int64 /*SortBy sort list by attributes. default value: updatedAt:desc. available value: <li>createdAt, createdAt:desc, createdAt:asc</li> <li>updatedAt, updatedAt:desc, updatedAt:asc</li> */ SortBy *string /*Status user reward status */ Status *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
PublicGetUserRewardsParams contains all the parameters to send to the API endpoint for the public get user rewards operation typically these are written to a http.Request
func NewPublicGetUserRewardsParams ¶
func NewPublicGetUserRewardsParams() *PublicGetUserRewardsParams
NewPublicGetUserRewardsParams creates a new PublicGetUserRewardsParams object with the default values initialized.
func NewPublicGetUserRewardsParamsWithContext ¶
func NewPublicGetUserRewardsParamsWithContext(ctx context.Context) *PublicGetUserRewardsParams
NewPublicGetUserRewardsParamsWithContext creates a new PublicGetUserRewardsParams object with the default values initialized, and the ability to set a context for a request
func NewPublicGetUserRewardsParamsWithHTTPClient ¶
func NewPublicGetUserRewardsParamsWithHTTPClient(client *http.Client) *PublicGetUserRewardsParams
NewPublicGetUserRewardsParamsWithHTTPClient creates a new PublicGetUserRewardsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicGetUserRewardsParamsWithTimeout ¶
func NewPublicGetUserRewardsParamsWithTimeout(timeout time.Duration) *PublicGetUserRewardsParams
NewPublicGetUserRewardsParamsWithTimeout creates a new PublicGetUserRewardsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicGetUserRewardsParams) SetAuthInfoWriter ¶
func (o *PublicGetUserRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public get user rewards params
func (*PublicGetUserRewardsParams) SetContext ¶
func (o *PublicGetUserRewardsParams) SetContext(ctx context.Context)
SetContext adds the context to the public get user rewards params
func (*PublicGetUserRewardsParams) SetFlightId ¶
func (o *PublicGetUserRewardsParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicGetUserRewardsParams) SetHTTPClient ¶
func (o *PublicGetUserRewardsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public get user rewards params
func (*PublicGetUserRewardsParams) SetHTTPClientTransport ¶
func (o *PublicGetUserRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public get user rewards params
func (*PublicGetUserRewardsParams) SetLimit ¶
func (o *PublicGetUserRewardsParams) SetLimit(limit *int64)
SetLimit adds the limit to the public get user rewards params
func (*PublicGetUserRewardsParams) SetNamespace ¶
func (o *PublicGetUserRewardsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public get user rewards params
func (*PublicGetUserRewardsParams) SetOffset ¶
func (o *PublicGetUserRewardsParams) SetOffset(offset *int64)
SetOffset adds the offset to the public get user rewards params
func (*PublicGetUserRewardsParams) SetSortBy ¶
func (o *PublicGetUserRewardsParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the public get user rewards params
func (*PublicGetUserRewardsParams) SetStatus ¶
func (o *PublicGetUserRewardsParams) SetStatus(status *string)
SetStatus adds the status to the public get user rewards params
func (*PublicGetUserRewardsParams) SetTimeout ¶
func (o *PublicGetUserRewardsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public get user rewards params
func (*PublicGetUserRewardsParams) WithContext ¶
func (o *PublicGetUserRewardsParams) WithContext(ctx context.Context) *PublicGetUserRewardsParams
WithContext adds the context to the public get user rewards params
func (*PublicGetUserRewardsParams) WithHTTPClient ¶
func (o *PublicGetUserRewardsParams) WithHTTPClient(client *http.Client) *PublicGetUserRewardsParams
WithHTTPClient adds the HTTPClient to the public get user rewards params
func (*PublicGetUserRewardsParams) WithLimit ¶
func (o *PublicGetUserRewardsParams) WithLimit(limit *int64) *PublicGetUserRewardsParams
WithLimit adds the limit to the public get user rewards params
func (*PublicGetUserRewardsParams) WithNamespace ¶
func (o *PublicGetUserRewardsParams) WithNamespace(namespace string) *PublicGetUserRewardsParams
WithNamespace adds the namespace to the public get user rewards params
func (*PublicGetUserRewardsParams) WithOffset ¶
func (o *PublicGetUserRewardsParams) WithOffset(offset *int64) *PublicGetUserRewardsParams
WithOffset adds the offset to the public get user rewards params
func (*PublicGetUserRewardsParams) WithSortBy ¶
func (o *PublicGetUserRewardsParams) WithSortBy(sortBy *string) *PublicGetUserRewardsParams
WithSortBy adds the sortBy to the public get user rewards params
func (*PublicGetUserRewardsParams) WithStatus ¶
func (o *PublicGetUserRewardsParams) WithStatus(status *string) *PublicGetUserRewardsParams
WithStatus adds the status to the public get user rewards params
func (*PublicGetUserRewardsParams) WithTimeout ¶
func (o *PublicGetUserRewardsParams) WithTimeout(timeout time.Duration) *PublicGetUserRewardsParams
WithTimeout adds the timeout to the public get user rewards params
func (*PublicGetUserRewardsParams) WriteToRequest ¶
func (o *PublicGetUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicGetUserRewardsReader ¶
type PublicGetUserRewardsReader struct {
// contains filtered or unexported fields
}
PublicGetUserRewardsReader is a Reader for the PublicGetUserRewards structure.
func (*PublicGetUserRewardsReader) ReadResponse ¶
func (o *PublicGetUserRewardsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicGetUserRewardsUnauthorized ¶
type PublicGetUserRewardsUnauthorized struct {
}PublicGetUserRewardsUnauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>
func NewPublicGetUserRewardsUnauthorized ¶
func NewPublicGetUserRewardsUnauthorized() *PublicGetUserRewardsUnauthorized
NewPublicGetUserRewardsUnauthorized creates a PublicGetUserRewardsUnauthorized with default headers values
func (*PublicGetUserRewardsUnauthorized) Error ¶
func (o *PublicGetUserRewardsUnauthorized) Error() string
func (*PublicGetUserRewardsUnauthorized) GetPayload ¶
func (o *PublicGetUserRewardsUnauthorized) GetPayload() *challengeclientmodels.IamErrorResponse
func (*PublicGetUserRewardsUnauthorized) ToJSONString ¶
func (o *PublicGetUserRewardsUnauthorized) ToJSONString() string