achievement_platform

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 15 Imported by: 0

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 achievement platform API

func (*Client) GetXblUserAchievements deprecated added in v0.23.0

Deprecated: 2022-08-10 - Use GetXblUserAchievementsShort instead.

GetXblUserAchievements get xbox live user achievements. This API is used to get xbox live user achievements(Only for test).

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=2 (READ)

func (*Client) GetXblUserAchievementsShort added in v0.23.0

func (a *Client) GetXblUserAchievementsShort(params *GetXblUserAchievementsParams, authInfo runtime.ClientAuthInfoWriter) (*GetXblUserAchievementsOK, error)

GetXblUserAchievementsShort get xbox live user achievements. This API is used to get xbox live user achievements(Only for test).

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=2 (READ)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnlockSteamUserAchievement deprecated

Deprecated: 2022-08-10 - Use UnlockSteamUserAchievementShort instead.

UnlockSteamUserAchievement unlock steam achievement. This API is used to unlock steam achievement.

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=4 (UPDATE)

func (*Client) UnlockSteamUserAchievementShort

func (a *Client) UnlockSteamUserAchievementShort(params *UnlockSteamUserAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*UnlockSteamUserAchievementNoContent, error)

UnlockSteamUserAchievementShort unlock steam achievement. This API is used to unlock steam achievement.

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=4 (UPDATE)

func (*Client) UpdateXblUserAchievement deprecated

Deprecated: 2022-08-10 - Use UpdateXblUserAchievementShort instead.

UpdateXblUserAchievement update xbox live achievements. This API is used to update xbox live achievements.

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=4 (UPDATE)

func (*Client) UpdateXblUserAchievementShort

func (a *Client) UpdateXblUserAchievementShort(params *UpdateXblUserAchievementParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateXblUserAchievementNoContent, error)

UpdateXblUserAchievementShort update xbox live achievements. This API is used to update xbox live achievements.

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:ACHIEVEMENT, action=4 (UPDATE)

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new achievement platform API client.

type GetXblUserAchievementsBadRequest added in v0.23.0

type GetXblUserAchievementsBadRequest struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

GetXblUserAchievementsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewGetXblUserAchievementsBadRequest added in v0.23.0

func NewGetXblUserAchievementsBadRequest() *GetXblUserAchievementsBadRequest

NewGetXblUserAchievementsBadRequest creates a GetXblUserAchievementsBadRequest with default headers values

func (*GetXblUserAchievementsBadRequest) Error added in v0.23.0

func (*GetXblUserAchievementsBadRequest) GetPayload added in v0.23.0

func (*GetXblUserAchievementsBadRequest) ToJSONString added in v0.25.0

func (o *GetXblUserAchievementsBadRequest) ToJSONString() string

type GetXblUserAchievementsOK added in v0.23.0

type GetXblUserAchievementsOK struct {
	Payload *platformclientmodels.XblUserAchievements
}

GetXblUserAchievementsOK handles this case with default header values.

OK

func NewGetXblUserAchievementsOK added in v0.23.0

func NewGetXblUserAchievementsOK() *GetXblUserAchievementsOK

NewGetXblUserAchievementsOK creates a GetXblUserAchievementsOK with default headers values

func (*GetXblUserAchievementsOK) Error added in v0.23.0

func (o *GetXblUserAchievementsOK) Error() string

func (*GetXblUserAchievementsOK) GetPayload added in v0.23.0

func (*GetXblUserAchievementsOK) ToJSONString added in v0.25.0

func (o *GetXblUserAchievementsOK) ToJSONString() string

type GetXblUserAchievementsParams added in v0.23.0

type GetXblUserAchievementsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*XboxUserID*/
	XboxUserID 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
}

GetXblUserAchievementsParams contains all the parameters to send to the API endpoint for the get xbl user achievements operation typically these are written to a http.Request

func NewGetXblUserAchievementsParams added in v0.23.0

func NewGetXblUserAchievementsParams() *GetXblUserAchievementsParams

NewGetXblUserAchievementsParams creates a new GetXblUserAchievementsParams object with the default values initialized.

func NewGetXblUserAchievementsParamsWithContext added in v0.23.0

func NewGetXblUserAchievementsParamsWithContext(ctx context.Context) *GetXblUserAchievementsParams

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

func NewGetXblUserAchievementsParamsWithHTTPClient added in v0.23.0

func NewGetXblUserAchievementsParamsWithHTTPClient(client *http.Client) *GetXblUserAchievementsParams

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

func NewGetXblUserAchievementsParamsWithTimeout added in v0.23.0

func NewGetXblUserAchievementsParamsWithTimeout(timeout time.Duration) *GetXblUserAchievementsParams

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

func (*GetXblUserAchievementsParams) SetAuthInfoWriter added in v0.23.0

