callbacks

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerCallbackQueryBadRequest

type AnswerCallbackQueryBadRequest struct {
	Payload *models.Error
}

AnswerCallbackQueryBadRequest handles this case with default header values.

Bad Request

func NewAnswerCallbackQueryBadRequest

func NewAnswerCallbackQueryBadRequest() *AnswerCallbackQueryBadRequest

NewAnswerCallbackQueryBadRequest creates a AnswerCallbackQueryBadRequest with default headers values

func (*AnswerCallbackQueryBadRequest) Error

type AnswerCallbackQueryEnhanceYourCalm

type AnswerCallbackQueryEnhanceYourCalm struct {
	Payload *models.Error
}

AnswerCallbackQueryEnhanceYourCalm handles this case with default header values.

Flood

func NewAnswerCallbackQueryEnhanceYourCalm

func NewAnswerCallbackQueryEnhanceYourCalm() *AnswerCallbackQueryEnhanceYourCalm

NewAnswerCallbackQueryEnhanceYourCalm creates a AnswerCallbackQueryEnhanceYourCalm with default headers values

func (*AnswerCallbackQueryEnhanceYourCalm) Error

type AnswerCallbackQueryForbidden

type AnswerCallbackQueryForbidden struct {
	Payload *models.Error
}

AnswerCallbackQueryForbidden handles this case with default header values.

Forbidden

func NewAnswerCallbackQueryForbidden

func NewAnswerCallbackQueryForbidden() *AnswerCallbackQueryForbidden

NewAnswerCallbackQueryForbidden creates a AnswerCallbackQueryForbidden with default headers values

func (*AnswerCallbackQueryForbidden) Error

type AnswerCallbackQueryInternalServerError

type AnswerCallbackQueryInternalServerError struct {
	Payload *models.Error
}

AnswerCallbackQueryInternalServerError handles this case with default header values.

Internal

func NewAnswerCallbackQueryInternalServerError

func NewAnswerCallbackQueryInternalServerError() *AnswerCallbackQueryInternalServerError

NewAnswerCallbackQueryInternalServerError creates a AnswerCallbackQueryInternalServerError with default headers values

func (*AnswerCallbackQueryInternalServerError) Error

type AnswerCallbackQueryNotFound

type AnswerCallbackQueryNotFound struct {
	Payload *models.Error
}

AnswerCallbackQueryNotFound handles this case with default header values.

Not Found

func NewAnswerCallbackQueryNotFound

func NewAnswerCallbackQueryNotFound() *AnswerCallbackQueryNotFound

NewAnswerCallbackQueryNotFound creates a AnswerCallbackQueryNotFound with default headers values

func (*AnswerCallbackQueryNotFound) Error

type AnswerCallbackQueryOK

type AnswerCallbackQueryOK struct {
	Payload *models.ResponseBool
}

AnswerCallbackQueryOK handles this case with default header values.

AnswerCallbackQueryOK answer callback query o k

func NewAnswerCallbackQueryOK

func NewAnswerCallbackQueryOK() *AnswerCallbackQueryOK

NewAnswerCallbackQueryOK creates a AnswerCallbackQueryOK with default headers values

func (*AnswerCallbackQueryOK) Error

func (o *AnswerCallbackQueryOK) Error() string

type AnswerCallbackQueryParams

