broadcast

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: AGPL-3.0 Imports: 12 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 broadcast API

func (*Client) GetBroadcastsID

func (a *Client) GetBroadcastsID(params *GetBroadcastsIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetBroadcastsIDOK, error)

GetBroadcastsID Returns a single broadcast.

func (*Client) GetBroadcastsYearMonthDay

func (a *Client) GetBroadcastsYearMonthDay(params *GetBroadcastsYearMonthDayParams, authInfo runtime.ClientAuthInfoWriter) (*GetBroadcastsYearMonthDayOK, error)

GetBroadcastsYearMonthDay Returns a list of broadcasts at the given date/time span.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetBroadcastsID(params *GetBroadcastsIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetBroadcastsIDOK, error)

	GetBroadcastsYearMonthDay(params *GetBroadcastsYearMonthDayParams, authInfo runtime.ClientAuthInfoWriter) (*GetBroadcastsYearMonthDayOK, 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 broadcast API client.

type GetBroadcastsIDOK

type GetBroadcastsIDOK struct {
	Payload *GetBroadcastsIDOKBody
}

GetBroadcastsIDOK handles this case with default header values.

successfull operation

func NewGetBroadcastsIDOK

func NewGetBroadcastsIDOK() *GetBroadcastsIDOK

NewGetBroadcastsIDOK creates a GetBroadcastsIDOK with default headers values

func (*GetBroadcastsIDOK) Error

func (o *GetBroadcastsIDOK) Error() string

func (*GetBroadcastsIDOK) GetPayload

func (o *GetBroadcastsIDOK) GetPayload() *GetBroadcastsIDOKBody

type GetBroadcastsIDOKBody

type GetBroadcastsIDOKBody struct {

	// data
	Data *models.Broadcast `json:"data,omitempty"`
}

GetBroadcastsIDOKBody get broadcasts ID o k body swagger:model GetBroadcastsIDOKBody

func (*GetBroadcastsIDOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBroadcastsIDOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBroadcastsIDOKBody) Validate

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

Validate validates this get broadcasts ID o k body

type GetBroadcastsIDParams

type GetBroadcastsIDParams struct {

	/*ID
	  ID of the broadcast to fetch.

	*/
	ID int64

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

GetBroadcastsIDParams contains all the parameters to send to the API endpoint for the get broadcasts ID operation typically these are written to a http.Request

func NewGetBroadcastsIDParams

func NewGetBroadcastsIDParams() *GetBroadcastsIDParams

NewGetBroadcastsIDParams creates a new GetBroadcastsIDParams object with the default values initialized.

func NewGetBroadcastsIDParamsWithContext

func NewGetBroadcastsIDParamsWithContext(ctx context.Context) *GetBroadcastsIDParams

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

func NewGetBroadcastsIDParamsWithHTTPClient

func NewGetBroadcastsIDParamsWithHTTPClient(client *http.Client) *GetBroadcastsIDParams

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

func NewGetBroadcastsIDParamsWithTimeout

func NewGetBroadcastsIDParamsWithTimeout(timeout time.Duration) *GetBroadcastsIDParams

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

func (*GetBroadcastsIDParams) SetContext

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

SetContext adds the context to the get broadcasts ID params

func (*GetBroadcastsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get broadcasts ID params

func (*GetBroadcastsIDParams) SetID

func (o *GetBroadcastsIDParams) SetID(id int64)

SetID adds the id to the get broadcasts ID params

func (*GetBroadcastsIDParams) SetTimeout

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

SetTimeout adds the timeout to the get broadcasts ID params

func (*GetBroadcastsIDParams) WithContext

WithContext adds the context to the get broadcasts ID params

func (*GetBroadcastsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get broadcasts ID params

func (*GetBroadcastsIDParams) WithID

WithID adds the id to the get broadcasts ID params

func (*GetBroadcastsIDParams) WithTimeout

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

WithTimeout adds the timeout to the get broadcasts ID params

func (*GetBroadcastsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBroadcastsIDReader

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

GetBroadcastsIDReader is a Reader for the GetBroadcastsID structure.

func (*GetBroadcastsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBroadcastsYearMonthDayOK

type GetBroadcastsYearMonthDayOK struct {
	Payload *GetBroadcastsYearMonthDayOKBody
}

GetBroadcastsYearMonthDayOK handles this case with default header values.

successfull operation

func NewGetBroadcastsYearMonthDayOK

func NewGetBroadcastsYearMonthDayOK() *GetBroadcastsYearMonthDayOK

NewGetBroadcastsYearMonthDayOK creates a GetBroadcastsYearMonthDayOK with default headers values

func (*GetBroadcastsYearMonthDayOK) Error

func (*GetBroadcastsYearMonthDayOK) GetPayload

type GetBroadcastsYearMonthDayOKBody

type GetBroadcastsYearMonthDayOKBody struct {

	// data
	Data []*models.Broadcast `json:"data"`

	// included
	Included []*models.Show `json:"included"`
}

GetBroadcastsYearMonthDayOKBody get broadcasts year month day o k body swagger:model GetBroadcastsYearMonthDayOKBody

func (*GetBroadcastsYearMonthDayOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBroadcastsYearMonthDayOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBroadcastsYearMonthDayOKBody) Validate

Validate validates this get broadcasts year month day o k body

type GetBroadcastsYearMonthDayParams

type GetBroadcastsYearMonthDayParams struct {

	/*Day
	  Optional two-digit day to get the broadcasts for. Requires all preceeding parameters.

	*/
	Day int64
	/*Month
	  Optional two-digit month to get the broadcasts for. Requires all preceeding parameters.

	*/
	Month int64
	/*PageNumber
	  The page number of the list.

	*/
	PageNumber *int64
	/*PageSize
	  Maximum number of entries that are returned per page. Defaults to 50, maximum is 500.

	*/
	PageSize *int64
	/*Q
	  Query string to search for.

	*/
	Q *string
	/*Sort
	  Name of the sort field, optionally prefixed with a `-` for descending order.

	*/
	Sort *string
	/*Year
	  The four-digit year to get the broadcasts for.

	*/
	Year int64

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

GetBroadcastsYearMonthDayParams contains all the parameters to send to the API endpoint for the get broadcasts year month day operation typically these are written to a http.Request

func NewGetBroadcastsYearMonthDayParams

func NewGetBroadcastsYearMonthDayParams() *GetBroadcastsYearMonthDayParams

NewGetBroadcastsYearMonthDayParams creates a new GetBroadcastsYearMonthDayParams object with the default values initialized.

func NewGetBroadcastsYearMonthDayParamsWithContext

func NewGetBroadcastsYearMonthDayParamsWithContext(ctx context.Context) *GetBroadcastsYearMonthDayParams

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

func NewGetBroadcastsYearMonthDayParamsWithHTTPClient

func NewGetBroadcastsYearMonthDayParamsWithHTTPClient(client *http.Client) *GetBroadcastsYearMonthDayParams

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

func NewGetBroadcastsYearMonthDayParamsWithTimeout

func NewGetBroadcastsYearMonthDayParamsWithTimeout(timeout time.Duration) *GetBroadcastsYearMonthDayParams

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

func (*GetBroadcastsYearMonthDayParams) SetContext

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

SetContext adds the context to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetDay

func (o *GetBroadcastsYearMonthDayParams) SetDay(day int64)

SetDay adds the day to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetMonth

func (o *GetBroadcastsYearMonthDayParams) SetMonth(month int64)

SetMonth adds the month to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetPageNumber

func (o *GetBroadcastsYearMonthDayParams) SetPageNumber(pageNumber *int64)

SetPageNumber adds the pageNumber to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetPageSize

func (o *GetBroadcastsYearMonthDayParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetQ

SetQ adds the q to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetSort

func (o *GetBroadcastsYearMonthDayParams) SetSort(sort *string)

SetSort adds the sort to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetTimeout

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

SetTimeout adds the timeout to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) SetYear

func (o *GetBroadcastsYearMonthDayParams) SetYear(year int64)

SetYear adds the year to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithContext

WithContext adds the context to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithDay

WithDay adds the day to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithMonth

WithMonth adds the month to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithPageNumber

WithPageNumber adds the pageNumber to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithPageSize

WithPageSize adds the pageSize to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithQ

WithQ adds the q to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithSort

WithSort adds the sort to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithTimeout

WithTimeout adds the timeout to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WithYear

WithYear adds the year to the get broadcasts year month day params

func (*GetBroadcastsYearMonthDayParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetBroadcastsYearMonthDayReader

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

GetBroadcastsYearMonthDayReader is a Reader for the GetBroadcastsYearMonthDay structure.

func (*GetBroadcastsYearMonthDayReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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