public_like_v2

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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 Requires valid user token

func (*Client) UpdateContentLikeStatusV2Short

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

UpdateContentLikeStatusV2Short update like/unlike status to a content Requires valid user token

type PublicListContentLikeV2BadRequest

type PublicListContentLikeV2BadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

PublicListContentLikeV2BadRequest handles this case with default header values.

Bad Request

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.

Internal Server Error

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.

OK

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
	    default value: createdTime:desc.

	available value:
	<ul>
	<li>createdTime, createdTime:desc, createdTime:asc</li>
	</ul>

	*/
	SortBy *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// 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) 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.

Unauthorized

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.

Bad Request

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.

Internal Server Error

func NewUpdateContentLikeStatusV2InternalServerError

func NewUpdateContentLikeStatusV2InternalServerError() *UpdateContentLikeStatusV2InternalServerError

NewUpdateContentLikeStatusV2InternalServerError creates a UpdateContentLikeStatusV2InternalServerError with default headers values

func (*UpdateContentLikeStatusV2InternalServerError) Error

func (*UpdateContentLikeStatusV2InternalServerError) GetPayload

func (*UpdateContentLikeStatusV2InternalServerError) ToJSONString

type UpdateContentLikeStatusV2OK

type UpdateContentLikeStatusV2OK struct {
	Payload *ugcclientmodels.ModelsContentLikeResponse
}

UpdateContentLikeStatusV2OK handles this case with default header values.

OK

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
	// 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) 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 UpdateContentLikeStatusV2Unauthorized

type UpdateContentLikeStatusV2Unauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusV2Unauthorized handles this case with default header values.

Unauthorized

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