mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-09 12:37:46 +00:00
91 lines
2.0 KiB
Go
91 lines
2.0 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package sdkerrors
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
type CreatePlaylistPlaylistsErrors struct {
|
|
Code *int `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int `json:"status,omitempty"`
|
|
}
|
|
|
|
func (c *CreatePlaylistPlaylistsErrors) GetCode() *int {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return c.Code
|
|
}
|
|
|
|
func (c *CreatePlaylistPlaylistsErrors) GetMessage() *string {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return c.Message
|
|
}
|
|
|
|
func (c *CreatePlaylistPlaylistsErrors) GetStatus() *int {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return c.Status
|
|
}
|
|
|
|
// CreatePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
type CreatePlaylistUnauthorized struct {
|
|
Errors []CreatePlaylistPlaylistsErrors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &CreatePlaylistUnauthorized{}
|
|
|
|
func (e *CreatePlaylistUnauthorized) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|
|
|
|
type CreatePlaylistErrors struct {
|
|
Code *int `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int `json:"status,omitempty"`
|
|
}
|
|
|
|
func (c *CreatePlaylistErrors) GetCode() *int {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return c.Code
|
|
}
|
|
|
|
func (c *CreatePlaylistErrors) GetMessage() *string {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return c.Message
|
|
}
|
|
|
|
func (c *CreatePlaylistErrors) GetStatus() *int {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return c.Status
|
|
}
|
|
|
|
// CreatePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
type CreatePlaylistBadRequest struct {
|
|
Errors []CreatePlaylistErrors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &CreatePlaylistBadRequest{}
|
|
|
|
func (e *CreatePlaylistBadRequest) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|