follow_requests

package
v0.0.0-...-6bd88e3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: AGPL-3.0-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeFollowRequestBadRequest

type AuthorizeFollowRequestBadRequest struct {
}

AuthorizeFollowRequestBadRequest describes a response with status code 400, with default header values.

bad request

func NewAuthorizeFollowRequestBadRequest

func NewAuthorizeFollowRequestBadRequest() *AuthorizeFollowRequestBadRequest

NewAuthorizeFollowRequestBadRequest creates a AuthorizeFollowRequestBadRequest with default headers values

func (*AuthorizeFollowRequestBadRequest) Code

Code gets the status code for the authorize follow request bad request response

func (*AuthorizeFollowRequestBadRequest) Error

func (*AuthorizeFollowRequestBadRequest) IsClientError

func (o *AuthorizeFollowRequestBadRequest) IsClientError() bool

IsClientError returns true when this authorize follow request bad request response has a 4xx status code

func (*AuthorizeFollowRequestBadRequest) IsCode

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

IsCode returns true when this authorize follow request bad request response a status code equal to that given

func (*AuthorizeFollowRequestBadRequest) IsRedirect

func (o *AuthorizeFollowRequestBadRequest) IsRedirect() bool

IsRedirect returns true when this authorize follow request bad request response has a 3xx status code

func (*AuthorizeFollowRequestBadRequest) IsServerError

func (o *AuthorizeFollowRequestBadRequest) IsServerError() bool

IsServerError returns true when this authorize follow request bad request response has a 5xx status code

func (*AuthorizeFollowRequestBadRequest) IsSuccess

func (o *AuthorizeFollowRequestBadRequest) IsSuccess() bool

IsSuccess returns true when this authorize follow request bad request response has a 2xx status code

func (*AuthorizeFollowRequestBadRequest) String

type AuthorizeFollowRequestInternalServerError

type AuthorizeFollowRequestInternalServerError struct {
}

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

internal server error

func NewAuthorizeFollowRequestInternalServerError

func NewAuthorizeFollowRequestInternalServerError() *AuthorizeFollowRequestInternalServerError

NewAuthorizeFollowRequestInternalServerError creates a AuthorizeFollowRequestInternalServerError with default headers values

func (*AuthorizeFollowRequestInternalServerError) Code

Code gets the status code for the authorize follow request internal server error response

func (*AuthorizeFollowRequestInternalServerError) Error

func (*AuthorizeFollowRequestInternalServerError) IsClientError

IsClientError returns true when this authorize follow request internal server error response has a 4xx status code

func (*AuthorizeFollowRequestInternalServerError) IsCode

IsCode returns true when this authorize follow request internal server error response a status code equal to that given

func (*AuthorizeFollowRequestInternalServerError) IsRedirect

IsRedirect returns true when this authorize follow request internal server error response has a 3xx status code

func (*AuthorizeFollowRequestInternalServerError) IsServerError

IsServerError returns true when this authorize follow request internal server error response has a 5xx status code

func (*AuthorizeFollowRequestInternalServerError) IsSuccess

IsSuccess returns true when this authorize follow request internal server error response has a 2xx status code

func (*AuthorizeFollowRequestInternalServerError) String

type AuthorizeFollowRequestNotAcceptable

type AuthorizeFollowRequestNotAcceptable struct {
}

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

not acceptable

func NewAuthorizeFollowRequestNotAcceptable

func NewAuthorizeFollowRequestNotAcceptable() *AuthorizeFollowRequestNotAcceptable

NewAuthorizeFollowRequestNotAcceptable creates a AuthorizeFollowRequestNotAcceptable with default headers values

func (*AuthorizeFollowRequestNotAcceptable) Code

Code gets the status code for the authorize follow request not acceptable response

func (*AuthorizeFollowRequestNotAcceptable) Error

func (*AuthorizeFollowRequestNotAcceptable) IsClientError

func (o *AuthorizeFollowRequestNotAcceptable) IsClientError() bool

IsClientError returns true when this authorize follow request not acceptable response has a 4xx status code

func (*AuthorizeFollowRequestNotAcceptable) IsCode

IsCode returns true when this authorize follow request not acceptable response a status code equal to that given

func (*AuthorizeFollowRequestNotAcceptable) IsRedirect

func (o *AuthorizeFollowRequestNotAcceptable) IsRedirect() bool

IsRedirect returns true when this authorize follow request not acceptable response has a 3xx status code

func (*AuthorizeFollowRequestNotAcceptable) IsServerError

func (o *AuthorizeFollowRequestNotAcceptable) IsServerError() bool

IsServerError returns true when this authorize follow request not acceptable response has a 5xx status code

func (*AuthorizeFollowRequestNotAcceptable) IsSuccess

IsSuccess returns true when this authorize follow request not acceptable response has a 2xx status code

