public_like

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 14 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 API

func (*Client) GetLikedContent

GetLikedContent gets liked contents

Requires valid user token

func (*Client) GetLikedContentShort

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateContentLikeStatus

UpdateContentLikeStatus updates like unlike status to a content

Requires valid user token

func (*Client) UpdateContentLikeStatusShort

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

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 API client.

type GetLikedContentInternalServerError

type GetLikedContentInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetLikedContentInternalServerError handles this case with default header values.

Internal Server Error

func NewGetLikedContentInternalServerError

func NewGetLikedContentInternalServerError() *GetLikedContentInternalServerError

NewGetLikedContentInternalServerError creates a GetLikedContentInternalServerError with default headers values

func (*GetLikedContentInternalServerError) Error

func (*GetLikedContentInternalServerError) GetPayload

type GetLikedContentNotFound

type GetLikedContentNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

GetLikedContentNotFound handles this case with default header values.

Not Found

func NewGetLikedContentNotFound

func NewGetLikedContentNotFound() *GetLikedContentNotFound

NewGetLikedContentNotFound creates a GetLikedContentNotFound with default headers values

func (*GetLikedContentNotFound) Error

func (o *GetLikedContentNotFound) Error() string

func (*GetLikedContentNotFound) GetPayload

type GetLikedContentOK

type GetLikedContentOK struct {
	Payload *ugcclientmodels.ModelsPaginatedContentDownloadResponse
}

GetLikedContentOK handles this case with default header values.

OK

func NewGetLikedContentOK

func NewGetLikedContentOK() *GetLikedContentOK

NewGetLikedContentOK creates a GetLikedContentOK with default headers values

func (*GetLikedContentOK) Error

func (o *GetLikedContentOK) Error() string

func (*GetLikedContentOK) GetPayload

type GetLikedContentParams

type GetLikedContentParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Isofficial
	  filter content by official or community

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

	*/
	Limit *int64
	/*Name
	  content name

	*/
	Name *string
	/*Namespace
	  namespace of the game

	*/
	Namespace 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
	// 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 added in v0.17.0

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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get liked content params

func (*GetLikedContentParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get liked content params

func (*GetLikedContentParams) SetIsofficial added in v0.23.0

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 added in v0.23.0

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 added in v0.23.0

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

SetOrderby adds the orderby to the get liked content params

func (*GetLikedContentParams) SetSortby added in v0.23.0

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

SetSortby adds the sortby to the get liked content params

func (*GetLikedContentParams) SetSubtype added in v0.23.0

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

SetSubtype adds the subtype to the get liked content params

func (*GetLikedContentParams) SetTags added in v0.23.0

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 added in v0.23.0

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 added in v0.23.0

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 added in v0.23.0

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 added in v0.23.0

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

WithOrderby adds the orderby to the get liked content params

func (*GetLikedContentParams) WithSortby added in v0.23.0

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

WithSortby adds the sortby to the get liked content params

func (*GetLikedContentParams) WithSubtype added in v0.23.0

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

WithSubtype adds the subtype to the get liked content params

func (*GetLikedContentParams) WithTags added in v0.23.0

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 added in v0.23.0

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.

Unauthorized

func NewGetLikedContentUnauthorized

func NewGetLikedContentUnauthorized() *GetLikedContentUnauthorized

NewGetLikedContentUnauthorized creates a GetLikedContentUnauthorized with default headers values

func (*GetLikedContentUnauthorized) Error

func (*GetLikedContentUnauthorized) GetPayload

type UpdateContentLikeStatusBadRequest

type UpdateContentLikeStatusBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusBadRequest handles this case with default header values.

Bad Request

func NewUpdateContentLikeStatusBadRequest

func NewUpdateContentLikeStatusBadRequest() *UpdateContentLikeStatusBadRequest

NewUpdateContentLikeStatusBadRequest creates a UpdateContentLikeStatusBadRequest with default headers values

func (*UpdateContentLikeStatusBadRequest) Error

func (*UpdateContentLikeStatusBadRequest) GetPayload

type UpdateContentLikeStatusInternalServerError

type UpdateContentLikeStatusInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateContentLikeStatusInternalServerError handles this case with default header values.

Internal Server Error

func NewUpdateContentLikeStatusInternalServerError

func NewUpdateContentLikeStatusInternalServerError() *UpdateContentLikeStatusInternalServerError

NewUpdateContentLikeStatusInternalServerError creates a UpdateContentLikeStatusInternalServerError with default headers values

func (*UpdateContentLikeStatusInternalServerError) Error

func (*UpdateContentLikeStatusInternalServerError) GetPayload

type UpdateContentLikeStatusOK

type UpdateContentLikeStatusOK struct {
	Payload *ugcclientmodels.ModelsContentLikeResponse
}

UpdateContentLikeStatusOK handles this case with default header values.

OK

func NewUpdateContentLikeStatusOK

func NewUpdateContentLikeStatusOK() *UpdateContentLikeStatusOK

NewUpdateContentLikeStatusOK creates a UpdateContentLikeStatusOK with default headers values

func (*UpdateContentLikeStatusOK) Error

func (o *UpdateContentLikeStatusOK) Error() string

func (*UpdateContentLikeStatusOK) GetPayload

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
	// 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 added in v0.17.0

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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update content like status params

func (*UpdateContentLikeStatusParams) SetHTTPClientTransport added in v0.19.0

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.

Unauthorized

func NewUpdateContentLikeStatusUnauthorized

func NewUpdateContentLikeStatusUnauthorized() *UpdateContentLikeStatusUnauthorized

NewUpdateContentLikeStatusUnauthorized creates a UpdateContentLikeStatusUnauthorized with default headers values

func (*UpdateContentLikeStatusUnauthorized) Error

func (*UpdateContentLikeStatusUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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