public_like_v2

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: 16 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 public like v2 API

func (*Client) PublicListContentLikeV2 deprecated

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

PublicListContentLikeV2 retrieve list of user that like specified content. This endpoint will only display the list of users who performed like from v2 endpoint.

func (*Client) PublicListContentLikeV2Short

func (a *Client) PublicListContentLikeV2Short(params *PublicListContentLikeV2Params, authInfo runtime.ClientAuthInfoWriter) (*PublicListContentLikeV2OK, error)

PublicListContentLikeV2Short retrieve list of user that like specified content. This endpoint will only display the list of users who performed like from v2 endpoint.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateContentLikeStatusV2 deprecated

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

UpdateContentLikeStatusV2 update like/unlike status to a content This endpoint will update like/unlike state from a content

func (*Client) UpdateContentLikeStatusV2Short

func (a *Client) UpdateContentLikeStatusV2Short(params *UpdateContentLikeStatusV2Params, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusV2OK, error)

UpdateContentLikeStatusV2Short update like/unlike status to a content This endpoint will update like/unlike state from a content

type PublicListContentLikeV2BadRequest

type PublicListContentLikeV2BadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

PublicListContentLikeV2BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771004</td><td>invalid paging parameter</td></tr></table>

func NewPublicListContentLikeV2BadRequest

func NewPublicListContentLikeV2BadRequest() *PublicListContentLikeV2BadRequest

NewPublicListContentLikeV2BadRequest creates a PublicListContentLikeV2BadRequest with default headers values

func (*PublicListContentLikeV2BadRequest) Error

func (*PublicListContentLikeV2BadRequest) GetPayload

func (*PublicListContentLikeV2BadRequest) ToJSONString

func (o *PublicListContentLikeV2BadRequest) ToJSONString() string

type PublicListContentLikeV2InternalServerError

type PublicListContentLikeV2InternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

PublicListContentLikeV2InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771006</td><td>unable to get list of content like: database error</td></tr></table>

func NewPublicListContentLikeV2InternalServerError

func NewPublicListContentLikeV2InternalServerError() *PublicListContentLikeV2InternalServerError

NewPublicListContentLikeV2InternalServerError creates a PublicListContentLikeV2InternalServerError with default headers values

func (*PublicListContentLikeV2InternalServerError) Error

func (*PublicListContentLikeV2InternalServerError) GetPayload

func (*PublicListContentLikeV2InternalServerError) ToJSONString

type PublicListContentLikeV2OK

type PublicListContentLikeV2OK struct {
	Payload *ugcclientmodels.ModelsPaginatedContentLikersResponse
}

PublicListContentLikeV2OK handles this case with default header values.

Retrieve list of user liked content

func NewPublicListContentLikeV2OK

func NewPublicListContentLikeV2OK() *PublicListContentLikeV2OK

NewPublicListContentLikeV2OK creates a PublicListContentLikeV2OK with default headers values

func (*PublicListContentLikeV2OK) Error

func (o *PublicListContentLikeV2OK) Error() string

func (*PublicListContentLikeV2OK) GetPayload

func (*PublicListContentLikeV2OK) ToJSONString

func (o *PublicListContentLikeV2OK) ToJSONString() string

type PublicListContentLikeV2Params

type PublicListContentLikeV2Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ContentID
	  content ID

	*/
	ContentID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Limit
	  maximum result of data

	*/
	Limit *int64
	/*Offset
	  offset

	*/
	Offset *int64
	/*SortBy
	    sort order of query result
	available value:
	- *createdTime*
	- *createdTime:desc*
	- *createdTime:asc*

	*/
	SortBy *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
}

PublicListContentLikeV2Params contains all the parameters to send to the API endpoint for the public list content like v2 operation typically these are written to a http.Request

func NewPublicListContentLikeV2Params

func NewPublicListContentLikeV2Params() *PublicListContentLikeV2Params

NewPublicListContentLikeV2Params creates a new PublicListContentLikeV2Params object with the default values initialized.

func NewPublicListContentLikeV2ParamsWithContext

func NewPublicListContentLikeV2ParamsWithContext(ctx context.Context) *PublicListContentLikeV2Params

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

func NewPublicListContentLikeV2ParamsWithHTTPClient

func NewPublicListContentLikeV2ParamsWithHTTPClient(client *http.Client) *PublicListContentLikeV2Params

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

func NewPublicListContentLikeV2ParamsWithTimeout

func NewPublicListContentLikeV2ParamsWithTimeout(timeout time.Duration) *PublicListContentLikeV2Params

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

