friends

package
v0.0.0-...-f573b6e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFriendsWithoutConfirmationBadRequest

type AddFriendsWithoutConfirmationBadRequest struct {
	Payload *lobbyclientmodels.RestapiErrorResponseV1
}

AddFriendsWithoutConfirmationBadRequest handles this case with default header values.

Bad request

func NewAddFriendsWithoutConfirmationBadRequest

func NewAddFriendsWithoutConfirmationBadRequest() *AddFriendsWithoutConfirmationBadRequest

NewAddFriendsWithoutConfirmationBadRequest creates a AddFriendsWithoutConfirmationBadRequest with default headers values

func (*AddFriendsWithoutConfirmationBadRequest) Error

func (*AddFriendsWithoutConfirmationBadRequest) GetPayload

type AddFriendsWithoutConfirmationForbidden

type AddFriendsWithoutConfirmationForbidden struct {
	Payload *lobbyclientmodels.RestapiErrorResponseV1
}

AddFriendsWithoutConfirmationForbidden handles this case with default header values.

Bad request

func NewAddFriendsWithoutConfirmationForbidden

func NewAddFriendsWithoutConfirmationForbidden() *AddFriendsWithoutConfirmationForbidden

NewAddFriendsWithoutConfirmationForbidden creates a AddFriendsWithoutConfirmationForbidden with default headers values

func (*AddFriendsWithoutConfirmationForbidden) Error

func (*AddFriendsWithoutConfirmationForbidden) GetPayload

type AddFriendsWithoutConfirmationInternalServerError

type AddFriendsWithoutConfirmationInternalServerError struct {
	Payload *lobbyclientmodels.RestapiErrorResponseV1
}

AddFriendsWithoutConfirmationInternalServerError handles this case with default header values.

Internal server error

func NewAddFriendsWithoutConfirmationInternalServerError

func NewAddFriendsWithoutConfirmationInternalServerError() *AddFriendsWithoutConfirmationInternalServerError

NewAddFriendsWithoutConfirmationInternalServerError creates a AddFriendsWithoutConfirmationInternalServerError with default headers values

func (*AddFriendsWithoutConfirmationInternalServerError) Error

func (*AddFriendsWithoutConfirmationInternalServerError) GetPayload

type AddFriendsWithoutConfirmationNoContent

type AddFriendsWithoutConfirmationNoContent struct {
}

AddFriendsWithoutConfirmationNoContent handles this case with default header values.

Friend added successfully

func NewAddFriendsWithoutConfirmationNoContent

func NewAddFriendsWithoutConfirmationNoContent() *AddFriendsWithoutConfirmationNoContent

NewAddFriendsWithoutConfirmationNoContent creates a AddFriendsWithoutConfirmationNoContent with default headers values

func (*AddFriendsWithoutConfirmationNoContent) Error

type AddFriendsWithoutConfirmationParams