func (o *GetXblUserAchievementsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetContext added in v0.23.0

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

SetContext adds the context to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetFlightId added in v0.63.0

func (o *GetXblUserAchievementsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetXblUserAchievementsParams) SetHTTPClient added in v0.23.0

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

SetHTTPClient adds the HTTPClient to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetHTTPClientTransport added in v0.23.0

func (o *GetXblUserAchievementsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetNamespace added in v0.23.0

func (o *GetXblUserAchievementsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetTimeout added in v0.23.0

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

SetTimeout adds the timeout to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetUserID added in v0.23.0

func (o *GetXblUserAchievementsParams) SetUserID(userID string)

SetUserID adds the userId to the get xbl user achievements params

func (*GetXblUserAchievementsParams) SetXboxUserID added in v0.23.0

func (o *GetXblUserAchievementsParams) SetXboxUserID(xboxUserID string)

SetXboxUserID adds the xboxUserId to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithContext added in v0.23.0

WithContext adds the context to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithHTTPClient added in v0.23.0

WithHTTPClient adds the HTTPClient to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithNamespace added in v0.23.0

WithNamespace adds the namespace to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithTimeout added in v0.23.0

WithTimeout adds the timeout to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithUserID added in v0.23.0

WithUserID adds the userID to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WithXboxUserID added in v0.23.0

func (o *GetXblUserAchievementsParams) WithXboxUserID(xboxUserID string) *GetXblUserAchievementsParams

WithXboxUserID adds the xboxUserID to the get xbl user achievements params

func (*GetXblUserAchievementsParams) WriteToRequest added in v0.23.0

WriteToRequest writes these params to a swagger request

type GetXblUserAchievementsReader added in v0.23.0

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

GetXblUserAchievementsReader is a Reader for the GetXblUserAchievements structure.

func (*GetXblUserAchievementsReader) ReadResponse added in v0.23.0

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

ReadResponse reads a server response into the received o.

type UnlockSteamUserAchievementBadRequest

type UnlockSteamUserAchievementBadRequest struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UnlockSteamUserAchievementBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewUnlockSteamUserAchievementBadRequest

func NewUnlockSteamUserAchievementBadRequest() *UnlockSteamUserAchievementBadRequest

NewUnlockSteamUserAchievementBadRequest creates a UnlockSteamUserAchievementBadRequest with default headers values

func (*UnlockSteamUserAchievementBadRequest) Error

func (*UnlockSteamUserAchievementBadRequest) GetPayload

func (*UnlockSteamUserAchievementBadRequest) ToJSONString added in v0.25.0

func (o *UnlockSteamUserAchievementBadRequest) ToJSONString() string

type UnlockSteamUserAchievementNoContent

type UnlockSteamUserAchievementNoContent struct {
}

UnlockSteamUserAchievementNoContent handles this case with default header values.

No Content

func NewUnlockSteamUserAchievementNoContent

func NewUnlockSteamUserAchievementNoContent() *UnlockSteamUserAchievementNoContent

NewUnlockSteamUserAchievementNoContent creates a UnlockSteamUserAchievementNoContent with default headers values

func (*UnlockSteamUserAchievementNoContent) Error

type UnlockSteamUserAchievementNotFound

type UnlockSteamUserAchievementNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UnlockSteamUserAchievementNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>39244</td><td>Steam config does not exist</td></tr><tr><td>39245</td><td>Steam app id does not exist</td></tr></table>

func NewUnlockSteamUserAchievementNotFound

func NewUnlockSteamUserAchievementNotFound() *UnlockSteamUserAchievementNotFound

NewUnlockSteamUserAchievementNotFound creates a UnlockSteamUserAchievementNotFound with default headers values

func (*UnlockSteamUserAchievementNotFound) Error

func (*UnlockSteamUserAchievementNotFound) GetPayload

func (*UnlockSteamUserAchievementNotFound) ToJSONString added in v0.25.0

func (o *UnlockSteamUserAchievementNotFound) ToJSONString() string

type UnlockSteamUserAchievementParams

type UnlockSteamUserAchievementParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.SteamAchievementUpdateRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID 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
}

UnlockSteamUserAchievementParams contains all the parameters to send to the API endpoint for the unlock steam user achievement operation typically these are written to a http.Request

func NewUnlockSteamUserAchievementParams

func NewUnlockSteamUserAchievementParams() *UnlockSteamUserAchievementParams

NewUnlockSteamUserAchievementParams creates a new UnlockSteamUserAchievementParams object with the default values initialized.

func NewUnlockSteamUserAchievementParamsWithContext

func NewUnlockSteamUserAchievementParamsWithContext(ctx context.Context) *UnlockSteamUserAchievementParams

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

func NewUnlockSteamUserAchievementParamsWithHTTPClient

func NewUnlockSteamUserAchievementParamsWithHTTPClient(client *http.Client) *UnlockSteamUserAchievementParams

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

func NewUnlockSteamUserAchievementParamsWithTimeout

func NewUnlockSteamUserAchievementParamsWithTimeout(timeout time.Duration) *UnlockSteamUserAchievementParams

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

func (*UnlockSteamUserAchievementParams) SetAuthInfoWriter

func (o *UnlockSteamUserAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetBody

SetBody adds the body to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetContext

SetContext adds the context to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetFlightId added in v0.63.0

func (o *UnlockSteamUserAchievementParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*UnlockSteamUserAchievementParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetHTTPClientTransport

func (o *UnlockSteamUserAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetNamespace

func (o *UnlockSteamUserAchievementParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetTimeout

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

SetTimeout adds the timeout to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) SetUserID

func (o *UnlockSteamUserAchievementParams) SetUserID(userID string)

SetUserID adds the userId to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithBody

WithBody adds the body to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithContext

WithContext adds the context to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithNamespace

WithNamespace adds the namespace to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithTimeout

WithTimeout adds the timeout to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WithUserID

WithUserID adds the userID to the unlock steam user achievement params

func (*UnlockSteamUserAchievementParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnlockSteamUserAchievementReader

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

UnlockSteamUserAchievementReader is a Reader for the UnlockSteamUserAchievement structure.

func (*UnlockSteamUserAchievementReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateXblUserAchievementBadRequest

type UpdateXblUserAchievementBadRequest struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UpdateXblUserAchievementBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewUpdateXblUserAchievementBadRequest

func NewUpdateXblUserAchievementBadRequest() *UpdateXblUserAchievementBadRequest

NewUpdateXblUserAchievementBadRequest creates a UpdateXblUserAchievementBadRequest with default headers values

func (*UpdateXblUserAchievementBadRequest) Error

func (*UpdateXblUserAchievementBadRequest) GetPayload

func (*UpdateXblUserAchievementBadRequest) ToJSONString added in v0.25.0

func (o *UpdateXblUserAchievementBadRequest) ToJSONString() string

type UpdateXblUserAchievementNoContent

type UpdateXblUserAchievementNoContent struct {
}

UpdateXblUserAchievementNoContent handles this case with default header values.

No Content

func NewUpdateXblUserAchievementNoContent

func NewUpdateXblUserAchievementNoContent() *UpdateXblUserAchievementNoContent

NewUpdateXblUserAchievementNoContent creates a UpdateXblUserAchievementNoContent with default headers values

func (*UpdateXblUserAchievementNoContent) Error

type UpdateXblUserAchievementParams

type UpdateXblUserAchievementParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.XblAchievementUpdateRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID 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
}

UpdateXblUserAchievementParams contains all the parameters to send to the API endpoint for the update xbl user achievement operation typically these are written to a http.Request

func NewUpdateXblUserAchievementParams

func NewUpdateXblUserAchievementParams() *UpdateXblUserAchievementParams

NewUpdateXblUserAchievementParams creates a new UpdateXblUserAchievementParams object with the default values initialized.

func NewUpdateXblUserAchievementParamsWithContext

func NewUpdateXblUserAchievementParamsWithContext(ctx context.Context) *UpdateXblUserAchievementParams

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

func NewUpdateXblUserAchievementParamsWithHTTPClient

func NewUpdateXblUserAchievementParamsWithHTTPClient(client *http.Client) *UpdateXblUserAchievementParams

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

func NewUpdateXblUserAchievementParamsWithTimeout

func NewUpdateXblUserAchievementParamsWithTimeout(timeout time.Duration) *UpdateXblUserAchievementParams

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

func (*UpdateXblUserAchievementParams) SetAuthInfoWriter

func (o *UpdateXblUserAchievementParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetBody

SetBody adds the body to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetContext

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

SetContext adds the context to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetFlightId added in v0.63.0

func (o *UpdateXblUserAchievementParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*UpdateXblUserAchievementParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetHTTPClientTransport

func (o *UpdateXblUserAchievementParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetNamespace

func (o *UpdateXblUserAchievementParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetTimeout

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

SetTimeout adds the timeout to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) SetUserID

func (o *UpdateXblUserAchievementParams) SetUserID(userID string)

SetUserID adds the userId to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithBody

WithBody adds the body to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithContext

WithContext adds the context to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithNamespace

WithNamespace adds the namespace to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithTimeout

WithTimeout adds the timeout to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WithUserID

WithUserID adds the userID to the update xbl user achievement params

func (*UpdateXblUserAchievementParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateXblUserAchievementReader

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

UpdateXblUserAchievementReader is a Reader for the UpdateXblUserAchievement structure.

func (*UpdateXblUserAchievementReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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