Files
plexgo/models/sdkerrors/updateplayprogress.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 UpdatePlayProgressMediaErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (u *UpdatePlayProgressMediaErrors) GetCode() *int {
if u == nil {
return nil
}
return u.Code
}
func (u *UpdatePlayProgressMediaErrors) GetMessage() *string {
if u == nil {
return nil
}
return u.Message
}
func (u *UpdatePlayProgressMediaErrors) GetStatus() *int {
if u == nil {
return nil
}
return u.Status
}
// UpdatePlayProgressUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
type UpdatePlayProgressUnauthorized struct {
Errors []UpdatePlayProgressMediaErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &UpdatePlayProgressUnauthorized{}
func (e *UpdatePlayProgressUnauthorized) Error() string {
data, _ := json.Marshal(e)
return string(data)
}
type UpdatePlayProgressErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (u *UpdatePlayProgressErrors) GetCode() *int {
if u == nil {
return nil
}
return u.Code
}
func (u *UpdatePlayProgressErrors) GetMessage() *string {
if u == nil {
return nil
}
return u.Message
}
func (u *UpdatePlayProgressErrors) GetStatus() *int {
if u == nil {
return nil
}
return u.Status
}
// UpdatePlayProgressBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
type UpdatePlayProgressBadRequest struct {
Errors []UpdatePlayProgressErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &UpdatePlayProgressBadRequest{}
func (e *UpdatePlayProgressBadRequest) Error() string {
data, _ := json.Marshal(e)
return string(data)
}