public_follow

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 follow API

func (*Client) GetFollowedContent deprecated

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

GetFollowedContent get contents from followed creators Requires valid user token

func (*Client) GetFollowedContentShort

func (a *Client) GetFollowedContentShort(params *GetFollowedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetFollowedContentOK, error)

GetFollowedContentShort get contents from followed creators Requires valid user token

func (*Client) GetFollowedUsers deprecated

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

GetFollowedUsers get followed creators Requires valid user token

func (*Client) GetFollowedUsersShort

func (a *Client) GetFollowedUsersShort(params *GetFollowedUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetFollowedUsersOK, error)

GetFollowedUsersShort get followed creators Requires valid user token

func (*Client) GetPublicFollowers deprecated

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

GetPublicFollowers get list of followers

func (*Client) GetPublicFollowersShort

func (a *Client) GetPublicFollowersShort(params *GetPublicFollowersParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicFollowersOK, error)

GetPublicFollowersShort get list of followers

func (*Client) GetPublicFollowing deprecated

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

GetPublicFollowing get list of following

func (*Client) GetPublicFollowingShort

func (a *Client) GetPublicFollowingShort(params *GetPublicFollowingParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicFollowingOK, error)

GetPublicFollowingShort get list of following

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUserFollowStatus deprecated

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

UpdateUserFollowStatus update follow/unfollow status to a user Requires valid user token

func (*Client) UpdateUserFollowStatusShort

func (a *Client) UpdateUserFollowStatusShort(params *UpdateUserFollowStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserFollowStatusOK, error)

UpdateUserFollowStatusShort update follow/unfollow status to a user Requires valid user token

type ClientService

