Files
plexgo/models/sdkerrors/getwatchlist.go

91 lines
1.9 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package sdkerrors
import (
"encoding/json"
"net/http"
)
type GetWatchListWatchlistErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (o *GetWatchListWatchlistErrors) GetCode() *int {
if o == nil {
return nil
}
return o.Code
}
func (o *GetWatchListWatchlistErrors) GetMessage() *string {
if o == nil {
return nil
}
return o.Message
}
func (o *GetWatchListWatchlistErrors) GetStatus() *int {
if o == nil {
return nil
}
return o.Status
}
// GetWatchListUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
type GetWatchListUnauthorized struct {
Errors []GetWatchListWatchlistErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &GetWatchListUnauthorized{}
func (e *GetWatchListUnauthorized) Error() string {
data, _ := json.Marshal(e)
return string(data)
}
type GetWatchListErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (o *GetWatchListErrors) GetCode() *int {
if o == nil {
return nil
}
return o.Code
}
func (o *GetWatchListErrors) GetMessage() *string {
if o == nil {
return nil
}
return o.Message
}
func (o *GetWatchListErrors) GetStatus() *int {
if o == nil {
return nil
}
return o.Status
}
// GetWatchListBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
type GetWatchListBadRequest struct {
Errors []GetWatchListErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &GetWatchListBadRequest{}
func (e *GetWatchListBadRequest) Error() string {
data, _ := json.Marshal(e)
return string(data)
}