type AnswerCallbackQueryParams struct {

	/*CacheTime*/
	CacheTime int64
	/*CallbackQueryID*/
	CallbackQueryID string
	/*ShowAlert*/
	ShowAlert bool
	/*Text*/
	Text string
	/*Token
	  bot's token to authorize the request

	*/
	Token *string
	/*URL*/
	URL string

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

AnswerCallbackQueryParams contains all the parameters to send to the API endpoint for the answer callback query operation typically these are written to a http.Request

func NewAnswerCallbackQueryParams

func NewAnswerCallbackQueryParams() *AnswerCallbackQueryParams

NewAnswerCallbackQueryParams creates a new AnswerCallbackQueryParams object with the default values initialized.

func NewAnswerCallbackQueryParamsWithContext

func NewAnswerCallbackQueryParamsWithContext(ctx context.Context) *AnswerCallbackQueryParams

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

func NewAnswerCallbackQueryParamsWithHTTPClient

func NewAnswerCallbackQueryParamsWithHTTPClient(client *http.Client) *AnswerCallbackQueryParams

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

func NewAnswerCallbackQueryParamsWithTimeout

func NewAnswerCallbackQueryParamsWithTimeout(timeout time.Duration) *AnswerCallbackQueryParams

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

func (*AnswerCallbackQueryParams) SetCacheTime

func (o *AnswerCallbackQueryParams) SetCacheTime(cacheTime int64)

SetCacheTime adds the cacheTime to the answer callback query params

func (*AnswerCallbackQueryParams) SetCallbackQueryID

func (o *AnswerCallbackQueryParams) SetCallbackQueryID(callbackQueryID string)

SetCallbackQueryID adds the callbackQueryId to the answer callback query params

func (*AnswerCallbackQueryParams) SetContext

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

SetContext adds the context to the answer callback query params

func (*AnswerCallbackQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the answer callback query params

func (*AnswerCallbackQueryParams) SetShowAlert

func (o *AnswerCallbackQueryParams) SetShowAlert(showAlert bool)

SetShowAlert adds the showAlert to the answer callback query params

func (*AnswerCallbackQueryParams) SetText

func (o *AnswerCallbackQueryParams) SetText(text string)

SetText adds the text to the answer callback query params

func (*AnswerCallbackQueryParams) SetTimeout

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

SetTimeout adds the timeout to the answer callback query params

func (*AnswerCallbackQueryParams) SetToken

func (o *AnswerCallbackQueryParams) SetToken(token *string)

SetToken adds the token to the answer callback query params

func (*AnswerCallbackQueryParams) SetURL

func (o *AnswerCallbackQueryParams) SetURL(url string)

SetURL adds the url to the answer callback query params

func (*AnswerCallbackQueryParams) WithCacheTime

func (o *AnswerCallbackQueryParams) WithCacheTime(cacheTime int64) *AnswerCallbackQueryParams

WithCacheTime adds the cacheTime to the answer callback query params

func (*AnswerCallbackQueryParams) WithCallbackQueryID

func (o *AnswerCallbackQueryParams) WithCallbackQueryID(callbackQueryID string) *AnswerCallbackQueryParams

WithCallbackQueryID adds the callbackQueryID to the answer callback query params

func (*AnswerCallbackQueryParams) WithContext

WithContext adds the context to the answer callback query params

func (*AnswerCallbackQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the answer callback query params

func (*AnswerCallbackQueryParams) WithShowAlert

func (o *AnswerCallbackQueryParams) WithShowAlert(showAlert bool) *AnswerCallbackQueryParams

WithShowAlert adds the showAlert to the answer callback query params

func (*AnswerCallbackQueryParams) WithText

WithText adds the text to the answer callback query params

func (*AnswerCallbackQueryParams) WithTimeout

WithTimeout adds the timeout to the answer callback query params

func (*AnswerCallbackQueryParams) WithToken

WithToken adds the token to the answer callback query params

func (*AnswerCallbackQueryParams) WithURL

WithURL adds the url to the answer callback query params

func (*AnswerCallbackQueryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AnswerCallbackQueryReader

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

AnswerCallbackQueryReader is a Reader for the AnswerCallbackQuery structure.

func (*AnswerCallbackQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AnswerCallbackQueryUnauthorized

type AnswerCallbackQueryUnauthorized struct {
	Payload *models.Error
}

AnswerCallbackQueryUnauthorized handles this case with default header values.

Unauthorized

func NewAnswerCallbackQueryUnauthorized

func NewAnswerCallbackQueryUnauthorized() *AnswerCallbackQueryUnauthorized

NewAnswerCallbackQueryUnauthorized creates a AnswerCallbackQueryUnauthorized with default headers values

func (*AnswerCallbackQueryUnauthorized) Error

type Client

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

Client for callbacks API

func New

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

New creates a new callbacks API client.

func (*Client) AnswerCallbackQuery

func (a *Client) AnswerCallbackQuery(params *AnswerCallbackQueryParams) (*AnswerCallbackQueryOK, error)

AnswerCallbackQuery answer callback query API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

Jump to

Keyboard shortcuts

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