custom_emojis

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 10 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 custom emojis API

func (*Client) CustomEmojisGet

func (a *Client) CustomEmojisGet(params *CustomEmojisGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomEmojisGetOK, error)

CustomEmojisGet gets an array of custom emojis available on the instance

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CustomEmojisGet(params *CustomEmojisGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomEmojisGetOK, 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 custom emojis API client.

type CustomEmojisGetInternalServerError

type CustomEmojisGetInternalServerError struct {
}

CustomEmojisGetInternalServerError describes a response with status code 500, with default header values.

internal server error

func NewCustomEmojisGetInternalServerError

func NewCustomEmojisGetInternalServerError() *CustomEmojisGetInternalServerError

NewCustomEmojisGetInternalServerError creates a CustomEmojisGetInternalServerError with default headers values

func (*CustomEmojisGetInternalServerError) Code

Code gets the status code for the custom emojis get internal server error response

func (*CustomEmojisGetInternalServerError) Error

func (*CustomEmojisGetInternalServerError) IsClientError

func (o *CustomEmojisGetInternalServerError) IsClientError() bool

IsClientError returns true when this custom emojis get internal server error response has a 4xx status code

func (*CustomEmojisGetInternalServerError) IsCode

IsCode returns true when this custom emojis get internal server error response a status code equal to that given

func (*CustomEmojisGetInternalServerError) IsRedirect

func (o *CustomEmojisGetInternalServerError) IsRedirect() bool

IsRedirect returns true when this custom emojis get internal server error response has a 3xx status code

func (*CustomEmojisGetInternalServerError) IsServerError

func (o *CustomEmojisGetInternalServerError) IsServerError() bool

IsServerError returns true when this custom emojis get internal server error response has a 5xx status code

func (*CustomEmojisGetInternalServerError) IsSuccess

IsSuccess returns true when this custom emojis get internal server error response has a 2xx status code

func (*CustomEmojisGetInternalServerError) String

type CustomEmojisGetNotAcceptable

type CustomEmojisGetNotAcceptable struct {
}

CustomEmojisGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewCustomEmojisGetNotAcceptable

func NewCustomEmojisGetNotAcceptable() *CustomEmojisGetNotAcceptable

NewCustomEmojisGetNotAcceptable creates a CustomEmojisGetNotAcceptable with default headers values

func (*CustomEmojisGetNotAcceptable) Code

Code gets the status code for the custom emojis get not acceptable response

func (*CustomEmojisGetNotAcceptable) Error

func (*CustomEmojisGetNotAcceptable) IsClientError

func (o *CustomEmojisGetNotAcceptable) IsClientError() bool

IsClientError returns true when this custom emojis get not acceptable response has a 4xx status code

func (*CustomEmojisGetNotAcceptable) IsCode

func (o *CustomEmojisGetNotAcceptable) IsCode(code int) bool

IsCode returns true when this custom emojis get not acceptable response a status code equal to that given

func (*CustomEmojisGetNotAcceptable) IsRedirect

func (o *CustomEmojisGetNotAcceptable) IsRedirect() bool

IsRedirect returns true when this custom emojis get not acceptable response has a 3xx status code

func (*CustomEmojisGetNotAcceptable) IsServerError

func (o *CustomEmojisGetNotAcceptable) IsServerError() bool

IsServerError returns true when this custom emojis get not acceptable response has a 5xx status code

func (*CustomEmojisGetNotAcceptable) IsSuccess

func (o *CustomEmojisGetNotAcceptable) IsSuccess() bool

IsSuccess returns true when this custom emojis get not acceptable response has a 2xx status code

func (*CustomEmojisGetNotAcceptable) String

type CustomEmojisGetOK

type CustomEmojisGetOK struct {
	Payload []*models.Emoji
}

CustomEmojisGetOK describes a response with status code 200, with default header values.

Array of custom emojis.

func NewCustomEmojisGetOK

func NewCustomEmojisGetOK() *CustomEmojisGetOK

NewCustomEmojisGetOK creates a CustomEmojisGetOK with default headers values

func (*CustomEmojisGetOK) Code

func (o *CustomEmojisGetOK) Code() int

Code gets the status code for the custom emojis get o k response

func (*CustomEmojisGetOK) Error

func (o *CustomEmojisGetOK) Error() string

func (*CustomEmojisGetOK) GetPayload

func (o *CustomEmojisGetOK) GetPayload() []*models.Emoji

func (*CustomEmojisGetOK) IsClientError

func (o *CustomEmojisGetOK) IsClientError() bool

IsClientError returns true when this custom emojis get o k response has a 4xx status code

func (*CustomEmojisGetOK) IsCode

func (o *CustomEmojisGetOK) IsCode(code int) bool

IsCode returns true when this custom emojis get o k response a status code equal to that given

func (*CustomEmojisGetOK) IsRedirect

func (o *CustomEmojisGetOK) IsRedirect() bool

IsRedirect returns true when this custom emojis get o k response has a 3xx status code

func (*CustomEmojisGetOK) IsServerError

func (o *CustomEmojisGetOK) IsServerError() bool

IsServerError returns true when this custom emojis get o k response has a 5xx status code

func (*CustomEmojisGetOK) IsSuccess

func (o *CustomEmojisGetOK) IsSuccess() bool

IsSuccess returns true when this custom emojis get o k response has a 2xx status code

func (*CustomEmojisGetOK) String

func (o *CustomEmojisGetOK) String() string

type CustomEmojisGetParams

type CustomEmojisGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CustomEmojisGetParams contains all the parameters to send to the API endpoint

for the custom emojis get operation.

Typically these are written to a http.Request.

func NewCustomEmojisGetParams

func NewCustomEmojisGetParams() *CustomEmojisGetParams

NewCustomEmojisGetParams creates a new CustomEmojisGetParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCustomEmojisGetParamsWithContext

func NewCustomEmojisGetParamsWithContext(ctx context.Context) *CustomEmojisGetParams

NewCustomEmojisGetParamsWithContext creates a new CustomEmojisGetParams object with the ability to set a context for a request.

func NewCustomEmojisGetParamsWithHTTPClient

func NewCustomEmojisGetParamsWithHTTPClient(client *http.Client) *CustomEmojisGetParams

NewCustomEmojisGetParamsWithHTTPClient creates a new CustomEmojisGetParams object with the ability to set a custom HTTPClient for a request.

func NewCustomEmojisGetParamsWithTimeout

func NewCustomEmojisGetParamsWithTimeout(timeout time.Duration) *CustomEmojisGetParams

NewCustomEmojisGetParamsWithTimeout creates a new CustomEmojisGetParams object with the ability to set a timeout on a request.

func (*CustomEmojisGetParams) SetContext

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

SetContext adds the context to the custom emojis get params

func (*CustomEmojisGetParams) SetDefaults

func (o *CustomEmojisGetParams) SetDefaults()

SetDefaults hydrates default values in the custom emojis get params (not the query body).

All values with no default are reset to their zero value.

func (*CustomEmojisGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the custom emojis get params

func (*CustomEmojisGetParams) SetTimeout

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

SetTimeout adds the timeout to the custom emojis get params

func (*CustomEmojisGetParams) WithContext

WithContext adds the context to the custom emojis get params

func (*CustomEmojisGetParams) WithDefaults

func (o *CustomEmojisGetParams) WithDefaults() *CustomEmojisGetParams

WithDefaults hydrates default values in the custom emojis get params (not the query body).

All values with no default are reset to their zero value.

func (*CustomEmojisGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the custom emojis get params

func (*CustomEmojisGetParams) WithTimeout

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

WithTimeout adds the timeout to the custom emojis get params

func (*CustomEmojisGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CustomEmojisGetReader

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

CustomEmojisGetReader is a Reader for the CustomEmojisGet structure.

func (*CustomEmojisGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomEmojisGetUnauthorized

type CustomEmojisGetUnauthorized struct {
}

CustomEmojisGetUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewCustomEmojisGetUnauthorized

func NewCustomEmojisGetUnauthorized() *CustomEmojisGetUnauthorized

NewCustomEmojisGetUnauthorized creates a CustomEmojisGetUnauthorized with default headers values

func (*CustomEmojisGetUnauthorized) Code

func (o *CustomEmojisGetUnauthorized) Code() int

Code gets the status code for the custom emojis get unauthorized response

func (*CustomEmojisGetUnauthorized) Error

func (*CustomEmojisGetUnauthorized) IsClientError

func (o *CustomEmojisGetUnauthorized) IsClientError() bool

IsClientError returns true when this custom emojis get unauthorized response has a 4xx status code

func (*CustomEmojisGetUnauthorized) IsCode

func (o *CustomEmojisGetUnauthorized) IsCode(code int) bool

IsCode returns true when this custom emojis get unauthorized response a status code equal to that given

func (*CustomEmojisGetUnauthorized) IsRedirect

func (o *CustomEmojisGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this custom emojis get unauthorized response has a 3xx status code

func (*CustomEmojisGetUnauthorized) IsServerError

func (o *CustomEmojisGetUnauthorized) IsServerError() bool

IsServerError returns true when this custom emojis get unauthorized response has a 5xx status code

func (*CustomEmojisGetUnauthorized) IsSuccess

func (o *CustomEmojisGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this custom emojis get unauthorized response has a 2xx status code

func (*CustomEmojisGetUnauthorized) String

func (o *CustomEmojisGetUnauthorized) String() string

Jump to

Keyboard shortcuts

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