mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
231 lines
4.9 KiB
Go
231 lines
4.9 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type AddPlaylistContentsRequest struct {
|
|
// the ID of the playlist
|
|
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
|
|
// the content URI for the playlist
|
|
URI string `queryParam:"style=form,explode=true,name=uri"`
|
|
// the play queue to add to a playlist
|
|
PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"`
|
|
}
|
|
|
|
func (a *AddPlaylistContentsRequest) GetPlaylistID() float64 {
|
|
if a == nil {
|
|
return 0.0
|
|
}
|
|
return a.PlaylistID
|
|
}
|
|
|
|
func (a *AddPlaylistContentsRequest) GetURI() string {
|
|
if a == nil {
|
|
return ""
|
|
}
|
|
return a.URI
|
|
}
|
|
|
|
func (a *AddPlaylistContentsRequest) GetPlayQueueID() *float64 {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.PlayQueueID
|
|
}
|
|
|
|
type AddPlaylistContentsMetadata struct {
|
|
RatingKey *string `json:"ratingKey,omitempty"`
|
|
Key *string `json:"key,omitempty"`
|
|
GUID *string `json:"guid,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Title *string `json:"title,omitempty"`
|
|
Summary *string `json:"summary,omitempty"`
|
|
Smart *bool `json:"smart,omitempty"`
|
|
PlaylistType *string `json:"playlistType,omitempty"`
|
|
Composite *string `json:"composite,omitempty"`
|
|
Duration *int `json:"duration,omitempty"`
|
|
LeafCount *int `json:"leafCount,omitempty"`
|
|
AddedAt *int `json:"addedAt,omitempty"`
|
|
UpdatedAt *int `json:"updatedAt,omitempty"`
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetRatingKey() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.RatingKey
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetKey() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Key
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetGUID() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.GUID
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetType() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Type
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetTitle() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Title
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetSummary() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Summary
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetSmart() *bool {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Smart
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetPlaylistType() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.PlaylistType
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetComposite() *string {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Composite
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetDuration() *int {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Duration
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetLeafCount() *int {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.LeafCount
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetAddedAt() *int {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.AddedAt
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMetadata) GetUpdatedAt() *int {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.UpdatedAt
|
|
}
|
|
|
|
type AddPlaylistContentsMediaContainer struct {
|
|
Size *int `json:"size,omitempty"`
|
|
LeafCountAdded *int `json:"leafCountAdded,omitempty"`
|
|
LeafCountRequested *int `json:"leafCountRequested,omitempty"`
|
|
Metadata []AddPlaylistContentsMetadata `json:"Metadata,omitempty"`
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMediaContainer) GetSize() *int {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Size
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMediaContainer) GetLeafCountAdded() *int {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.LeafCountAdded
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMediaContainer) GetLeafCountRequested() *int {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.LeafCountRequested
|
|
}
|
|
|
|
func (a *AddPlaylistContentsMediaContainer) GetMetadata() []AddPlaylistContentsMetadata {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Metadata
|
|
}
|
|
|
|
// AddPlaylistContentsResponseBody - Playlist Updated
|
|
type AddPlaylistContentsResponseBody struct {
|
|
MediaContainer *AddPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"`
|
|
}
|
|
|
|
func (a *AddPlaylistContentsResponseBody) GetMediaContainer() *AddPlaylistContentsMediaContainer {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.MediaContainer
|
|
}
|
|
|
|
type AddPlaylistContentsResponse 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
|
|
// Playlist Updated
|
|
Object *AddPlaylistContentsResponseBody
|
|
}
|
|
|
|
func (a *AddPlaylistContentsResponse) GetContentType() string {
|
|
if a == nil {
|
|
return ""
|
|
}
|
|
return a.ContentType
|
|
}
|
|
|
|
func (a *AddPlaylistContentsResponse) GetStatusCode() int {
|
|
if a == nil {
|
|
return 0
|
|
}
|
|
return a.StatusCode
|
|
}
|
|
|
|
func (a *AddPlaylistContentsResponse) GetRawResponse() *http.Response {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.RawResponse
|
|
}
|
|
|
|
func (a *AddPlaylistContentsResponse) GetObject() *AddPlaylistContentsResponseBody {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
return a.Object
|
|
}
|