Files
plexgo/models/operations/getmediaarts.go

166 lines
3.4 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"net/http"
)
type GetMediaArtsRequest struct {
// the id of the library item to return the artwork of.
RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"`
}
func (g *GetMediaArtsRequest) GetRatingKey() int64 {
if g == nil {
return 0
}
return g.RatingKey
}
type GetMediaArtsMetadata struct {
// The URL of the artwork.
Key string `json:"key"`
// The provider of the artwork.
Provider *string `json:"provider,omitempty"`
// The URL of the artwork.
RatingKey string `json:"ratingKey"`
// Whether this is the selected artwork.
Selected bool `json:"selected"`
// The URL of the artwork thumbnail.
Thumb string `json:"thumb"`
}
func (g *GetMediaArtsMetadata) GetKey() string {
if g == nil {
return ""
}
return g.Key
}
func (g *GetMediaArtsMetadata) GetProvider() *string {
if g == nil {
return nil
}
return g.Provider
}
func (g *GetMediaArtsMetadata) GetRatingKey() string {
if g == nil {
return ""
}
return g.RatingKey
}
func (g *GetMediaArtsMetadata) GetSelected() bool {
if g == nil {
return false
}
return g.Selected
}
func (g *GetMediaArtsMetadata) GetThumb() string {
if g == nil {
return ""
}
return g.Thumb
}
type GetMediaArtsMediaContainer struct {
// Number of media items returned in this response.
Size int `json:"size"`
// The version number for media tags.
MediaTagVersion int64 `json:"mediaTagVersion"`
// The prefix used for media tag resource paths.
MediaTagPrefix string `json:"mediaTagPrefix"`
// An plugin identifier for the media container.
Identifier string `json:"identifier"`
Metadata []GetMediaArtsMetadata `json:"Metadata"`
}
func (g *GetMediaArtsMediaContainer) GetSize() int {
if g == nil {
return 0
}
return g.Size
}
func (g *GetMediaArtsMediaContainer) GetMediaTagVersion() int64 {
if g == nil {
return 0
}
return g.MediaTagVersion
}
func (g *GetMediaArtsMediaContainer) GetMediaTagPrefix() string {
if g == nil {
return ""
}
return g.MediaTagPrefix
}
func (g *GetMediaArtsMediaContainer) GetIdentifier() string {
if g == nil {
return ""
}
return g.Identifier
}
func (g *GetMediaArtsMediaContainer) GetMetadata() []GetMediaArtsMetadata {
if g == nil {
return []GetMediaArtsMetadata{}
}
return g.Metadata
}
// GetMediaArtsResponseBody - The available background artwork for the library item.
type GetMediaArtsResponseBody struct {
MediaContainer *GetMediaArtsMediaContainer `json:"MediaContainer,omitempty"`
}
func (g *GetMediaArtsResponseBody) GetMediaContainer() *GetMediaArtsMediaContainer {
if g == nil {
return nil
}
return g.MediaContainer
}
type GetMediaArtsResponse struct {
// HTTP response content type for this operation
ContentType string
// HTTP response status code for this operation
StatusCode int
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
// The available background artwork for the library item.
Object *GetMediaArtsResponseBody
}
func (g *GetMediaArtsResponse) GetContentType() string {
if g == nil {
return ""
}
return g.ContentType
}
func (g *GetMediaArtsResponse) GetStatusCode() int {
if g == nil {
return 0
}
return g.StatusCode
}
func (g *GetMediaArtsResponse) GetRawResponse() *http.Response {
if g == nil {
return nil
}
return g.RawResponse
}
func (g *GetMediaArtsResponse) GetObject() *GetMediaArtsResponseBody {
if g == nil {
return nil
}
return g.Object
}