Files
plexgo/models/sdkerrors/gettopwatchedcontent.go

91 lines
2.1 KiB
Go

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