users

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: 12 Imported by: 1

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

func New

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

New creates a new users API client.

func (*Client) GetMe

func (a *Client) GetMe(params *GetMeParams) (*GetMeOK, error)

GetMe get me API

func (*Client) GetUserProfilePhotos

func (a *Client) GetUserProfilePhotos(params *GetUserProfilePhotosParams) (*GetUserProfilePhotosOK, error)

GetUserProfilePhotos get user profile photos API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetMeBadRequest

type GetMeBadRequest struct {
	Payload *models.Error
}

GetMeBadRequest handles this case with default header values.

Bad Request

func NewGetMeBadRequest

func NewGetMeBadRequest() *GetMeBadRequest

NewGetMeBadRequest creates a GetMeBadRequest with default headers values

func (*GetMeBadRequest) Error

func (o *GetMeBadRequest) Error() string

type GetMeEnhanceYourCalm

type GetMeEnhanceYourCalm struct {
	Payload *models.Error
}

GetMeEnhanceYourCalm handles this case with default header values.

Flood

func NewGetMeEnhanceYourCalm

func NewGetMeEnhanceYourCalm() *GetMeEnhanceYourCalm

NewGetMeEnhanceYourCalm creates a GetMeEnhanceYourCalm with default headers values

func (*GetMeEnhanceYourCalm) Error

func (o *GetMeEnhanceYourCalm) Error() string

type GetMeForbidden

type GetMeForbidden struct {
	Payload *models.Error
}

GetMeForbidden handles this case with default header values.

Forbidden

func NewGetMeForbidden

func NewGetMeForbidden() *GetMeForbidden

NewGetMeForbidden creates a GetMeForbidden with default headers values

func (*GetMeForbidden) Error

func (o *GetMeForbidden) Error() string

type GetMeInternalServerError

type GetMeInternalServerError struct {
	Payload *models.Error
}

GetMeInternalServerError handles this case with default header values.

Internal

func NewGetMeInternalServerError

func NewGetMeInternalServerError() *GetMeInternalServerError

NewGetMeInternalServerError creates a GetMeInternalServerError with default headers values

func (*GetMeInternalServerError) Error

func (o *GetMeInternalServerError) Error() string

type GetMeNotFound

type GetMeNotFound struct {
	Payload *models.Error
}

GetMeNotFound handles this case with default header values.

Not Found

func NewGetMeNotFound

func NewGetMeNotFound() *GetMeNotFound

NewGetMeNotFound creates a GetMeNotFound with default headers values

func (*GetMeNotFound) Error

func (o *GetMeNotFound) Error() string

type GetMeOK

type GetMeOK struct {
	Payload GetMeOKBody
}

GetMeOK handles this case with default header values.

GetMeOK get me o k

func NewGetMeOK

func NewGetMeOK() *GetMeOK

NewGetMeOK creates a GetMeOK with default headers values

func (*GetMeOK) Error

func (o *GetMeOK) Error() string

type GetMeOKBody