type ClientService interface {
	GetFollowedContent(params *GetFollowedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetFollowedContentOK, *GetFollowedContentBadRequest, *GetFollowedContentUnauthorized, *GetFollowedContentInternalServerError, error)
	GetFollowedContentShort(params *GetFollowedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetFollowedContentOK, error)
	GetFollowedUsers(params *GetFollowedUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetFollowedUsersOK, *GetFollowedUsersBadRequest, *GetFollowedUsersUnauthorized, *GetFollowedUsersInternalServerError, error)
	GetFollowedUsersShort(params *GetFollowedUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetFollowedUsersOK, error)
	UpdateUserFollowStatus(params *UpdateUserFollowStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserFollowStatusOK, *UpdateUserFollowStatusBadRequest, *UpdateUserFollowStatusUnauthorized, *UpdateUserFollowStatusInternalServerError, error)
	UpdateUserFollowStatusShort(params *UpdateUserFollowStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserFollowStatusOK, error)
	GetPublicFollowers(params *GetPublicFollowersParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicFollowersOK, *GetPublicFollowersBadRequest, *GetPublicFollowersUnauthorized, *GetPublicFollowersInternalServerError, error)
	GetPublicFollowersShort(params *GetPublicFollowersParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicFollowersOK, error)
	GetPublicFollowing(params *GetPublicFollowingParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicFollowingOK, *GetPublicFollowingBadRequest, *GetPublicFollowingUnauthorized, *GetPublicFollowingInternalServerError, error)
	GetPublicFollowingShort(params *GetPublicFollowingParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublicFollowingOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new public follow API client.

type GetFollowedContentBadRequest

type GetFollowedContentBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

GetFollowedContentBadRequest handles this case with default header values.

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

func NewGetFollowedContentBadRequest

func NewGetFollowedContentBadRequest() *GetFollowedContentBadRequest

NewGetFollowedContentBadRequest creates a GetFollowedContentBadRequest with default headers values

func (*GetFollowedContentBadRequest) Error

func (*GetFollowedContentBadRequest) GetPayload

func (*GetFollowedContentBadRequest) ToJSONString

func (o *GetFollowedContentBadRequest) ToJSONString() string

type GetFollowedContentInternalServerError

type GetFollowedContentInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetFollowedContentInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771310</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 NewGetFollowedContentInternalServerError

func NewGetFollowedContentInternalServerError() *GetFollowedContentInternalServerError

NewGetFollowedContentInternalServerError creates a GetFollowedContentInternalServerError with default headers values

func (*GetFollowedContentInternalServerError) Error

func (*GetFollowedContentInternalServerError) GetPayload

func (*GetFollowedContentInternalServerError) ToJSONString

type GetFollowedContentOK

type GetFollowedContentOK struct {
	Payload *ugcclientmodels.ModelsPaginatedContentDownloadResponse
}

GetFollowedContentOK handles this case with default header values.

Get contents from followed creators

func NewGetFollowedContentOK

func NewGetFollowedContentOK() *GetFollowedContentOK

NewGetFollowedContentOK creates a GetFollowedContentOK with default headers values

func (*GetFollowedContentOK) Error

func (o *GetFollowedContentOK) Error() string

func (*GetFollowedContentOK) GetPayload

func (*GetFollowedContentOK) ToJSONString

func (o *GetFollowedContentOK) ToJSONString() string

type GetFollowedContentParams

type GetFollowedContentParams struct {

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

	*/
	Namespace string
	/*Limit
	  number of content per page

	*/
	Limit *int64
	/*Offset
	  the offset number to retrieve

	*/
	Offset *int64

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewGetFollowedContentParams

func NewGetFollowedContentParams() *GetFollowedContentParams

NewGetFollowedContentParams creates a new GetFollowedContentParams object with the default values initialized.

func NewGetFollowedContentParamsWithContext

func NewGetFollowedContentParamsWithContext(ctx context.Context) *GetFollowedContentParams

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

func NewGetFollowedContentParamsWithHTTPClient

func NewGetFollowedContentParamsWithHTTPClient(client *http.Client) *GetFollowedContentParams

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

func NewGetFollowedContentParamsWithTimeout

func NewGetFollowedContentParamsWithTimeout(timeout time.Duration) *GetFollowedContentParams

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

func (*GetFollowedContentParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get followed content params

func (*GetFollowedContentParams) SetContext

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

SetContext adds the context to the get followed content params

func (*GetFollowedContentParams) SetFlightId

func (o *GetFollowedContentParams) SetFlightId(flightId string)

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

func (*GetFollowedContentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get followed content params

func (*GetFollowedContentParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get followed content params

func (*GetFollowedContentParams) SetLimit

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

SetLimit adds the limit to the get followed content params

func (*GetFollowedContentParams) SetNamespace

func (o *GetFollowedContentParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get followed content params

func (*GetFollowedContentParams) SetOffset

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

SetOffset adds the offset to the get followed content params

func (*GetFollowedContentParams) SetTimeout

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

SetTimeout adds the timeout to the get followed content params

func (*GetFollowedContentParams) WithContext

WithContext adds the context to the get followed content params

func (*GetFollowedContentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get followed content params

func (*GetFollowedContentParams) WithLimit

WithLimit adds the limit to the get followed content params

func (*GetFollowedContentParams) WithNamespace

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

WithNamespace adds the namespace to the get followed content params

func (*GetFollowedContentParams) WithOffset

WithOffset adds the offset to the get followed content params

func (*GetFollowedContentParams) WithTimeout

WithTimeout adds the timeout to the get followed content params

func (*GetFollowedContentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFollowedContentReader

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

GetFollowedContentReader is a Reader for the GetFollowedContent structure.

func (*GetFollowedContentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFollowedContentUnauthorized

type GetFollowedContentUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetFollowedContentUnauthorized 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 NewGetFollowedContentUnauthorized

func NewGetFollowedContentUnauthorized() *GetFollowedContentUnauthorized

NewGetFollowedContentUnauthorized creates a GetFollowedContentUnauthorized with default headers values

func (*GetFollowedContentUnauthorized) Error

func (*GetFollowedContentUnauthorized) GetPayload

func (*GetFollowedContentUnauthorized) ToJSONString

func (o *GetFollowedContentUnauthorized) ToJSONString() string

type GetFollowedUsersBadRequest

type GetFollowedUsersBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

GetFollowedUsersBadRequest handles this case with default header values.

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

func NewGetFollowedUsersBadRequest

func NewGetFollowedUsersBadRequest() *GetFollowedUsersBadRequest

NewGetFollowedUsersBadRequest creates a GetFollowedUsersBadRequest with default headers values

func (*GetFollowedUsersBadRequest) Error

func (*GetFollowedUsersBadRequest) GetPayload

func (*GetFollowedUsersBadRequest) ToJSONString

func (o *GetFollowedUsersBadRequest) ToJSONString() string

type GetFollowedUsersInternalServerError

type GetFollowedUsersInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetFollowedUsersInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771300</td><td>Unable to get creators: database error</td></tr></table>

func NewGetFollowedUsersInternalServerError

func NewGetFollowedUsersInternalServerError() *GetFollowedUsersInternalServerError

NewGetFollowedUsersInternalServerError creates a GetFollowedUsersInternalServerError with default headers values

func (*GetFollowedUsersInternalServerError) Error

func (*GetFollowedUsersInternalServerError) GetPayload

func (*GetFollowedUsersInternalServerError) ToJSONString

func (o *GetFollowedUsersInternalServerError) ToJSONString() string

type GetFollowedUsersOK

type GetFollowedUsersOK struct {
	Payload *ugcclientmodels.ModelsPaginatedCreatorOverviewResponse
}

GetFollowedUsersOK handles this case with default header values.

Get followed creators

func NewGetFollowedUsersOK

func NewGetFollowedUsersOK() *GetFollowedUsersOK

NewGetFollowedUsersOK creates a GetFollowedUsersOK with default headers values

func (*GetFollowedUsersOK) Error

func (o *GetFollowedUsersOK) Error() string

func (*GetFollowedUsersOK) GetPayload

func (*GetFollowedUsersOK) ToJSONString

func (o *GetFollowedUsersOK) ToJSONString() string

type GetFollowedUsersParams

type GetFollowedUsersParams struct {

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

	*/
	Namespace string
	/*Limit
	  number of user per page

	*/
	Limit *int64
	/*Offset
	  the offset number to retrieve

	*/
	Offset *int64

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetFollowedUsersParams contains all the parameters to send to the API endpoint for the get followed users operation typically these are written to a http.Request

func NewGetFollowedUsersParams

func NewGetFollowedUsersParams() *GetFollowedUsersParams

NewGetFollowedUsersParams creates a new GetFollowedUsersParams object with the default values initialized.

func NewGetFollowedUsersParamsWithContext

func NewGetFollowedUsersParamsWithContext(ctx context.Context) *GetFollowedUsersParams

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

func NewGetFollowedUsersParamsWithHTTPClient

func NewGetFollowedUsersParamsWithHTTPClient(client *http.Client) *GetFollowedUsersParams

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

func NewGetFollowedUsersParamsWithTimeout

func NewGetFollowedUsersParamsWithTimeout(timeout time.Duration) *GetFollowedUsersParams

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

func (*GetFollowedUsersParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get followed users params

func (*GetFollowedUsersParams) SetContext

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

SetContext adds the context to the get followed users params

func (*GetFollowedUsersParams) SetFlightId

func (o *GetFollowedUsersParams) SetFlightId(flightId string)

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

func (*GetFollowedUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get followed users params

func (*GetFollowedUsersParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get followed users params

func (*GetFollowedUsersParams) SetLimit

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

SetLimit adds the limit to the get followed users params

func (*GetFollowedUsersParams) SetNamespace

func (o *GetFollowedUsersParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get followed users params

func (*GetFollowedUsersParams) SetOffset

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

SetOffset adds the offset to the get followed users params

func (*GetFollowedUsersParams) SetTimeout

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

SetTimeout adds the timeout to the get followed users params

func (*GetFollowedUsersParams) WithContext

WithContext adds the context to the get followed users params

func (*GetFollowedUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get followed users params

func (*GetFollowedUsersParams) WithLimit

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

WithLimit adds the limit to the get followed users params

func (*GetFollowedUsersParams) WithNamespace

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

WithNamespace adds the namespace to the get followed users params

func (*GetFollowedUsersParams) WithOffset

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

WithOffset adds the offset to the get followed users params

func (*GetFollowedUsersParams) WithTimeout

WithTimeout adds the timeout to the get followed users params

func (*GetFollowedUsersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFollowedUsersReader

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

GetFollowedUsersReader is a Reader for the GetFollowedUsers structure.

func (*GetFollowedUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFollowedUsersUnauthorized

type GetFollowedUsersUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetFollowedUsersUnauthorized 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 NewGetFollowedUsersUnauthorized

func NewGetFollowedUsersUnauthorized() *GetFollowedUsersUnauthorized

NewGetFollowedUsersUnauthorized creates a GetFollowedUsersUnauthorized with default headers values

func (*GetFollowedUsersUnauthorized) Error

func (*GetFollowedUsersUnauthorized) GetPayload

func (*GetFollowedUsersUnauthorized) ToJSONString

func (o *GetFollowedUsersUnauthorized) ToJSONString() string

type GetPublicFollowersBadRequest

type GetPublicFollowersBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

GetPublicFollowersBadRequest handles this case with default header values.

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

func NewGetPublicFollowersBadRequest

func NewGetPublicFollowersBadRequest() *GetPublicFollowersBadRequest

NewGetPublicFollowersBadRequest creates a GetPublicFollowersBadRequest with default headers values

func (*GetPublicFollowersBadRequest) Error

func (*GetPublicFollowersBadRequest) GetPayload

func (*GetPublicFollowersBadRequest) ToJSONString

func (o *GetPublicFollowersBadRequest) ToJSONString() string

type GetPublicFollowersInternalServerError

type GetPublicFollowersInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetPublicFollowersInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771303</td><td>Unable to get creators: database error</td></tr></table>

func NewGetPublicFollowersInternalServerError

func NewGetPublicFollowersInternalServerError() *GetPublicFollowersInternalServerError

NewGetPublicFollowersInternalServerError creates a GetPublicFollowersInternalServerError with default headers values

func (*GetPublicFollowersInternalServerError) Error

func (*GetPublicFollowersInternalServerError) GetPayload

func (*GetPublicFollowersInternalServerError) ToJSONString

type GetPublicFollowersOK

type GetPublicFollowersOK struct {
	Payload *ugcclientmodels.ModelsPaginatedCreatorOverviewResponse
}

GetPublicFollowersOK handles this case with default header values.

Get list of followers

func NewGetPublicFollowersOK

func NewGetPublicFollowersOK() *GetPublicFollowersOK

NewGetPublicFollowersOK creates a GetPublicFollowersOK with default headers values

func (*GetPublicFollowersOK) Error

func (o *GetPublicFollowersOK) Error() string

func (*GetPublicFollowersOK) GetPayload

func (*GetPublicFollowersOK) ToJSONString

func (o *GetPublicFollowersOK) ToJSONString() string

type GetPublicFollowersParams

type GetPublicFollowersParams struct {

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

	*/
	Namespace string
	/*UserID
	  user ID

	*/
	UserID string
	/*Limit
	  number of user per page

	*/
	Limit *int64
	/*Offset
	  the offset number to retrieve

	*/
	Offset *int64

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetPublicFollowersParams contains all the parameters to send to the API endpoint for the get public followers operation typically these are written to a http.Request

func NewGetPublicFollowersParams

func NewGetPublicFollowersParams() *GetPublicFollowersParams

NewGetPublicFollowersParams creates a new GetPublicFollowersParams object with the default values initialized.

func NewGetPublicFollowersParamsWithContext

func NewGetPublicFollowersParamsWithContext(ctx context.Context) *GetPublicFollowersParams

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

func NewGetPublicFollowersParamsWithHTTPClient

func NewGetPublicFollowersParamsWithHTTPClient(client *http.Client) *GetPublicFollowersParams

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

func NewGetPublicFollowersParamsWithTimeout

func NewGetPublicFollowersParamsWithTimeout(timeout time.Duration) *GetPublicFollowersParams

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

func (*GetPublicFollowersParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get public followers params

func (*GetPublicFollowersParams) SetContext

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

SetContext adds the context to the get public followers params

func (*GetPublicFollowersParams) SetFlightId

func (o *GetPublicFollowersParams) SetFlightId(flightId string)

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

func (*GetPublicFollowersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get public followers params

func (*GetPublicFollowersParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get public followers params

func (*GetPublicFollowersParams) SetLimit

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

SetLimit adds the limit to the get public followers params

func (*GetPublicFollowersParams) SetNamespace

func (o *GetPublicFollowersParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get public followers params

func (*GetPublicFollowersParams) SetOffset

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

SetOffset adds the offset to the get public followers params

func (*GetPublicFollowersParams) SetTimeout

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

SetTimeout adds the timeout to the get public followers params

func (*GetPublicFollowersParams) SetUserID

func (o *GetPublicFollowersParams) SetUserID(userID string)

SetUserID adds the userId to the get public followers params

func (*GetPublicFollowersParams) WithContext

WithContext adds the context to the get public followers params

func (*GetPublicFollowersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get public followers params

func (*GetPublicFollowersParams) WithLimit

WithLimit adds the limit to the get public followers params

func (*GetPublicFollowersParams) WithNamespace

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

WithNamespace adds the namespace to the get public followers params

func (*GetPublicFollowersParams) WithOffset

WithOffset adds the offset to the get public followers params

func (*GetPublicFollowersParams) WithTimeout

WithTimeout adds the timeout to the get public followers params

func (*GetPublicFollowersParams) WithUserID

WithUserID adds the userID to the get public followers params

func (*GetPublicFollowersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicFollowersReader

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

GetPublicFollowersReader is a Reader for the GetPublicFollowers structure.

func (*GetPublicFollowersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicFollowersUnauthorized

type GetPublicFollowersUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetPublicFollowersUnauthorized 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 NewGetPublicFollowersUnauthorized

func NewGetPublicFollowersUnauthorized() *GetPublicFollowersUnauthorized

NewGetPublicFollowersUnauthorized creates a GetPublicFollowersUnauthorized with default headers values

func (*GetPublicFollowersUnauthorized) Error

func (*GetPublicFollowersUnauthorized) GetPayload

func (*GetPublicFollowersUnauthorized) ToJSONString

func (o *GetPublicFollowersUnauthorized) ToJSONString() string

type GetPublicFollowingBadRequest

type GetPublicFollowingBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

GetPublicFollowingBadRequest handles this case with default header values.

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

func NewGetPublicFollowingBadRequest

func NewGetPublicFollowingBadRequest() *GetPublicFollowingBadRequest

NewGetPublicFollowingBadRequest creates a GetPublicFollowingBadRequest with default headers values

func (*GetPublicFollowingBadRequest) Error

func (*GetPublicFollowingBadRequest) GetPayload

func (*GetPublicFollowingBadRequest) ToJSONString

func (o *GetPublicFollowingBadRequest) ToJSONString() string

type GetPublicFollowingInternalServerError

type GetPublicFollowingInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetPublicFollowingInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771303</td><td>Unable to get creators: database error</td></tr></table>

func NewGetPublicFollowingInternalServerError

func NewGetPublicFollowingInternalServerError() *GetPublicFollowingInternalServerError

NewGetPublicFollowingInternalServerError creates a GetPublicFollowingInternalServerError with default headers values

func (*GetPublicFollowingInternalServerError) Error

func (*GetPublicFollowingInternalServerError) GetPayload

func (*GetPublicFollowingInternalServerError) ToJSONString

type GetPublicFollowingOK

type GetPublicFollowingOK struct {
	Payload *ugcclientmodels.ModelsPaginatedCreatorOverviewResponse
}

GetPublicFollowingOK handles this case with default header values.

Get list of following

func NewGetPublicFollowingOK

func NewGetPublicFollowingOK() *GetPublicFollowingOK

NewGetPublicFollowingOK creates a GetPublicFollowingOK with default headers values

func (*GetPublicFollowingOK) Error

func (o *GetPublicFollowingOK) Error() string

func (*GetPublicFollowingOK) GetPayload

func (*GetPublicFollowingOK) ToJSONString

func (o *GetPublicFollowingOK) ToJSONString() string

type GetPublicFollowingParams

type GetPublicFollowingParams struct {

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

	*/
	Namespace string
	/*UserID
	  user ID

	*/
	UserID string
	/*Limit
	  number of user per page

	*/
	Limit *int64
	/*Offset
	  the offset number to retrieve

	*/
	Offset *int64

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetPublicFollowingParams contains all the parameters to send to the API endpoint for the get public following operation typically these are written to a http.Request

func NewGetPublicFollowingParams

func NewGetPublicFollowingParams() *GetPublicFollowingParams

NewGetPublicFollowingParams creates a new GetPublicFollowingParams object with the default values initialized.

func NewGetPublicFollowingParamsWithContext

func NewGetPublicFollowingParamsWithContext(ctx context.Context) *GetPublicFollowingParams

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

func NewGetPublicFollowingParamsWithHTTPClient

func NewGetPublicFollowingParamsWithHTTPClient(client *http.Client) *GetPublicFollowingParams

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

func NewGetPublicFollowingParamsWithTimeout

func NewGetPublicFollowingParamsWithTimeout(timeout time.Duration) *GetPublicFollowingParams

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

func (*GetPublicFollowingParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get public following params

func (*GetPublicFollowingParams) SetContext

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

SetContext adds the context to the get public following params

func (*GetPublicFollowingParams) SetFlightId

func (o *GetPublicFollowingParams) SetFlightId(flightId string)

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

func (*GetPublicFollowingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get public following params

func (*GetPublicFollowingParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get public following params

func (*GetPublicFollowingParams) SetLimit

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

SetLimit adds the limit to the get public following params

func (*GetPublicFollowingParams) SetNamespace

func (o *GetPublicFollowingParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get public following params

func (*GetPublicFollowingParams) SetOffset

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

SetOffset adds the offset to the get public following params

func (*GetPublicFollowingParams) SetTimeout

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

SetTimeout adds the timeout to the get public following params

func (*GetPublicFollowingParams) SetUserID

func (o *GetPublicFollowingParams) SetUserID(userID string)

SetUserID adds the userId to the get public following params

func (*GetPublicFollowingParams) WithContext

WithContext adds the context to the get public following params

func (*GetPublicFollowingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get public following params

func (*GetPublicFollowingParams) WithLimit

WithLimit adds the limit to the get public following params

func (*GetPublicFollowingParams) WithNamespace

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

WithNamespace adds the namespace to the get public following params

func (*GetPublicFollowingParams) WithOffset

WithOffset adds the offset to the get public following params

func (*GetPublicFollowingParams) WithTimeout

WithTimeout adds the timeout to the get public following params

func (*GetPublicFollowingParams) WithUserID

WithUserID adds the userID to the get public following params

func (*GetPublicFollowingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicFollowingReader

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

GetPublicFollowingReader is a Reader for the GetPublicFollowing structure.

func (*GetPublicFollowingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicFollowingUnauthorized

type GetPublicFollowingUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetPublicFollowingUnauthorized 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 NewGetPublicFollowingUnauthorized

func NewGetPublicFollowingUnauthorized() *GetPublicFollowingUnauthorized

NewGetPublicFollowingUnauthorized creates a GetPublicFollowingUnauthorized with default headers values

func (*GetPublicFollowingUnauthorized) Error

func (*GetPublicFollowingUnauthorized) GetPayload

func (*GetPublicFollowingUnauthorized) ToJSONString

func (o *GetPublicFollowingUnauthorized) ToJSONString() string

type UpdateUserFollowStatusBadRequest

type UpdateUserFollowStatusBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateUserFollowStatusBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771200</td><td>Malformed request</td></tr></table>

func NewUpdateUserFollowStatusBadRequest

func NewUpdateUserFollowStatusBadRequest() *UpdateUserFollowStatusBadRequest

NewUpdateUserFollowStatusBadRequest creates a UpdateUserFollowStatusBadRequest with default headers values

func (*UpdateUserFollowStatusBadRequest) Error

func (*UpdateUserFollowStatusBadRequest) GetPayload

func (*UpdateUserFollowStatusBadRequest) ToJSONString

func (o *UpdateUserFollowStatusBadRequest) ToJSONString() string

type UpdateUserFollowStatusInternalServerError

type UpdateUserFollowStatusInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateUserFollowStatusInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771201</td><td>Unable to update follow status: database error</td></tr></table>

func NewUpdateUserFollowStatusInternalServerError

func NewUpdateUserFollowStatusInternalServerError() *UpdateUserFollowStatusInternalServerError

NewUpdateUserFollowStatusInternalServerError creates a UpdateUserFollowStatusInternalServerError with default headers values

func (*UpdateUserFollowStatusInternalServerError) Error

func (*UpdateUserFollowStatusInternalServerError) GetPayload

func (*UpdateUserFollowStatusInternalServerError) ToJSONString

type UpdateUserFollowStatusOK

type UpdateUserFollowStatusOK struct {
	Payload *ugcclientmodels.ModelsUserFollowResponse
}

UpdateUserFollowStatusOK handles this case with default header values.

update status follow/unfollow status to a user

func NewUpdateUserFollowStatusOK

func NewUpdateUserFollowStatusOK() *UpdateUserFollowStatusOK

NewUpdateUserFollowStatusOK creates a UpdateUserFollowStatusOK with default headers values

func (*UpdateUserFollowStatusOK) Error

func (o *UpdateUserFollowStatusOK) Error() string

func (*UpdateUserFollowStatusOK) GetPayload

func (*UpdateUserFollowStatusOK) ToJSONString

func (o *UpdateUserFollowStatusOK) ToJSONString() string

type UpdateUserFollowStatusParams

type UpdateUserFollowStatusParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *ugcclientmodels.ModelsUserFollowRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*UserID
	  user ID to be followed

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

UpdateUserFollowStatusParams contains all the parameters to send to the API endpoint for the update user follow status operation typically these are written to a http.Request

func NewUpdateUserFollowStatusParams

func NewUpdateUserFollowStatusParams() *UpdateUserFollowStatusParams

NewUpdateUserFollowStatusParams creates a new UpdateUserFollowStatusParams object with the default values initialized.

func NewUpdateUserFollowStatusParamsWithContext

func NewUpdateUserFollowStatusParamsWithContext(ctx context.Context) *UpdateUserFollowStatusParams

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

func NewUpdateUserFollowStatusParamsWithHTTPClient

func NewUpdateUserFollowStatusParamsWithHTTPClient(client *http.Client) *UpdateUserFollowStatusParams

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

func NewUpdateUserFollowStatusParamsWithTimeout

func NewUpdateUserFollowStatusParamsWithTimeout(timeout time.Duration) *UpdateUserFollowStatusParams

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

func (*UpdateUserFollowStatusParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update user follow status params

func (*UpdateUserFollowStatusParams) SetBody

SetBody adds the body to the update user follow status params

func (*UpdateUserFollowStatusParams) SetContext

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

SetContext adds the context to the update user follow status params

func (*UpdateUserFollowStatusParams) SetFlightId

func (o *UpdateUserFollowStatusParams) SetFlightId(flightId string)

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

func (*UpdateUserFollowStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user follow status params

func (*UpdateUserFollowStatusParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update user follow status params

func (*UpdateUserFollowStatusParams) SetNamespace

func (o *UpdateUserFollowStatusParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update user follow status params

func (*UpdateUserFollowStatusParams) SetTimeout

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

SetTimeout adds the timeout to the update user follow status params

func (*UpdateUserFollowStatusParams) SetUserID

func (o *UpdateUserFollowStatusParams) SetUserID(userID string)

SetUserID adds the userId to the update user follow status params

func (*UpdateUserFollowStatusParams) WithBody

WithBody adds the body to the update user follow status params

func (*UpdateUserFollowStatusParams) WithContext

WithContext adds the context to the update user follow status params

func (*UpdateUserFollowStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update user follow status params

func (*UpdateUserFollowStatusParams) WithNamespace

WithNamespace adds the namespace to the update user follow status params

func (*UpdateUserFollowStatusParams) WithTimeout

WithTimeout adds the timeout to the update user follow status params

func (*UpdateUserFollowStatusParams) WithUserID

WithUserID adds the userID to the update user follow status params

func (*UpdateUserFollowStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserFollowStatusReader

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

UpdateUserFollowStatusReader is a Reader for the UpdateUserFollowStatus structure.

func (*UpdateUserFollowStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserFollowStatusUnauthorized

type UpdateUserFollowStatusUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

UpdateUserFollowStatusUnauthorized 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 NewUpdateUserFollowStatusUnauthorized

func NewUpdateUserFollowStatusUnauthorized() *UpdateUserFollowStatusUnauthorized

NewUpdateUserFollowStatusUnauthorized creates a UpdateUserFollowStatusUnauthorized with default headers values

func (*UpdateUserFollowStatusUnauthorized) Error

func (*UpdateUserFollowStatusUnauthorized) GetPayload

func (*UpdateUserFollowStatusUnauthorized) ToJSONString

func (o *UpdateUserFollowStatusUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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