public_like_legacy

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 legacy API

func (*Client) GetLikedContent deprecated

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

GetLikedContent get liked contents For advance tag filtering supports & as AND operator and | as OR operator and parentheses ( ) for priority. e.g:

*tags=red* *tags=red&animal;* *tags=red|animal* *tags=red&animal;|wild* *tags=red&(animal|wild)*

The precedence of logical operator is AND > OR, so if no parentheses, AND logical operator will be executed first.

Allowed character for operand: alphanumeric, underscore _ and dash -

Allowed character for operator: & | ( )

**Please note that value of tags query param should be URL encoded**

func (*Client) GetLikedContentShort

func (a *Client) GetLikedContentShort(params *GetLikedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetLikedContentOK, error)

GetLikedContentShort get liked contents For advance tag filtering supports & as AND operator and | as OR operator and parentheses ( ) for priority. e.g:

*tags=red* *tags=red&animal;* *tags=red|animal* *tags=red&animal;|wild* *tags=red&(animal|wild)*

The precedence of logical operator is AND > OR, so if no parentheses, AND logical operator will be executed first.

Allowed character for operand: alphanumeric, underscore _ and dash -

Allowed character for operator: & | ( )

**Please note that value of tags query param should be URL encoded**

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateContentLikeStatus deprecated

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

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

func (*Client) UpdateContentLikeStatusShort

func (a *Client) UpdateContentLikeStatusShort(params *UpdateContentLikeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusOK, error)

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

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new public like legacy API client.

type GetLikedContentBadRequest

type GetLikedContentBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

GetLikedContentBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771100</td><td>unable to parse isofficial param</td></tr></table>

func NewGetLikedContentBadRequest

func NewGetLikedContentBadRequest() *GetLikedContentBadRequest

NewGetLikedContentBadRequest creates a GetLikedContentBadRequest with default headers values

func (*GetLikedContentBadRequest) Error

func (o *GetLikedContentBadRequest) Error() string

func (*GetLikedContentBadRequest) GetPayload

func (*GetLikedContentBadRequest) ToJSONString

func (o *GetLikedContentBadRequest) ToJSONString() string

type GetLikedContentInternalServerError

type GetLikedContentInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetLikedContentInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771101</td><td>Unable to get ugc content: database error</td></tr><tr><td>770801</td><td>Unable to get ugc content: database/Unable to get creator</td></tr><tr><td>770803</td><td>Failed generate download URL</td></tr></table>

func NewGetLikedContentInternalServerError

func NewGetLikedContentInternalServerError() *GetLikedContentInternalServerError

NewGetLikedContentInternalServerError creates a GetLikedContentInternalServerError with default headers values

func (*GetLikedContentInternalServerError) Error

func (*GetLikedContentInternalServerError) GetPayload

func (*GetLikedContentInternalServerError) ToJSONString

func (o *GetLikedContentInternalServerError) ToJSONString() string

type GetLikedContentOK

type GetLikedContentOK struct {
	Payload *ugcclientmodels.ModelsPaginatedContentDownloadResponse
}

GetLikedContentOK handles this case with default header values.

Get liked contents

func NewGetLikedContentOK

func NewGetLikedContentOK() *GetLikedContentOK

NewGetLikedContentOK creates a GetLikedContentOK with default headers values

func (*GetLikedContentOK) Error

func (o *GetLikedContentOK) Error() string

func (*GetLikedContentOK) GetPayload

func (*GetLikedContentOK) ToJSONString

func (o *GetLikedContentOK) ToJSONString() string

type GetLikedContentParams

type GetLikedContentParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Isofficial
	  filter content by official or community

	*/
	Isofficial *bool
	/*Limit
	  number of content per page

	*/
	Limit *int64
	/*Name
	  content name

	*/
	Name *string
	/*Offset
	  the offset number to retrieve

	*/
	Offset *int64
	/*Orderby
	  sorting order: asc, desc. default=desc

	*/
	Orderby *string
	/*Sortby
	  sorting criteria: name,download,like,date. default=date

	*/
	Sortby *string
	/*Subtype
	  subtype

	*/
	Subtype *string
	/*Tags
	  tags

	*/
	Tags []string
	/*Type
	  type

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

GetLikedContentParams contains all the parameters to send to the API endpoint for the get liked content operation typically these are written to a http.Request

func NewGetLikedContentParams

func NewGetLikedContentParams() *GetLikedContentParams

NewGetLikedContentParams creates a new GetLikedContentParams object with the default values initialized.

func NewGetLikedContentParamsWithContext

func NewGetLikedContentParamsWithContext(ctx context.Context) *GetLikedContentParams

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

func NewGetLikedContentParamsWithHTTPClient

func NewGetLikedContentParamsWithHTTPClient(client *http.Client) *GetLikedContentParams

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

func NewGetLikedContentParamsWithTimeout

func NewGetLikedContentParamsWithTimeout(timeout time.Duration) *GetLikedContentParams

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

func (*GetLikedContentParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get liked content params

func (*GetLikedContentParams) SetContext

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

SetContext adds the context to the get liked content params

func (*GetLikedContentParams) SetFlightId

func (o *GetLikedContentParams) SetFlightId(flightId string)

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

func (*GetLikedContentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get liked content params

func (*GetLikedContentParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get liked content params

func (*GetLikedContentParams) SetIsofficial

func (o *GetLikedContentParams) SetIsofficial(isofficial *bool)

SetIsofficial adds the isofficial to the get liked content params

func (*GetLikedContentParams) SetLimit

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

SetLimit adds the limit to the get liked content params

func (*GetLikedContentParams) SetName

func (o *GetLikedContentParams) SetName(name *string)

SetName adds the name to the get liked content params

func (*GetLikedContentParams) SetNamespace

func (o *GetLikedContentParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get liked content params

func (*GetLikedContentParams) SetOffset

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

SetOffset adds the offset to the get liked content params

func (*GetLikedContentParams) SetOrderby

func (o *GetLikedContentParams) SetOrderby(orderby *string)

SetOrderby adds the orderby to the get liked content params

func (*GetLikedContentParams) SetSortby

func (o *GetLikedContentParams) SetSortby(sortby *string)

SetSortby adds the sortby to the get liked content params

func (*GetLikedContentParams) SetSubtype

func (o *GetLikedContentParams) SetSubtype(subtype *string)

SetSubtype adds the subtype to the get liked content params

func (*GetLikedContentParams) SetTags

func (o *GetLikedContentParams) SetTags(tags []string)

SetTags adds the tags to the get liked content params

func (*GetLikedContentParams) SetTimeout

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

SetTimeout adds the timeout to the get liked content params

func (*GetLikedContentParams) SetType

func (o *GetLikedContentParams) SetType(typeVar *string)

SetType adds the type to the get liked content params

func (*GetLikedContentParams) WithContext

WithContext adds the context to the get liked content params

func (*GetLikedContentParams) WithHTTPClient

func (o *GetLikedContentParams) WithHTTPClient(client *http.Client) *GetLikedContentParams

WithHTTPClient adds the HTTPClient to the get liked content params

func (*GetLikedContentParams) WithIsofficial

func (o *GetLikedContentParams) WithIsofficial(isofficial *bool) *GetLikedContentParams

WithIsofficial adds the isofficial to the get liked content params

func (*GetLikedContentParams) WithLimit

func (o *GetLikedContentParams) WithLimit(limit *int64) *GetLikedContentParams

WithLimit adds the limit to the get liked content params

func (*GetLikedContentParams) WithName

WithName adds the name to the get liked content params

func (*GetLikedContentParams) WithNamespace

func (o *GetLikedContentParams) WithNamespace(namespace string) *GetLikedContentParams

WithNamespace adds the namespace to the get liked content params

func (*GetLikedContentParams) WithOffset

func (o *GetLikedContentParams) WithOffset(offset *int64) *GetLikedContentParams

WithOffset adds the offset to the get liked content params

func (*GetLikedContentParams) WithOrderby

func (o *GetLikedContentParams) WithOrderby(orderby *string) *GetLikedContentParams

WithOrderby adds the orderby to the get liked content params

func (*GetLikedContentParams) WithSortby

func (o *GetLikedContentParams) WithSortby(sortby *string) *GetLikedContentParams

WithSortby adds the sortby to the get liked content params

func (*GetLikedContentParams) WithSubtype

func (o *GetLikedContentParams) WithSubtype(subtype *string) *GetLikedContentParams

WithSubtype adds the subtype to the get liked content params

func (*GetLikedContentParams) WithTags

func (o *GetLikedContentParams) WithTags(tags []string) *GetLikedContentParams

WithTags adds the tags to the get liked content params

func (*GetLikedContentParams) WithTimeout

func (o *GetLikedContentParams) WithTimeout(timeout time.Duration) *GetLikedContentParams

WithTimeout adds the timeout to the get liked content params

func (*GetLikedContentParams) WithType

func (o *GetLikedContentParams) WithType(typeVar *string) *GetLikedContentParams

WithType adds the typeVar to the get liked content params

func (*GetLikedContentParams) WriteToRequest

func (o *GetLikedContentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetLikedContentReader

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

GetLikedContentReader is a Reader for the GetLikedContent structure.

func (*GetLikedContentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLikedContentUnauthorized

type GetLikedContentUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetLikedContentUnauthorized 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 NewGetLikedContentUnauthorized

func NewGetLikedContentUnauthorized() *GetLikedContentUnauthorized

NewGetLikedContentUnauthorized creates a GetLikedContentUnauthorized with default headers values

func (*GetLikedContentUnauthorized) Error

func (*GetLikedContentUnauthorized) GetPayload

func (*GetLikedContentUnauthorized) ToJSONString

func (o *GetLikedContentUnauthorized) ToJSONString() string

type UpdateContentLikeStatusBadRequest

type UpdateContentLikeStatusBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusBadRequest 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 NewUpdateContentLikeStatusBadRequest

func NewUpdateContentLikeStatusBadRequest() *UpdateContentLikeStatusBadRequest

NewUpdateContentLikeStatusBadRequest creates a UpdateContentLikeStatusBadRequest with default headers values

func (*UpdateContentLikeStatusBadRequest) Error

func (*UpdateContentLikeStatusBadRequest) GetPayload

func (*UpdateContentLikeStatusBadRequest) ToJSONString

func (o *UpdateContentLikeStatusBadRequest) ToJSONString() string

type UpdateContentLikeStatusInternalServerError

type UpdateContentLikeStatusInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusInternalServerError 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 NewUpdateContentLikeStatusInternalServerError

func NewUpdateContentLikeStatusInternalServerError() *UpdateContentLikeStatusInternalServerError

NewUpdateContentLikeStatusInternalServerError creates a UpdateContentLikeStatusInternalServerError with default headers values

func (*UpdateContentLikeStatusInternalServerError) Error

func (*UpdateContentLikeStatusInternalServerError) GetPayload

func (*UpdateContentLikeStatusInternalServerError) ToJSONString

type UpdateContentLikeStatusNotFound

type UpdateContentLikeStatusNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusNotFound 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><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 NewUpdateContentLikeStatusNotFound

func NewUpdateContentLikeStatusNotFound() *UpdateContentLikeStatusNotFound

NewUpdateContentLikeStatusNotFound creates a UpdateContentLikeStatusNotFound with default headers values

func (*UpdateContentLikeStatusNotFound) Error

func (*UpdateContentLikeStatusNotFound) GetPayload

func (*UpdateContentLikeStatusNotFound) ToJSONString

func (o *UpdateContentLikeStatusNotFound) ToJSONString() string

type UpdateContentLikeStatusOK

type UpdateContentLikeStatusOK struct {
	Payload *ugcclientmodels.ModelsContentLikeResponse
}

UpdateContentLikeStatusOK handles this case with default header values.

Update like/unlike status to a content

func NewUpdateContentLikeStatusOK

func NewUpdateContentLikeStatusOK() *UpdateContentLikeStatusOK

NewUpdateContentLikeStatusOK creates a UpdateContentLikeStatusOK with default headers values

func (*UpdateContentLikeStatusOK) Error

func (o *UpdateContentLikeStatusOK) Error() string

func (*UpdateContentLikeStatusOK) GetPayload

func (*UpdateContentLikeStatusOK) ToJSONString

func (o *UpdateContentLikeStatusOK) ToJSONString() string

type UpdateContentLikeStatusParams

type UpdateContentLikeStatusParams 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
}

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

func NewUpdateContentLikeStatusParams

func NewUpdateContentLikeStatusParams() *UpdateContentLikeStatusParams

NewUpdateContentLikeStatusParams creates a new UpdateContentLikeStatusParams object with the default values initialized.

func NewUpdateContentLikeStatusParamsWithContext

func NewUpdateContentLikeStatusParamsWithContext(ctx context.Context) *UpdateContentLikeStatusParams

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

func NewUpdateContentLikeStatusParamsWithHTTPClient

func NewUpdateContentLikeStatusParamsWithHTTPClient(client *http.Client) *UpdateContentLikeStatusParams

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

func NewUpdateContentLikeStatusParamsWithTimeout

func NewUpdateContentLikeStatusParamsWithTimeout(timeout time.Duration) *UpdateContentLikeStatusParams

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

func (*UpdateContentLikeStatusParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update content like status params

func (*UpdateContentLikeStatusParams) SetBody

SetBody adds the body to the update content like status params

func (*UpdateContentLikeStatusParams) SetContentID

func (o *UpdateContentLikeStatusParams) SetContentID(contentID string)

SetContentID adds the contentId to the update content like status params

func (*UpdateContentLikeStatusParams) SetContext

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

SetContext adds the context to the update content like status params

func (*UpdateContentLikeStatusParams) SetFlightId

func (o *UpdateContentLikeStatusParams) SetFlightId(flightId string)

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

func (*UpdateContentLikeStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update content like status params

func (*UpdateContentLikeStatusParams) SetHTTPClientTransport

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

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

func (*UpdateContentLikeStatusParams) SetNamespace

func (o *UpdateContentLikeStatusParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update content like status params

func (*UpdateContentLikeStatusParams) SetTimeout

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

SetTimeout adds the timeout to the update content like status params

func (*UpdateContentLikeStatusParams) WithBody

WithBody adds the body to the update content like status params

func (*UpdateContentLikeStatusParams) WithContentID

WithContentID adds the contentID to the update content like status params

func (*UpdateContentLikeStatusParams) WithContext

WithContext adds the context to the update content like status params

func (*UpdateContentLikeStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update content like status params

func (*UpdateContentLikeStatusParams) WithNamespace

WithNamespace adds the namespace to the update content like status params

func (*UpdateContentLikeStatusParams) WithTimeout

WithTimeout adds the timeout to the update content like status params

func (*UpdateContentLikeStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateContentLikeStatusReader

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

UpdateContentLikeStatusReader is a Reader for the UpdateContentLikeStatus structure.

func (*UpdateContentLikeStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateContentLikeStatusUnauthorized

type UpdateContentLikeStatusUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusUnauthorized 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 NewUpdateContentLikeStatusUnauthorized

func NewUpdateContentLikeStatusUnauthorized() *UpdateContentLikeStatusUnauthorized

NewUpdateContentLikeStatusUnauthorized creates a UpdateContentLikeStatusUnauthorized with default headers values

func (*UpdateContentLikeStatusUnauthorized) Error

func (*UpdateContentLikeStatusUnauthorized) GetPayload

func (*UpdateContentLikeStatusUnauthorized) ToJSONString

func (o *UpdateContentLikeStatusUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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