type AddFriendsWithoutConfirmationParams struct {

	/*Body
	  friends request content

	*/
	Body *lobbyclientmodels.ModelBulkAddFriendsRequest
	/*Namespace
	  namespace

	*/
	Namespace string
	/*UserID
	  user ID

	*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddFriendsWithoutConfirmationParams contains all the parameters to send to the API endpoint for the add friends without confirmation operation typically these are written to a http.Request

func NewAddFriendsWithoutConfirmationParams

func NewAddFriendsWithoutConfirmationParams() *AddFriendsWithoutConfirmationParams

NewAddFriendsWithoutConfirmationParams creates a new AddFriendsWithoutConfirmationParams object with the default values initialized.

func NewAddFriendsWithoutConfirmationParamsWithContext

func NewAddFriendsWithoutConfirmationParamsWithContext(ctx context.Context) *AddFriendsWithoutConfirmationParams

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

func NewAddFriendsWithoutConfirmationParamsWithHTTPClient

func NewAddFriendsWithoutConfirmationParamsWithHTTPClient(client *http.Client) *AddFriendsWithoutConfirmationParams

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

func NewAddFriendsWithoutConfirmationParamsWithTimeout

func NewAddFriendsWithoutConfirmationParamsWithTimeout(timeout time.Duration) *AddFriendsWithoutConfirmationParams

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

func (*AddFriendsWithoutConfirmationParams) SetBody

SetBody adds the body to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) SetContext

SetContext adds the context to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) SetNamespace

func (o *AddFriendsWithoutConfirmationParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) SetTimeout

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

SetTimeout adds the timeout to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) SetUserID

func (o *AddFriendsWithoutConfirmationParams) SetUserID(userID string)

SetUserID adds the userId to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) WithBody

WithBody adds the body to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) WithContext

WithContext adds the context to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) WithNamespace

WithNamespace adds the namespace to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) WithTimeout

WithTimeout adds the timeout to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) WithUserID

WithUserID adds the userID to the add friends without confirmation params

func (*AddFriendsWithoutConfirmationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddFriendsWithoutConfirmationReader

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

AddFriendsWithoutConfirmationReader is a Reader for the AddFriendsWithoutConfirmation structure.

func (*AddFriendsWithoutConfirmationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddFriendsWithoutConfirmationUnauthorized

type AddFriendsWithoutConfirmationUnauthorized struct {
	Payload *lobbyclientmodels.RestapiErrorResponseV1
}

AddFriendsWithoutConfirmationUnauthorized handles this case with default header values.

Forbidden

func NewAddFriendsWithoutConfirmationUnauthorized

func NewAddFriendsWithoutConfirmationUnauthorized() *AddFriendsWithoutConfirmationUnauthorized

NewAddFriendsWithoutConfirmationUnauthorized creates a AddFriendsWithoutConfirmationUnauthorized with default headers values

func (*AddFriendsWithoutConfirmationUnauthorized) Error

func (*AddFriendsWithoutConfirmationUnauthorized) GetPayload

type Client

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

Client for friends API

func (*Client) AddFriendsWithoutConfirmation

  AddFriendsWithoutConfirmation adds friends without confirmation

  Required permission : <code>NAMESPACE:{namespace}:USER:{userId}:FRIENDS [CREATE]</code> with scope <code>social</code>
			<br>friends request in a namespace.

func (*Client) GetListOfFriends

GetListOfFriends gets list of friends

Required permission : <code>NAMESPACE:{namespace}:USER:{userId}:FRIENDS [READ]</code> with scope <code>social</code>

<br>get list of friends in a namespace.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetListOfFriendsBadRequest

type GetListOfFriendsBadRequest struct {
	Payload *lobbyclientmodels.RestapiErrorResponseBody
}

GetListOfFriendsBadRequest handles this case with default header values.

Bad request

func NewGetListOfFriendsBadRequest

func NewGetListOfFriendsBadRequest() *GetListOfFriendsBadRequest

NewGetListOfFriendsBadRequest creates a GetListOfFriendsBadRequest with default headers values

func (*GetListOfFriendsBadRequest) Error

func (*GetListOfFriendsBadRequest) GetPayload

type GetListOfFriendsForbidden

type GetListOfFriendsForbidden struct {
	Payload *lobbyclientmodels.RestapiErrorResponseBody
}

GetListOfFriendsForbidden handles this case with default header values.

Bad request

func NewGetListOfFriendsForbidden

func NewGetListOfFriendsForbidden() *GetListOfFriendsForbidden

NewGetListOfFriendsForbidden creates a GetListOfFriendsForbidden with default headers values

func (*GetListOfFriendsForbidden) Error

func (o *GetListOfFriendsForbidden) Error() string

func (*GetListOfFriendsForbidden) GetPayload

type GetListOfFriendsInternalServerError

type GetListOfFriendsInternalServerError struct {
	Payload *lobbyclientmodels.RestapiErrorResponseBody
}

GetListOfFriendsInternalServerError handles this case with default header values.

Internal server error

func NewGetListOfFriendsInternalServerError

func NewGetListOfFriendsInternalServerError() *GetListOfFriendsInternalServerError

NewGetListOfFriendsInternalServerError creates a GetListOfFriendsInternalServerError with default headers values

func (*GetListOfFriendsInternalServerError) Error

func (*GetListOfFriendsInternalServerError) GetPayload

type GetListOfFriendsOK

type GetListOfFriendsOK struct {
	Payload *lobbyclientmodels.ModelGetFriendsResponse
}

GetListOfFriendsOK handles this case with default header values.

Friends retrieved successfully

func NewGetListOfFriendsOK

func NewGetListOfFriendsOK() *GetListOfFriendsOK

NewGetListOfFriendsOK creates a GetListOfFriendsOK with default headers values

func (*GetListOfFriendsOK) Error

func (o *GetListOfFriendsOK) Error() string

func (*GetListOfFriendsOK) GetPayload

type GetListOfFriendsParams

type GetListOfFriendsParams struct {

	/*Limit
	  maximum number of data

	*/
	Limit *string
	/*Namespace
	  namespace

	*/
	Namespace string
	/*Offset
	  numbers of row to skip within the result

	*/
	Offset *string
	/*UserID
	  user ID

	*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetListOfFriendsParams contains all the parameters to send to the API endpoint for the get list of friends operation typically these are written to a http.Request

func NewGetListOfFriendsParams

func NewGetListOfFriendsParams() *GetListOfFriendsParams

NewGetListOfFriendsParams creates a new GetListOfFriendsParams object with the default values initialized.

func NewGetListOfFriendsParamsWithContext

func NewGetListOfFriendsParamsWithContext(ctx context.Context) *GetListOfFriendsParams

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

func NewGetListOfFriendsParamsWithHTTPClient

func NewGetListOfFriendsParamsWithHTTPClient(client *http.Client) *GetListOfFriendsParams

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

func NewGetListOfFriendsParamsWithTimeout

func NewGetListOfFriendsParamsWithTimeout(timeout time.Duration) *GetListOfFriendsParams

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

func (*GetListOfFriendsParams) SetContext

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

SetContext adds the context to the get list of friends params

func (*GetListOfFriendsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get list of friends params

func (*GetListOfFriendsParams) SetLimit

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

SetLimit adds the limit to the get list of friends params

func (*GetListOfFriendsParams) SetNamespace

func (o *GetListOfFriendsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get list of friends params

func (*GetListOfFriendsParams) SetOffset

func (o *GetListOfFriendsParams) SetOffset(offset *string)

SetOffset adds the offset to the get list of friends params

func (*GetListOfFriendsParams) SetTimeout

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

SetTimeout adds the timeout to the get list of friends params

func (*GetListOfFriendsParams) SetUserID

func (o *GetListOfFriendsParams) SetUserID(userID string)

SetUserID adds the userId to the get list of friends params

func (*GetListOfFriendsParams) WithContext

WithContext adds the context to the get list of friends params

func (*GetListOfFriendsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get list of friends params

func (*GetListOfFriendsParams) WithLimit

WithLimit adds the limit to the get list of friends params

func (*GetListOfFriendsParams) WithNamespace

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

WithNamespace adds the namespace to the get list of friends params

func (*GetListOfFriendsParams) WithOffset

func (o *GetListOfFriendsParams) WithOffset(offset *string) *GetListOfFriendsParams

WithOffset adds the offset to the get list of friends params

func (*GetListOfFriendsParams) WithTimeout

WithTimeout adds the timeout to the get list of friends params

func (*GetListOfFriendsParams) WithUserID

func (o *GetListOfFriendsParams) WithUserID(userID string) *GetListOfFriendsParams

WithUserID adds the userID to the get list of friends params

func (*GetListOfFriendsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetListOfFriendsReader

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

GetListOfFriendsReader is a Reader for the GetListOfFriends structure.

func (*GetListOfFriendsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetListOfFriendsUnauthorized

type GetListOfFriendsUnauthorized struct {
	Payload *lobbyclientmodels.RestapiErrorResponseBody
}

GetListOfFriendsUnauthorized handles this case with default header values.

Forbidden

func NewGetListOfFriendsUnauthorized

func NewGetListOfFriendsUnauthorized() *GetListOfFriendsUnauthorized

NewGetListOfFriendsUnauthorized creates a GetListOfFriendsUnauthorized with default headers values

func (*GetListOfFriendsUnauthorized) Error

func (*GetListOfFriendsUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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