func (*PublicListContentLikeV2Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetContentID

func (o *PublicListContentLikeV2Params) SetContentID(contentID string)

SetContentID adds the contentId to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetContext

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

SetContext adds the context to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetFlightId added in v0.63.0

func (o *PublicListContentLikeV2Params) SetFlightId(flightId string)

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

func (*PublicListContentLikeV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetLimit

func (o *PublicListContentLikeV2Params) SetLimit(limit *int64)

SetLimit adds the limit to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetNamespace

func (o *PublicListContentLikeV2Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetOffset

func (o *PublicListContentLikeV2Params) SetOffset(offset *int64)

SetOffset adds the offset to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetSortBy

func (o *PublicListContentLikeV2Params) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the public list content like v2 params

func (*PublicListContentLikeV2Params) SetTimeout

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

SetTimeout adds the timeout to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithContentID

WithContentID adds the contentID to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithContext

WithContext adds the context to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithLimit

WithLimit adds the limit to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithNamespace

WithNamespace adds the namespace to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithOffset

WithOffset adds the offset to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithSortBy

WithSortBy adds the sortBy to the public list content like v2 params

func (*PublicListContentLikeV2Params) WithTimeout

WithTimeout adds the timeout to the public list content like v2 params

func (*PublicListContentLikeV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicListContentLikeV2Reader

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

PublicListContentLikeV2Reader is a Reader for the PublicListContentLikeV2 structure.

func (*PublicListContentLikeV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicListContentLikeV2Unauthorized

type PublicListContentLikeV2Unauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

PublicListContentLikeV2Unauthorized 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 NewPublicListContentLikeV2Unauthorized

func NewPublicListContentLikeV2Unauthorized() *PublicListContentLikeV2Unauthorized

NewPublicListContentLikeV2Unauthorized creates a PublicListContentLikeV2Unauthorized with default headers values

func (*PublicListContentLikeV2Unauthorized) Error

func (*PublicListContentLikeV2Unauthorized) GetPayload

func (*PublicListContentLikeV2Unauthorized) ToJSONString

func (o *PublicListContentLikeV2Unauthorized) ToJSONString() string

type UpdateContentLikeStatusV2BadRequest

type UpdateContentLikeStatusV2BadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusV2BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771000</td><td>Malformed request/Content not found/Unable to update like status: content not found</td></tr></table>

func NewUpdateContentLikeStatusV2BadRequest

func NewUpdateContentLikeStatusV2BadRequest() *UpdateContentLikeStatusV2BadRequest

NewUpdateContentLikeStatusV2BadRequest creates a UpdateContentLikeStatusV2BadRequest with default headers values

func (*UpdateContentLikeStatusV2BadRequest) Error

func (*UpdateContentLikeStatusV2BadRequest) GetPayload

func (*UpdateContentLikeStatusV2BadRequest) ToJSONString

func (o *UpdateContentLikeStatusV2BadRequest) ToJSONString() string

type UpdateContentLikeStatusV2InternalServerError

type UpdateContentLikeStatusV2InternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusV2InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771001</td><td>unable to like content/Unable to update like status: database error</td></tr></table>

func NewUpdateContentLikeStatusV2InternalServerError

func NewUpdateContentLikeStatusV2InternalServerError() *UpdateContentLikeStatusV2InternalServerError

NewUpdateContentLikeStatusV2InternalServerError creates a UpdateContentLikeStatusV2InternalServerError with default headers values

func (*UpdateContentLikeStatusV2InternalServerError) Error

func (*UpdateContentLikeStatusV2InternalServerError) GetPayload

func (*UpdateContentLikeStatusV2InternalServerError) ToJSONString

type UpdateContentLikeStatusV2NotFound added in v0.60.0

type UpdateContentLikeStatusV2NotFound struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusV2NotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>770200</td><td>Content not found</td></tr><tr><td>771001</td><td>unable to like content/Unable to update like status: database error</td></tr><tr><td>771000</td><td>Malformed request/Content not found/Unable to update like status: content not found</td></tr></table>

func NewUpdateContentLikeStatusV2NotFound added in v0.60.0

func NewUpdateContentLikeStatusV2NotFound() *UpdateContentLikeStatusV2NotFound

NewUpdateContentLikeStatusV2NotFound creates a UpdateContentLikeStatusV2NotFound with default headers values

func (*UpdateContentLikeStatusV2NotFound) Error added in v0.60.0

func (*UpdateContentLikeStatusV2NotFound) GetPayload added in v0.60.0

func (*UpdateContentLikeStatusV2NotFound) ToJSONString added in v0.60.0

func (o *UpdateContentLikeStatusV2NotFound) ToJSONString() string

type UpdateContentLikeStatusV2OK

type UpdateContentLikeStatusV2OK struct {
	Payload *ugcclientmodels.ModelsContentLikeResponse
}

UpdateContentLikeStatusV2OK handles this case with default header values.

Update like/unlike status to a content

func NewUpdateContentLikeStatusV2OK

func NewUpdateContentLikeStatusV2OK() *UpdateContentLikeStatusV2OK

NewUpdateContentLikeStatusV2OK creates a UpdateContentLikeStatusV2OK with default headers values

func (*UpdateContentLikeStatusV2OK) Error

func (*UpdateContentLikeStatusV2OK) GetPayload

func (*UpdateContentLikeStatusV2OK) ToJSONString

func (o *UpdateContentLikeStatusV2OK) ToJSONString() string

type UpdateContentLikeStatusV2Params

type UpdateContentLikeStatusV2Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *ugcclientmodels.ModelsContentLikeRequest
	/*ContentID
	  content ID

	*/
	ContentID string
	/*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
}

UpdateContentLikeStatusV2Params contains all the parameters to send to the API endpoint for the update content like status v2 operation typically these are written to a http.Request

func NewUpdateContentLikeStatusV2Params

func NewUpdateContentLikeStatusV2Params() *UpdateContentLikeStatusV2Params

NewUpdateContentLikeStatusV2Params creates a new UpdateContentLikeStatusV2Params object with the default values initialized.

func NewUpdateContentLikeStatusV2ParamsWithContext

func NewUpdateContentLikeStatusV2ParamsWithContext(ctx context.Context) *UpdateContentLikeStatusV2Params

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

func NewUpdateContentLikeStatusV2ParamsWithHTTPClient

func NewUpdateContentLikeStatusV2ParamsWithHTTPClient(client *http.Client) *UpdateContentLikeStatusV2Params

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

func NewUpdateContentLikeStatusV2ParamsWithTimeout

func NewUpdateContentLikeStatusV2ParamsWithTimeout(timeout time.Duration) *UpdateContentLikeStatusV2Params

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

func (*UpdateContentLikeStatusV2Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) SetBody

SetBody adds the body to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) SetContentID

func (o *UpdateContentLikeStatusV2Params) SetContentID(contentID string)

SetContentID adds the contentId to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) SetContext

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

SetContext adds the context to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) SetFlightId added in v0.63.0

func (o *UpdateContentLikeStatusV2Params) SetFlightId(flightId string)

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

func (*UpdateContentLikeStatusV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) SetNamespace

func (o *UpdateContentLikeStatusV2Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) SetTimeout

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

SetTimeout adds the timeout to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) WithBody

WithBody adds the body to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) WithContentID

WithContentID adds the contentID to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) WithContext

WithContext adds the context to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) WithNamespace

WithNamespace adds the namespace to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) WithTimeout

WithTimeout adds the timeout to the update content like status v2 params

func (*UpdateContentLikeStatusV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateContentLikeStatusV2Reader

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

UpdateContentLikeStatusV2Reader is a Reader for the UpdateContentLikeStatusV2 structure.

func (*UpdateContentLikeStatusV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateContentLikeStatusV2TooManyRequests added in v0.60.0

type UpdateContentLikeStatusV2TooManyRequests struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusV2TooManyRequests handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771003</td><td>Unable to like content: too many request</td></tr></table>

func NewUpdateContentLikeStatusV2TooManyRequests added in v0.60.0

func NewUpdateContentLikeStatusV2TooManyRequests() *UpdateContentLikeStatusV2TooManyRequests

NewUpdateContentLikeStatusV2TooManyRequests creates a UpdateContentLikeStatusV2TooManyRequests with default headers values

func (*UpdateContentLikeStatusV2TooManyRequests) Error added in v0.60.0

func (*UpdateContentLikeStatusV2TooManyRequests) GetPayload added in v0.60.0

func (*UpdateContentLikeStatusV2TooManyRequests) ToJSONString added in v0.60.0

type UpdateContentLikeStatusV2Unauthorized

type UpdateContentLikeStatusV2Unauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusV2Unauthorized 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 NewUpdateContentLikeStatusV2Unauthorized

func NewUpdateContentLikeStatusV2Unauthorized() *UpdateContentLikeStatusV2Unauthorized

NewUpdateContentLikeStatusV2Unauthorized creates a UpdateContentLikeStatusV2Unauthorized with default headers values

func (*UpdateContentLikeStatusV2Unauthorized) Error

func (*UpdateContentLikeStatusV2Unauthorized) GetPayload

func (*UpdateContentLikeStatusV2Unauthorized) ToJSONString

Jump to

Keyboard shortcuts

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