public_like

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 12 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 {

	/*Limit
	  number of content per page

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

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

	*/
	Offset *string

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

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

SetLimit adds the limit 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 *string)

SetOffset adds the offset 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) 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) WithLimit

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

WithLimit adds the limit 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 *string) *GetLikedContentParams

WithOffset adds the offset 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) 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 {

	/*Body*/
	Body *ugcclientmodels.ModelsContentLikeRequest
	/*ContentID
	  content ID

	*/
	ContentID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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