func (*AuthorizeFollowRequestNotAcceptable) String

type AuthorizeFollowRequestNotFound

type AuthorizeFollowRequestNotFound struct {
}

AuthorizeFollowRequestNotFound describes a response with status code 404, with default header values.

not found

func NewAuthorizeFollowRequestNotFound

func NewAuthorizeFollowRequestNotFound() *AuthorizeFollowRequestNotFound

NewAuthorizeFollowRequestNotFound creates a AuthorizeFollowRequestNotFound with default headers values

func (*AuthorizeFollowRequestNotFound) Code

Code gets the status code for the authorize follow request not found response

func (*AuthorizeFollowRequestNotFound) Error

func (*AuthorizeFollowRequestNotFound) IsClientError

func (o *AuthorizeFollowRequestNotFound) IsClientError() bool

IsClientError returns true when this authorize follow request not found response has a 4xx status code

func (*AuthorizeFollowRequestNotFound) IsCode

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

IsCode returns true when this authorize follow request not found response a status code equal to that given

func (*AuthorizeFollowRequestNotFound) IsRedirect

func (o *AuthorizeFollowRequestNotFound) IsRedirect() bool

IsRedirect returns true when this authorize follow request not found response has a 3xx status code

func (*AuthorizeFollowRequestNotFound) IsServerError

func (o *AuthorizeFollowRequestNotFound) IsServerError() bool

IsServerError returns true when this authorize follow request not found response has a 5xx status code

func (*AuthorizeFollowRequestNotFound) IsSuccess

func (o *AuthorizeFollowRequestNotFound) IsSuccess() bool

IsSuccess returns true when this authorize follow request not found response has a 2xx status code

func (*AuthorizeFollowRequestNotFound) String

type AuthorizeFollowRequestOK

type AuthorizeFollowRequestOK struct {
	Payload *models.Relationship
}

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

Your relationship to this account.

func NewAuthorizeFollowRequestOK

func NewAuthorizeFollowRequestOK() *AuthorizeFollowRequestOK

NewAuthorizeFollowRequestOK creates a AuthorizeFollowRequestOK with default headers values

func (*AuthorizeFollowRequestOK) Code

func (o *AuthorizeFollowRequestOK) Code() int

Code gets the status code for the authorize follow request o k response

func (*AuthorizeFollowRequestOK) Error

func (o *AuthorizeFollowRequestOK) Error() string

func (*AuthorizeFollowRequestOK) GetPayload

func (o *AuthorizeFollowRequestOK) GetPayload() *models.Relationship

func (*AuthorizeFollowRequestOK) IsClientError

func (o *AuthorizeFollowRequestOK) IsClientError() bool

IsClientError returns true when this authorize follow request o k response has a 4xx status code

func (*AuthorizeFollowRequestOK) IsCode

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

IsCode returns true when this authorize follow request o k response a status code equal to that given

func (*AuthorizeFollowRequestOK) IsRedirect

func (o *AuthorizeFollowRequestOK) IsRedirect() bool

IsRedirect returns true when this authorize follow request o k response has a 3xx status code

func (*AuthorizeFollowRequestOK) IsServerError

func (o *AuthorizeFollowRequestOK) IsServerError() bool

IsServerError returns true when this authorize follow request o k response has a 5xx status code

func (*AuthorizeFollowRequestOK) IsSuccess

func (o *AuthorizeFollowRequestOK) IsSuccess() bool

IsSuccess returns true when this authorize follow request o k response has a 2xx status code

func (*AuthorizeFollowRequestOK) String

func (o *AuthorizeFollowRequestOK) String() string

type AuthorizeFollowRequestParams

