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