type GetMeOKBody struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// error code
	// Required: true
	ErrorCode *int64 `json:"error_code"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// result
	// Required: true
	Result *models.User `json:"result"`
}

GetMeOKBody get me o k body swagger:model GetMeOKBody

func (*GetMeOKBody) MarshalBinary

func (o *GetMeOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMeOKBody) UnmarshalBinary

func (o *GetMeOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMeOKBody) Validate

func (o *GetMeOKBody) Validate(formats strfmt.Registry) error

Validate validates this get me o k body

type GetMeParams

type GetMeParams struct {

	/*Token
	  bot's token to authorize the request

	*/
	Token *string

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

GetMeParams contains all the parameters to send to the API endpoint for the get me operation typically these are written to a http.Request

func NewGetMeParams

func NewGetMeParams() *GetMeParams

NewGetMeParams creates a new GetMeParams object with the default values initialized.

func NewGetMeParamsWithContext

func NewGetMeParamsWithContext(ctx context.Context) *GetMeParams

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

func NewGetMeParamsWithHTTPClient

func NewGetMeParamsWithHTTPClient(client *http.Client) *GetMeParams

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

func NewGetMeParamsWithTimeout

func NewGetMeParamsWithTimeout(timeout time.Duration) *GetMeParams

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

func (*GetMeParams) SetContext

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

SetContext adds the context to the get me params

func (*GetMeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get me params

func (*GetMeParams) SetTimeout

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

SetTimeout adds the timeout to the get me params

func (*GetMeParams) SetToken

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

SetToken adds the token to the get me params

func (*GetMeParams) WithContext

func (o *GetMeParams) WithContext(ctx context.Context) *GetMeParams

WithContext adds the context to the get me params

func (*GetMeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get me params

func (*GetMeParams) WithTimeout

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

WithTimeout adds the timeout to the get me params

func (*GetMeParams) WithToken

func (o *GetMeParams) WithToken(token *string) *GetMeParams

WithToken adds the token to the get me params

func (*GetMeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMeReader

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

GetMeReader is a Reader for the GetMe structure.

func (*GetMeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMeUnauthorized

type GetMeUnauthorized struct {
	Payload *models.Error
}

GetMeUnauthorized handles this case with default header values.

Unauthorized

func NewGetMeUnauthorized

func NewGetMeUnauthorized() *GetMeUnauthorized

NewGetMeUnauthorized creates a GetMeUnauthorized with default headers values

func (*GetMeUnauthorized) Error

func (o *GetMeUnauthorized) Error() string

type GetUserProfilePhotosBadRequest

type GetUserProfilePhotosBadRequest struct {
	Payload *models.Error
}

GetUserProfilePhotosBadRequest handles this case with default header values.

Bad Request

func NewGetUserProfilePhotosBadRequest

func NewGetUserProfilePhotosBadRequest() *GetUserProfilePhotosBadRequest

NewGetUserProfilePhotosBadRequest creates a GetUserProfilePhotosBadRequest with default headers values

func (*GetUserProfilePhotosBadRequest) Error

type GetUserProfilePhotosEnhanceYourCalm

type GetUserProfilePhotosEnhanceYourCalm struct {
	Payload *models.Error
}

GetUserProfilePhotosEnhanceYourCalm handles this case with default header values.

Flood

func NewGetUserProfilePhotosEnhanceYourCalm

func NewGetUserProfilePhotosEnhanceYourCalm() *GetUserProfilePhotosEnhanceYourCalm

NewGetUserProfilePhotosEnhanceYourCalm creates a GetUserProfilePhotosEnhanceYourCalm with default headers values

func (*GetUserProfilePhotosEnhanceYourCalm) Error

type GetUserProfilePhotosForbidden

type GetUserProfilePhotosForbidden struct {
	Payload *models.Error
}

GetUserProfilePhotosForbidden handles this case with default header values.

Forbidden

func NewGetUserProfilePhotosForbidden

func NewGetUserProfilePhotosForbidden() *GetUserProfilePhotosForbidden

NewGetUserProfilePhotosForbidden creates a GetUserProfilePhotosForbidden with default headers values

func (*GetUserProfilePhotosForbidden) Error

type GetUserProfilePhotosInternalServerError

type GetUserProfilePhotosInternalServerError struct {
	Payload *models.Error
}

GetUserProfilePhotosInternalServerError handles this case with default header values.

Internal

func NewGetUserProfilePhotosInternalServerError

func NewGetUserProfilePhotosInternalServerError() *GetUserProfilePhotosInternalServerError

NewGetUserProfilePhotosInternalServerError creates a GetUserProfilePhotosInternalServerError with default headers values

func (*GetUserProfilePhotosInternalServerError) Error

type GetUserProfilePhotosNotFound

type GetUserProfilePhotosNotFound struct {
	Payload *models.Error
}

GetUserProfilePhotosNotFound handles this case with default header values.

Not Found

func NewGetUserProfilePhotosNotFound

func NewGetUserProfilePhotosNotFound() *GetUserProfilePhotosNotFound

NewGetUserProfilePhotosNotFound creates a GetUserProfilePhotosNotFound with default headers values

func (*GetUserProfilePhotosNotFound) Error

type GetUserProfilePhotosOK

type GetUserProfilePhotosOK struct {
	Payload GetUserProfilePhotosOKBody
}

GetUserProfilePhotosOK handles this case with default header values.

GetUserProfilePhotosOK get user profile photos o k

func NewGetUserProfilePhotosOK

func NewGetUserProfilePhotosOK() *GetUserProfilePhotosOK

NewGetUserProfilePhotosOK creates a GetUserProfilePhotosOK with default headers values

func (*GetUserProfilePhotosOK) Error

func (o *GetUserProfilePhotosOK) Error() string

type GetUserProfilePhotosOKBody

type GetUserProfilePhotosOKBody struct {

	// description
	// Required: true
	Description *string `json:"description"`

	// error code
	// Required: true
	ErrorCode *int64 `json:"error_code"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// result
	// Required: true
	Result *models.UserProfilePhotos `json:"result"`
}