type AuthorizeFollowRequestParams struct {

	/* AccountID.

	   ID of the account requesting to follow you.
	*/
	AccountID string

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

AuthorizeFollowRequestParams contains all the parameters to send to the API endpoint

for the authorize follow request operation.

Typically these are written to a http.Request.

func NewAuthorizeFollowRequestParams

func NewAuthorizeFollowRequestParams() *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParams creates a new AuthorizeFollowRequestParams 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 NewAuthorizeFollowRequestParamsWithContext

func NewAuthorizeFollowRequestParamsWithContext(ctx context.Context) *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParamsWithContext creates a new AuthorizeFollowRequestParams object with the ability to set a context for a request.

func NewAuthorizeFollowRequestParamsWithHTTPClient

func NewAuthorizeFollowRequestParamsWithHTTPClient(client *http.Client) *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParamsWithHTTPClient creates a new AuthorizeFollowRequestParams object with the ability to set a custom HTTPClient for a request.

func NewAuthorizeFollowRequestParamsWithTimeout

func NewAuthorizeFollowRequestParamsWithTimeout(timeout time.Duration) *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParamsWithTimeout creates a new AuthorizeFollowRequestParams object with the ability to set a timeout on a request.

func (*AuthorizeFollowRequestParams) SetAccountID

func (o *AuthorizeFollowRequestParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the authorize follow request params

func (*AuthorizeFollowRequestParams) SetContext

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

SetContext adds the context to the authorize follow request params

func (*AuthorizeFollowRequestParams) SetDefaults

func (o *AuthorizeFollowRequestParams) SetDefaults()

SetDefaults hydrates default values in the authorize follow request params (not the query body).

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

func (*AuthorizeFollowRequestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the authorize follow request params

func (*AuthorizeFollowRequestParams) SetTimeout

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

SetTimeout adds the timeout to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithAccountID

WithAccountID adds the accountID to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithContext

WithContext adds the context to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithDefaults

WithDefaults hydrates default values in the authorize follow request params (not the query body).

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

func (*AuthorizeFollowRequestParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithTimeout

WithTimeout adds the timeout to the authorize follow request params

func (*AuthorizeFollowRequestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuthorizeFollowRequestReader

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

AuthorizeFollowRequestReader is a Reader for the AuthorizeFollowRequest structure.

func (*AuthorizeFollowRequestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AuthorizeFollowRequestUnauthorized

type AuthorizeFollowRequestUnauthorized struct {
}

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

unauthorized

func NewAuthorizeFollowRequestUnauthorized

func NewAuthorizeFollowRequestUnauthorized() *AuthorizeFollowRequestUnauthorized

NewAuthorizeFollowRequestUnauthorized creates a AuthorizeFollowRequestUnauthorized with default headers values

func (*AuthorizeFollowRequestUnauthorized) Code

Code gets the status code for the authorize follow request unauthorized response

func (*AuthorizeFollowRequestUnauthorized) Error

func (*AuthorizeFollowRequestUnauthorized) IsClientError

func (o *AuthorizeFollowRequestUnauthorized) IsClientError() bool

IsClientError returns true when this authorize follow request unauthorized response has a 4xx status code

func (*AuthorizeFollowRequestUnauthorized) IsCode

IsCode returns true when this authorize follow request unauthorized response a status code equal to that given

func (*AuthorizeFollowRequestUnauthorized) IsRedirect

func (o *AuthorizeFollowRequestUnauthorized) IsRedirect() bool

IsRedirect returns true when this authorize follow request unauthorized response has a 3xx status code

func (*AuthorizeFollowRequestUnauthorized) IsServerError

func (o *AuthorizeFollowRequestUnauthorized) IsServerError() bool

IsServerError returns true when this authorize follow request unauthorized response has a 5xx status code

func (*AuthorizeFollowRequestUnauthorized) IsSuccess

IsSuccess returns true when this authorize follow request unauthorized response has a 2xx status code

func (*AuthorizeFollowRequestUnauthorized) String

type Client

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

Client for follow requests API

func (*Client) AuthorizeFollowRequest

func (a *Client) AuthorizeFollowRequest(params *AuthorizeFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizeFollowRequestOK, error)

AuthorizeFollowRequest accepts authorize follow request from the given account ID

Accept a follow request and put the requesting account in your 'followers' list.

func (*Client) GetFollowRequests

func (a *Client) GetFollowRequests(params *GetFollowRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFollowRequestsOK, error)
GetFollowRequests gets an array of accounts that have requested to follow you

The next and previous queries can be parsed from the returned Link header.

Example:

``` <https://example.org/api/v1/follow_requests?limit=80&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/follow_requests?limit=80&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````

func (*Client) RejectFollowRequest

func (a *Client) RejectFollowRequest(params *RejectFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RejectFollowRequestOK, error)

RejectFollowRequest rejects deny follow request from the given account ID

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	AuthorizeFollowRequest(params *AuthorizeFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizeFollowRequestOK, error)

	GetFollowRequests(params *GetFollowRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFollowRequestsOK, error)

	RejectFollowRequest(params *RejectFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RejectFollowRequestOK, 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 follow requests API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new follow requests API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new follow requests API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetFollowRequestsBadRequest

type GetFollowRequestsBadRequest struct {
}

GetFollowRequestsBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetFollowRequestsBadRequest

func NewGetFollowRequestsBadRequest() *GetFollowRequestsBadRequest

NewGetFollowRequestsBadRequest creates a GetFollowRequestsBadRequest with default headers values

func (*GetFollowRequestsBadRequest) Code

func (o *GetFollowRequestsBadRequest) Code() int

Code gets the status code for the get follow requests bad request response

func (*GetFollowRequestsBadRequest) Error

func (*GetFollowRequestsBadRequest) IsClientError

func (o *GetFollowRequestsBadRequest) IsClientError() bool

IsClientError returns true when this get follow requests bad request response has a 4xx status code

func (*GetFollowRequestsBadRequest) IsCode

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

IsCode returns true when this get follow requests bad request response a status code equal to that given

func (*GetFollowRequestsBadRequest) IsRedirect

func (o *GetFollowRequestsBadRequest) IsRedirect() bool

IsRedirect returns true when this get follow requests bad request response has a 3xx status code

func (*GetFollowRequestsBadRequest) IsServerError

func (o *GetFollowRequestsBadRequest) IsServerError() bool

IsServerError returns true when this get follow requests bad request response has a 5xx status code

func (*GetFollowRequestsBadRequest) IsSuccess

func (o *GetFollowRequestsBadRequest) IsSuccess() bool

IsSuccess returns true when this get follow requests bad request response has a 2xx status code

func (*GetFollowRequestsBadRequest) String

func (o *GetFollowRequestsBadRequest) String() string

type GetFollowRequestsInternalServerError

type GetFollowRequestsInternalServerError struct {
}

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

internal server error

func NewGetFollowRequestsInternalServerError

func NewGetFollowRequestsInternalServerError() *GetFollowRequestsInternalServerError

NewGetFollowRequestsInternalServerError creates a GetFollowRequestsInternalServerError with default headers values

func (*GetFollowRequestsInternalServerError) Code

Code gets the status code for the get follow requests internal server error response

func (*GetFollowRequestsInternalServerError) Error

func (*GetFollowRequestsInternalServerError) IsClientError

func (o *GetFollowRequestsInternalServerError) IsClientError() bool

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

func (*GetFollowRequestsInternalServerError) IsCode

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

func (*GetFollowRequestsInternalServerError) IsRedirect

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

func (*GetFollowRequestsInternalServerError) IsServerError

func (o *GetFollowRequestsInternalServerError) IsServerError() bool

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

func (*GetFollowRequestsInternalServerError) IsSuccess

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

func (*GetFollowRequestsInternalServerError) String

type GetFollowRequestsNotAcceptable

type GetFollowRequestsNotAcceptable struct {
}

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

not acceptable

func NewGetFollowRequestsNotAcceptable

func NewGetFollowRequestsNotAcceptable() *GetFollowRequestsNotAcceptable

NewGetFollowRequestsNotAcceptable creates a GetFollowRequestsNotAcceptable with default headers values

func (*GetFollowRequestsNotAcceptable) Code

Code gets the status code for the get follow requests not acceptable response

func (*GetFollowRequestsNotAcceptable) Error

func (*GetFollowRequestsNotAcceptable) IsClientError

func (o *GetFollowRequestsNotAcceptable) IsClientError() bool

IsClientError returns true when this get follow requests not acceptable response has a 4xx status code

func (*GetFollowRequestsNotAcceptable) IsCode

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

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

func (*GetFollowRequestsNotAcceptable) IsRedirect

func (o *GetFollowRequestsNotAcceptable) IsRedirect() bool

IsRedirect returns true when this get follow requests not acceptable response has a 3xx status code

func (*GetFollowRequestsNotAcceptable) IsServerError

func (o *GetFollowRequestsNotAcceptable) IsServerError() bool

IsServerError returns true when this get follow requests not acceptable response has a 5xx status code

func (*GetFollowRequestsNotAcceptable) IsSuccess

func (o *GetFollowRequestsNotAcceptable) IsSuccess() bool

IsSuccess returns true when this get follow requests not acceptable response has a 2xx status code

func (*GetFollowRequestsNotAcceptable) String

type GetFollowRequestsNotFound

type GetFollowRequestsNotFound struct {
}

GetFollowRequestsNotFound describes a response with status code 404, with default header values.

not found

func NewGetFollowRequestsNotFound

func NewGetFollowRequestsNotFound() *GetFollowRequestsNotFound

NewGetFollowRequestsNotFound creates a GetFollowRequestsNotFound with default headers values

func (*GetFollowRequestsNotFound) Code

func (o *GetFollowRequestsNotFound) Code() int

Code gets the status code for the get follow requests not found response

func (*GetFollowRequestsNotFound) Error

func (o *GetFollowRequestsNotFound) Error() string

func (*GetFollowRequestsNotFound) IsClientError

func (o *GetFollowRequestsNotFound) IsClientError() bool

IsClientError returns true when this get follow requests not found response has a 4xx status code

func (*GetFollowRequestsNotFound) IsCode

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

IsCode returns true when this get follow requests not found response a status code equal to that given

func (*GetFollowRequestsNotFound) IsRedirect

func (o *GetFollowRequestsNotFound) IsRedirect() bool

IsRedirect returns true when this get follow requests not found response has a 3xx status code

func (*GetFollowRequestsNotFound) IsServerError

func (o *GetFollowRequestsNotFound) IsServerError() bool

IsServerError returns true when this get follow requests not found response has a 5xx status code

func (*GetFollowRequestsNotFound) IsSuccess

func (o *GetFollowRequestsNotFound) IsSuccess() bool

IsSuccess returns true when this get follow requests not found response has a 2xx status code

func (*GetFollowRequestsNotFound) String

func (o *GetFollowRequestsNotFound) String() string

type GetFollowRequestsOK

type GetFollowRequestsOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Account
}

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

GetFollowRequestsOK get follow requests o k

func NewGetFollowRequestsOK

func NewGetFollowRequestsOK() *GetFollowRequestsOK

NewGetFollowRequestsOK creates a GetFollowRequestsOK with default headers values

func (*GetFollowRequestsOK) Code

func (o *GetFollowRequestsOK) Code() int

Code gets the status code for the get follow requests o k response

func (*GetFollowRequestsOK) Error

func (o *GetFollowRequestsOK) Error() string

func (*GetFollowRequestsOK) GetPayload

func (o *GetFollowRequestsOK) GetPayload() []*models.Account

func (*GetFollowRequestsOK) IsClientError

func (o *GetFollowRequestsOK) IsClientError() bool

IsClientError returns true when this get follow requests o k response has a 4xx status code

func (*GetFollowRequestsOK) IsCode

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

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

func (*GetFollowRequestsOK) IsRedirect

func (o *GetFollowRequestsOK) IsRedirect() bool

IsRedirect returns true when this get follow requests o k response has a 3xx status code

func (*GetFollowRequestsOK) IsServerError

func (o *GetFollowRequestsOK) IsServerError() bool

IsServerError returns true when this get follow requests o k response has a 5xx status code

func (*GetFollowRequestsOK) IsSuccess

func (o *GetFollowRequestsOK) IsSuccess() bool

IsSuccess returns true when this get follow requests o k response has a 2xx status code

func (*GetFollowRequestsOK) String

func (o *GetFollowRequestsOK) String() string

type GetFollowRequestsParams

type GetFollowRequestsParams struct {

	/* Limit.

	   Number of follow requesting accounts to return.

	   Default: 40
	*/
	Limit *int64

	/* MaxID.

	   Return only follow requesting accounts *OLDER* than the given max ID. The follow requester with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	MaxID *string

	/* MinID.

	   Return only follow requesting accounts *IMMEDIATELY NEWER* than the given min ID. The follow requester with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	MinID *string

	/* SinceID.

	   Return only follow requesting accounts *NEWER* than the given since ID. The follow requester with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	SinceID *string

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

GetFollowRequestsParams contains all the parameters to send to the API endpoint

for the get follow requests operation.

Typically these are written to a http.Request.

func NewGetFollowRequestsParams

func NewGetFollowRequestsParams() *GetFollowRequestsParams

NewGetFollowRequestsParams creates a new GetFollowRequestsParams 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 NewGetFollowRequestsParamsWithContext

func NewGetFollowRequestsParamsWithContext(ctx context.Context) *GetFollowRequestsParams

NewGetFollowRequestsParamsWithContext creates a new GetFollowRequestsParams object with the ability to set a context for a request.

func NewGetFollowRequestsParamsWithHTTPClient

func NewGetFollowRequestsParamsWithHTTPClient(client *http.Client) *GetFollowRequestsParams

NewGetFollowRequestsParamsWithHTTPClient creates a new GetFollowRequestsParams object with the ability to set a custom HTTPClient for a request.

func NewGetFollowRequestsParamsWithTimeout

func NewGetFollowRequestsParamsWithTimeout(timeout time.Duration) *GetFollowRequestsParams

NewGetFollowRequestsParamsWithTimeout creates a new GetFollowRequestsParams object with the ability to set a timeout on a request.

func (*GetFollowRequestsParams) SetContext

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

SetContext adds the context to the get follow requests params

func (*GetFollowRequestsParams) SetDefaults

func (o *GetFollowRequestsParams) SetDefaults()

SetDefaults hydrates default values in the get follow requests params (not the query body).

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

func (*GetFollowRequestsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get follow requests params

func (*GetFollowRequestsParams) SetLimit

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

SetLimit adds the limit to the get follow requests params

func (*GetFollowRequestsParams) SetMaxID

func (o *GetFollowRequestsParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the get follow requests params

func (*GetFollowRequestsParams) SetMinID

func (o *GetFollowRequestsParams) SetMinID(minID *string)

SetMinID adds the minId to the get follow requests params

func (*GetFollowRequestsParams) SetSinceID

func (o *GetFollowRequestsParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the get follow requests params

func (*GetFollowRequestsParams) SetTimeout

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

SetTimeout adds the timeout to the get follow requests params

func (*GetFollowRequestsParams) WithContext

WithContext adds the context to the get follow requests params

func (*GetFollowRequestsParams) WithDefaults

WithDefaults hydrates default values in the get follow requests params (not the query body).

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

func (*GetFollowRequestsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get follow requests params

func (*GetFollowRequestsParams) WithLimit

WithLimit adds the limit to the get follow requests params

func (*GetFollowRequestsParams) WithMaxID

WithMaxID adds the maxID to the get follow requests params

func (*GetFollowRequestsParams) WithMinID

WithMinID adds the minID to the get follow requests params

func (*GetFollowRequestsParams) WithSinceID

func (o *GetFollowRequestsParams) WithSinceID(sinceID *string) *GetFollowRequestsParams

WithSinceID adds the sinceID to the get follow requests params

func (*GetFollowRequestsParams) WithTimeout

WithTimeout adds the timeout to the get follow requests params

func (*GetFollowRequestsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFollowRequestsReader

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

GetFollowRequestsReader is a Reader for the GetFollowRequests structure.

func (*GetFollowRequestsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFollowRequestsUnauthorized

type GetFollowRequestsUnauthorized struct {
}

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

unauthorized

func NewGetFollowRequestsUnauthorized

func NewGetFollowRequestsUnauthorized() *GetFollowRequestsUnauthorized

NewGetFollowRequestsUnauthorized creates a GetFollowRequestsUnauthorized with default headers values

func (*GetFollowRequestsUnauthorized) Code

Code gets the status code for the get follow requests unauthorized response

func (*GetFollowRequestsUnauthorized) Error

func (*GetFollowRequestsUnauthorized) IsClientError

func (o *GetFollowRequestsUnauthorized) IsClientError() bool

IsClientError returns true when this get follow requests unauthorized response has a 4xx status code

func (*GetFollowRequestsUnauthorized) IsCode

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

IsCode returns true when this get follow requests unauthorized response a status code equal to that given

func (*GetFollowRequestsUnauthorized) IsRedirect

func (o *GetFollowRequestsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get follow requests unauthorized response has a 3xx status code

func (*GetFollowRequestsUnauthorized) IsServerError

func (o *GetFollowRequestsUnauthorized) IsServerError() bool

IsServerError returns true when this get follow requests unauthorized response has a 5xx status code

func (*GetFollowRequestsUnauthorized) IsSuccess

func (o *GetFollowRequestsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get follow requests unauthorized response has a 2xx status code

func (*GetFollowRequestsUnauthorized) String

type RejectFollowRequestBadRequest

type RejectFollowRequestBadRequest struct {
}

RejectFollowRequestBadRequest describes a response with status code 400, with default header values.

bad request

func NewRejectFollowRequestBadRequest

func NewRejectFollowRequestBadRequest() *RejectFollowRequestBadRequest

NewRejectFollowRequestBadRequest creates a RejectFollowRequestBadRequest with default headers values

func (*RejectFollowRequestBadRequest) Code

Code gets the status code for the reject follow request bad request response

func (*RejectFollowRequestBadRequest) Error

func (*RejectFollowRequestBadRequest) IsClientError

func (o *RejectFollowRequestBadRequest) IsClientError() bool

IsClientError returns true when this reject follow request bad request response has a 4xx status code

func (*RejectFollowRequestBadRequest) IsCode

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

IsCode returns true when this reject follow request bad request response a status code equal to that given

func (*RejectFollowRequestBadRequest) IsRedirect

func (o *RejectFollowRequestBadRequest) IsRedirect() bool

IsRedirect returns true when this reject follow request bad request response has a 3xx status code

func (*RejectFollowRequestBadRequest) IsServerError

func (o *RejectFollowRequestBadRequest) IsServerError() bool

IsServerError returns true when this reject follow request bad request response has a 5xx status code

func (*RejectFollowRequestBadRequest) IsSuccess

func (o *RejectFollowRequestBadRequest) IsSuccess() bool

IsSuccess returns true when this reject follow request bad request response has a 2xx status code

func (*RejectFollowRequestBadRequest) String

type RejectFollowRequestInternalServerError

type RejectFollowRequestInternalServerError struct {
}

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

internal server error

func NewRejectFollowRequestInternalServerError

func NewRejectFollowRequestInternalServerError() *RejectFollowRequestInternalServerError

NewRejectFollowRequestInternalServerError creates a RejectFollowRequestInternalServerError with default headers values

func (*RejectFollowRequestInternalServerError) Code

Code gets the status code for the reject follow request internal server error response

func (*RejectFollowRequestInternalServerError) Error

func (*RejectFollowRequestInternalServerError) IsClientError

func (o *RejectFollowRequestInternalServerError) IsClientError() bool

IsClientError returns true when this reject follow request internal server error response has a 4xx status code

func (*RejectFollowRequestInternalServerError) IsCode

IsCode returns true when this reject follow request internal server error response a status code equal to that given

func (*RejectFollowRequestInternalServerError) IsRedirect

IsRedirect returns true when this reject follow request internal server error response has a 3xx status code

func (*RejectFollowRequestInternalServerError) IsServerError

func (o *RejectFollowRequestInternalServerError) IsServerError() bool

IsServerError returns true when this reject follow request internal server error response has a 5xx status code

func (*RejectFollowRequestInternalServerError) IsSuccess

IsSuccess returns true when this reject follow request internal server error response has a 2xx status code

func (*RejectFollowRequestInternalServerError) String

type RejectFollowRequestNotAcceptable

type RejectFollowRequestNotAcceptable struct {
}

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

not acceptable

func NewRejectFollowRequestNotAcceptable

func NewRejectFollowRequestNotAcceptable() *RejectFollowRequestNotAcceptable

NewRejectFollowRequestNotAcceptable creates a RejectFollowRequestNotAcceptable with default headers values

func (*RejectFollowRequestNotAcceptable) Code

Code gets the status code for the reject follow request not acceptable response

func (*RejectFollowRequestNotAcceptable) Error

func (*RejectFollowRequestNotAcceptable) IsClientError

func (o *RejectFollowRequestNotAcceptable) IsClientError() bool

IsClientError returns true when this reject follow request not acceptable response has a 4xx status code

func (*RejectFollowRequestNotAcceptable) IsCode

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

IsCode returns true when this reject follow request not acceptable response a status code equal to that given

func (*RejectFollowRequestNotAcceptable) IsRedirect

func (o *RejectFollowRequestNotAcceptable) IsRedirect() bool

IsRedirect returns true when this reject follow request not acceptable response has a 3xx status code

func (*RejectFollowRequestNotAcceptable) IsServerError

func (o *RejectFollowRequestNotAcceptable) IsServerError() bool

IsServerError returns true when this reject follow request not acceptable response has a 5xx status code

func (*RejectFollowRequestNotAcceptable) IsSuccess

func (o *RejectFollowRequestNotAcceptable) IsSuccess() bool

IsSuccess returns true when this reject follow request not acceptable response has a 2xx status code

func (*RejectFollowRequestNotAcceptable) String

type RejectFollowRequestNotFound

type RejectFollowRequestNotFound struct {
}

RejectFollowRequestNotFound describes a response with status code 404, with default header values.

not found

func NewRejectFollowRequestNotFound

func NewRejectFollowRequestNotFound() *RejectFollowRequestNotFound

NewRejectFollowRequestNotFound creates a RejectFollowRequestNotFound with default headers values

func (*RejectFollowRequestNotFound) Code

func (o *RejectFollowRequestNotFound) Code() int

Code gets the status code for the reject follow request not found response

func (*RejectFollowRequestNotFound) Error

func (*RejectFollowRequestNotFound) IsClientError

func (o *RejectFollowRequestNotFound) IsClientError() bool

IsClientError returns true when this reject follow request not found response has a 4xx status code

func (*RejectFollowRequestNotFound) IsCode

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

IsCode returns true when this reject follow request not found response a status code equal to that given

func (*RejectFollowRequestNotFound) IsRedirect

func (o *RejectFollowRequestNotFound) IsRedirect() bool

IsRedirect returns true when this reject follow request not found response has a 3xx status code

func (*RejectFollowRequestNotFound) IsServerError

func (o *RejectFollowRequestNotFound) IsServerError() bool

IsServerError returns true when this reject follow request not found response has a 5xx status code

func (*RejectFollowRequestNotFound) IsSuccess

func (o *RejectFollowRequestNotFound) IsSuccess() bool

IsSuccess returns true when this reject follow request not found response has a 2xx status code

func (*RejectFollowRequestNotFound) String

func (o *RejectFollowRequestNotFound) String() string

type RejectFollowRequestOK

type RejectFollowRequestOK struct {
	Payload *models.Relationship
}

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

Your relationship to this account.

func NewRejectFollowRequestOK

func NewRejectFollowRequestOK() *RejectFollowRequestOK

NewRejectFollowRequestOK creates a RejectFollowRequestOK with default headers values

func (*RejectFollowRequestOK) Code

func (o *RejectFollowRequestOK) Code() int

Code gets the status code for the reject follow request o k response

func (*RejectFollowRequestOK) Error

func (o *RejectFollowRequestOK) Error() string

func (*RejectFollowRequestOK) GetPayload

func (o *RejectFollowRequestOK) GetPayload() *models.Relationship

func (*RejectFollowRequestOK) IsClientError

func (o *RejectFollowRequestOK) IsClientError() bool

IsClientError returns true when this reject follow request o k response has a 4xx status code

func (*RejectFollowRequestOK) IsCode

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

IsCode returns true when this reject follow request o k response a status code equal to that given

func (*RejectFollowRequestOK) IsRedirect

func (o *RejectFollowRequestOK) IsRedirect() bool

IsRedirect returns true when this reject follow request o k response has a 3xx status code

func (*RejectFollowRequestOK) IsServerError

func (o *RejectFollowRequestOK) IsServerError() bool

IsServerError returns true when this reject follow request o k response has a 5xx status code

func (*RejectFollowRequestOK) IsSuccess

func (o *RejectFollowRequestOK) IsSuccess() bool

IsSuccess returns true when this reject follow request o k response has a 2xx status code

func (*RejectFollowRequestOK) String

func (o *RejectFollowRequestOK) String() string

type RejectFollowRequestParams

type RejectFollowRequestParams struct {

	/* AccountID.

	   ID of the account requesting to follow you.
	*/
	AccountID string

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

RejectFollowRequestParams contains all the parameters to send to the API endpoint

for the reject follow request operation.

Typically these are written to a http.Request.

func NewRejectFollowRequestParams

func NewRejectFollowRequestParams() *RejectFollowRequestParams

NewRejectFollowRequestParams creates a new RejectFollowRequestParams 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 NewRejectFollowRequestParamsWithContext

func NewRejectFollowRequestParamsWithContext(ctx context.Context) *RejectFollowRequestParams

NewRejectFollowRequestParamsWithContext creates a new RejectFollowRequestParams object with the ability to set a context for a request.

func NewRejectFollowRequestParamsWithHTTPClient

func NewRejectFollowRequestParamsWithHTTPClient(client *http.Client) *RejectFollowRequestParams

NewRejectFollowRequestParamsWithHTTPClient creates a new RejectFollowRequestParams object with the ability to set a custom HTTPClient for a request.

func NewRejectFollowRequestParamsWithTimeout

func NewRejectFollowRequestParamsWithTimeout(timeout time.Duration) *RejectFollowRequestParams

NewRejectFollowRequestParamsWithTimeout creates a new RejectFollowRequestParams object with the ability to set a timeout on a request.

func (*RejectFollowRequestParams) SetAccountID

func (o *RejectFollowRequestParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the reject follow request params

func (*RejectFollowRequestParams) SetContext

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

SetContext adds the context to the reject follow request params

func (*RejectFollowRequestParams) SetDefaults

func (o *RejectFollowRequestParams) SetDefaults()

SetDefaults hydrates default values in the reject follow request params (not the query body).

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

func (*RejectFollowRequestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reject follow request params

func (*RejectFollowRequestParams) SetTimeout

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

SetTimeout adds the timeout to the reject follow request params

func (*RejectFollowRequestParams) WithAccountID

func (o *RejectFollowRequestParams) WithAccountID(accountID string) *RejectFollowRequestParams

WithAccountID adds the accountID to the reject follow request params

func (*RejectFollowRequestParams) WithContext

WithContext adds the context to the reject follow request params

func (*RejectFollowRequestParams) WithDefaults

WithDefaults hydrates default values in the reject follow request params (not the query body).

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

func (*RejectFollowRequestParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the reject follow request params

func (*RejectFollowRequestParams) WithTimeout

WithTimeout adds the timeout to the reject follow request params

func (*RejectFollowRequestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RejectFollowRequestReader

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

RejectFollowRequestReader is a Reader for the RejectFollowRequest structure.

func (*RejectFollowRequestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RejectFollowRequestUnauthorized

type RejectFollowRequestUnauthorized struct {
}

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

unauthorized

func NewRejectFollowRequestUnauthorized

func NewRejectFollowRequestUnauthorized() *RejectFollowRequestUnauthorized

NewRejectFollowRequestUnauthorized creates a RejectFollowRequestUnauthorized with default headers values

func (*RejectFollowRequestUnauthorized) Code

Code gets the status code for the reject follow request unauthorized response

func (*RejectFollowRequestUnauthorized) Error

func (*RejectFollowRequestUnauthorized) IsClientError

func (o *RejectFollowRequestUnauthorized) IsClientError() bool

IsClientError returns true when this reject follow request unauthorized response has a 4xx status code

func (*RejectFollowRequestUnauthorized) IsCode

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

IsCode returns true when this reject follow request unauthorized response a status code equal to that given

func (*RejectFollowRequestUnauthorized) IsRedirect

func (o *RejectFollowRequestUnauthorized) IsRedirect() bool

IsRedirect returns true when this reject follow request unauthorized response has a 3xx status code

func (*RejectFollowRequestUnauthorized) IsServerError

func (o *RejectFollowRequestUnauthorized) IsServerError() bool

IsServerError returns true when this reject follow request unauthorized response has a 5xx status code

func (*RejectFollowRequestUnauthorized) IsSuccess

func (o *RejectFollowRequestUnauthorized) IsSuccess() bool

IsSuccess returns true when this reject follow request unauthorized response has a 2xx status code

func (*RejectFollowRequestUnauthorized) String

Jump to

Keyboard shortcuts

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