GetUserProfilePhotosOKBody get user profile photos o k body swagger:model GetUserProfilePhotosOKBody

func (*GetUserProfilePhotosOKBody) MarshalBinary

func (o *GetUserProfilePhotosOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetUserProfilePhotosOKBody) UnmarshalBinary

func (o *GetUserProfilePhotosOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetUserProfilePhotosOKBody) Validate

func (o *GetUserProfilePhotosOKBody) Validate(formats strfmt.Registry) error

Validate validates this get user profile photos o k body

type GetUserProfilePhotosParams

type GetUserProfilePhotosParams struct {

	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64
	/*Token
	  bot's token to authorize the request

	*/
	Token *string
	/*UserID*/
	UserID int64

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

GetUserProfilePhotosParams contains all the parameters to send to the API endpoint for the get user profile photos operation typically these are written to a http.Request

func NewGetUserProfilePhotosParams

func NewGetUserProfilePhotosParams() *GetUserProfilePhotosParams

NewGetUserProfilePhotosParams creates a new GetUserProfilePhotosParams object with the default values initialized.

func NewGetUserProfilePhotosParamsWithContext

func NewGetUserProfilePhotosParamsWithContext(ctx context.Context) *GetUserProfilePhotosParams

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

func NewGetUserProfilePhotosParamsWithHTTPClient

func NewGetUserProfilePhotosParamsWithHTTPClient(client *http.Client) *GetUserProfilePhotosParams

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

func NewGetUserProfilePhotosParamsWithTimeout

func NewGetUserProfilePhotosParamsWithTimeout(timeout time.Duration) *GetUserProfilePhotosParams

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

func (*GetUserProfilePhotosParams) SetContext

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

SetContext adds the context to the get user profile photos params

func (*GetUserProfilePhotosParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user profile photos params

func (*GetUserProfilePhotosParams) SetLimit

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

SetLimit adds the limit to the get user profile photos params

func (*GetUserProfilePhotosParams) SetOffset

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

SetOffset adds the offset to the get user profile photos params

func (*GetUserProfilePhotosParams) SetTimeout

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

SetTimeout adds the timeout to the get user profile photos params

func (*GetUserProfilePhotosParams) SetToken

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

SetToken adds the token to the get user profile photos params

func (*GetUserProfilePhotosParams) SetUserID

func (o *GetUserProfilePhotosParams) SetUserID(userID int64)

SetUserID adds the userId to the get user profile photos params

func (*GetUserProfilePhotosParams) WithContext

WithContext adds the context to the get user profile photos params

func (*GetUserProfilePhotosParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user profile photos params

func (*GetUserProfilePhotosParams) WithLimit

WithLimit adds the limit to the get user profile photos params

func (*GetUserProfilePhotosParams) WithOffset

WithOffset adds the offset to the get user profile photos params

func (*GetUserProfilePhotosParams) WithTimeout

WithTimeout adds the timeout to the get user profile photos params

func (*GetUserProfilePhotosParams) WithToken

WithToken adds the token to the get user profile photos params

func (*GetUserProfilePhotosParams) WithUserID

WithUserID adds the userID to the get user profile photos params

func (*GetUserProfilePhotosParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserProfilePhotosReader

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

GetUserProfilePhotosReader is a Reader for the GetUserProfilePhotos structure.

func (*GetUserProfilePhotosReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserProfilePhotosUnauthorized

type GetUserProfilePhotosUnauthorized struct {
	Payload *models.Error
}

GetUserProfilePhotosUnauthorized handles this case with default header values.

Unauthorized

func NewGetUserProfilePhotosUnauthorized

func NewGetUserProfilePhotosUnauthorized() *GetUserProfilePhotosUnauthorized

NewGetUserProfilePhotosUnauthorized creates a GetUserProfilePhotosUnauthorized with default headers values

func (*GetUserProfilePhotosUnauthorized) Error

Jump to

Keyboard shortcuts

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