ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.635.1

This commit is contained in:
speakeasybot
2025-10-07 00:11:50 +00:00
parent 484b48c271
commit 0a712f5595
191 changed files with 13016 additions and 10957 deletions

View File

@@ -3,10 +3,10 @@ id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
management: management:
docChecksum: addaf2dfdac23cef2e234b64492b9c90 docChecksum: addaf2dfdac23cef2e234b64492b9c90
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.615.2 speakeasyVersion: 1.635.1
generationVersion: 2.698.4 generationVersion: 2.722.2
releaseVersion: 0.24.2 releaseVersion: 0.25.0
configChecksum: 8d76d795a093eac0731c22ff2789a575 configChecksum: 4ca3994cb62bfd5beb1e6c5c6b0ef941
repoURL: https://github.com/LukeHagar/plexgo.git repoURL: https://github.com/LukeHagar/plexgo.git
repoSubDirectory: . repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexgo installationURL: https://github.com/LukeHagar/plexgo
@@ -15,11 +15,11 @@ features:
go: go:
additionalDependencies: 0.1.0 additionalDependencies: 0.1.0
constsAndDefaults: 0.1.12 constsAndDefaults: 0.1.12
core: 3.9.6 core: 3.11.1
defaultEnabledRetries: 0.2.0 defaultEnabledRetries: 0.2.0
deprecations: 2.81.3 deprecations: 2.81.3
downloadStreams: 0.1.2 downloadStreams: 0.1.2
enums: 2.81.1 enums: 2.82.0
envVarSecurityUsage: 0.3.2 envVarSecurityUsage: 0.3.2
errors: 2.83.0 errors: 2.83.0
flattening: 2.81.1 flattening: 2.81.1
@@ -30,12 +30,12 @@ features:
intellisenseMarkdownSupport: 0.1.0 intellisenseMarkdownSupport: 0.1.0
methodServerURLs: 2.82.1 methodServerURLs: 2.82.1
nameOverrides: 2.81.2 nameOverrides: 2.81.2
nullables: 0.1.1 nullables: 0.2.1
openEnums: 0.1.0 openEnums: 0.1.0
responseFormat: 0.1.2 responseFormat: 0.1.2
retries: 2.84.2 retries: 2.84.2
sdkHooks: 0.2.0 sdkHooks: 0.2.0
unions: 2.85.14 unions: 2.86.0
uploadStreams: 0.1.0 uploadStreams: 0.1.0
generatedFiles: generatedFiles:
- .gitattributes - .gitattributes
@@ -1158,6 +1158,8 @@ generatedFiles:
- media.go - media.go
- models/operations/options.go - models/operations/options.go
- models/sdkerrors/sdkerror.go - models/sdkerrors/sdkerror.go
- optionalnullable/optionalnullable.go
- optionalnullable/optionalnullable_test.go
- playlists.go - playlists.go
- plex.go - plex.go
- plexapi.go - plexapi.go
@@ -1169,7 +1171,6 @@ generatedFiles:
- types/bigint.go - types/bigint.go
- types/date.go - types/date.go
- types/datetime.go - types/datetime.go
- types/decimal.go
- types/pointers.go - types/pointers.go
- updater.go - updater.go
- users.go - users.go

View File

@@ -22,7 +22,7 @@ generation:
generateNewTests: false generateNewTests: false
skipResponseBodyAssertions: false skipResponseBodyAssertions: false
go: go:
version: 0.24.2 version: 0.25.0
additionalDependencies: {} additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false allowUnknownFieldsInWeakUnions: false
baseErrorName: PlexAPIError baseErrorName: PlexAPIError
@@ -41,6 +41,7 @@ go:
maxMethodParams: 4 maxMethodParams: 4
methodArguments: require-security-and-request methodArguments: require-security-and-request
modulePath: "" modulePath: ""
nullableOptionalWrapper: false
outputModelSuffix: output outputModelSuffix: output
packageName: github.com/LukeHagar/plexgo packageName: github.com/LukeHagar/plexgo
respectRequiredFields: false respectRequiredFields: false

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.615.2 speakeasyVersion: 1.635.1
sources: sources:
my-source: my-source:
sourceNamespace: my-source sourceNamespace: my-source
@@ -13,7 +13,7 @@ sources:
sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0 sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0
tags: tags:
- latest - latest
- speakeasy-sdk-regen-1757981413 - speakeasy-sdk-regen-1759795832
targets: targets:
plexgo: plexgo:
source: plexapi source: plexapi
@@ -21,7 +21,7 @@ targets:
sourceRevisionDigest: sha256:5125adfea1b0daea399c6ecf755e32795de6b4131465ae6a1f32ad73b3bc7787 sourceRevisionDigest: sha256:5125adfea1b0daea399c6ecf755e32795de6b4131465ae6a1f32ad73b3bc7787
sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0 sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0
codeSamplesNamespace: code-samples-go-plexgo codeSamplesNamespace: code-samples-go-plexgo
codeSamplesRevisionDigest: sha256:918f406f027ab1b34a6256235e3389f56c35fa6b319855542a8c2bccc8c97e1a codeSamplesRevisionDigest: sha256:f5a86774481f3e1235a867167b1ae386f68f21ddfd77c07662ae7f91306f064e
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest

View File

@@ -1202,4 +1202,14 @@ Based on:
### Generated ### Generated
- [go v0.24.2] . - [go v0.24.2] .
### Releases ### Releases
- [Go v0.24.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.24.2 - . - [Go v0.24.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.24.2 - .
## 2025-10-07 00:10:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.635.1 (2.722.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.25.0] .
### Releases
- [Go v0.25.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.25.0 - .

View File

@@ -619,7 +619,7 @@ actions:
res, err := s.Hubs.GetRecentlyAdded(ctx, operations.GetRecentlyAddedRequest{ res, err := s.Hubs.GetRecentlyAdded(ctx, operations.GetRecentlyAddedRequest{
ContentDirectoryID: 39486, ContentDirectoryID: 39486,
SectionID: plexgo.Int64(2), SectionID: plexgo.Pointer[int64](2),
Type: operations.TypeTvShow, Type: operations.TypeTvShow,
IncludeMeta: operations.IncludeMetaEnable.ToPointer(), IncludeMeta: operations.IncludeMetaEnable.ToPointer(),
}) })
@@ -651,7 +651,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Search.PerformSearch(ctx, "arnold", nil, plexgo.Float64(5)) res, err := s.Search.PerformSearch(ctx, "arnold", nil, plexgo.Pointer[float64](5))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -680,7 +680,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Search.PerformVoiceSearch(ctx, "dead+poop", nil, plexgo.Float64(5)) res, err := s.Search.PerformVoiceSearch(ctx, "dead+poop", nil, plexgo.Pointer[float64](5))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -827,19 +827,19 @@ actions:
res, err := s.Library.GetMediaMetaData(ctx, operations.GetMediaMetaDataRequest{ res, err := s.Library.GetMediaMetaData(ctx, operations.GetMediaMetaDataRequest{
RatingKey: "21119,21617", RatingKey: "21119,21617",
IncludeConcerts: plexgo.Bool(true), IncludeConcerts: plexgo.Pointer(true),
IncludeExtras: plexgo.Bool(true), IncludeExtras: plexgo.Pointer(true),
IncludeOnDeck: plexgo.Bool(true), IncludeOnDeck: plexgo.Pointer(true),
IncludePopularLeaves: plexgo.Bool(true), IncludePopularLeaves: plexgo.Pointer(true),
IncludePreferences: plexgo.Bool(true), IncludePreferences: plexgo.Pointer(true),
IncludeReviews: plexgo.Bool(true), IncludeReviews: plexgo.Pointer(true),
IncludeChapters: plexgo.Bool(true), IncludeChapters: plexgo.Pointer(true),
IncludeStations: plexgo.Bool(true), IncludeStations: plexgo.Pointer(true),
IncludeExternalMedia: plexgo.Bool(true), IncludeExternalMedia: plexgo.Pointer(true),
AsyncAugmentMetadata: plexgo.Bool(true), AsyncAugmentMetadata: plexgo.Pointer(true),
AsyncCheckFiles: plexgo.Bool(true), AsyncCheckFiles: plexgo.Pointer(true),
AsyncRefreshAnalysis: plexgo.Bool(true), AsyncRefreshAnalysis: plexgo.Pointer(true),
AsyncRefreshLocalMediaAgent: plexgo.Bool(true), AsyncRefreshLocalMediaAgent: plexgo.Pointer(true),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@@ -898,7 +898,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil) res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -964,7 +964,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.String("Stream")) res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.Pointer("Stream"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -1022,7 +1022,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil) res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -1090,7 +1090,7 @@ actions:
) )
res, err := s.Library.GetRecentlyAddedLibrary(ctx, operations.GetRecentlyAddedLibraryRequest{ res, err := s.Library.GetRecentlyAddedLibrary(ctx, operations.GetRecentlyAddedLibraryRequest{
ContentDirectoryID: plexgo.Int64(2), ContentDirectoryID: plexgo.Pointer[int64](2),
PinnedContentDirectoryID: []int64{ PinnedContentDirectoryID: []int64{
3, 3,
5, 5,
@@ -1105,7 +1105,7 @@ actions:
16, 16,
17, 17,
}, },
SectionID: plexgo.Int64(2), SectionID: plexgo.Pointer[int64](2),
Type: operations.QueryParamTypeTvShow, Type: operations.QueryParamTypeTvShow,
IncludeMeta: operations.QueryParamIncludeMetaEnable.ToPointer(), IncludeMeta: operations.QueryParamIncludeMetaEnable.ToPointer(),
}) })
@@ -1706,10 +1706,10 @@ actions:
res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{ res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@@ -1741,10 +1741,10 @@ actions:
res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{ res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{
PinID: 232248, PinID: 232248,
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@@ -2014,7 +2014,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Playlists.AddPlaylistContents(ctx, 7013.44, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123)) res, err := s.Playlists.AddPlaylistContents(ctx, 7013.44, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Pointer[float64](123))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -2190,7 +2190,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Int64(4)) res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -2219,7 +2219,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Statistics.GetStatistics(ctx, plexgo.Int64(4)) res, err := s.Statistics.GetStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -2248,7 +2248,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Int64(4)) res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -2307,7 +2307,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Sessions.GetSessionHistory(ctx, plexgo.String("viewedAt:desc"), plexgo.Int64(1), &operations.QueryParamFilter{}, plexgo.Int64(12)) res, err := s.Sessions.GetSessionHistory(ctx, plexgo.Pointer("viewedAt:desc"), plexgo.Pointer[int64](1), &operations.QueryParamFilter{}, plexgo.Pointer[int64](12))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -2513,17 +2513,17 @@ actions:
res, err := s.Users.GetUsers(ctx, operations.GetUsersRequest{ res, err := s.Users.GetUsers(ctx, operations.GetUsersRequest{
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
DeviceName: plexgo.String("Chrome"), DeviceName: plexgo.Pointer("Chrome"),
DeviceScreenResolution: plexgo.String("1487x1165,2560x1440"), DeviceScreenResolution: plexgo.Pointer("1487x1165,2560x1440"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
ClientFeatures: plexgo.String("external-media,indirect-media,hub-style-list"), ClientFeatures: plexgo.Pointer("external-media,indirect-media,hub-style-list"),
Model: plexgo.String("4200X"), Model: plexgo.Pointer("4200X"),
XPlexSessionID: plexgo.String("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"), XPlexSessionID: plexgo.Pointer("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"),
XPlexLanguage: plexgo.String("en"), XPlexLanguage: plexgo.Pointer("en"),
PlatformVersion: plexgo.String("4.3 build 1057"), PlatformVersion: plexgo.Pointer("4.3 build 1057"),
XPlexToken: "CV5xoxjTpFKUzBTShsaf", XPlexToken: "CV5xoxjTpFKUzBTShsaf",
}) })
if err != nil { if err != nil {
@@ -2555,14 +2555,14 @@ actions:
res, err := s.Authentication.PostUsersSignInData(ctx, operations.PostUsersSignInDataRequest{ res, err := s.Authentication.PostUsersSignInData(ctx, operations.PostUsersSignInDataRequest{
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
RequestBody: &operations.PostUsersSignInDataRequestBody{ RequestBody: &operations.PostUsersSignInDataRequestBody{
Login: "username@email.com", Login: "username@email.com",
Password: "password123", Password: "password123",
VerificationCode: plexgo.String("123456"), VerificationCode: plexgo.Pointer("123456"),
}, },
}) })
if err != nil { if err != nil {
@@ -2600,17 +2600,17 @@ actions:
MediaIndex: 0, MediaIndex: 0,
PartIndex: 0, PartIndex: 0,
Protocol: "hls", Protocol: "hls",
FastSeek: plexgo.Float64(0), FastSeek: plexgo.Pointer[float64](0),
DirectPlay: plexgo.Float64(0), DirectPlay: plexgo.Pointer[float64](0),
DirectStream: plexgo.Float64(0), DirectStream: plexgo.Pointer[float64](0),
SubtitleSize: plexgo.Float64(100), SubtitleSize: plexgo.Pointer[float64](100),
Subtites: plexgo.String("burn"), Subtites: plexgo.Pointer("burn"),
AudioBoost: plexgo.Float64(100), AudioBoost: plexgo.Pointer[float64](100),
Location: plexgo.String("lan"), Location: plexgo.Pointer("lan"),
MediaBufferSize: plexgo.Float64(102400), MediaBufferSize: plexgo.Pointer[float64](102400),
Session: plexgo.String("zvcage8b7rkioqcm8f4uns4c"), Session: plexgo.Pointer("zvcage8b7rkioqcm8f4uns4c"),
AddDebugOverlay: plexgo.Float64(0), AddDebugOverlay: plexgo.Pointer[float64](0),
AutoAdjustQuality: plexgo.Float64(0), AutoAdjustQuality: plexgo.Pointer[float64](0),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)

View File

@@ -200,14 +200,14 @@ func main() {
res, err := s.Authentication.PostUsersSignInData(ctx, operations.PostUsersSignInDataRequest{ res, err := s.Authentication.PostUsersSignInData(ctx, operations.PostUsersSignInDataRequest{
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
RequestBody: &operations.PostUsersSignInDataRequestBody{ RequestBody: &operations.PostUsersSignInDataRequestBody{
Login: "username@email.com", Login: "username@email.com",
Password: "password123", Password: "password123",
VerificationCode: plexgo.String("123456"), VerificationCode: plexgo.Pointer("123456"),
}, },
}) })
if err != nil { if err != nil {

View File

@@ -93,7 +93,7 @@ func main() {
res, err := s.Hubs.GetRecentlyAdded(ctx, operations.GetRecentlyAddedRequest{ res, err := s.Hubs.GetRecentlyAdded(ctx, operations.GetRecentlyAddedRequest{
ContentDirectoryID: 39486, ContentDirectoryID: 39486,
SectionID: plexgo.Int64(2), SectionID: plexgo.Pointer[int64](2),
Type: operations.TypeTvShow, Type: operations.TypeTvShow,
IncludeMeta: operations.IncludeMetaEnable.ToPointer(), IncludeMeta: operations.IncludeMetaEnable.ToPointer(),
}) })

View File

@@ -109,7 +109,7 @@ func main() {
) )
res, err := s.Library.GetRecentlyAddedLibrary(ctx, operations.GetRecentlyAddedLibraryRequest{ res, err := s.Library.GetRecentlyAddedLibrary(ctx, operations.GetRecentlyAddedLibraryRequest{
ContentDirectoryID: plexgo.Int64(2), ContentDirectoryID: plexgo.Pointer[int64](2),
PinnedContentDirectoryID: []int64{ PinnedContentDirectoryID: []int64{
3, 3,
5, 5,
@@ -124,7 +124,7 @@ func main() {
16, 16,
17, 17,
}, },
SectionID: plexgo.Int64(2), SectionID: plexgo.Pointer[int64](2),
Type: operations.QueryParamTypeTvShow, Type: operations.QueryParamTypeTvShow,
IncludeMeta: operations.QueryParamIncludeMetaEnable.ToPointer(), IncludeMeta: operations.QueryParamIncludeMetaEnable.ToPointer(),
}) })
@@ -894,19 +894,19 @@ func main() {
res, err := s.Library.GetMediaMetaData(ctx, operations.GetMediaMetaDataRequest{ res, err := s.Library.GetMediaMetaData(ctx, operations.GetMediaMetaDataRequest{
RatingKey: "21119,21617", RatingKey: "21119,21617",
IncludeConcerts: plexgo.Bool(true), IncludeConcerts: plexgo.Pointer(true),
IncludeExtras: plexgo.Bool(true), IncludeExtras: plexgo.Pointer(true),
IncludeOnDeck: plexgo.Bool(true), IncludeOnDeck: plexgo.Pointer(true),
IncludePopularLeaves: plexgo.Bool(true), IncludePopularLeaves: plexgo.Pointer(true),
IncludePreferences: plexgo.Bool(true), IncludePreferences: plexgo.Pointer(true),
IncludeReviews: plexgo.Bool(true), IncludeReviews: plexgo.Pointer(true),
IncludeChapters: plexgo.Bool(true), IncludeChapters: plexgo.Pointer(true),
IncludeStations: plexgo.Bool(true), IncludeStations: plexgo.Pointer(true),
IncludeExternalMedia: plexgo.Bool(true), IncludeExternalMedia: plexgo.Pointer(true),
AsyncAugmentMetadata: plexgo.Bool(true), AsyncAugmentMetadata: plexgo.Pointer(true),
AsyncCheckFiles: plexgo.Bool(true), AsyncCheckFiles: plexgo.Pointer(true),
AsyncRefreshAnalysis: plexgo.Bool(true), AsyncRefreshAnalysis: plexgo.Pointer(true),
AsyncRefreshLocalMediaAgent: plexgo.Bool(true), AsyncRefreshLocalMediaAgent: plexgo.Pointer(true),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@@ -1011,7 +1011,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil) res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -1115,7 +1115,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil) res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -1169,7 +1169,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.String("Stream")) res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.Pointer("Stream"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -440,7 +440,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Playlists.AddPlaylistContents(ctx, 7013.44, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123)) res, err := s.Playlists.AddPlaylistContents(ctx, 7013.44, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Pointer[float64](123))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -303,10 +303,10 @@ func main() {
res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{ res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@@ -361,10 +361,10 @@ func main() {
res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{ res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{
PinID: 232248, PinID: 232248,
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)

View File

@@ -47,7 +47,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Search.PerformSearch(ctx, "arnold", nil, plexgo.Float64(5)) res, err := s.Search.PerformSearch(ctx, "arnold", nil, plexgo.Pointer[float64](5))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -106,7 +106,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Search.PerformVoiceSearch(ctx, "dead+poop", nil, plexgo.Float64(5)) res, err := s.Search.PerformVoiceSearch(ctx, "dead+poop", nil, plexgo.Pointer[float64](5))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -89,7 +89,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Sessions.GetSessionHistory(ctx, plexgo.String("viewedAt:desc"), plexgo.Int64(1), &operations.QueryParamFilter{}, plexgo.Int64(12)) res, err := s.Sessions.GetSessionHistory(ctx, plexgo.Pointer("viewedAt:desc"), plexgo.Pointer[int64](1), &operations.QueryParamFilter{}, plexgo.Pointer[int64](12))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -35,7 +35,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Statistics.GetStatistics(ctx, plexgo.Int64(4)) res, err := s.Statistics.GetStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -88,7 +88,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Int64(4)) res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@@ -141,7 +141,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"), plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
) )
res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Int64(4)) res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

View File

@@ -31,17 +31,17 @@ func main() {
res, err := s.Users.GetUsers(ctx, operations.GetUsersRequest{ res, err := s.Users.GetUsers(ctx, operations.GetUsersRequest{
ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
ClientName: plexgo.String("Plex for Roku"), ClientName: plexgo.Pointer("Plex for Roku"),
DeviceNickname: plexgo.String("Roku 3"), DeviceNickname: plexgo.Pointer("Roku 3"),
DeviceName: plexgo.String("Chrome"), DeviceName: plexgo.Pointer("Chrome"),
DeviceScreenResolution: plexgo.String("1487x1165,2560x1440"), DeviceScreenResolution: plexgo.Pointer("1487x1165,2560x1440"),
ClientVersion: plexgo.String("2.4.1"), ClientVersion: plexgo.Pointer("2.4.1"),
Platform: plexgo.String("Roku"), Platform: plexgo.Pointer("Roku"),
ClientFeatures: plexgo.String("external-media,indirect-media,hub-style-list"), ClientFeatures: plexgo.Pointer("external-media,indirect-media,hub-style-list"),
Model: plexgo.String("4200X"), Model: plexgo.Pointer("4200X"),
XPlexSessionID: plexgo.String("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"), XPlexSessionID: plexgo.Pointer("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"),
XPlexLanguage: plexgo.String("en"), XPlexLanguage: plexgo.Pointer("en"),
PlatformVersion: plexgo.String("4.3 build 1057"), PlatformVersion: plexgo.Pointer("4.3 build 1057"),
XPlexToken: "CV5xoxjTpFKUzBTShsaf", XPlexToken: "CV5xoxjTpFKUzBTShsaf",
}) })
if err != nil { if err != nil {

View File

@@ -106,17 +106,17 @@ func main() {
MediaIndex: 0, MediaIndex: 0,
PartIndex: 0, PartIndex: 0,
Protocol: "hls", Protocol: "hls",
FastSeek: plexgo.Float64(0), FastSeek: plexgo.Pointer[float64](0),
DirectPlay: plexgo.Float64(0), DirectPlay: plexgo.Pointer[float64](0),
DirectStream: plexgo.Float64(0), DirectStream: plexgo.Pointer[float64](0),
SubtitleSize: plexgo.Float64(100), SubtitleSize: plexgo.Pointer[float64](100),
Subtites: plexgo.String("burn"), Subtites: plexgo.Pointer("burn"),
AudioBoost: plexgo.Float64(100), AudioBoost: plexgo.Pointer[float64](100),
Location: plexgo.String("lan"), Location: plexgo.Pointer("lan"),
MediaBufferSize: plexgo.Float64(102400), MediaBufferSize: plexgo.Pointer[float64](102400),
Session: plexgo.String("zvcage8b7rkioqcm8f4uns4c"), Session: plexgo.Pointer("zvcage8b7rkioqcm8f4uns4c"),
AddDebugOverlay: plexgo.Float64(0), AddDebugOverlay: plexgo.Pointer[float64](0),
AutoAdjustQuality: plexgo.Float64(0), AutoAdjustQuality: plexgo.Pointer[float64](0),
}) })
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)

8
go.mod
View File

@@ -2,4 +2,10 @@ module github.com/LukeHagar/plexgo
go 1.22 go 1.22
require github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 require github.com/stretchr/testify v1.11.1
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

12
go.sum
View File

@@ -1,2 +1,10 @@
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

View File

@@ -10,8 +10,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/ericlagergren/decimal" "github.com/LukeHagar/plexgo/optionalnullable"
"github.com/LukeHagar/plexgo/types" "github.com/LukeHagar/plexgo/types"
) )
@@ -41,8 +40,6 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue
formValues.Add(paramName, valToString(objValue.Interface())) formValues.Add(paramName, valToString(objValue.Interface()))
case big.Int: case big.Int:
formValues.Add(paramName, valToString(objValue.Interface())) formValues.Add(paramName, valToString(objValue.Interface()))
case decimal.Big:
formValues.Add(paramName, valToString(objValue.Interface()))
default: default:
var items []string var items []string
@@ -64,7 +61,13 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue
} }
if explode { if explode {
formValues.Add(fieldName, valToString(valType.Interface())) if valType.Kind() == reflect.Slice || valType.Kind() == reflect.Array {
for i := 0; i < valType.Len(); i++ {
formValues.Add(fieldName, valToString(valType.Index(i).Interface()))
}
} else {
formValues.Add(fieldName, valToString(valType.Interface()))
}
} else { } else {
items = append(items, fmt.Sprintf("%s%s%s", fieldName, delimiter, valToString(valType.Interface()))) items = append(items, fmt.Sprintf("%s%s%s", fieldName, delimiter, valToString(valType.Interface())))
} }
@@ -75,6 +78,16 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue
} }
} }
case reflect.Map: case reflect.Map:
// check if optionalnullable.OptionalNullable[T]
if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok {
// Handle optionalnullable.OptionalNullable[T] using GetUntyped method
if value, isSet := nullableValue.GetUntyped(); isSet && value != nil {
formValues.Add(paramName, valToString(value))
}
// If not set or explicitly null, skip adding to form
return formValues
}
items := []string{} items := []string{}
iter := objValue.MapRange() iter := objValue.MapRange()

View File

@@ -8,6 +8,8 @@ import (
"net/http" "net/http"
"reflect" "reflect"
"strings" "strings"
"github.com/LukeHagar/plexgo/optionalnullable"
) )
func PopulateHeaders(_ context.Context, req *http.Request, headers interface{}, globals interface{}) { func PopulateHeaders(_ context.Context, req *http.Request, headers interface{}, globals interface{}) {
@@ -98,6 +100,16 @@ func serializeHeader(objType reflect.Type, objValue reflect.Value, explode bool)
return strings.Join(items, ",") return strings.Join(items, ",")
case reflect.Map: case reflect.Map:
// check if optionalnullable.OptionalNullable[T]
if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok {
// Handle optionalnullable.OptionalNullable[T] using GetUntyped method
if value, isSet := nullableValue.GetUntyped(); isSet && value != nil {
return valToString(value)
}
// If not set or explicitly null, return empty string
return ""
}
items := []string{} items := []string{}
iter := objValue.MapRange() iter := objValue.MapRange()

View File

@@ -15,8 +15,6 @@ import (
"unsafe" "unsafe"
"github.com/LukeHagar/plexgo/types" "github.com/LukeHagar/plexgo/types"
"github.com/ericlagergren/decimal"
) )
func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) { func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) {
@@ -287,6 +285,11 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error)
return []byte("null"), nil return []byte("null"), nil
} }
// Check if the map implements json.Marshaler (like optionalnullable.OptionalNullable[T])
if marshaler, ok := val.Interface().(json.Marshaler); ok {
return marshaler.MarshalJSON()
}
out := map[string]json.RawMessage{} out := map[string]json.RawMessage{}
for _, key := range val.MapKeys() { for _, key := range val.MapKeys() {
@@ -340,17 +343,6 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error)
b := val.Interface().(big.Int) b := val.Interface().(big.Int)
return []byte(fmt.Sprintf(`"%s"`, (&b).String())), nil return []byte(fmt.Sprintf(`"%s"`, (&b).String())), nil
} }
case reflect.TypeOf(decimal.Big{}):
format := tag.Get("decimal")
if format == "number" {
b := val.Interface().(decimal.Big)
f, ok := (&b).Float64()
if ok {
return []byte(b.String()), nil
}
return []byte(fmt.Sprintf(`%f`, f)), nil
}
} }
} }
@@ -381,11 +373,6 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc
if format == "string" { if format == "string" {
return []byte(fmt.Sprintf(`"%s"`, tagValue)) return []byte(fmt.Sprintf(`"%s"`, tagValue))
} }
case reflect.TypeOf(decimal.Big{}):
decimalTag := tag.Get("decimal")
if decimalTag != "number" {
return []byte(fmt.Sprintf(`"%s"`, tagValue))
}
case reflect.TypeOf(types.Date{}): case reflect.TypeOf(types.Date{}):
return []byte(fmt.Sprintf(`"%s"`, tagValue)) return []byte(fmt.Sprintf(`"%s"`, tagValue))
default: default:
@@ -566,27 +553,6 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa
v.Set(reflect.ValueOf(b)) v.Set(reflect.ValueOf(b))
return nil return nil
case reflect.TypeOf(decimal.Big{}):
var d *decimal.Big
format := tag.Get("decimal")
if format == "number" {
var ok bool
d, ok = new(decimal.Big).SetString(string(value))
if !ok {
return fmt.Errorf("failed to parse number as decimal.Big")
}
} else {
if err := json.Unmarshal(value, &d); err != nil {
return err
}
}
if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr {
v = v.Elem()
}
v.Set(reflect.ValueOf(d))
return nil
case reflect.TypeOf(types.Date{}): case reflect.TypeOf(types.Date{}):
var s string var s string
@@ -651,8 +617,6 @@ func isComplexValueType(typ reflect.Type) bool {
fallthrough fallthrough
case reflect.TypeOf(big.Int{}): case reflect.TypeOf(big.Int{}):
fallthrough fallthrough
case reflect.TypeOf(decimal.Big{}):
fallthrough
case reflect.TypeOf(types.Date{}): case reflect.TypeOf(types.Date{}):
return true return true
} }

View File

@@ -11,8 +11,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/ericlagergren/decimal" "github.com/LukeHagar/plexgo/optionalnullable"
"github.com/LukeHagar/plexgo/types" "github.com/LukeHagar/plexgo/types"
) )
@@ -114,6 +113,16 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle
} }
pathParams[parentName] = strings.Join(ppVals, ",") pathParams[parentName] = strings.Join(ppVals, ",")
case reflect.Map: case reflect.Map:
// check if optionalnullable.OptionalNullable[T]
if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok {
// Handle optionalnullable.OptionalNullable[T] using GetUntyped method
if value, isSet := nullableValue.GetUntyped(); isSet && value != nil {
pathParams[parentName] = valToString(value)
}
// If not set or explicitly null, return nil (skip parameter)
return pathParams
}
if objValue.Len() == 0 { if objValue.Len() == 0 {
return nil return nil
} }
@@ -135,8 +144,6 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle
pathParams[parentName] = valToString(objValue.Interface()) pathParams[parentName] = valToString(objValue.Interface())
case big.Int: case big.Int:
pathParams[parentName] = valToString(objValue.Interface()) pathParams[parentName] = valToString(objValue.Interface())
case decimal.Big:
pathParams[parentName] = valToString(objValue.Interface())
default: default:
var ppVals []string var ppVals []string
for i := 0; i < objType.NumField(); i++ { for i := 0; i < objType.NumField(); i++ {

View File

@@ -12,8 +12,7 @@ import (
"reflect" "reflect"
"time" "time"
"github.com/ericlagergren/decimal" "github.com/LukeHagar/plexgo/optionalnullable"
"github.com/LukeHagar/plexgo/types" "github.com/LukeHagar/plexgo/types"
) )
@@ -157,6 +156,16 @@ func populateDeepObjectParams(tag *paramTag, objType reflect.Type, objValue refl
switch objValue.Kind() { switch objValue.Kind() {
case reflect.Map: case reflect.Map:
// check if optionalnullable.OptionalNullable[T]
if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok {
// Handle optionalnullable.OptionalNullable[T] using GetUntyped method
if value, isSet := nullableValue.GetUntyped(); isSet && value != nil {
values.Add(tag.ParamName, valToString(value))
}
// If not set or explicitly null, skip adding to values
return values
}
populateDeepObjectParamsMap(values, tag.ParamName, objValue) populateDeepObjectParamsMap(values, tag.ParamName, objValue)
case reflect.Struct: case reflect.Struct:
populateDeepObjectParamsStruct(values, tag.ParamName, objValue) populateDeepObjectParamsStruct(values, tag.ParamName, objValue)
@@ -235,7 +244,7 @@ func populateDeepObjectParamsStruct(qsValues url.Values, priorScope string, stru
populateDeepObjectParamsMap(qsValues, scope, fieldValue) populateDeepObjectParamsMap(qsValues, scope, fieldValue)
case reflect.Struct: case reflect.Struct:
switch fieldValue.Type() { switch fieldValue.Type() {
case reflect.TypeOf(big.Int{}), reflect.TypeOf(decimal.Big{}), reflect.TypeOf(time.Time{}), reflect.TypeOf(types.Date{}): case reflect.TypeOf(big.Int{}), reflect.TypeOf(time.Time{}), reflect.TypeOf(types.Date{}):
qsValues.Add(scope, valToString(fieldValue.Interface())) qsValues.Add(scope, valToString(fieldValue.Interface()))
continue continue

View File

@@ -14,6 +14,8 @@ import (
"path/filepath" "path/filepath"
"reflect" "reflect"
"regexp" "regexp"
"github.com/LukeHagar/plexgo/optionalnullable"
) )
const ( const (
@@ -340,6 +342,17 @@ func encodeFormData(fieldName string, w io.Writer, data interface{}) error {
} }
} }
case reflect.Map: case reflect.Map:
// check if optionalnullable.OptionalNullable[T]
if nullableValue, ok := optionalnullable.AsOptionalNullable(requestValType); ok {
// Handle optionalnullable.OptionalNullable[T] using GetUntyped method
if value, isSet := nullableValue.GetUntyped(); isSet && value != nil {
dataValues.Set(fieldName, valToString(value))
}
// If not set or explicitly null, skip adding to form
break
}
// Handle regular map
for _, k := range requestValType.MapKeys() { for _, k := range requestValType.MapKeys() {
v := requestValType.MapIndex(k) v := requestValType.MapIndex(k)
dataValues.Set(fmt.Sprintf("%v", k.Interface()), valToString(v.Interface())) dataValues.Set(fmt.Sprintf("%v", k.Interface()), valToString(v.Interface()))

View File

@@ -14,8 +14,6 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
"github.com/ericlagergren/decimal"
) )
const ( const (
@@ -183,8 +181,6 @@ func valToString(val interface{}) string {
return v.Format(time.RFC3339Nano) return v.Format(time.RFC3339Nano)
case big.Int: case big.Int:
return v.String() return v.String()
case decimal.Big:
return v.String()
default: default:
return fmt.Sprintf("%v", v) return fmt.Sprintf("%v", v)
} }

View File

@@ -6,9 +6,9 @@ type Security struct {
AccessToken *string `security:"scheme,type=apiKey,subtype=header,name=X-Plex-Token"` AccessToken *string `security:"scheme,type=apiKey,subtype=header,name=X-Plex-Token"`
} }
func (o *Security) GetAccessToken() *string { func (s *Security) GetAccessToken() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.AccessToken return s.AccessToken
} }

View File

@@ -15,25 +15,25 @@ type AddPlaylistContentsRequest struct {
PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"` PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"`
} }
func (o *AddPlaylistContentsRequest) GetPlaylistID() float64 { func (a *AddPlaylistContentsRequest) GetPlaylistID() float64 {
if o == nil { if a == nil {
return 0.0 return 0.0
} }
return o.PlaylistID return a.PlaylistID
} }
func (o *AddPlaylistContentsRequest) GetURI() string { func (a *AddPlaylistContentsRequest) GetURI() string {
if o == nil { if a == nil {
return "" return ""
} }
return o.URI return a.URI
} }
func (o *AddPlaylistContentsRequest) GetPlayQueueID() *float64 { func (a *AddPlaylistContentsRequest) GetPlayQueueID() *float64 {
if o == nil { if a == nil {
return nil return nil
} }
return o.PlayQueueID return a.PlayQueueID
} }
type AddPlaylistContentsMetadata struct { type AddPlaylistContentsMetadata struct {
@@ -52,95 +52,95 @@ type AddPlaylistContentsMetadata struct {
UpdatedAt *int `json:"updatedAt,omitempty"` UpdatedAt *int `json:"updatedAt,omitempty"`
} }
func (o *AddPlaylistContentsMetadata) GetRatingKey() *string { func (a *AddPlaylistContentsMetadata) GetRatingKey() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.RatingKey return a.RatingKey
} }
func (o *AddPlaylistContentsMetadata) GetKey() *string { func (a *AddPlaylistContentsMetadata) GetKey() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Key return a.Key
} }
func (o *AddPlaylistContentsMetadata) GetGUID() *string { func (a *AddPlaylistContentsMetadata) GetGUID() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.GUID return a.GUID
} }
func (o *AddPlaylistContentsMetadata) GetType() *string { func (a *AddPlaylistContentsMetadata) GetType() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Type return a.Type
} }
func (o *AddPlaylistContentsMetadata) GetTitle() *string { func (a *AddPlaylistContentsMetadata) GetTitle() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Title return a.Title
} }
func (o *AddPlaylistContentsMetadata) GetSummary() *string { func (a *AddPlaylistContentsMetadata) GetSummary() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Summary return a.Summary
} }
func (o *AddPlaylistContentsMetadata) GetSmart() *bool { func (a *AddPlaylistContentsMetadata) GetSmart() *bool {
if o == nil { if a == nil {
return nil return nil
} }
return o.Smart return a.Smart
} }
func (o *AddPlaylistContentsMetadata) GetPlaylistType() *string { func (a *AddPlaylistContentsMetadata) GetPlaylistType() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.PlaylistType return a.PlaylistType
} }
func (o *AddPlaylistContentsMetadata) GetComposite() *string { func (a *AddPlaylistContentsMetadata) GetComposite() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Composite return a.Composite
} }
func (o *AddPlaylistContentsMetadata) GetDuration() *int { func (a *AddPlaylistContentsMetadata) GetDuration() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.Duration return a.Duration
} }
func (o *AddPlaylistContentsMetadata) GetLeafCount() *int { func (a *AddPlaylistContentsMetadata) GetLeafCount() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.LeafCount return a.LeafCount
} }
func (o *AddPlaylistContentsMetadata) GetAddedAt() *int { func (a *AddPlaylistContentsMetadata) GetAddedAt() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.AddedAt return a.AddedAt
} }
func (o *AddPlaylistContentsMetadata) GetUpdatedAt() *int { func (a *AddPlaylistContentsMetadata) GetUpdatedAt() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.UpdatedAt return a.UpdatedAt
} }
type AddPlaylistContentsMediaContainer struct { type AddPlaylistContentsMediaContainer struct {
@@ -150,32 +150,32 @@ type AddPlaylistContentsMediaContainer struct {
Metadata []AddPlaylistContentsMetadata `json:"Metadata,omitempty"` Metadata []AddPlaylistContentsMetadata `json:"Metadata,omitempty"`
} }
func (o *AddPlaylistContentsMediaContainer) GetSize() *int { func (a *AddPlaylistContentsMediaContainer) GetSize() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.Size return a.Size
} }
func (o *AddPlaylistContentsMediaContainer) GetLeafCountAdded() *int { func (a *AddPlaylistContentsMediaContainer) GetLeafCountAdded() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.LeafCountAdded return a.LeafCountAdded
} }
func (o *AddPlaylistContentsMediaContainer) GetLeafCountRequested() *int { func (a *AddPlaylistContentsMediaContainer) GetLeafCountRequested() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.LeafCountRequested return a.LeafCountRequested
} }
func (o *AddPlaylistContentsMediaContainer) GetMetadata() []AddPlaylistContentsMetadata { func (a *AddPlaylistContentsMediaContainer) GetMetadata() []AddPlaylistContentsMetadata {
if o == nil { if a == nil {
return nil return nil
} }
return o.Metadata return a.Metadata
} }
// AddPlaylistContentsResponseBody - Playlist Updated // AddPlaylistContentsResponseBody - Playlist Updated
@@ -183,11 +183,11 @@ type AddPlaylistContentsResponseBody struct {
MediaContainer *AddPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *AddPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *AddPlaylistContentsResponseBody) GetMediaContainer() *AddPlaylistContentsMediaContainer { func (a *AddPlaylistContentsResponseBody) GetMediaContainer() *AddPlaylistContentsMediaContainer {
if o == nil { if a == nil {
return nil return nil
} }
return o.MediaContainer return a.MediaContainer
} }
type AddPlaylistContentsResponse struct { type AddPlaylistContentsResponse struct {
@@ -201,30 +201,30 @@ type AddPlaylistContentsResponse struct {
Object *AddPlaylistContentsResponseBody Object *AddPlaylistContentsResponseBody
} }
func (o *AddPlaylistContentsResponse) GetContentType() string { func (a *AddPlaylistContentsResponse) GetContentType() string {
if o == nil { if a == nil {
return "" return ""
} }
return o.ContentType return a.ContentType
} }
func (o *AddPlaylistContentsResponse) GetStatusCode() int { func (a *AddPlaylistContentsResponse) GetStatusCode() int {
if o == nil { if a == nil {
return 0 return 0
} }
return o.StatusCode return a.StatusCode
} }
func (o *AddPlaylistContentsResponse) GetRawResponse() *http.Response { func (a *AddPlaylistContentsResponse) GetRawResponse() *http.Response {
if o == nil { if a == nil {
return nil return nil
} }
return o.RawResponse return a.RawResponse
} }
func (o *AddPlaylistContentsResponse) GetObject() *AddPlaylistContentsResponseBody { func (a *AddPlaylistContentsResponse) GetObject() *AddPlaylistContentsResponseBody {
if o == nil { if a == nil {
return nil return nil
} }
return o.Object return a.Object
} }

View File

@@ -69,18 +69,18 @@ type ApplyUpdatesRequest struct {
Skip *Skip `queryParam:"style=form,explode=true,name=skip"` Skip *Skip `queryParam:"style=form,explode=true,name=skip"`
} }
func (o *ApplyUpdatesRequest) GetTonight() *Tonight { func (a *ApplyUpdatesRequest) GetTonight() *Tonight {
if o == nil { if a == nil {
return nil return nil
} }
return o.Tonight return a.Tonight
} }
func (o *ApplyUpdatesRequest) GetSkip() *Skip { func (a *ApplyUpdatesRequest) GetSkip() *Skip {
if o == nil { if a == nil {
return nil return nil
} }
return o.Skip return a.Skip
} }
type ApplyUpdatesResponse struct { type ApplyUpdatesResponse struct {
@@ -92,23 +92,23 @@ type ApplyUpdatesResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *ApplyUpdatesResponse) GetContentType() string { func (a *ApplyUpdatesResponse) GetContentType() string {
if o == nil { if a == nil {
return "" return ""
} }
return o.ContentType return a.ContentType
} }
func (o *ApplyUpdatesResponse) GetStatusCode() int { func (a *ApplyUpdatesResponse) GetStatusCode() int {
if o == nil { if a == nil {
return 0 return 0
} }
return o.StatusCode return a.StatusCode
} }
func (o *ApplyUpdatesResponse) GetRawResponse() *http.Response { func (a *ApplyUpdatesResponse) GetRawResponse() *http.Response {
if o == nil { if a == nil {
return nil return nil
} }
return o.RawResponse return a.RawResponse
} }

View File

@@ -11,11 +11,11 @@ type CancelServerActivitiesRequest struct {
ActivityUUID string `pathParam:"style=simple,explode=false,name=activityUUID"` ActivityUUID string `pathParam:"style=simple,explode=false,name=activityUUID"`
} }
func (o *CancelServerActivitiesRequest) GetActivityUUID() string { func (c *CancelServerActivitiesRequest) GetActivityUUID() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.ActivityUUID return c.ActivityUUID
} }
type CancelServerActivitiesResponse struct { type CancelServerActivitiesResponse struct {
@@ -27,23 +27,23 @@ type CancelServerActivitiesResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *CancelServerActivitiesResponse) GetContentType() string { func (c *CancelServerActivitiesResponse) GetContentType() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.ContentType return c.ContentType
} }
func (o *CancelServerActivitiesResponse) GetStatusCode() int { func (c *CancelServerActivitiesResponse) GetStatusCode() int {
if o == nil { if c == nil {
return 0 return 0
} }
return o.StatusCode return c.StatusCode
} }
func (o *CancelServerActivitiesResponse) GetRawResponse() *http.Response { func (c *CancelServerActivitiesResponse) GetRawResponse() *http.Response {
if o == nil { if c == nil {
return nil return nil
} }
return o.RawResponse return c.RawResponse
} }

View File

@@ -40,11 +40,11 @@ type CheckForUpdatesRequest struct {
Download *Download `queryParam:"style=form,explode=true,name=download"` Download *Download `queryParam:"style=form,explode=true,name=download"`
} }
func (o *CheckForUpdatesRequest) GetDownload() *Download { func (c *CheckForUpdatesRequest) GetDownload() *Download {
if o == nil { if c == nil {
return nil return nil
} }
return o.Download return c.Download
} }
type CheckForUpdatesResponse struct { type CheckForUpdatesResponse struct {
@@ -56,23 +56,23 @@ type CheckForUpdatesResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *CheckForUpdatesResponse) GetContentType() string { func (c *CheckForUpdatesResponse) GetContentType() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.ContentType return c.ContentType
} }
func (o *CheckForUpdatesResponse) GetStatusCode() int { func (c *CheckForUpdatesResponse) GetStatusCode() int {
if o == nil { if c == nil {
return 0 return 0
} }
return o.StatusCode return c.StatusCode
} }
func (o *CheckForUpdatesResponse) GetRawResponse() *http.Response { func (c *CheckForUpdatesResponse) GetRawResponse() *http.Response {
if o == nil { if c == nil {
return nil return nil
} }
return o.RawResponse return c.RawResponse
} }

View File

@@ -11,11 +11,11 @@ type ClearPlaylistContentsRequest struct {
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"` PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
} }
func (o *ClearPlaylistContentsRequest) GetPlaylistID() float64 { func (c *ClearPlaylistContentsRequest) GetPlaylistID() float64 {
if o == nil { if c == nil {
return 0.0 return 0.0
} }
return o.PlaylistID return c.PlaylistID
} }
type ClearPlaylistContentsResponse struct { type ClearPlaylistContentsResponse struct {
@@ -27,23 +27,23 @@ type ClearPlaylistContentsResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *ClearPlaylistContentsResponse) GetContentType() string { func (c *ClearPlaylistContentsResponse) GetContentType() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.ContentType return c.ContentType
} }
func (o *ClearPlaylistContentsResponse) GetStatusCode() int { func (c *ClearPlaylistContentsResponse) GetStatusCode() int {
if o == nil { if c == nil {
return 0 return 0
} }
return o.StatusCode return c.StatusCode
} }
func (o *ClearPlaylistContentsResponse) GetRawResponse() *http.Response { func (c *ClearPlaylistContentsResponse) GetRawResponse() *http.Response {
if o == nil { if c == nil {
return nil return nil
} }
return o.RawResponse return c.RawResponse
} }

View File

@@ -61,39 +61,39 @@ type CreatePlaylistRequest struct {
PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"` PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"`
} }
func (o *CreatePlaylistRequest) GetTitle() string { func (c *CreatePlaylistRequest) GetTitle() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.Title return c.Title
} }
func (o *CreatePlaylistRequest) GetType() CreatePlaylistQueryParamType { func (c *CreatePlaylistRequest) GetType() CreatePlaylistQueryParamType {
if o == nil { if c == nil {
return CreatePlaylistQueryParamType("") return CreatePlaylistQueryParamType("")
} }
return o.Type return c.Type
} }
func (o *CreatePlaylistRequest) GetSmart() Smart { func (c *CreatePlaylistRequest) GetSmart() Smart {
if o == nil { if c == nil {
return Smart(0) return Smart(0)
} }
return o.Smart return c.Smart
} }
func (o *CreatePlaylistRequest) GetURI() string { func (c *CreatePlaylistRequest) GetURI() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.URI return c.URI
} }
func (o *CreatePlaylistRequest) GetPlayQueueID() *float64 { func (c *CreatePlaylistRequest) GetPlayQueueID() *float64 {
if o == nil { if c == nil {
return nil return nil
} }
return o.PlayQueueID return c.PlayQueueID
} }
type CreatePlaylistMetadata struct { type CreatePlaylistMetadata struct {
@@ -115,116 +115,116 @@ type CreatePlaylistMetadata struct {
Duration *int `json:"duration,omitempty"` Duration *int `json:"duration,omitempty"`
} }
func (o *CreatePlaylistMetadata) GetRatingKey() *string { func (c *CreatePlaylistMetadata) GetRatingKey() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.RatingKey return c.RatingKey
} }
func (o *CreatePlaylistMetadata) GetKey() *string { func (c *CreatePlaylistMetadata) GetKey() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.Key return c.Key
} }
func (o *CreatePlaylistMetadata) GetGUID() *string { func (c *CreatePlaylistMetadata) GetGUID() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.GUID return c.GUID
} }
func (o *CreatePlaylistMetadata) GetType() *string { func (c *CreatePlaylistMetadata) GetType() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.Type return c.Type
} }
func (o *CreatePlaylistMetadata) GetTitle() *string { func (c *CreatePlaylistMetadata) GetTitle() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.Title return c.Title
} }
func (o *CreatePlaylistMetadata) GetSummary() *string { func (c *CreatePlaylistMetadata) GetSummary() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.Summary return c.Summary
} }
func (o *CreatePlaylistMetadata) GetSmart() *bool { func (c *CreatePlaylistMetadata) GetSmart() *bool {
if o == nil { if c == nil {
return nil return nil
} }
return o.Smart return c.Smart
} }
func (o *CreatePlaylistMetadata) GetPlaylistType() *string { func (c *CreatePlaylistMetadata) GetPlaylistType() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.PlaylistType return c.PlaylistType
} }
func (o *CreatePlaylistMetadata) GetIcon() *string { func (c *CreatePlaylistMetadata) GetIcon() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.Icon return c.Icon
} }
func (o *CreatePlaylistMetadata) GetViewCount() *int { func (c *CreatePlaylistMetadata) GetViewCount() *int {
if o == nil { if c == nil {
return nil return nil
} }
return o.ViewCount return c.ViewCount
} }
func (o *CreatePlaylistMetadata) GetLastViewedAt() *int { func (c *CreatePlaylistMetadata) GetLastViewedAt() *int {
if o == nil { if c == nil {
return nil return nil
} }
return o.LastViewedAt return c.LastViewedAt
} }
func (o *CreatePlaylistMetadata) GetLeafCount() *int { func (c *CreatePlaylistMetadata) GetLeafCount() *int {
if o == nil { if c == nil {
return nil return nil
} }
return o.LeafCount return c.LeafCount
} }
func (o *CreatePlaylistMetadata) GetAddedAt() *int { func (c *CreatePlaylistMetadata) GetAddedAt() *int {
if o == nil { if c == nil {
return nil return nil
} }
return o.AddedAt return c.AddedAt
} }
func (o *CreatePlaylistMetadata) GetUpdatedAt() *int { func (c *CreatePlaylistMetadata) GetUpdatedAt() *int {
if o == nil { if c == nil {
return nil return nil
} }
return o.UpdatedAt return c.UpdatedAt
} }
func (o *CreatePlaylistMetadata) GetComposite() *string { func (c *CreatePlaylistMetadata) GetComposite() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.Composite return c.Composite
} }
func (o *CreatePlaylistMetadata) GetDuration() *int { func (c *CreatePlaylistMetadata) GetDuration() *int {
if o == nil { if c == nil {
return nil return nil
} }
return o.Duration return c.Duration
} }
type CreatePlaylistMediaContainer struct { type CreatePlaylistMediaContainer struct {
@@ -232,18 +232,18 @@ type CreatePlaylistMediaContainer struct {
Metadata []CreatePlaylistMetadata `json:"Metadata,omitempty"` Metadata []CreatePlaylistMetadata `json:"Metadata,omitempty"`
} }
func (o *CreatePlaylistMediaContainer) GetSize() *int { func (c *CreatePlaylistMediaContainer) GetSize() *int {
if o == nil { if c == nil {
return nil return nil
} }
return o.Size return c.Size
} }
func (o *CreatePlaylistMediaContainer) GetMetadata() []CreatePlaylistMetadata { func (c *CreatePlaylistMediaContainer) GetMetadata() []CreatePlaylistMetadata {
if o == nil { if c == nil {
return nil return nil
} }
return o.Metadata return c.Metadata
} }
// CreatePlaylistResponseBody - returns all playlists // CreatePlaylistResponseBody - returns all playlists
@@ -251,11 +251,11 @@ type CreatePlaylistResponseBody struct {
MediaContainer *CreatePlaylistMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *CreatePlaylistMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *CreatePlaylistResponseBody) GetMediaContainer() *CreatePlaylistMediaContainer { func (c *CreatePlaylistResponseBody) GetMediaContainer() *CreatePlaylistMediaContainer {
if o == nil { if c == nil {
return nil return nil
} }
return o.MediaContainer return c.MediaContainer
} }
type CreatePlaylistResponse struct { type CreatePlaylistResponse struct {
@@ -269,30 +269,30 @@ type CreatePlaylistResponse struct {
Object *CreatePlaylistResponseBody Object *CreatePlaylistResponseBody
} }
func (o *CreatePlaylistResponse) GetContentType() string { func (c *CreatePlaylistResponse) GetContentType() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.ContentType return c.ContentType
} }
func (o *CreatePlaylistResponse) GetStatusCode() int { func (c *CreatePlaylistResponse) GetStatusCode() int {
if o == nil { if c == nil {
return 0 return 0
} }
return o.StatusCode return c.StatusCode
} }
func (o *CreatePlaylistResponse) GetRawResponse() *http.Response { func (c *CreatePlaylistResponse) GetRawResponse() *http.Response {
if o == nil { if c == nil {
return nil return nil
} }
return o.RawResponse return c.RawResponse
} }
func (o *CreatePlaylistResponse) GetObject() *CreatePlaylistResponseBody { func (c *CreatePlaylistResponse) GetObject() *CreatePlaylistResponseBody {
if o == nil { if c == nil {
return nil return nil
} }
return o.Object return c.Object
} }

View File

@@ -13,11 +13,11 @@ type DeleteLibraryRequest struct {
SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"` SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"`
} }
func (o *DeleteLibraryRequest) GetSectionKey() int { func (d *DeleteLibraryRequest) GetSectionKey() int {
if o == nil { if d == nil {
return 0 return 0
} }
return o.SectionKey return d.SectionKey
} }
type DeleteLibraryResponse struct { type DeleteLibraryResponse struct {
@@ -29,23 +29,23 @@ type DeleteLibraryResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *DeleteLibraryResponse) GetContentType() string { func (d *DeleteLibraryResponse) GetContentType() string {
if o == nil { if d == nil {
return "" return ""
} }
return o.ContentType return d.ContentType
} }
func (o *DeleteLibraryResponse) GetStatusCode() int { func (d *DeleteLibraryResponse) GetStatusCode() int {
if o == nil { if d == nil {
return 0 return 0
} }
return o.StatusCode return d.StatusCode
} }
func (o *DeleteLibraryResponse) GetRawResponse() *http.Response { func (d *DeleteLibraryResponse) GetRawResponse() *http.Response {
if o == nil { if d == nil {
return nil return nil
} }
return o.RawResponse return d.RawResponse
} }

View File

@@ -11,11 +11,11 @@ type DeletePlaylistRequest struct {
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"` PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
} }
func (o *DeletePlaylistRequest) GetPlaylistID() float64 { func (d *DeletePlaylistRequest) GetPlaylistID() float64 {
if o == nil { if d == nil {
return 0.0 return 0.0
} }
return o.PlaylistID return d.PlaylistID
} }
type DeletePlaylistResponse struct { type DeletePlaylistResponse struct {
@@ -27,23 +27,23 @@ type DeletePlaylistResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *DeletePlaylistResponse) GetContentType() string { func (d *DeletePlaylistResponse) GetContentType() string {
if o == nil { if d == nil {
return "" return ""
} }
return o.ContentType return d.ContentType
} }
func (o *DeletePlaylistResponse) GetStatusCode() int { func (d *DeletePlaylistResponse) GetStatusCode() int {
if o == nil { if d == nil {
return 0 return 0
} }
return o.StatusCode return d.StatusCode
} }
func (o *DeletePlaylistResponse) GetRawResponse() *http.Response { func (d *DeletePlaylistResponse) GetRawResponse() *http.Response {
if o == nil { if d == nil {
return nil return nil
} }
return o.RawResponse return d.RawResponse
} }

View File

@@ -15,23 +15,23 @@ type EnablePaperTrailResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *EnablePaperTrailResponse) GetContentType() string { func (e *EnablePaperTrailResponse) GetContentType() string {
if o == nil { if e == nil {
return "" return ""
} }
return o.ContentType return e.ContentType
} }
func (o *EnablePaperTrailResponse) GetStatusCode() int { func (e *EnablePaperTrailResponse) GetStatusCode() int {
if o == nil { if e == nil {
return 0 return 0
} }
return o.StatusCode return e.StatusCode
} }
func (o *EnablePaperTrailResponse) GetRawResponse() *http.Response { func (e *EnablePaperTrailResponse) GetRawResponse() *http.Response {
if o == nil { if e == nil {
return nil return nil
} }
return o.RawResponse return e.RawResponse
} }

View File

@@ -45,18 +45,18 @@ type GetActorsLibraryRequest struct {
Type GetActorsLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` Type GetActorsLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"`
} }
func (o *GetActorsLibraryRequest) GetSectionKey() int { func (g *GetActorsLibraryRequest) GetSectionKey() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.SectionKey return g.SectionKey
} }
func (o *GetActorsLibraryRequest) GetType() GetActorsLibraryQueryParamType { func (g *GetActorsLibraryRequest) GetType() GetActorsLibraryQueryParamType {
if o == nil { if g == nil {
return GetActorsLibraryQueryParamType(0) return GetActorsLibraryQueryParamType(0)
} }
return o.Type return g.Type
} }
type GetActorsLibraryDirectory struct { type GetActorsLibraryDirectory struct {
@@ -70,32 +70,32 @@ type GetActorsLibraryDirectory struct {
Title string `json:"title"` Title string `json:"title"`
} }
func (o *GetActorsLibraryDirectory) GetFastKey() string { func (g *GetActorsLibraryDirectory) GetFastKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.FastKey return g.FastKey
} }
func (o *GetActorsLibraryDirectory) GetThumb() string { func (g *GetActorsLibraryDirectory) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
func (o *GetActorsLibraryDirectory) GetKey() string { func (g *GetActorsLibraryDirectory) GetKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Key return g.Key
} }
func (o *GetActorsLibraryDirectory) GetTitle() string { func (g *GetActorsLibraryDirectory) GetTitle() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title return g.Title
} }
type GetActorsLibraryMediaContainer struct { type GetActorsLibraryMediaContainer struct {
@@ -127,95 +127,95 @@ type GetActorsLibraryMediaContainer struct {
Directory []GetActorsLibraryDirectory `json:"Directory,omitempty"` Directory []GetActorsLibraryDirectory `json:"Directory,omitempty"`
} }
func (o *GetActorsLibraryMediaContainer) GetSize() int { func (g *GetActorsLibraryMediaContainer) GetSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetActorsLibraryMediaContainer) GetAllowSync() bool { func (g *GetActorsLibraryMediaContainer) GetAllowSync() bool {
if o == nil { if g == nil {
return false return false
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetActorsLibraryMediaContainer) GetArt() string { func (g *GetActorsLibraryMediaContainer) GetArt() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Art return g.Art
} }
func (o *GetActorsLibraryMediaContainer) GetIdentifier() string { func (g *GetActorsLibraryMediaContainer) GetIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Identifier return g.Identifier
} }
func (o *GetActorsLibraryMediaContainer) GetMediaTagPrefix() string { func (g *GetActorsLibraryMediaContainer) GetMediaTagPrefix() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetActorsLibraryMediaContainer) GetMediaTagVersion() int64 { func (g *GetActorsLibraryMediaContainer) GetMediaTagVersion() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetActorsLibraryMediaContainer) GetNocache() bool { func (g *GetActorsLibraryMediaContainer) GetNocache() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Nocache return g.Nocache
} }
func (o *GetActorsLibraryMediaContainer) GetThumb() string { func (g *GetActorsLibraryMediaContainer) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
func (o *GetActorsLibraryMediaContainer) GetTitle1() string { func (g *GetActorsLibraryMediaContainer) GetTitle1() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title1 return g.Title1
} }
func (o *GetActorsLibraryMediaContainer) GetTitle2() string { func (g *GetActorsLibraryMediaContainer) GetTitle2() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title2 return g.Title2
} }
func (o *GetActorsLibraryMediaContainer) GetViewGroup() string { func (g *GetActorsLibraryMediaContainer) GetViewGroup() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ViewGroup return g.ViewGroup
} }
func (o *GetActorsLibraryMediaContainer) GetViewMode() *string { func (g *GetActorsLibraryMediaContainer) GetViewMode() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewMode return g.ViewMode
} }
func (o *GetActorsLibraryMediaContainer) GetDirectory() []GetActorsLibraryDirectory { func (g *GetActorsLibraryMediaContainer) GetDirectory() []GetActorsLibraryDirectory {
if o == nil { if g == nil {
return nil return nil
} }
return o.Directory return g.Directory
} }
// GetActorsLibraryResponseBody - Successful response containing media container data. // GetActorsLibraryResponseBody - Successful response containing media container data.
@@ -223,11 +223,11 @@ type GetActorsLibraryResponseBody struct {
MediaContainer *GetActorsLibraryMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetActorsLibraryMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetActorsLibraryResponseBody) GetMediaContainer() *GetActorsLibraryMediaContainer { func (g *GetActorsLibraryResponseBody) GetMediaContainer() *GetActorsLibraryMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetActorsLibraryResponse struct { type GetActorsLibraryResponse struct {
@@ -241,30 +241,30 @@ type GetActorsLibraryResponse struct {
Object *GetActorsLibraryResponseBody Object *GetActorsLibraryResponseBody
} }
func (o *GetActorsLibraryResponse) GetContentType() string { func (g *GetActorsLibraryResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetActorsLibraryResponse) GetStatusCode() int { func (g *GetActorsLibraryResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetActorsLibraryResponse) GetRawResponse() *http.Response { func (g *GetActorsLibraryResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetActorsLibraryResponse) GetObject() *GetActorsLibraryResponseBody { func (g *GetActorsLibraryResponse) GetObject() *GetActorsLibraryResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -66,18 +66,18 @@ type GetAllLibrariesLocation struct {
Path string `json:"path"` Path string `json:"path"`
} }
func (o *GetAllLibrariesLocation) GetID() int { func (g *GetAllLibrariesLocation) GetID() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ID return g.ID
} }
func (o *GetAllLibrariesLocation) GetPath() string { func (g *GetAllLibrariesLocation) GetPath() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Path return g.Path
} }
type GetAllLibrariesDirectory struct { type GetAllLibrariesDirectory struct {
@@ -135,151 +135,151 @@ func (g *GetAllLibrariesDirectory) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetAllLibrariesDirectory) GetAllowSync() bool { func (g *GetAllLibrariesDirectory) GetAllowSync() bool {
if o == nil { if g == nil {
return false return false
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetAllLibrariesDirectory) GetArt() string { func (g *GetAllLibrariesDirectory) GetArt() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Art return g.Art
} }
func (o *GetAllLibrariesDirectory) GetComposite() string { func (g *GetAllLibrariesDirectory) GetComposite() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Composite return g.Composite
} }
func (o *GetAllLibrariesDirectory) GetFilters() bool { func (g *GetAllLibrariesDirectory) GetFilters() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Filters return g.Filters
} }
func (o *GetAllLibrariesDirectory) GetRefreshing() bool { func (g *GetAllLibrariesDirectory) GetRefreshing() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Refreshing return g.Refreshing
} }
func (o *GetAllLibrariesDirectory) GetThumb() string { func (g *GetAllLibrariesDirectory) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
func (o *GetAllLibrariesDirectory) GetKey() string { func (g *GetAllLibrariesDirectory) GetKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Key return g.Key
} }
func (o *GetAllLibrariesDirectory) GetType() GetAllLibrariesType { func (g *GetAllLibrariesDirectory) GetType() GetAllLibrariesType {
if o == nil { if g == nil {
return GetAllLibrariesType("") return GetAllLibrariesType("")
} }
return o.Type return g.Type
} }
func (o *GetAllLibrariesDirectory) GetTitle() string { func (g *GetAllLibrariesDirectory) GetTitle() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title return g.Title
} }
func (o *GetAllLibrariesDirectory) GetAgent() string { func (g *GetAllLibrariesDirectory) GetAgent() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Agent return g.Agent
} }
func (o *GetAllLibrariesDirectory) GetScanner() string { func (g *GetAllLibrariesDirectory) GetScanner() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Scanner return g.Scanner
} }
func (o *GetAllLibrariesDirectory) GetLanguage() string { func (g *GetAllLibrariesDirectory) GetLanguage() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Language return g.Language
} }
func (o *GetAllLibrariesDirectory) GetUUID() string { func (g *GetAllLibrariesDirectory) GetUUID() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.UUID return g.UUID
} }
func (o *GetAllLibrariesDirectory) GetUpdatedAt() int64 { func (g *GetAllLibrariesDirectory) GetUpdatedAt() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetAllLibrariesDirectory) GetCreatedAt() *int64 { func (g *GetAllLibrariesDirectory) GetCreatedAt() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.CreatedAt return g.CreatedAt
} }
func (o *GetAllLibrariesDirectory) GetScannedAt() int64 { func (g *GetAllLibrariesDirectory) GetScannedAt() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ScannedAt return g.ScannedAt
} }
func (o *GetAllLibrariesDirectory) GetContent() bool { func (g *GetAllLibrariesDirectory) GetContent() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Content return g.Content
} }
func (o *GetAllLibrariesDirectory) GetDirectory() bool { func (g *GetAllLibrariesDirectory) GetDirectory() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Directory return g.Directory
} }
func (o *GetAllLibrariesDirectory) GetContentChangedAt() int64 { func (g *GetAllLibrariesDirectory) GetContentChangedAt() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ContentChangedAt return g.ContentChangedAt
} }
func (o *GetAllLibrariesDirectory) GetHidden() *Hidden { func (g *GetAllLibrariesDirectory) GetHidden() *Hidden {
if o == nil { if g == nil {
return nil return nil
} }
return o.Hidden return g.Hidden
} }
func (o *GetAllLibrariesDirectory) GetLocation() []GetAllLibrariesLocation { func (g *GetAllLibrariesDirectory) GetLocation() []GetAllLibrariesLocation {
if o == nil { if g == nil {
return []GetAllLibrariesLocation{} return []GetAllLibrariesLocation{}
} }
return o.Location return g.Location
} }
type GetAllLibrariesMediaContainer struct { type GetAllLibrariesMediaContainer struct {
@@ -292,32 +292,32 @@ type GetAllLibrariesMediaContainer struct {
Directory []GetAllLibrariesDirectory `json:"Directory,omitempty"` Directory []GetAllLibrariesDirectory `json:"Directory,omitempty"`
} }
func (o *GetAllLibrariesMediaContainer) GetSize() int { func (g *GetAllLibrariesMediaContainer) GetSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetAllLibrariesMediaContainer) GetAllowSync() bool { func (g *GetAllLibrariesMediaContainer) GetAllowSync() bool {
if o == nil { if g == nil {
return false return false
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetAllLibrariesMediaContainer) GetTitle1() string { func (g *GetAllLibrariesMediaContainer) GetTitle1() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title1 return g.Title1
} }
func (o *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory { func (g *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory {
if o == nil { if g == nil {
return nil return nil
} }
return o.Directory return g.Directory
} }
// GetAllLibrariesResponseBody - The libraries available on the Server // GetAllLibrariesResponseBody - The libraries available on the Server
@@ -325,11 +325,11 @@ type GetAllLibrariesResponseBody struct {
MediaContainer *GetAllLibrariesMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetAllLibrariesMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetAllLibrariesResponseBody) GetMediaContainer() *GetAllLibrariesMediaContainer { func (g *GetAllLibrariesResponseBody) GetMediaContainer() *GetAllLibrariesMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetAllLibrariesResponse struct { type GetAllLibrariesResponse struct {
@@ -343,30 +343,30 @@ type GetAllLibrariesResponse struct {
Object *GetAllLibrariesResponseBody Object *GetAllLibrariesResponseBody
} }
func (o *GetAllLibrariesResponse) GetContentType() string { func (g *GetAllLibrariesResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetAllLibrariesResponse) GetStatusCode() int { func (g *GetAllLibrariesResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetAllLibrariesResponse) GetRawResponse() *http.Response { func (g *GetAllLibrariesResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetAllLibrariesResponse) GetObject() *GetAllLibrariesResponseBody { func (g *GetAllLibrariesResponse) GetObject() *GetAllLibrariesResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -20,81 +20,81 @@ type Server struct {
ProtocolCapabilities *string `json:"protocolCapabilities,omitempty"` ProtocolCapabilities *string `json:"protocolCapabilities,omitempty"`
} }
func (o *Server) GetName() *string { func (s *Server) GetName() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Name return s.Name
} }
func (o *Server) GetHost() *string { func (s *Server) GetHost() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Host return s.Host
} }
func (o *Server) GetAddress() *string { func (s *Server) GetAddress() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Address return s.Address
} }
func (o *Server) GetPort() *float64 { func (s *Server) GetPort() *float64 {
if o == nil { if s == nil {
return nil return nil
} }
return o.Port return s.Port
} }
func (o *Server) GetMachineIdentifier() *string { func (s *Server) GetMachineIdentifier() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.MachineIdentifier return s.MachineIdentifier
} }
func (o *Server) GetVersion() *string { func (s *Server) GetVersion() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Version return s.Version
} }
func (o *Server) GetProtocol() *string { func (s *Server) GetProtocol() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Protocol return s.Protocol
} }
func (o *Server) GetProduct() *string { func (s *Server) GetProduct() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Product return s.Product
} }
func (o *Server) GetDeviceClass() *string { func (s *Server) GetDeviceClass() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.DeviceClass return s.DeviceClass
} }
func (o *Server) GetProtocolVersion() *float64 { func (s *Server) GetProtocolVersion() *float64 {
if o == nil { if s == nil {
return nil return nil
} }
return o.ProtocolVersion return s.ProtocolVersion
} }
func (o *Server) GetProtocolCapabilities() *string { func (s *Server) GetProtocolCapabilities() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.ProtocolCapabilities return s.ProtocolCapabilities
} }
type GetAvailableClientsMediaContainer struct { type GetAvailableClientsMediaContainer struct {
@@ -102,18 +102,18 @@ type GetAvailableClientsMediaContainer struct {
Server []Server `json:"Server,omitempty"` Server []Server `json:"Server,omitempty"`
} }
func (o *GetAvailableClientsMediaContainer) GetSize() *float64 { func (g *GetAvailableClientsMediaContainer) GetSize() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetAvailableClientsMediaContainer) GetServer() []Server { func (g *GetAvailableClientsMediaContainer) GetServer() []Server {
if o == nil { if g == nil {
return nil return nil
} }
return o.Server return g.Server
} }
// GetAvailableClientsResponseBody - Available Clients // GetAvailableClientsResponseBody - Available Clients
@@ -121,11 +121,11 @@ type GetAvailableClientsResponseBody struct {
MediaContainer *GetAvailableClientsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetAvailableClientsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetAvailableClientsResponseBody) GetMediaContainer() *GetAvailableClientsMediaContainer { func (g *GetAvailableClientsResponseBody) GetMediaContainer() *GetAvailableClientsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetAvailableClientsResponse struct { type GetAvailableClientsResponse struct {
@@ -139,30 +139,30 @@ type GetAvailableClientsResponse struct {
Object *GetAvailableClientsResponseBody Object *GetAvailableClientsResponseBody
} }
func (o *GetAvailableClientsResponse) GetContentType() string { func (g *GetAvailableClientsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetAvailableClientsResponse) GetStatusCode() int { func (g *GetAvailableClientsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetAvailableClientsResponse) GetRawResponse() *http.Response { func (g *GetAvailableClientsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetAvailableClientsResponse) GetObject() *GetAvailableClientsResponseBody { func (g *GetAvailableClientsResponse) GetObject() *GetAvailableClientsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -13,11 +13,11 @@ type GetBandwidthStatisticsRequest struct {
Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"` Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"`
} }
func (o *GetBandwidthStatisticsRequest) GetTimespan() *int64 { func (g *GetBandwidthStatisticsRequest) GetTimespan() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Timespan return g.Timespan
} }
type GetBandwidthStatisticsDevice struct { type GetBandwidthStatisticsDevice struct {
@@ -28,39 +28,39 @@ type GetBandwidthStatisticsDevice struct {
CreatedAt *int `json:"createdAt,omitempty"` CreatedAt *int `json:"createdAt,omitempty"`
} }
func (o *GetBandwidthStatisticsDevice) GetID() *int { func (g *GetBandwidthStatisticsDevice) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetBandwidthStatisticsDevice) GetName() *string { func (g *GetBandwidthStatisticsDevice) GetName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Name return g.Name
} }
func (o *GetBandwidthStatisticsDevice) GetPlatform() *string { func (g *GetBandwidthStatisticsDevice) GetPlatform() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Platform return g.Platform
} }
func (o *GetBandwidthStatisticsDevice) GetClientIdentifier() *string { func (g *GetBandwidthStatisticsDevice) GetClientIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientIdentifier return g.ClientIdentifier
} }
func (o *GetBandwidthStatisticsDevice) GetCreatedAt() *int { func (g *GetBandwidthStatisticsDevice) GetCreatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.CreatedAt return g.CreatedAt
} }
type GetBandwidthStatisticsAccount struct { type GetBandwidthStatisticsAccount struct {
@@ -74,60 +74,60 @@ type GetBandwidthStatisticsAccount struct {
Thumb *string `json:"thumb,omitempty"` Thumb *string `json:"thumb,omitempty"`
} }
func (o *GetBandwidthStatisticsAccount) GetID() *int { func (g *GetBandwidthStatisticsAccount) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetBandwidthStatisticsAccount) GetKey() *string { func (g *GetBandwidthStatisticsAccount) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetBandwidthStatisticsAccount) GetName() *string { func (g *GetBandwidthStatisticsAccount) GetName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Name return g.Name
} }
func (o *GetBandwidthStatisticsAccount) GetDefaultAudioLanguage() *string { func (g *GetBandwidthStatisticsAccount) GetDefaultAudioLanguage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DefaultAudioLanguage return g.DefaultAudioLanguage
} }
func (o *GetBandwidthStatisticsAccount) GetAutoSelectAudio() *bool { func (g *GetBandwidthStatisticsAccount) GetAutoSelectAudio() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AutoSelectAudio return g.AutoSelectAudio
} }
func (o *GetBandwidthStatisticsAccount) GetDefaultSubtitleLanguage() *string { func (g *GetBandwidthStatisticsAccount) GetDefaultSubtitleLanguage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DefaultSubtitleLanguage return g.DefaultSubtitleLanguage
} }
func (o *GetBandwidthStatisticsAccount) GetSubtitleMode() *int { func (g *GetBandwidthStatisticsAccount) GetSubtitleMode() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.SubtitleMode return g.SubtitleMode
} }
func (o *GetBandwidthStatisticsAccount) GetThumb() *string { func (g *GetBandwidthStatisticsAccount) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
type StatisticsBandwidth struct { type StatisticsBandwidth struct {
@@ -139,46 +139,46 @@ type StatisticsBandwidth struct {
Bytes *int64 `json:"bytes,omitempty"` Bytes *int64 `json:"bytes,omitempty"`
} }
func (o *StatisticsBandwidth) GetAccountID() *int { func (s *StatisticsBandwidth) GetAccountID() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.AccountID return s.AccountID
} }
func (o *StatisticsBandwidth) GetDeviceID() *int { func (s *StatisticsBandwidth) GetDeviceID() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.DeviceID return s.DeviceID
} }
func (o *StatisticsBandwidth) GetTimespan() *int64 { func (s *StatisticsBandwidth) GetTimespan() *int64 {
if o == nil { if s == nil {
return nil return nil
} }
return o.Timespan return s.Timespan
} }
func (o *StatisticsBandwidth) GetAt() *int { func (s *StatisticsBandwidth) GetAt() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.At return s.At
} }
func (o *StatisticsBandwidth) GetLan() *bool { func (s *StatisticsBandwidth) GetLan() *bool {
if o == nil { if s == nil {
return nil return nil
} }
return o.Lan return s.Lan
} }
func (o *StatisticsBandwidth) GetBytes() *int64 { func (s *StatisticsBandwidth) GetBytes() *int64 {
if o == nil { if s == nil {
return nil return nil
} }
return o.Bytes return s.Bytes
} }
type GetBandwidthStatisticsMediaContainer struct { type GetBandwidthStatisticsMediaContainer struct {
@@ -188,32 +188,32 @@ type GetBandwidthStatisticsMediaContainer struct {
StatisticsBandwidth []StatisticsBandwidth `json:"StatisticsBandwidth,omitempty"` StatisticsBandwidth []StatisticsBandwidth `json:"StatisticsBandwidth,omitempty"`
} }
func (o *GetBandwidthStatisticsMediaContainer) GetSize() *int { func (g *GetBandwidthStatisticsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetBandwidthStatisticsMediaContainer) GetDevice() []GetBandwidthStatisticsDevice { func (g *GetBandwidthStatisticsMediaContainer) GetDevice() []GetBandwidthStatisticsDevice {
if o == nil { if g == nil {
return nil return nil
} }
return o.Device return g.Device
} }
func (o *GetBandwidthStatisticsMediaContainer) GetAccount() []GetBandwidthStatisticsAccount { func (g *GetBandwidthStatisticsMediaContainer) GetAccount() []GetBandwidthStatisticsAccount {
if o == nil { if g == nil {
return nil return nil
} }
return o.Account return g.Account
} }
func (o *GetBandwidthStatisticsMediaContainer) GetStatisticsBandwidth() []StatisticsBandwidth { func (g *GetBandwidthStatisticsMediaContainer) GetStatisticsBandwidth() []StatisticsBandwidth {
if o == nil { if g == nil {
return nil return nil
} }
return o.StatisticsBandwidth return g.StatisticsBandwidth
} }
// GetBandwidthStatisticsResponseBody - Bandwidth Statistics // GetBandwidthStatisticsResponseBody - Bandwidth Statistics
@@ -221,11 +221,11 @@ type GetBandwidthStatisticsResponseBody struct {
MediaContainer *GetBandwidthStatisticsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetBandwidthStatisticsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetBandwidthStatisticsResponseBody) GetMediaContainer() *GetBandwidthStatisticsMediaContainer { func (g *GetBandwidthStatisticsResponseBody) GetMediaContainer() *GetBandwidthStatisticsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetBandwidthStatisticsResponse struct { type GetBandwidthStatisticsResponse struct {
@@ -239,30 +239,30 @@ type GetBandwidthStatisticsResponse struct {
Object *GetBandwidthStatisticsResponseBody Object *GetBandwidthStatisticsResponseBody
} }
func (o *GetBandwidthStatisticsResponse) GetContentType() string { func (g *GetBandwidthStatisticsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetBandwidthStatisticsResponse) GetStatusCode() int { func (g *GetBandwidthStatisticsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetBandwidthStatisticsResponse) GetRawResponse() *http.Response { func (g *GetBandwidthStatisticsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetBandwidthStatisticsResponse) GetObject() *GetBandwidthStatisticsResponseBody { func (g *GetBandwidthStatisticsResponse) GetObject() *GetBandwidthStatisticsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -18,46 +18,46 @@ type GetBannerImageRequest struct {
XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"`
} }
func (o *GetBannerImageRequest) GetRatingKey() int64 { func (g *GetBannerImageRequest) GetRatingKey() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetBannerImageRequest) GetWidth() int64 { func (g *GetBannerImageRequest) GetWidth() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Width return g.Width
} }
func (o *GetBannerImageRequest) GetHeight() int64 { func (g *GetBannerImageRequest) GetHeight() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Height return g.Height
} }
func (o *GetBannerImageRequest) GetMinSize() int64 { func (g *GetBannerImageRequest) GetMinSize() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MinSize return g.MinSize
} }
func (o *GetBannerImageRequest) GetUpscale() int64 { func (g *GetBannerImageRequest) GetUpscale() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Upscale return g.Upscale
} }
func (o *GetBannerImageRequest) GetXPlexToken() string { func (g *GetBannerImageRequest) GetXPlexToken() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.XPlexToken return g.XPlexToken
} }
type GetBannerImageResponse struct { type GetBannerImageResponse struct {
@@ -73,37 +73,37 @@ type GetBannerImageResponse struct {
Headers map[string][]string Headers map[string][]string
} }
func (o *GetBannerImageResponse) GetContentType() string { func (g *GetBannerImageResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetBannerImageResponse) GetStatusCode() int { func (g *GetBannerImageResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetBannerImageResponse) GetRawResponse() *http.Response { func (g *GetBannerImageResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetBannerImageResponse) GetResponseStream() io.ReadCloser { func (g *GetBannerImageResponse) GetResponseStream() io.ReadCloser {
if o == nil { if g == nil {
return nil return nil
} }
return o.ResponseStream return g.ResponseStream
} }
func (o *GetBannerImageResponse) GetHeaders() map[string][]string { func (g *GetBannerImageResponse) GetHeaders() map[string][]string {
if o == nil { if g == nil {
return map[string][]string{} return map[string][]string{}
} }
return o.Headers return g.Headers
} }

View File

@@ -15,57 +15,57 @@ type ButlerTask struct {
Description *string `json:"description,omitempty"` Description *string `json:"description,omitempty"`
} }
func (o *ButlerTask) GetName() *string { func (b *ButlerTask) GetName() *string {
if o == nil { if b == nil {
return nil return nil
} }
return o.Name return b.Name
} }
func (o *ButlerTask) GetInterval() *float64 { func (b *ButlerTask) GetInterval() *float64 {
if o == nil { if b == nil {
return nil return nil
} }
return o.Interval return b.Interval
} }
func (o *ButlerTask) GetScheduleRandomized() *bool { func (b *ButlerTask) GetScheduleRandomized() *bool {
if o == nil { if b == nil {
return nil return nil
} }
return o.ScheduleRandomized return b.ScheduleRandomized
} }
func (o *ButlerTask) GetEnabled() *bool { func (b *ButlerTask) GetEnabled() *bool {
if o == nil { if b == nil {
return nil return nil
} }
return o.Enabled return b.Enabled
} }
func (o *ButlerTask) GetTitle() *string { func (b *ButlerTask) GetTitle() *string {
if o == nil { if b == nil {
return nil return nil
} }
return o.Title return b.Title
} }
func (o *ButlerTask) GetDescription() *string { func (b *ButlerTask) GetDescription() *string {
if o == nil { if b == nil {
return nil return nil
} }
return o.Description return b.Description
} }
type ButlerTasks struct { type ButlerTasks struct {
ButlerTask []ButlerTask `json:"ButlerTask,omitempty"` ButlerTask []ButlerTask `json:"ButlerTask,omitempty"`
} }
func (o *ButlerTasks) GetButlerTask() []ButlerTask { func (b *ButlerTasks) GetButlerTask() []ButlerTask {
if o == nil { if b == nil {
return nil return nil
} }
return o.ButlerTask return b.ButlerTask
} }
// GetButlerTasksResponseBody - All butler tasks // GetButlerTasksResponseBody - All butler tasks
@@ -73,11 +73,11 @@ type GetButlerTasksResponseBody struct {
ButlerTasks *ButlerTasks `json:"ButlerTasks,omitempty"` ButlerTasks *ButlerTasks `json:"ButlerTasks,omitempty"`
} }
func (o *GetButlerTasksResponseBody) GetButlerTasks() *ButlerTasks { func (g *GetButlerTasksResponseBody) GetButlerTasks() *ButlerTasks {
if o == nil { if g == nil {
return nil return nil
} }
return o.ButlerTasks return g.ButlerTasks
} }
type GetButlerTasksResponse struct { type GetButlerTasksResponse struct {
@@ -91,30 +91,30 @@ type GetButlerTasksResponse struct {
Object *GetButlerTasksResponseBody Object *GetButlerTasksResponseBody
} }
func (o *GetButlerTasksResponse) GetContentType() string { func (g *GetButlerTasksResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetButlerTasksResponse) GetStatusCode() int { func (g *GetButlerTasksResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetButlerTasksResponse) GetRawResponse() *http.Response { func (g *GetButlerTasksResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetButlerTasksResponse) GetObject() *GetButlerTasksResponseBody { func (g *GetButlerTasksResponse) GetObject() *GetButlerTasksResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -20,46 +20,46 @@ type ResponseBody struct {
Token string `json:"token"` Token string `json:"token"`
} }
func (o *ResponseBody) GetIdentifier() string { func (r *ResponseBody) GetIdentifier() string {
if o == nil { if r == nil {
return "" return ""
} }
return o.Identifier return r.Identifier
} }
func (o *ResponseBody) GetBaseURL() string { func (r *ResponseBody) GetBaseURL() string {
if o == nil { if r == nil {
return "" return ""
} }
return o.BaseURL return r.BaseURL
} }
func (o *ResponseBody) GetTitle() string { func (r *ResponseBody) GetTitle() string {
if o == nil { if r == nil {
return "" return ""
} }
return o.Title return r.Title
} }
func (o *ResponseBody) GetLinkURL() string { func (r *ResponseBody) GetLinkURL() string {
if o == nil { if r == nil {
return "" return ""
} }
return o.LinkURL return r.LinkURL
} }
func (o *ResponseBody) GetProvides() string { func (r *ResponseBody) GetProvides() string {
if o == nil { if r == nil {
return "" return ""
} }
return o.Provides return r.Provides
} }
func (o *ResponseBody) GetToken() string { func (r *ResponseBody) GetToken() string {
if o == nil { if r == nil {
return "" return ""
} }
return o.Token return r.Token
} }
type GetCompanionsDataResponse struct { type GetCompanionsDataResponse struct {
@@ -73,30 +73,30 @@ type GetCompanionsDataResponse struct {
ResponseBodies []ResponseBody ResponseBodies []ResponseBody
} }
func (o *GetCompanionsDataResponse) GetContentType() string { func (g *GetCompanionsDataResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetCompanionsDataResponse) GetStatusCode() int { func (g *GetCompanionsDataResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetCompanionsDataResponse) GetRawResponse() *http.Response { func (g *GetCompanionsDataResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetCompanionsDataResponse) GetResponseBodies() []ResponseBody { func (g *GetCompanionsDataResponse) GetResponseBodies() []ResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.ResponseBodies return g.ResponseBodies
} }

View File

@@ -45,18 +45,18 @@ type GetCountriesLibraryRequest struct {
Type GetCountriesLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` Type GetCountriesLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"`
} }
func (o *GetCountriesLibraryRequest) GetSectionKey() int { func (g *GetCountriesLibraryRequest) GetSectionKey() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.SectionKey return g.SectionKey
} }
func (o *GetCountriesLibraryRequest) GetType() GetCountriesLibraryQueryParamType { func (g *GetCountriesLibraryRequest) GetType() GetCountriesLibraryQueryParamType {
if o == nil { if g == nil {
return GetCountriesLibraryQueryParamType(0) return GetCountriesLibraryQueryParamType(0)
} }
return o.Type return g.Type
} }
type GetCountriesLibraryDirectory struct { type GetCountriesLibraryDirectory struct {
@@ -65,25 +65,25 @@ type GetCountriesLibraryDirectory struct {
Title string `json:"title"` Title string `json:"title"`
} }
func (o *GetCountriesLibraryDirectory) GetFastKey() string { func (g *GetCountriesLibraryDirectory) GetFastKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.FastKey return g.FastKey
} }
func (o *GetCountriesLibraryDirectory) GetKey() string { func (g *GetCountriesLibraryDirectory) GetKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Key return g.Key
} }
func (o *GetCountriesLibraryDirectory) GetTitle() string { func (g *GetCountriesLibraryDirectory) GetTitle() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title return g.Title
} }
type GetCountriesLibraryMediaContainer struct { type GetCountriesLibraryMediaContainer struct {
@@ -114,95 +114,95 @@ type GetCountriesLibraryMediaContainer struct {
Directory []GetCountriesLibraryDirectory `json:"Directory,omitempty"` Directory []GetCountriesLibraryDirectory `json:"Directory,omitempty"`
} }
func (o *GetCountriesLibraryMediaContainer) GetSize() int { func (g *GetCountriesLibraryMediaContainer) GetSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetCountriesLibraryMediaContainer) GetAllowSync() bool { func (g *GetCountriesLibraryMediaContainer) GetAllowSync() bool {
if o == nil { if g == nil {
return false return false
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetCountriesLibraryMediaContainer) GetArt() string { func (g *GetCountriesLibraryMediaContainer) GetArt() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Art return g.Art
} }
func (o *GetCountriesLibraryMediaContainer) GetContent() string { func (g *GetCountriesLibraryMediaContainer) GetContent() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Content return g.Content
} }
func (o *GetCountriesLibraryMediaContainer) GetIdentifier() string { func (g *GetCountriesLibraryMediaContainer) GetIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Identifier return g.Identifier
} }
func (o *GetCountriesLibraryMediaContainer) GetMediaTagPrefix() string { func (g *GetCountriesLibraryMediaContainer) GetMediaTagPrefix() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetCountriesLibraryMediaContainer) GetMediaTagVersion() int64 { func (g *GetCountriesLibraryMediaContainer) GetMediaTagVersion() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetCountriesLibraryMediaContainer) GetNocache() bool { func (g *GetCountriesLibraryMediaContainer) GetNocache() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Nocache return g.Nocache
} }
func (o *GetCountriesLibraryMediaContainer) GetThumb() string { func (g *GetCountriesLibraryMediaContainer) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
func (o *GetCountriesLibraryMediaContainer) GetTitle1() string { func (g *GetCountriesLibraryMediaContainer) GetTitle1() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title1 return g.Title1
} }
func (o *GetCountriesLibraryMediaContainer) GetTitle2() string { func (g *GetCountriesLibraryMediaContainer) GetTitle2() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title2 return g.Title2
} }
func (o *GetCountriesLibraryMediaContainer) GetViewGroup() string { func (g *GetCountriesLibraryMediaContainer) GetViewGroup() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ViewGroup return g.ViewGroup
} }
func (o *GetCountriesLibraryMediaContainer) GetDirectory() []GetCountriesLibraryDirectory { func (g *GetCountriesLibraryMediaContainer) GetDirectory() []GetCountriesLibraryDirectory {
if o == nil { if g == nil {
return nil return nil
} }
return o.Directory return g.Directory
} }
// GetCountriesLibraryResponseBody - Successful response containing media container data. // GetCountriesLibraryResponseBody - Successful response containing media container data.
@@ -210,11 +210,11 @@ type GetCountriesLibraryResponseBody struct {
MediaContainer *GetCountriesLibraryMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetCountriesLibraryMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetCountriesLibraryResponseBody) GetMediaContainer() *GetCountriesLibraryMediaContainer { func (g *GetCountriesLibraryResponseBody) GetMediaContainer() *GetCountriesLibraryMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetCountriesLibraryResponse struct { type GetCountriesLibraryResponse struct {
@@ -228,30 +228,30 @@ type GetCountriesLibraryResponse struct {
Object *GetCountriesLibraryResponseBody Object *GetCountriesLibraryResponseBody
} }
func (o *GetCountriesLibraryResponse) GetContentType() string { func (g *GetCountriesLibraryResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetCountriesLibraryResponse) GetStatusCode() int { func (g *GetCountriesLibraryResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetCountriesLibraryResponse) GetRawResponse() *http.Response { func (g *GetCountriesLibraryResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetCountriesLibraryResponse) GetObject() *GetCountriesLibraryResponseBody { func (g *GetCountriesLibraryResponse) GetObject() *GetCountriesLibraryResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -14,39 +14,39 @@ type Device struct {
CreatedAt *float64 `json:"createdAt,omitempty"` CreatedAt *float64 `json:"createdAt,omitempty"`
} }
func (o *Device) GetID() *float64 { func (d *Device) GetID() *float64 {
if o == nil { if d == nil {
return nil return nil
} }
return o.ID return d.ID
} }
func (o *Device) GetName() *string { func (d *Device) GetName() *string {
if o == nil { if d == nil {
return nil return nil
} }
return o.Name return d.Name
} }
func (o *Device) GetPlatform() *string { func (d *Device) GetPlatform() *string {
if o == nil { if d == nil {
return nil return nil
} }
return o.Platform return d.Platform
} }
func (o *Device) GetClientIdentifier() *string { func (d *Device) GetClientIdentifier() *string {
if o == nil { if d == nil {
return nil return nil
} }
return o.ClientIdentifier return d.ClientIdentifier
} }
func (o *Device) GetCreatedAt() *float64 { func (d *Device) GetCreatedAt() *float64 {
if o == nil { if d == nil {
return nil return nil
} }
return o.CreatedAt return d.CreatedAt
} }
type GetDevicesMediaContainer struct { type GetDevicesMediaContainer struct {
@@ -55,25 +55,25 @@ type GetDevicesMediaContainer struct {
Device []Device `json:"Device,omitempty"` Device []Device `json:"Device,omitempty"`
} }
func (o *GetDevicesMediaContainer) GetSize() *float64 { func (g *GetDevicesMediaContainer) GetSize() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetDevicesMediaContainer) GetIdentifier() *string { func (g *GetDevicesMediaContainer) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetDevicesMediaContainer) GetDevice() []Device { func (g *GetDevicesMediaContainer) GetDevice() []Device {
if o == nil { if g == nil {
return nil return nil
} }
return o.Device return g.Device
} }
// GetDevicesResponseBody - Devices // GetDevicesResponseBody - Devices
@@ -81,11 +81,11 @@ type GetDevicesResponseBody struct {
MediaContainer *GetDevicesMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetDevicesMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetDevicesResponseBody) GetMediaContainer() *GetDevicesMediaContainer { func (g *GetDevicesResponseBody) GetMediaContainer() *GetDevicesMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetDevicesResponse struct { type GetDevicesResponse struct {
@@ -99,30 +99,30 @@ type GetDevicesResponse struct {
Object *GetDevicesResponseBody Object *GetDevicesResponseBody
} }
func (o *GetDevicesResponse) GetContentType() string { func (g *GetDevicesResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetDevicesResponse) GetStatusCode() int { func (g *GetDevicesResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetDevicesResponse) GetRawResponse() *http.Response { func (g *GetDevicesResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetDevicesResponse) GetObject() *GetDevicesResponseBody { func (g *GetDevicesResponse) GetObject() *GetDevicesResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -13,18 +13,18 @@ type GetFileHashRequest struct {
Type *float64 `queryParam:"style=form,explode=true,name=type"` Type *float64 `queryParam:"style=form,explode=true,name=type"`
} }
func (o *GetFileHashRequest) GetURL() string { func (g *GetFileHashRequest) GetURL() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.URL return g.URL
} }
func (o *GetFileHashRequest) GetType() *float64 { func (g *GetFileHashRequest) GetType() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
type GetFileHashResponse struct { type GetFileHashResponse struct {
@@ -36,23 +36,23 @@ type GetFileHashResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *GetFileHashResponse) GetContentType() string { func (g *GetFileHashResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetFileHashResponse) GetStatusCode() int { func (g *GetFileHashResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetFileHashResponse) GetRawResponse() *http.Response { func (g *GetFileHashResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }

View File

@@ -45,18 +45,18 @@ type GetGenresLibraryRequest struct {
Type GetGenresLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` Type GetGenresLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"`
} }
func (o *GetGenresLibraryRequest) GetSectionKey() int { func (g *GetGenresLibraryRequest) GetSectionKey() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.SectionKey return g.SectionKey
} }
func (o *GetGenresLibraryRequest) GetType() GetGenresLibraryQueryParamType { func (g *GetGenresLibraryRequest) GetType() GetGenresLibraryQueryParamType {
if o == nil { if g == nil {
return GetGenresLibraryQueryParamType(0) return GetGenresLibraryQueryParamType(0)
} }
return o.Type return g.Type
} }
type GetGenresLibraryDirectory struct { type GetGenresLibraryDirectory struct {
@@ -66,32 +66,32 @@ type GetGenresLibraryDirectory struct {
Type string `json:"type"` Type string `json:"type"`
} }
func (o *GetGenresLibraryDirectory) GetFastKey() string { func (g *GetGenresLibraryDirectory) GetFastKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.FastKey return g.FastKey
} }
func (o *GetGenresLibraryDirectory) GetKey() string { func (g *GetGenresLibraryDirectory) GetKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Key return g.Key
} }
func (o *GetGenresLibraryDirectory) GetTitle() string { func (g *GetGenresLibraryDirectory) GetTitle() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title return g.Title
} }
func (o *GetGenresLibraryDirectory) GetType() string { func (g *GetGenresLibraryDirectory) GetType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Type return g.Type
} }
type GetGenresLibraryMediaContainer struct { type GetGenresLibraryMediaContainer struct {
@@ -122,95 +122,95 @@ type GetGenresLibraryMediaContainer struct {
Directory []GetGenresLibraryDirectory `json:"Directory,omitempty"` Directory []GetGenresLibraryDirectory `json:"Directory,omitempty"`
} }
func (o *GetGenresLibraryMediaContainer) GetSize() int { func (g *GetGenresLibraryMediaContainer) GetSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetGenresLibraryMediaContainer) GetAllowSync() bool { func (g *GetGenresLibraryMediaContainer) GetAllowSync() bool {
if o == nil { if g == nil {
return false return false
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetGenresLibraryMediaContainer) GetArt() string { func (g *GetGenresLibraryMediaContainer) GetArt() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Art return g.Art
} }
func (o *GetGenresLibraryMediaContainer) GetContent() string { func (g *GetGenresLibraryMediaContainer) GetContent() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Content return g.Content
} }
func (o *GetGenresLibraryMediaContainer) GetIdentifier() string { func (g *GetGenresLibraryMediaContainer) GetIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Identifier return g.Identifier
} }
func (o *GetGenresLibraryMediaContainer) GetMediaTagPrefix() string { func (g *GetGenresLibraryMediaContainer) GetMediaTagPrefix() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetGenresLibraryMediaContainer) GetMediaTagVersion() int64 { func (g *GetGenresLibraryMediaContainer) GetMediaTagVersion() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetGenresLibraryMediaContainer) GetNocache() bool { func (g *GetGenresLibraryMediaContainer) GetNocache() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Nocache return g.Nocache
} }
func (o *GetGenresLibraryMediaContainer) GetThumb() string { func (g *GetGenresLibraryMediaContainer) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
func (o *GetGenresLibraryMediaContainer) GetTitle1() string { func (g *GetGenresLibraryMediaContainer) GetTitle1() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title1 return g.Title1
} }
func (o *GetGenresLibraryMediaContainer) GetTitle2() string { func (g *GetGenresLibraryMediaContainer) GetTitle2() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title2 return g.Title2
} }
func (o *GetGenresLibraryMediaContainer) GetViewGroup() string { func (g *GetGenresLibraryMediaContainer) GetViewGroup() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ViewGroup return g.ViewGroup
} }
func (o *GetGenresLibraryMediaContainer) GetDirectory() []GetGenresLibraryDirectory { func (g *GetGenresLibraryMediaContainer) GetDirectory() []GetGenresLibraryDirectory {
if o == nil { if g == nil {
return nil return nil
} }
return o.Directory return g.Directory
} }
// GetGenresLibraryResponseBody - Successful response containing media container data. // GetGenresLibraryResponseBody - Successful response containing media container data.
@@ -218,11 +218,11 @@ type GetGenresLibraryResponseBody struct {
MediaContainer *GetGenresLibraryMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetGenresLibraryMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetGenresLibraryResponseBody) GetMediaContainer() *GetGenresLibraryMediaContainer { func (g *GetGenresLibraryResponseBody) GetMediaContainer() *GetGenresLibraryMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetGenresLibraryResponse struct { type GetGenresLibraryResponse struct {
@@ -236,30 +236,30 @@ type GetGenresLibraryResponse struct {
Object *GetGenresLibraryResponseBody Object *GetGenresLibraryResponseBody
} }
func (o *GetGenresLibraryResponse) GetContentType() string { func (g *GetGenresLibraryResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetGenresLibraryResponse) GetStatusCode() int { func (g *GetGenresLibraryResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetGenresLibraryResponse) GetRawResponse() *http.Response { func (g *GetGenresLibraryResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetGenresLibraryResponse) GetObject() *GetGenresLibraryResponseBody { func (g *GetGenresLibraryResponse) GetObject() *GetGenresLibraryResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -48,81 +48,81 @@ func (g *GetGeoDataGeoData) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetGeoDataGeoData) GetCode() string { func (g *GetGeoDataGeoData) GetCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Code return g.Code
} }
func (o *GetGeoDataGeoData) GetContinentCode() string { func (g *GetGeoDataGeoData) GetContinentCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContinentCode return g.ContinentCode
} }
func (o *GetGeoDataGeoData) GetCountry() string { func (g *GetGeoDataGeoData) GetCountry() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Country return g.Country
} }
func (o *GetGeoDataGeoData) GetCity() string { func (g *GetGeoDataGeoData) GetCity() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.City return g.City
} }
func (o *GetGeoDataGeoData) GetEuropeanUnionMember() *bool { func (g *GetGeoDataGeoData) GetEuropeanUnionMember() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.EuropeanUnionMember return g.EuropeanUnionMember
} }
func (o *GetGeoDataGeoData) GetTimeZone() string { func (g *GetGeoDataGeoData) GetTimeZone() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.TimeZone return g.TimeZone
} }
func (o *GetGeoDataGeoData) GetPostalCode() string { func (g *GetGeoDataGeoData) GetPostalCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.PostalCode return g.PostalCode
} }
func (o *GetGeoDataGeoData) GetInPrivacyRestrictedCountry() *bool { func (g *GetGeoDataGeoData) GetInPrivacyRestrictedCountry() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.InPrivacyRestrictedCountry return g.InPrivacyRestrictedCountry
} }
func (o *GetGeoDataGeoData) GetInPrivacyRestrictedRegion() *bool { func (g *GetGeoDataGeoData) GetInPrivacyRestrictedRegion() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.InPrivacyRestrictedRegion return g.InPrivacyRestrictedRegion
} }
func (o *GetGeoDataGeoData) GetSubdivisions() string { func (g *GetGeoDataGeoData) GetSubdivisions() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Subdivisions return g.Subdivisions
} }
func (o *GetGeoDataGeoData) GetCoordinates() string { func (g *GetGeoDataGeoData) GetCoordinates() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Coordinates return g.Coordinates
} }
type GetGeoDataResponse struct { type GetGeoDataResponse struct {
@@ -136,30 +136,30 @@ type GetGeoDataResponse struct {
GeoData *GetGeoDataGeoData GeoData *GetGeoDataGeoData
} }
func (o *GetGeoDataResponse) GetContentType() string { func (g *GetGeoDataResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetGeoDataResponse) GetStatusCode() int { func (g *GetGeoDataResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetGeoDataResponse) GetRawResponse() *http.Response { func (g *GetGeoDataResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetGeoDataResponse) GetGeoData() *GetGeoDataGeoData { func (g *GetGeoDataResponse) GetGeoData() *GetGeoDataGeoData {
if o == nil { if g == nil {
return nil return nil
} }
return o.GeoData return g.GeoData
} }

View File

@@ -42,18 +42,18 @@ type GetGlobalHubsRequest struct {
OnlyTransient *OnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"` OnlyTransient *OnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"`
} }
func (o *GetGlobalHubsRequest) GetCount() *float64 { func (g *GetGlobalHubsRequest) GetCount() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Count return g.Count
} }
func (o *GetGlobalHubsRequest) GetOnlyTransient() *OnlyTransient { func (g *GetGlobalHubsRequest) GetOnlyTransient() *OnlyTransient {
if o == nil { if g == nil {
return nil return nil
} }
return o.OnlyTransient return g.OnlyTransient
} }
type GetGlobalHubsMetadata struct { type GetGlobalHubsMetadata struct {
@@ -76,123 +76,123 @@ type GetGlobalHubsMetadata struct {
UpdatedAt *int `json:"updatedAt,omitempty"` UpdatedAt *int `json:"updatedAt,omitempty"`
} }
func (o *GetGlobalHubsMetadata) GetRatingKey() *string { func (g *GetGlobalHubsMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetGlobalHubsMetadata) GetKey() *string { func (g *GetGlobalHubsMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetGlobalHubsMetadata) GetGUID() *string { func (g *GetGlobalHubsMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetGlobalHubsMetadata) GetType() *string { func (g *GetGlobalHubsMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetGlobalHubsMetadata) GetTitle() *string { func (g *GetGlobalHubsMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetGlobalHubsMetadata) GetTitleSort() *string { func (g *GetGlobalHubsMetadata) GetTitleSort() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.TitleSort return g.TitleSort
} }
func (o *GetGlobalHubsMetadata) GetSummary() *string { func (g *GetGlobalHubsMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetGlobalHubsMetadata) GetSmart() *bool { func (g *GetGlobalHubsMetadata) GetSmart() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Smart return g.Smart
} }
func (o *GetGlobalHubsMetadata) GetPlaylistType() *string { func (g *GetGlobalHubsMetadata) GetPlaylistType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlaylistType return g.PlaylistType
} }
func (o *GetGlobalHubsMetadata) GetComposite() *string { func (g *GetGlobalHubsMetadata) GetComposite() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Composite return g.Composite
} }
func (o *GetGlobalHubsMetadata) GetIcon() *string { func (g *GetGlobalHubsMetadata) GetIcon() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Icon return g.Icon
} }
func (o *GetGlobalHubsMetadata) GetViewCount() *int { func (g *GetGlobalHubsMetadata) GetViewCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewCount return g.ViewCount
} }
func (o *GetGlobalHubsMetadata) GetLastViewedAt() *int { func (g *GetGlobalHubsMetadata) GetLastViewedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LastViewedAt return g.LastViewedAt
} }
func (o *GetGlobalHubsMetadata) GetDuration() *int { func (g *GetGlobalHubsMetadata) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetGlobalHubsMetadata) GetLeafCount() *int { func (g *GetGlobalHubsMetadata) GetLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LeafCount return g.LeafCount
} }
func (o *GetGlobalHubsMetadata) GetAddedAt() *int { func (g *GetGlobalHubsMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetGlobalHubsMetadata) GetUpdatedAt() *int { func (g *GetGlobalHubsMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
type Hub struct { type Hub struct {
@@ -209,81 +209,81 @@ type Hub struct {
Metadata []GetGlobalHubsMetadata `json:"Metadata,omitempty"` Metadata []GetGlobalHubsMetadata `json:"Metadata,omitempty"`
} }
func (o *Hub) GetHubKey() *string { func (h *Hub) GetHubKey() *string {
if o == nil { if h == nil {
return nil return nil
} }
return o.HubKey return h.HubKey
} }
func (o *Hub) GetKey() *string { func (h *Hub) GetKey() *string {
if o == nil { if h == nil {
return nil return nil
} }
return o.Key return h.Key
} }
func (o *Hub) GetTitle() *string { func (h *Hub) GetTitle() *string {
if o == nil { if h == nil {
return nil return nil
} }
return o.Title return h.Title
} }
func (o *Hub) GetType() *string { func (h *Hub) GetType() *string {
if o == nil { if h == nil {
return nil return nil
} }
return o.Type return h.Type
} }
func (o *Hub) GetHubIdentifier() *string { func (h *Hub) GetHubIdentifier() *string {
if o == nil { if h == nil {
return nil return nil
} }
return o.HubIdentifier return h.HubIdentifier
} }
func (o *Hub) GetContext() *string { func (h *Hub) GetContext() *string {
if o == nil { if h == nil {
return nil return nil
} }
return o.Context return h.Context
} }
func (o *Hub) GetSize() *int { func (h *Hub) GetSize() *int {
if o == nil { if h == nil {
return nil return nil
} }
return o.Size return h.Size
} }
func (o *Hub) GetMore() *bool { func (h *Hub) GetMore() *bool {
if o == nil { if h == nil {
return nil return nil
} }
return o.More return h.More
} }
func (o *Hub) GetStyle() *string { func (h *Hub) GetStyle() *string {
if o == nil { if h == nil {
return nil return nil
} }
return o.Style return h.Style
} }
func (o *Hub) GetPromoted() *bool { func (h *Hub) GetPromoted() *bool {
if o == nil { if h == nil {
return nil return nil
} }
return o.Promoted return h.Promoted
} }
func (o *Hub) GetMetadata() []GetGlobalHubsMetadata { func (h *Hub) GetMetadata() []GetGlobalHubsMetadata {
if o == nil { if h == nil {
return nil return nil
} }
return o.Metadata return h.Metadata
} }
type GetGlobalHubsMediaContainer struct { type GetGlobalHubsMediaContainer struct {
@@ -293,32 +293,32 @@ type GetGlobalHubsMediaContainer struct {
Hub []Hub `json:"Hub,omitempty"` Hub []Hub `json:"Hub,omitempty"`
} }
func (o *GetGlobalHubsMediaContainer) GetSize() *int { func (g *GetGlobalHubsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetGlobalHubsMediaContainer) GetAllowSync() *bool { func (g *GetGlobalHubsMediaContainer) GetAllowSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetGlobalHubsMediaContainer) GetIdentifier() *string { func (g *GetGlobalHubsMediaContainer) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetGlobalHubsMediaContainer) GetHub() []Hub { func (g *GetGlobalHubsMediaContainer) GetHub() []Hub {
if o == nil { if g == nil {
return nil return nil
} }
return o.Hub return g.Hub
} }
// GetGlobalHubsResponseBody - returns global hubs // GetGlobalHubsResponseBody - returns global hubs
@@ -326,11 +326,11 @@ type GetGlobalHubsResponseBody struct {
MediaContainer *GetGlobalHubsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetGlobalHubsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetGlobalHubsResponseBody) GetMediaContainer() *GetGlobalHubsMediaContainer { func (g *GetGlobalHubsResponseBody) GetMediaContainer() *GetGlobalHubsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetGlobalHubsResponse struct { type GetGlobalHubsResponse struct {
@@ -344,30 +344,30 @@ type GetGlobalHubsResponse struct {
Object *GetGlobalHubsResponseBody Object *GetGlobalHubsResponseBody
} }
func (o *GetGlobalHubsResponse) GetContentType() string { func (g *GetGlobalHubsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetGlobalHubsResponse) GetStatusCode() int { func (g *GetGlobalHubsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetGlobalHubsResponse) GetRawResponse() *http.Response { func (g *GetGlobalHubsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetGlobalHubsResponse) GetObject() *GetGlobalHubsResponseBody { func (g *GetGlobalHubsResponse) GetObject() *GetGlobalHubsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -16,46 +16,46 @@ type GetHomeDataResponseBody struct {
Subscription *bool `json:"subscription,omitempty"` Subscription *bool `json:"subscription,omitempty"`
} }
func (o *GetHomeDataResponseBody) GetID() *float64 { func (g *GetHomeDataResponseBody) GetID() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetHomeDataResponseBody) GetName() *string { func (g *GetHomeDataResponseBody) GetName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Name return g.Name
} }
func (o *GetHomeDataResponseBody) GetGuestUserID() *float64 { func (g *GetHomeDataResponseBody) GetGuestUserID() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.GuestUserID return g.GuestUserID
} }
func (o *GetHomeDataResponseBody) GetGuestUserUUID() *string { func (g *GetHomeDataResponseBody) GetGuestUserUUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GuestUserUUID return g.GuestUserUUID
} }
func (o *GetHomeDataResponseBody) GetGuestEnabled() *bool { func (g *GetHomeDataResponseBody) GetGuestEnabled() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.GuestEnabled return g.GuestEnabled
} }
func (o *GetHomeDataResponseBody) GetSubscription() *bool { func (g *GetHomeDataResponseBody) GetSubscription() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Subscription return g.Subscription
} }
type GetHomeDataResponse struct { type GetHomeDataResponse struct {
@@ -69,30 +69,30 @@ type GetHomeDataResponse struct {
Object *GetHomeDataResponseBody Object *GetHomeDataResponseBody
} }
func (o *GetHomeDataResponse) GetContentType() string { func (g *GetHomeDataResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetHomeDataResponse) GetStatusCode() int { func (g *GetHomeDataResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetHomeDataResponse) GetRawResponse() *http.Response { func (g *GetHomeDataResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetHomeDataResponse) GetObject() *GetHomeDataResponseBody { func (g *GetHomeDataResponse) GetObject() *GetHomeDataResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -59,18 +59,18 @@ func (g *GetLibraryDetailsRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetLibraryDetailsRequest) GetIncludeDetails() *IncludeDetails { func (g *GetLibraryDetailsRequest) GetIncludeDetails() *IncludeDetails {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeDetails return g.IncludeDetails
} }
func (o *GetLibraryDetailsRequest) GetSectionKey() int { func (g *GetLibraryDetailsRequest) GetSectionKey() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.SectionKey return g.SectionKey
} }
type GetLibraryDetailsDirectory struct { type GetLibraryDetailsDirectory struct {
@@ -81,39 +81,39 @@ type GetLibraryDetailsDirectory struct {
Search *bool `json:"search,omitempty"` Search *bool `json:"search,omitempty"`
} }
func (o *GetLibraryDetailsDirectory) GetKey() *string { func (g *GetLibraryDetailsDirectory) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryDetailsDirectory) GetTitle() *string { func (g *GetLibraryDetailsDirectory) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetLibraryDetailsDirectory) GetSecondary() *bool { func (g *GetLibraryDetailsDirectory) GetSecondary() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Secondary return g.Secondary
} }
func (o *GetLibraryDetailsDirectory) GetPrompt() *string { func (g *GetLibraryDetailsDirectory) GetPrompt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Prompt return g.Prompt
} }
func (o *GetLibraryDetailsDirectory) GetSearch() *bool { func (g *GetLibraryDetailsDirectory) GetSearch() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Search return g.Search
} }
type GetLibraryDetailsFilter struct { type GetLibraryDetailsFilter struct {
@@ -124,39 +124,39 @@ type GetLibraryDetailsFilter struct {
Type *string `json:"type,omitempty"` Type *string `json:"type,omitempty"`
} }
func (o *GetLibraryDetailsFilter) GetFilter() *string { func (g *GetLibraryDetailsFilter) GetFilter() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Filter return g.Filter
} }
func (o *GetLibraryDetailsFilter) GetFilterType() *string { func (g *GetLibraryDetailsFilter) GetFilterType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.FilterType return g.FilterType
} }
func (o *GetLibraryDetailsFilter) GetKey() *string { func (g *GetLibraryDetailsFilter) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryDetailsFilter) GetTitle() *string { func (g *GetLibraryDetailsFilter) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetLibraryDetailsFilter) GetType() *string { func (g *GetLibraryDetailsFilter) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
type GetLibraryDetailsSort struct { type GetLibraryDetailsSort struct {
@@ -168,46 +168,46 @@ type GetLibraryDetailsSort struct {
Title *string `json:"title,omitempty"` Title *string `json:"title,omitempty"`
} }
func (o *GetLibraryDetailsSort) GetDefault() *string { func (g *GetLibraryDetailsSort) GetDefault() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Default return g.Default
} }
func (o *GetLibraryDetailsSort) GetDefaultDirection() *string { func (g *GetLibraryDetailsSort) GetDefaultDirection() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DefaultDirection return g.DefaultDirection
} }
func (o *GetLibraryDetailsSort) GetDescKey() *string { func (g *GetLibraryDetailsSort) GetDescKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DescKey return g.DescKey
} }
func (o *GetLibraryDetailsSort) GetFirstCharacterKey() *string { func (g *GetLibraryDetailsSort) GetFirstCharacterKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.FirstCharacterKey return g.FirstCharacterKey
} }
func (o *GetLibraryDetailsSort) GetKey() *string { func (g *GetLibraryDetailsSort) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryDetailsSort) GetTitle() *string { func (g *GetLibraryDetailsSort) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
type GetLibraryDetailsField struct { type GetLibraryDetailsField struct {
@@ -217,32 +217,32 @@ type GetLibraryDetailsField struct {
SubType *string `json:"subType,omitempty"` SubType *string `json:"subType,omitempty"`
} }
func (o *GetLibraryDetailsField) GetKey() *string { func (g *GetLibraryDetailsField) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryDetailsField) GetTitle() *string { func (g *GetLibraryDetailsField) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetLibraryDetailsField) GetType() *string { func (g *GetLibraryDetailsField) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetLibraryDetailsField) GetSubType() *string { func (g *GetLibraryDetailsField) GetSubType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.SubType return g.SubType
} }
type GetLibraryDetailsType struct { type GetLibraryDetailsType struct {
@@ -255,53 +255,53 @@ type GetLibraryDetailsType struct {
Field []GetLibraryDetailsField `json:"Field,omitempty"` Field []GetLibraryDetailsField `json:"Field,omitempty"`
} }
func (o *GetLibraryDetailsType) GetKey() *string { func (g *GetLibraryDetailsType) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryDetailsType) GetType() *string { func (g *GetLibraryDetailsType) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetLibraryDetailsType) GetTitle() *string { func (g *GetLibraryDetailsType) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetLibraryDetailsType) GetActive() *bool { func (g *GetLibraryDetailsType) GetActive() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Active return g.Active
} }
func (o *GetLibraryDetailsType) GetFilter() []GetLibraryDetailsFilter { func (g *GetLibraryDetailsType) GetFilter() []GetLibraryDetailsFilter {
if o == nil { if g == nil {
return nil return nil
} }
return o.Filter return g.Filter
} }
func (o *GetLibraryDetailsType) GetSort() []GetLibraryDetailsSort { func (g *GetLibraryDetailsType) GetSort() []GetLibraryDetailsSort {
if o == nil { if g == nil {
return nil return nil
} }
return o.Sort return g.Sort
} }
func (o *GetLibraryDetailsType) GetField() []GetLibraryDetailsField { func (g *GetLibraryDetailsType) GetField() []GetLibraryDetailsField {
if o == nil { if g == nil {
return nil return nil
} }
return o.Field return g.Field
} }
type GetLibraryDetailsOperator struct { type GetLibraryDetailsOperator struct {
@@ -309,18 +309,18 @@ type GetLibraryDetailsOperator struct {
Title *string `json:"title,omitempty"` Title *string `json:"title,omitempty"`
} }
func (o *GetLibraryDetailsOperator) GetKey() *string { func (g *GetLibraryDetailsOperator) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryDetailsOperator) GetTitle() *string { func (g *GetLibraryDetailsOperator) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
type GetLibraryDetailsFieldType struct { type GetLibraryDetailsFieldType struct {
@@ -328,18 +328,18 @@ type GetLibraryDetailsFieldType struct {
Operator []GetLibraryDetailsOperator `json:"Operator,omitempty"` Operator []GetLibraryDetailsOperator `json:"Operator,omitempty"`
} }
func (o *GetLibraryDetailsFieldType) GetType() *string { func (g *GetLibraryDetailsFieldType) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetLibraryDetailsFieldType) GetOperator() []GetLibraryDetailsOperator { func (g *GetLibraryDetailsFieldType) GetOperator() []GetLibraryDetailsOperator {
if o == nil { if g == nil {
return nil return nil
} }
return o.Operator return g.Operator
} }
type GetLibraryDetailsMediaContainer struct { type GetLibraryDetailsMediaContainer struct {
@@ -360,109 +360,109 @@ type GetLibraryDetailsMediaContainer struct {
FieldType []GetLibraryDetailsFieldType `json:"FieldType,omitempty"` FieldType []GetLibraryDetailsFieldType `json:"FieldType,omitempty"`
} }
func (o *GetLibraryDetailsMediaContainer) GetSize() *int { func (g *GetLibraryDetailsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetLibraryDetailsMediaContainer) GetAllowSync() *bool { func (g *GetLibraryDetailsMediaContainer) GetAllowSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetLibraryDetailsMediaContainer) GetArt() *string { func (g *GetLibraryDetailsMediaContainer) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetLibraryDetailsMediaContainer) GetContent() *string { func (g *GetLibraryDetailsMediaContainer) GetContent() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Content return g.Content
} }
func (o *GetLibraryDetailsMediaContainer) GetIdentifier() *string { func (g *GetLibraryDetailsMediaContainer) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetLibraryDetailsMediaContainer) GetLibrarySectionID() *int { func (g *GetLibraryDetailsMediaContainer) GetLibrarySectionID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetLibraryDetailsMediaContainer) GetMediaTagPrefix() *string { func (g *GetLibraryDetailsMediaContainer) GetMediaTagPrefix() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetLibraryDetailsMediaContainer) GetMediaTagVersion() *int { func (g *GetLibraryDetailsMediaContainer) GetMediaTagVersion() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetLibraryDetailsMediaContainer) GetThumb() *string { func (g *GetLibraryDetailsMediaContainer) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetLibraryDetailsMediaContainer) GetTitle1() *string { func (g *GetLibraryDetailsMediaContainer) GetTitle1() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title1 return g.Title1
} }
func (o *GetLibraryDetailsMediaContainer) GetViewGroup() *string { func (g *GetLibraryDetailsMediaContainer) GetViewGroup() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewGroup return g.ViewGroup
} }
func (o *GetLibraryDetailsMediaContainer) GetViewMode() *int { func (g *GetLibraryDetailsMediaContainer) GetViewMode() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewMode return g.ViewMode
} }
func (o *GetLibraryDetailsMediaContainer) GetDirectory() []GetLibraryDetailsDirectory { func (g *GetLibraryDetailsMediaContainer) GetDirectory() []GetLibraryDetailsDirectory {
if o == nil { if g == nil {
return nil return nil
} }
return o.Directory return g.Directory
} }
func (o *GetLibraryDetailsMediaContainer) GetType() []GetLibraryDetailsType { func (g *GetLibraryDetailsMediaContainer) GetType() []GetLibraryDetailsType {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetLibraryDetailsMediaContainer) GetFieldType() []GetLibraryDetailsFieldType { func (g *GetLibraryDetailsMediaContainer) GetFieldType() []GetLibraryDetailsFieldType {
if o == nil { if g == nil {
return nil return nil
} }
return o.FieldType return g.FieldType
} }
// GetLibraryDetailsResponseBody - The details of the library // GetLibraryDetailsResponseBody - The details of the library
@@ -470,11 +470,11 @@ type GetLibraryDetailsResponseBody struct {
MediaContainer *GetLibraryDetailsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetLibraryDetailsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetLibraryDetailsResponseBody) GetMediaContainer() *GetLibraryDetailsMediaContainer { func (g *GetLibraryDetailsResponseBody) GetMediaContainer() *GetLibraryDetailsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetLibraryDetailsResponse struct { type GetLibraryDetailsResponse struct {
@@ -488,30 +488,30 @@ type GetLibraryDetailsResponse struct {
Object *GetLibraryDetailsResponseBody Object *GetLibraryDetailsResponseBody
} }
func (o *GetLibraryDetailsResponse) GetContentType() string { func (g *GetLibraryDetailsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetLibraryDetailsResponse) GetStatusCode() int { func (g *GetLibraryDetailsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetLibraryDetailsResponse) GetRawResponse() *http.Response { func (g *GetLibraryDetailsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetLibraryDetailsResponse) GetObject() *GetLibraryDetailsResponseBody { func (g *GetLibraryDetailsResponse) GetObject() *GetLibraryDetailsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -46,25 +46,25 @@ type GetLibraryHubsRequest struct {
OnlyTransient *QueryParamOnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"` OnlyTransient *QueryParamOnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"`
} }
func (o *GetLibraryHubsRequest) GetSectionID() float64 { func (g *GetLibraryHubsRequest) GetSectionID() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.SectionID return g.SectionID
} }
func (o *GetLibraryHubsRequest) GetCount() *float64 { func (g *GetLibraryHubsRequest) GetCount() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Count return g.Count
} }
func (o *GetLibraryHubsRequest) GetOnlyTransient() *QueryParamOnlyTransient { func (g *GetLibraryHubsRequest) GetOnlyTransient() *QueryParamOnlyTransient {
if o == nil { if g == nil {
return nil return nil
} }
return o.OnlyTransient return g.OnlyTransient
} }
type GetLibraryHubsPart struct { type GetLibraryHubsPart struct {
@@ -80,74 +80,74 @@ type GetLibraryHubsPart struct {
VideoProfile *string `json:"videoProfile,omitempty"` VideoProfile *string `json:"videoProfile,omitempty"`
} }
func (o *GetLibraryHubsPart) GetID() *int { func (g *GetLibraryHubsPart) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetLibraryHubsPart) GetKey() *string { func (g *GetLibraryHubsPart) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryHubsPart) GetDuration() *int { func (g *GetLibraryHubsPart) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetLibraryHubsPart) GetFile() *string { func (g *GetLibraryHubsPart) GetFile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.File return g.File
} }
func (o *GetLibraryHubsPart) GetSize() *int { func (g *GetLibraryHubsPart) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetLibraryHubsPart) GetAudioProfile() *string { func (g *GetLibraryHubsPart) GetAudioProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioProfile return g.AudioProfile
} }
func (o *GetLibraryHubsPart) GetContainer() *string { func (g *GetLibraryHubsPart) GetContainer() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Container return g.Container
} }
func (o *GetLibraryHubsPart) GetHas64bitOffsets() *bool { func (g *GetLibraryHubsPart) GetHas64bitOffsets() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Has64bitOffsets return g.Has64bitOffsets
} }
func (o *GetLibraryHubsPart) GetOptimizedForStreaming() *bool { func (g *GetLibraryHubsPart) GetOptimizedForStreaming() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.OptimizedForStreaming return g.OptimizedForStreaming
} }
func (o *GetLibraryHubsPart) GetVideoProfile() *string { func (g *GetLibraryHubsPart) GetVideoProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoProfile return g.VideoProfile
} }
type GetLibraryHubsMedia struct { type GetLibraryHubsMedia struct {
@@ -170,178 +170,178 @@ type GetLibraryHubsMedia struct {
Part []GetLibraryHubsPart `json:"Part,omitempty"` Part []GetLibraryHubsPart `json:"Part,omitempty"`
} }
func (o *GetLibraryHubsMedia) GetID() *int { func (g *GetLibraryHubsMedia) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetLibraryHubsMedia) GetDuration() *int { func (g *GetLibraryHubsMedia) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetLibraryHubsMedia) GetBitrate() *int { func (g *GetLibraryHubsMedia) GetBitrate() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Bitrate return g.Bitrate
} }
func (o *GetLibraryHubsMedia) GetWidth() *int { func (g *GetLibraryHubsMedia) GetWidth() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Width return g.Width
} }
func (o *GetLibraryHubsMedia) GetHeight() *int { func (g *GetLibraryHubsMedia) GetHeight() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Height return g.Height
} }
func (o *GetLibraryHubsMedia) GetAspectRatio() *float64 { func (g *GetLibraryHubsMedia) GetAspectRatio() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AspectRatio return g.AspectRatio
} }
func (o *GetLibraryHubsMedia) GetAudioChannels() *int { func (g *GetLibraryHubsMedia) GetAudioChannels() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioChannels return g.AudioChannels
} }
func (o *GetLibraryHubsMedia) GetAudioCodec() *string { func (g *GetLibraryHubsMedia) GetAudioCodec() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioCodec return g.AudioCodec
} }
func (o *GetLibraryHubsMedia) GetVideoCodec() *string { func (g *GetLibraryHubsMedia) GetVideoCodec() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoCodec return g.VideoCodec
} }
func (o *GetLibraryHubsMedia) GetVideoResolution() *string { func (g *GetLibraryHubsMedia) GetVideoResolution() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoResolution return g.VideoResolution
} }
func (o *GetLibraryHubsMedia) GetContainer() *string { func (g *GetLibraryHubsMedia) GetContainer() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Container return g.Container
} }
func (o *GetLibraryHubsMedia) GetVideoFrameRate() *string { func (g *GetLibraryHubsMedia) GetVideoFrameRate() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoFrameRate return g.VideoFrameRate
} }
func (o *GetLibraryHubsMedia) GetOptimizedForStreaming() *int { func (g *GetLibraryHubsMedia) GetOptimizedForStreaming() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.OptimizedForStreaming return g.OptimizedForStreaming
} }
func (o *GetLibraryHubsMedia) GetAudioProfile() *string { func (g *GetLibraryHubsMedia) GetAudioProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioProfile return g.AudioProfile
} }
func (o *GetLibraryHubsMedia) GetHas64bitOffsets() *bool { func (g *GetLibraryHubsMedia) GetHas64bitOffsets() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Has64bitOffsets return g.Has64bitOffsets
} }
func (o *GetLibraryHubsMedia) GetVideoProfile() *string { func (g *GetLibraryHubsMedia) GetVideoProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoProfile return g.VideoProfile
} }
func (o *GetLibraryHubsMedia) GetPart() []GetLibraryHubsPart { func (g *GetLibraryHubsMedia) GetPart() []GetLibraryHubsPart {
if o == nil { if g == nil {
return nil return nil
} }
return o.Part return g.Part
} }
type GetLibraryHubsGenre struct { type GetLibraryHubsGenre struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetLibraryHubsGenre) GetTag() *string { func (g *GetLibraryHubsGenre) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetLibraryHubsCountry struct { type GetLibraryHubsCountry struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetLibraryHubsCountry) GetTag() *string { func (g *GetLibraryHubsCountry) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetLibraryHubsDirector struct { type GetLibraryHubsDirector struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetLibraryHubsDirector) GetTag() *string { func (g *GetLibraryHubsDirector) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetLibraryHubsRole struct { type GetLibraryHubsRole struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetLibraryHubsRole) GetTag() *string { func (g *GetLibraryHubsRole) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetLibraryHubsWriter struct { type GetLibraryHubsWriter struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetLibraryHubsWriter) GetTag() *string { func (g *GetLibraryHubsWriter) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetLibraryHubsMetadata struct { type GetLibraryHubsMetadata struct {
@@ -392,242 +392,242 @@ func (g *GetLibraryHubsMetadata) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetLibraryHubsMetadata) GetRatingKey() *string { func (g *GetLibraryHubsMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetLibraryHubsMetadata) GetKey() *string { func (g *GetLibraryHubsMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryHubsMetadata) GetGUID() *string { func (g *GetLibraryHubsMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetLibraryHubsMetadata) GetStudio() *string { func (g *GetLibraryHubsMetadata) GetStudio() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Studio return g.Studio
} }
func (o *GetLibraryHubsMetadata) GetType() *string { func (g *GetLibraryHubsMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetLibraryHubsMetadata) GetTitle() *string { func (g *GetLibraryHubsMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetLibraryHubsMetadata) GetLibrarySectionTitle() *string { func (g *GetLibraryHubsMetadata) GetLibrarySectionTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionTitle return g.LibrarySectionTitle
} }
func (o *GetLibraryHubsMetadata) GetLibrarySectionID() *int { func (g *GetLibraryHubsMetadata) GetLibrarySectionID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetLibraryHubsMetadata) GetLibrarySectionKey() *string { func (g *GetLibraryHubsMetadata) GetLibrarySectionKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionKey return g.LibrarySectionKey
} }
func (o *GetLibraryHubsMetadata) GetContentRating() *string { func (g *GetLibraryHubsMetadata) GetContentRating() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ContentRating return g.ContentRating
} }
func (o *GetLibraryHubsMetadata) GetSummary() *string { func (g *GetLibraryHubsMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetLibraryHubsMetadata) GetRating() *float64 { func (g *GetLibraryHubsMetadata) GetRating() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Rating return g.Rating
} }
func (o *GetLibraryHubsMetadata) GetAudienceRating() *float64 { func (g *GetLibraryHubsMetadata) GetAudienceRating() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRating return g.AudienceRating
} }
func (o *GetLibraryHubsMetadata) GetViewCount() *int { func (g *GetLibraryHubsMetadata) GetViewCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewCount return g.ViewCount
} }
func (o *GetLibraryHubsMetadata) GetLastViewedAt() *int { func (g *GetLibraryHubsMetadata) GetLastViewedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LastViewedAt return g.LastViewedAt
} }
func (o *GetLibraryHubsMetadata) GetYear() *int { func (g *GetLibraryHubsMetadata) GetYear() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Year return g.Year
} }
func (o *GetLibraryHubsMetadata) GetTagline() *string { func (g *GetLibraryHubsMetadata) GetTagline() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tagline return g.Tagline
} }
func (o *GetLibraryHubsMetadata) GetThumb() *string { func (g *GetLibraryHubsMetadata) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetLibraryHubsMetadata) GetArt() *string { func (g *GetLibraryHubsMetadata) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetLibraryHubsMetadata) GetDuration() *int { func (g *GetLibraryHubsMetadata) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetLibraryHubsMetadata) GetOriginallyAvailableAt() *types.Date { func (g *GetLibraryHubsMetadata) GetOriginallyAvailableAt() *types.Date {
if o == nil { if g == nil {
return nil return nil
} }
return o.OriginallyAvailableAt return g.OriginallyAvailableAt
} }
func (o *GetLibraryHubsMetadata) GetAddedAt() *int { func (g *GetLibraryHubsMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetLibraryHubsMetadata) GetUpdatedAt() *int { func (g *GetLibraryHubsMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetLibraryHubsMetadata) GetAudienceRatingImage() *string { func (g *GetLibraryHubsMetadata) GetAudienceRatingImage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRatingImage return g.AudienceRatingImage
} }
func (o *GetLibraryHubsMetadata) GetPrimaryExtraKey() *string { func (g *GetLibraryHubsMetadata) GetPrimaryExtraKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PrimaryExtraKey return g.PrimaryExtraKey
} }
func (o *GetLibraryHubsMetadata) GetRatingImage() *string { func (g *GetLibraryHubsMetadata) GetRatingImage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingImage return g.RatingImage
} }
func (o *GetLibraryHubsMetadata) GetMedia() []GetLibraryHubsMedia { func (g *GetLibraryHubsMetadata) GetMedia() []GetLibraryHubsMedia {
if o == nil { if g == nil {
return nil return nil
} }
return o.Media return g.Media
} }
func (o *GetLibraryHubsMetadata) GetGenre() []GetLibraryHubsGenre { func (g *GetLibraryHubsMetadata) GetGenre() []GetLibraryHubsGenre {
if o == nil { if g == nil {
return nil return nil
} }
return o.Genre return g.Genre
} }
func (o *GetLibraryHubsMetadata) GetCountry() []GetLibraryHubsCountry { func (g *GetLibraryHubsMetadata) GetCountry() []GetLibraryHubsCountry {
if o == nil { if g == nil {
return nil return nil
} }
return o.Country return g.Country
} }
func (o *GetLibraryHubsMetadata) GetDirector() []GetLibraryHubsDirector { func (g *GetLibraryHubsMetadata) GetDirector() []GetLibraryHubsDirector {
if o == nil { if g == nil {
return nil return nil
} }
return o.Director return g.Director
} }
func (o *GetLibraryHubsMetadata) GetRole() []GetLibraryHubsRole { func (g *GetLibraryHubsMetadata) GetRole() []GetLibraryHubsRole {
if o == nil { if g == nil {
return nil return nil
} }
return o.Role return g.Role
} }
func (o *GetLibraryHubsMetadata) GetWriter() []GetLibraryHubsWriter { func (g *GetLibraryHubsMetadata) GetWriter() []GetLibraryHubsWriter {
if o == nil { if g == nil {
return nil return nil
} }
return o.Writer return g.Writer
} }
func (o *GetLibraryHubsMetadata) GetSkipCount() *int { func (g *GetLibraryHubsMetadata) GetSkipCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.SkipCount return g.SkipCount
} }
func (o *GetLibraryHubsMetadata) GetChapterSource() *string { func (g *GetLibraryHubsMetadata) GetChapterSource() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ChapterSource return g.ChapterSource
} }
type GetLibraryHubsHub struct { type GetLibraryHubsHub struct {
@@ -645,88 +645,88 @@ type GetLibraryHubsHub struct {
Random *bool `json:"random,omitempty"` Random *bool `json:"random,omitempty"`
} }
func (o *GetLibraryHubsHub) GetKey() *string { func (g *GetLibraryHubsHub) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetLibraryHubsHub) GetTitle() *string { func (g *GetLibraryHubsHub) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetLibraryHubsHub) GetType() *string { func (g *GetLibraryHubsHub) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetLibraryHubsHub) GetHubIdentifier() *string { func (g *GetLibraryHubsHub) GetHubIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.HubIdentifier return g.HubIdentifier
} }
func (o *GetLibraryHubsHub) GetContext() *string { func (g *GetLibraryHubsHub) GetContext() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Context return g.Context
} }
func (o *GetLibraryHubsHub) GetSize() *int { func (g *GetLibraryHubsHub) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetLibraryHubsHub) GetMore() *bool { func (g *GetLibraryHubsHub) GetMore() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.More return g.More
} }
func (o *GetLibraryHubsHub) GetStyle() *string { func (g *GetLibraryHubsHub) GetStyle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Style return g.Style
} }
func (o *GetLibraryHubsHub) GetHubKey() *string { func (g *GetLibraryHubsHub) GetHubKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.HubKey return g.HubKey
} }
func (o *GetLibraryHubsHub) GetMetadata() []GetLibraryHubsMetadata { func (g *GetLibraryHubsHub) GetMetadata() []GetLibraryHubsMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
func (o *GetLibraryHubsHub) GetPromoted() *bool { func (g *GetLibraryHubsHub) GetPromoted() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Promoted return g.Promoted
} }
func (o *GetLibraryHubsHub) GetRandom() *bool { func (g *GetLibraryHubsHub) GetRandom() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Random return g.Random
} }
type GetLibraryHubsMediaContainer struct { type GetLibraryHubsMediaContainer struct {
@@ -739,53 +739,53 @@ type GetLibraryHubsMediaContainer struct {
Hub []GetLibraryHubsHub `json:"Hub,omitempty"` Hub []GetLibraryHubsHub `json:"Hub,omitempty"`
} }
func (o *GetLibraryHubsMediaContainer) GetSize() *int { func (g *GetLibraryHubsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetLibraryHubsMediaContainer) GetAllowSync() *bool { func (g *GetLibraryHubsMediaContainer) GetAllowSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetLibraryHubsMediaContainer) GetIdentifier() *string { func (g *GetLibraryHubsMediaContainer) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetLibraryHubsMediaContainer) GetLibrarySectionID() *int { func (g *GetLibraryHubsMediaContainer) GetLibrarySectionID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetLibraryHubsMediaContainer) GetLibrarySectionTitle() *string { func (g *GetLibraryHubsMediaContainer) GetLibrarySectionTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionTitle return g.LibrarySectionTitle
} }
func (o *GetLibraryHubsMediaContainer) GetLibrarySectionUUID() *string { func (g *GetLibraryHubsMediaContainer) GetLibrarySectionUUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionUUID return g.LibrarySectionUUID
} }
func (o *GetLibraryHubsMediaContainer) GetHub() []GetLibraryHubsHub { func (g *GetLibraryHubsMediaContainer) GetHub() []GetLibraryHubsHub {
if o == nil { if g == nil {
return nil return nil
} }
return o.Hub return g.Hub
} }
// GetLibraryHubsResponseBody - The hubs specific to the library // GetLibraryHubsResponseBody - The hubs specific to the library
@@ -793,11 +793,11 @@ type GetLibraryHubsResponseBody struct {
MediaContainer *GetLibraryHubsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetLibraryHubsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetLibraryHubsResponseBody) GetMediaContainer() *GetLibraryHubsMediaContainer { func (g *GetLibraryHubsResponseBody) GetMediaContainer() *GetLibraryHubsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetLibraryHubsResponse struct { type GetLibraryHubsResponse struct {
@@ -811,30 +811,30 @@ type GetLibraryHubsResponse struct {
Object *GetLibraryHubsResponseBody Object *GetLibraryHubsResponseBody
} }
func (o *GetLibraryHubsResponse) GetContentType() string { func (g *GetLibraryHubsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetLibraryHubsResponse) GetStatusCode() int { func (g *GetLibraryHubsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetLibraryHubsResponse) GetRawResponse() *http.Response { func (g *GetLibraryHubsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetLibraryHubsResponse) GetObject() *GetLibraryHubsResponseBody { func (g *GetLibraryHubsResponse) GetObject() *GetLibraryHubsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -11,11 +11,11 @@ type GetMediaArtsRequest struct {
RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"` RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"`
} }
func (o *GetMediaArtsRequest) GetRatingKey() int64 { func (g *GetMediaArtsRequest) GetRatingKey() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.RatingKey return g.RatingKey
} }
type GetMediaArtsMetadata struct { type GetMediaArtsMetadata struct {
@@ -31,39 +31,39 @@ type GetMediaArtsMetadata struct {
Thumb string `json:"thumb"` Thumb string `json:"thumb"`
} }
func (o *GetMediaArtsMetadata) GetKey() string { func (g *GetMediaArtsMetadata) GetKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Key return g.Key
} }
func (o *GetMediaArtsMetadata) GetProvider() *string { func (g *GetMediaArtsMetadata) GetProvider() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Provider return g.Provider
} }
func (o *GetMediaArtsMetadata) GetRatingKey() string { func (g *GetMediaArtsMetadata) GetRatingKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetMediaArtsMetadata) GetSelected() bool { func (g *GetMediaArtsMetadata) GetSelected() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Selected return g.Selected
} }
func (o *GetMediaArtsMetadata) GetThumb() string { func (g *GetMediaArtsMetadata) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
type GetMediaArtsMediaContainer struct { type GetMediaArtsMediaContainer struct {
@@ -78,39 +78,39 @@ type GetMediaArtsMediaContainer struct {
Metadata []GetMediaArtsMetadata `json:"Metadata"` Metadata []GetMediaArtsMetadata `json:"Metadata"`
} }
func (o *GetMediaArtsMediaContainer) GetSize() int { func (g *GetMediaArtsMediaContainer) GetSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetMediaArtsMediaContainer) GetMediaTagVersion() int64 { func (g *GetMediaArtsMediaContainer) GetMediaTagVersion() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetMediaArtsMediaContainer) GetMediaTagPrefix() string { func (g *GetMediaArtsMediaContainer) GetMediaTagPrefix() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetMediaArtsMediaContainer) GetIdentifier() string { func (g *GetMediaArtsMediaContainer) GetIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Identifier return g.Identifier
} }
func (o *GetMediaArtsMediaContainer) GetMetadata() []GetMediaArtsMetadata { func (g *GetMediaArtsMediaContainer) GetMetadata() []GetMediaArtsMetadata {
if o == nil { if g == nil {
return []GetMediaArtsMetadata{} return []GetMediaArtsMetadata{}
} }
return o.Metadata return g.Metadata
} }
// GetMediaArtsResponseBody - The available background artwork for the library item. // GetMediaArtsResponseBody - The available background artwork for the library item.
@@ -118,11 +118,11 @@ type GetMediaArtsResponseBody struct {
MediaContainer *GetMediaArtsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetMediaArtsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetMediaArtsResponseBody) GetMediaContainer() *GetMediaArtsMediaContainer { func (g *GetMediaArtsResponseBody) GetMediaContainer() *GetMediaArtsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetMediaArtsResponse struct { type GetMediaArtsResponse struct {
@@ -136,30 +136,30 @@ type GetMediaArtsResponse struct {
Object *GetMediaArtsResponseBody Object *GetMediaArtsResponseBody
} }
func (o *GetMediaArtsResponse) GetContentType() string { func (g *GetMediaArtsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetMediaArtsResponse) GetStatusCode() int { func (g *GetMediaArtsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetMediaArtsResponse) GetRawResponse() *http.Response { func (g *GetMediaArtsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetMediaArtsResponse) GetObject() *GetMediaArtsResponseBody { func (g *GetMediaArtsResponse) GetObject() *GetMediaArtsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

File diff suppressed because it is too large Load Diff

View File

@@ -11,11 +11,11 @@ type GetMediaPostersRequest struct {
RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"` RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"`
} }
func (o *GetMediaPostersRequest) GetRatingKey() int64 { func (g *GetMediaPostersRequest) GetRatingKey() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.RatingKey return g.RatingKey
} }
type GetMediaPostersMetadata struct { type GetMediaPostersMetadata struct {
@@ -31,39 +31,39 @@ type GetMediaPostersMetadata struct {
Thumb string `json:"thumb"` Thumb string `json:"thumb"`
} }
func (o *GetMediaPostersMetadata) GetKey() string { func (g *GetMediaPostersMetadata) GetKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Key return g.Key
} }
func (o *GetMediaPostersMetadata) GetProvider() *string { func (g *GetMediaPostersMetadata) GetProvider() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Provider return g.Provider
} }
func (o *GetMediaPostersMetadata) GetRatingKey() string { func (g *GetMediaPostersMetadata) GetRatingKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetMediaPostersMetadata) GetSelected() bool { func (g *GetMediaPostersMetadata) GetSelected() bool {
if o == nil { if g == nil {
return false return false
} }
return o.Selected return g.Selected
} }
func (o *GetMediaPostersMetadata) GetThumb() string { func (g *GetMediaPostersMetadata) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
type GetMediaPostersMediaContainer struct { type GetMediaPostersMediaContainer struct {
@@ -78,39 +78,39 @@ type GetMediaPostersMediaContainer struct {
Metadata []GetMediaPostersMetadata `json:"Metadata"` Metadata []GetMediaPostersMetadata `json:"Metadata"`
} }
func (o *GetMediaPostersMediaContainer) GetSize() int { func (g *GetMediaPostersMediaContainer) GetSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetMediaPostersMediaContainer) GetMediaTagVersion() int64 { func (g *GetMediaPostersMediaContainer) GetMediaTagVersion() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetMediaPostersMediaContainer) GetMediaTagPrefix() string { func (g *GetMediaPostersMediaContainer) GetMediaTagPrefix() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetMediaPostersMediaContainer) GetIdentifier() string { func (g *GetMediaPostersMediaContainer) GetIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Identifier return g.Identifier
} }
func (o *GetMediaPostersMediaContainer) GetMetadata() []GetMediaPostersMetadata { func (g *GetMediaPostersMediaContainer) GetMetadata() []GetMediaPostersMetadata {
if o == nil { if g == nil {
return []GetMediaPostersMetadata{} return []GetMediaPostersMetadata{}
} }
return o.Metadata return g.Metadata
} }
// GetMediaPostersResponseBody - The available posters for the library item. // GetMediaPostersResponseBody - The available posters for the library item.
@@ -118,11 +118,11 @@ type GetMediaPostersResponseBody struct {
MediaContainer *GetMediaPostersMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetMediaPostersMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetMediaPostersResponseBody) GetMediaContainer() *GetMediaPostersMediaContainer { func (g *GetMediaPostersResponseBody) GetMediaContainer() *GetMediaPostersMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetMediaPostersResponse struct { type GetMediaPostersResponse struct {
@@ -136,30 +136,30 @@ type GetMediaPostersResponse struct {
Object *GetMediaPostersResponseBody Object *GetMediaPostersResponseBody
} }
func (o *GetMediaPostersResponse) GetContentType() string { func (g *GetMediaPostersResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetMediaPostersResponse) GetStatusCode() int { func (g *GetMediaPostersResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetMediaPostersResponse) GetRawResponse() *http.Response { func (g *GetMediaPostersResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetMediaPostersResponse) GetObject() *GetMediaPostersResponseBody { func (g *GetMediaPostersResponse) GetObject() *GetMediaPostersResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -11,11 +11,11 @@ type GetMediaProvidersRequest struct {
XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"`
} }
func (o *GetMediaProvidersRequest) GetXPlexToken() string { func (g *GetMediaProvidersRequest) GetXPlexToken() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.XPlexToken return g.XPlexToken
} }
type Pivot struct { type Pivot struct {
@@ -27,46 +27,46 @@ type Pivot struct {
Symbol *string `json:"symbol,omitempty"` Symbol *string `json:"symbol,omitempty"`
} }
func (o *Pivot) GetID() *string { func (p *Pivot) GetID() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.ID return p.ID
} }
func (o *Pivot) GetKey() *string { func (p *Pivot) GetKey() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Key return p.Key
} }
func (o *Pivot) GetType() *string { func (p *Pivot) GetType() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Type return p.Type
} }
func (o *Pivot) GetTitle() *string { func (p *Pivot) GetTitle() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Title return p.Title
} }
func (o *Pivot) GetContext() *string { func (p *Pivot) GetContext() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Context return p.Context
} }
func (o *Pivot) GetSymbol() *string { func (p *Pivot) GetSymbol() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Symbol return p.Symbol
} }
type GetMediaProvidersDirectory struct { type GetMediaProvidersDirectory struct {
@@ -86,102 +86,102 @@ type GetMediaProvidersDirectory struct {
Pivot []Pivot `json:"Pivot,omitempty"` Pivot []Pivot `json:"Pivot,omitempty"`
} }
func (o *GetMediaProvidersDirectory) GetHubKey() *string { func (g *GetMediaProvidersDirectory) GetHubKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.HubKey return g.HubKey
} }
func (o *GetMediaProvidersDirectory) GetTitle() *string { func (g *GetMediaProvidersDirectory) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetMediaProvidersDirectory) GetAgent() *string { func (g *GetMediaProvidersDirectory) GetAgent() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Agent return g.Agent
} }
func (o *GetMediaProvidersDirectory) GetLanguage() *string { func (g *GetMediaProvidersDirectory) GetLanguage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Language return g.Language
} }
func (o *GetMediaProvidersDirectory) GetRefreshing() *bool { func (g *GetMediaProvidersDirectory) GetRefreshing() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Refreshing return g.Refreshing
} }
func (o *GetMediaProvidersDirectory) GetScanner() *string { func (g *GetMediaProvidersDirectory) GetScanner() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Scanner return g.Scanner
} }
func (o *GetMediaProvidersDirectory) GetUUID() *string { func (g *GetMediaProvidersDirectory) GetUUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.UUID return g.UUID
} }
func (o *GetMediaProvidersDirectory) GetID() *string { func (g *GetMediaProvidersDirectory) GetID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetMediaProvidersDirectory) GetKey() *string { func (g *GetMediaProvidersDirectory) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetMediaProvidersDirectory) GetType() *string { func (g *GetMediaProvidersDirectory) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetMediaProvidersDirectory) GetSubtype() *string { func (g *GetMediaProvidersDirectory) GetSubtype() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Subtype return g.Subtype
} }
func (o *GetMediaProvidersDirectory) GetUpdatedAt() *int64 { func (g *GetMediaProvidersDirectory) GetUpdatedAt() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetMediaProvidersDirectory) GetScannedAt() *int64 { func (g *GetMediaProvidersDirectory) GetScannedAt() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ScannedAt return g.ScannedAt
} }
func (o *GetMediaProvidersDirectory) GetPivot() []Pivot { func (g *GetMediaProvidersDirectory) GetPivot() []Pivot {
if o == nil { if g == nil {
return nil return nil
} }
return o.Pivot return g.Pivot
} }
type Action struct { type Action struct {
@@ -189,18 +189,18 @@ type Action struct {
Key string `json:"key"` Key string `json:"key"`
} }
func (o *Action) GetID() string { func (a *Action) GetID() string {
if o == nil { if a == nil {
return "" return ""
} }
return o.ID return a.ID
} }
func (o *Action) GetKey() string { func (a *Action) GetKey() string {
if o == nil { if a == nil {
return "" return ""
} }
return o.Key return a.Key
} }
type Feature struct { type Feature struct {
@@ -213,53 +213,53 @@ type Feature struct {
Action []Action `json:"Action,omitempty"` Action []Action `json:"Action,omitempty"`
} }
func (o *Feature) GetKey() *string { func (f *Feature) GetKey() *string {
if o == nil { if f == nil {
return nil return nil
} }
return o.Key return f.Key
} }
func (o *Feature) GetType() string { func (f *Feature) GetType() string {
if o == nil { if f == nil {
return "" return ""
} }
return o.Type return f.Type
} }
func (o *Feature) GetFlavor() *string { func (f *Feature) GetFlavor() *string {
if o == nil { if f == nil {
return nil return nil
} }
return o.Flavor return f.Flavor
} }
func (o *Feature) GetScrobbleKey() *string { func (f *Feature) GetScrobbleKey() *string {
if o == nil { if f == nil {
return nil return nil
} }
return o.ScrobbleKey return f.ScrobbleKey
} }
func (o *Feature) GetUnscrobbleKey() *string { func (f *Feature) GetUnscrobbleKey() *string {
if o == nil { if f == nil {
return nil return nil
} }
return o.UnscrobbleKey return f.UnscrobbleKey
} }
func (o *Feature) GetDirectory() []GetMediaProvidersDirectory { func (f *Feature) GetDirectory() []GetMediaProvidersDirectory {
if o == nil { if f == nil {
return nil return nil
} }
return o.Directory return f.Directory
} }
func (o *Feature) GetAction() []Action { func (f *Feature) GetAction() []Action {
if o == nil { if f == nil {
return nil return nil
} }
return o.Action return f.Action
} }
type MediaProvider struct { type MediaProvider struct {
@@ -270,39 +270,39 @@ type MediaProvider struct {
Feature []Feature `json:"Feature,omitempty"` Feature []Feature `json:"Feature,omitempty"`
} }
func (o *MediaProvider) GetIdentifier() *string { func (m *MediaProvider) GetIdentifier() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Identifier return m.Identifier
} }
func (o *MediaProvider) GetTitle() *string { func (m *MediaProvider) GetTitle() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Title return m.Title
} }
func (o *MediaProvider) GetTypes() *string { func (m *MediaProvider) GetTypes() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Types return m.Types
} }
func (o *MediaProvider) GetProtocols() *string { func (m *MediaProvider) GetProtocols() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Protocols return m.Protocols
} }
func (o *MediaProvider) GetFeature() []Feature { func (m *MediaProvider) GetFeature() []Feature {
if o == nil { if m == nil {
return nil return nil
} }
return o.Feature return m.Feature
} }
type GetMediaProvidersMediaContainer struct { type GetMediaProvidersMediaContainer struct {
@@ -352,312 +352,312 @@ type GetMediaProvidersMediaContainer struct {
MediaProvider []MediaProvider `json:"MediaProvider,omitempty"` MediaProvider []MediaProvider `json:"MediaProvider,omitempty"`
} }
func (o *GetMediaProvidersMediaContainer) GetSize() *int64 { func (g *GetMediaProvidersMediaContainer) GetSize() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetMediaProvidersMediaContainer) GetAllowCameraUpload() *bool { func (g *GetMediaProvidersMediaContainer) GetAllowCameraUpload() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowCameraUpload return g.AllowCameraUpload
} }
func (o *GetMediaProvidersMediaContainer) GetAllowChannelAccess() *bool { func (g *GetMediaProvidersMediaContainer) GetAllowChannelAccess() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowChannelAccess return g.AllowChannelAccess
} }
func (o *GetMediaProvidersMediaContainer) GetAllowSharing() *bool { func (g *GetMediaProvidersMediaContainer) GetAllowSharing() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSharing return g.AllowSharing
} }
func (o *GetMediaProvidersMediaContainer) GetAllowSync() *bool { func (g *GetMediaProvidersMediaContainer) GetAllowSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetMediaProvidersMediaContainer) GetAllowTuners() *bool { func (g *GetMediaProvidersMediaContainer) GetAllowTuners() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowTuners return g.AllowTuners
} }
func (o *GetMediaProvidersMediaContainer) GetBackgroundProcessing() *bool { func (g *GetMediaProvidersMediaContainer) GetBackgroundProcessing() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.BackgroundProcessing return g.BackgroundProcessing
} }
func (o *GetMediaProvidersMediaContainer) GetCertificate() *bool { func (g *GetMediaProvidersMediaContainer) GetCertificate() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Certificate return g.Certificate
} }
func (o *GetMediaProvidersMediaContainer) GetCompanionProxy() *bool { func (g *GetMediaProvidersMediaContainer) GetCompanionProxy() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.CompanionProxy return g.CompanionProxy
} }
func (o *GetMediaProvidersMediaContainer) GetCountryCode() *string { func (g *GetMediaProvidersMediaContainer) GetCountryCode() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.CountryCode return g.CountryCode
} }
func (o *GetMediaProvidersMediaContainer) GetDiagnostics() *string { func (g *GetMediaProvidersMediaContainer) GetDiagnostics() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Diagnostics return g.Diagnostics
} }
func (o *GetMediaProvidersMediaContainer) GetEventStream() *bool { func (g *GetMediaProvidersMediaContainer) GetEventStream() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.EventStream return g.EventStream
} }
func (o *GetMediaProvidersMediaContainer) GetFriendlyName() *string { func (g *GetMediaProvidersMediaContainer) GetFriendlyName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.FriendlyName return g.FriendlyName
} }
func (o *GetMediaProvidersMediaContainer) GetLivetv() *int64 { func (g *GetMediaProvidersMediaContainer) GetLivetv() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Livetv return g.Livetv
} }
func (o *GetMediaProvidersMediaContainer) GetMachineIdentifier() *string { func (g *GetMediaProvidersMediaContainer) GetMachineIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MachineIdentifier return g.MachineIdentifier
} }
func (o *GetMediaProvidersMediaContainer) GetMusicAnalysis() *int64 { func (g *GetMediaProvidersMediaContainer) GetMusicAnalysis() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.MusicAnalysis return g.MusicAnalysis
} }
func (o *GetMediaProvidersMediaContainer) GetMyPlex() *bool { func (g *GetMediaProvidersMediaContainer) GetMyPlex() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.MyPlex return g.MyPlex
} }
func (o *GetMediaProvidersMediaContainer) GetMyPlexMappingState() *string { func (g *GetMediaProvidersMediaContainer) GetMyPlexMappingState() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MyPlexMappingState return g.MyPlexMappingState
} }
func (o *GetMediaProvidersMediaContainer) GetMyPlexSigninState() *string { func (g *GetMediaProvidersMediaContainer) GetMyPlexSigninState() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MyPlexSigninState return g.MyPlexSigninState
} }
func (o *GetMediaProvidersMediaContainer) GetMyPlexSubscription() *bool { func (g *GetMediaProvidersMediaContainer) GetMyPlexSubscription() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.MyPlexSubscription return g.MyPlexSubscription
} }
func (o *GetMediaProvidersMediaContainer) GetMyPlexUsername() *string { func (g *GetMediaProvidersMediaContainer) GetMyPlexUsername() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MyPlexUsername return g.MyPlexUsername
} }
func (o *GetMediaProvidersMediaContainer) GetOfflineTranscode() *int64 { func (g *GetMediaProvidersMediaContainer) GetOfflineTranscode() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.OfflineTranscode return g.OfflineTranscode
} }
func (o *GetMediaProvidersMediaContainer) GetOwnerFeatures() *string { func (g *GetMediaProvidersMediaContainer) GetOwnerFeatures() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.OwnerFeatures return g.OwnerFeatures
} }
func (o *GetMediaProvidersMediaContainer) GetPlatform() *string { func (g *GetMediaProvidersMediaContainer) GetPlatform() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Platform return g.Platform
} }
func (o *GetMediaProvidersMediaContainer) GetPlatformVersion() *string { func (g *GetMediaProvidersMediaContainer) GetPlatformVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlatformVersion return g.PlatformVersion
} }
func (o *GetMediaProvidersMediaContainer) GetPluginHost() *bool { func (g *GetMediaProvidersMediaContainer) GetPluginHost() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.PluginHost return g.PluginHost
} }
func (o *GetMediaProvidersMediaContainer) GetPushNotifications() *bool { func (g *GetMediaProvidersMediaContainer) GetPushNotifications() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.PushNotifications return g.PushNotifications
} }
func (o *GetMediaProvidersMediaContainer) GetReadOnlyLibraries() *bool { func (g *GetMediaProvidersMediaContainer) GetReadOnlyLibraries() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.ReadOnlyLibraries return g.ReadOnlyLibraries
} }
func (o *GetMediaProvidersMediaContainer) GetStreamingBrainABRVersion() *int64 { func (g *GetMediaProvidersMediaContainer) GetStreamingBrainABRVersion() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.StreamingBrainABRVersion return g.StreamingBrainABRVersion
} }
func (o *GetMediaProvidersMediaContainer) GetStreamingBrainVersion() *int64 { func (g *GetMediaProvidersMediaContainer) GetStreamingBrainVersion() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.StreamingBrainVersion return g.StreamingBrainVersion
} }
func (o *GetMediaProvidersMediaContainer) GetSync() *bool { func (g *GetMediaProvidersMediaContainer) GetSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Sync return g.Sync
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderActiveVideoSessions() *int64 { func (g *GetMediaProvidersMediaContainer) GetTranscoderActiveVideoSessions() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderActiveVideoSessions return g.TranscoderActiveVideoSessions
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderAudio() *bool { func (g *GetMediaProvidersMediaContainer) GetTranscoderAudio() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderAudio return g.TranscoderAudio
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderLyrics() *bool { func (g *GetMediaProvidersMediaContainer) GetTranscoderLyrics() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderLyrics return g.TranscoderLyrics
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderSubtitles() *bool { func (g *GetMediaProvidersMediaContainer) GetTranscoderSubtitles() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderSubtitles return g.TranscoderSubtitles
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderVideo() *bool { func (g *GetMediaProvidersMediaContainer) GetTranscoderVideo() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderVideo return g.TranscoderVideo
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderVideoBitrates() *string { func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoBitrates() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderVideoBitrates return g.TranscoderVideoBitrates
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderVideoQualities() *string { func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoQualities() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderVideoQualities return g.TranscoderVideoQualities
} }
func (o *GetMediaProvidersMediaContainer) GetTranscoderVideoResolutions() *string { func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoResolutions() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscoderVideoResolutions return g.TranscoderVideoResolutions
} }
func (o *GetMediaProvidersMediaContainer) GetUpdatedAt() *int64 { func (g *GetMediaProvidersMediaContainer) GetUpdatedAt() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetMediaProvidersMediaContainer) GetUpdater() *bool { func (g *GetMediaProvidersMediaContainer) GetUpdater() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Updater return g.Updater
} }
func (o *GetMediaProvidersMediaContainer) GetVersion() *string { func (g *GetMediaProvidersMediaContainer) GetVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Version return g.Version
} }
func (o *GetMediaProvidersMediaContainer) GetVoiceSearch() *bool { func (g *GetMediaProvidersMediaContainer) GetVoiceSearch() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.VoiceSearch return g.VoiceSearch
} }
func (o *GetMediaProvidersMediaContainer) GetMediaProvider() []MediaProvider { func (g *GetMediaProvidersMediaContainer) GetMediaProvider() []MediaProvider {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaProvider return g.MediaProvider
} }
// GetMediaProvidersResponseBody - Media providers and their features // GetMediaProvidersResponseBody - Media providers and their features
@@ -665,11 +665,11 @@ type GetMediaProvidersResponseBody struct {
MediaContainer *GetMediaProvidersMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetMediaProvidersMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetMediaProvidersResponseBody) GetMediaContainer() *GetMediaProvidersMediaContainer { func (g *GetMediaProvidersResponseBody) GetMediaContainer() *GetMediaProvidersMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetMediaProvidersResponse struct { type GetMediaProvidersResponse struct {
@@ -683,30 +683,30 @@ type GetMediaProvidersResponse struct {
Object *GetMediaProvidersResponseBody Object *GetMediaProvidersResponseBody
} }
func (o *GetMediaProvidersResponse) GetContentType() string { func (g *GetMediaProvidersResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetMediaProvidersResponse) GetStatusCode() int { func (g *GetMediaProvidersResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetMediaProvidersResponse) GetRawResponse() *http.Response { func (g *GetMediaProvidersResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetMediaProvidersResponse) GetObject() *GetMediaProvidersResponseBody { func (g *GetMediaProvidersResponse) GetObject() *GetMediaProvidersResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -14,18 +14,18 @@ type GetMetadataChildrenRequest struct {
IncludeElements *string `queryParam:"style=form,explode=true,name=includeElements"` IncludeElements *string `queryParam:"style=form,explode=true,name=includeElements"`
} }
func (o *GetMetadataChildrenRequest) GetRatingKey() float64 { func (g *GetMetadataChildrenRequest) GetRatingKey() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetMetadataChildrenRequest) GetIncludeElements() *string { func (g *GetMetadataChildrenRequest) GetIncludeElements() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeElements return g.IncludeElements
} }
type GetMetadataChildrenDirectory struct { type GetMetadataChildrenDirectory struct {
@@ -36,39 +36,39 @@ type GetMetadataChildrenDirectory struct {
Title *string `json:"title,omitempty"` Title *string `json:"title,omitempty"`
} }
func (o *GetMetadataChildrenDirectory) GetLeafCount() *int { func (g *GetMetadataChildrenDirectory) GetLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LeafCount return g.LeafCount
} }
func (o *GetMetadataChildrenDirectory) GetThumb() *string { func (g *GetMetadataChildrenDirectory) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetMetadataChildrenDirectory) GetViewedLeafCount() *int { func (g *GetMetadataChildrenDirectory) GetViewedLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewedLeafCount return g.ViewedLeafCount
} }
func (o *GetMetadataChildrenDirectory) GetKey() *string { func (g *GetMetadataChildrenDirectory) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetMetadataChildrenDirectory) GetTitle() *string { func (g *GetMetadataChildrenDirectory) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
type GetMetadataChildrenMetadata struct { type GetMetadataChildrenMetadata struct {
@@ -101,193 +101,193 @@ type GetMetadataChildrenMetadata struct {
LastRatedAt *int `json:"lastRatedAt,omitempty"` LastRatedAt *int `json:"lastRatedAt,omitempty"`
} }
func (o *GetMetadataChildrenMetadata) GetRatingKey() *string { func (g *GetMetadataChildrenMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetMetadataChildrenMetadata) GetKey() *string { func (g *GetMetadataChildrenMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetMetadataChildrenMetadata) GetParentRatingKey() *string { func (g *GetMetadataChildrenMetadata) GetParentRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentRatingKey return g.ParentRatingKey
} }
func (o *GetMetadataChildrenMetadata) GetGUID() *string { func (g *GetMetadataChildrenMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetMetadataChildrenMetadata) GetParentGUID() *string { func (g *GetMetadataChildrenMetadata) GetParentGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentGUID return g.ParentGUID
} }
func (o *GetMetadataChildrenMetadata) GetParentStudio() *string { func (g *GetMetadataChildrenMetadata) GetParentStudio() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentStudio return g.ParentStudio
} }
func (o *GetMetadataChildrenMetadata) GetType() *string { func (g *GetMetadataChildrenMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetMetadataChildrenMetadata) GetTitle() *string { func (g *GetMetadataChildrenMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetMetadataChildrenMetadata) GetParentKey() *string { func (g *GetMetadataChildrenMetadata) GetParentKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentKey return g.ParentKey
} }
func (o *GetMetadataChildrenMetadata) GetParentTitle() *string { func (g *GetMetadataChildrenMetadata) GetParentTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentTitle return g.ParentTitle
} }
func (o *GetMetadataChildrenMetadata) GetSummary() *string { func (g *GetMetadataChildrenMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetMetadataChildrenMetadata) GetIndex() *int { func (g *GetMetadataChildrenMetadata) GetIndex() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Index return g.Index
} }
func (o *GetMetadataChildrenMetadata) GetParentIndex() *int { func (g *GetMetadataChildrenMetadata) GetParentIndex() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentIndex return g.ParentIndex
} }
func (o *GetMetadataChildrenMetadata) GetViewCount() *int { func (g *GetMetadataChildrenMetadata) GetViewCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewCount return g.ViewCount
} }
func (o *GetMetadataChildrenMetadata) GetLastViewedAt() *int { func (g *GetMetadataChildrenMetadata) GetLastViewedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LastViewedAt return g.LastViewedAt
} }
func (o *GetMetadataChildrenMetadata) GetParentYear() *int { func (g *GetMetadataChildrenMetadata) GetParentYear() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentYear return g.ParentYear
} }
func (o *GetMetadataChildrenMetadata) GetThumb() *string { func (g *GetMetadataChildrenMetadata) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetMetadataChildrenMetadata) GetArt() *string { func (g *GetMetadataChildrenMetadata) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetMetadataChildrenMetadata) GetParentThumb() *string { func (g *GetMetadataChildrenMetadata) GetParentThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentThumb return g.ParentThumb
} }
func (o *GetMetadataChildrenMetadata) GetParentTheme() *string { func (g *GetMetadataChildrenMetadata) GetParentTheme() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentTheme return g.ParentTheme
} }
func (o *GetMetadataChildrenMetadata) GetLeafCount() *int { func (g *GetMetadataChildrenMetadata) GetLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LeafCount return g.LeafCount
} }
func (o *GetMetadataChildrenMetadata) GetViewedLeafCount() *int { func (g *GetMetadataChildrenMetadata) GetViewedLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewedLeafCount return g.ViewedLeafCount
} }
func (o *GetMetadataChildrenMetadata) GetAddedAt() *int { func (g *GetMetadataChildrenMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetMetadataChildrenMetadata) GetUpdatedAt() *int { func (g *GetMetadataChildrenMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetMetadataChildrenMetadata) GetUserRating() *int { func (g *GetMetadataChildrenMetadata) GetUserRating() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UserRating return g.UserRating
} }
func (o *GetMetadataChildrenMetadata) GetSkipCount() *int { func (g *GetMetadataChildrenMetadata) GetSkipCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.SkipCount return g.SkipCount
} }
func (o *GetMetadataChildrenMetadata) GetLastRatedAt() *int { func (g *GetMetadataChildrenMetadata) GetLastRatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LastRatedAt return g.LastRatedAt
} }
type GetMetadataChildrenMediaContainer struct { type GetMetadataChildrenMediaContainer struct {
@@ -316,165 +316,165 @@ type GetMetadataChildrenMediaContainer struct {
Metadata []GetMetadataChildrenMetadata `json:"Metadata,omitempty"` Metadata []GetMetadataChildrenMetadata `json:"Metadata,omitempty"`
} }
func (o *GetMetadataChildrenMediaContainer) GetSize() *int { func (g *GetMetadataChildrenMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetMetadataChildrenMediaContainer) GetAllowSync() *bool { func (g *GetMetadataChildrenMediaContainer) GetAllowSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetMetadataChildrenMediaContainer) GetArt() *string { func (g *GetMetadataChildrenMediaContainer) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetMetadataChildrenMediaContainer) GetIdentifier() *string { func (g *GetMetadataChildrenMediaContainer) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetMetadataChildrenMediaContainer) GetKey() *string { func (g *GetMetadataChildrenMediaContainer) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionID() *int { func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionTitle() *string { func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionTitle return g.LibrarySectionTitle
} }
func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionUUID() *string { func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionUUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionUUID return g.LibrarySectionUUID
} }
func (o *GetMetadataChildrenMediaContainer) GetMediaTagPrefix() *string { func (g *GetMetadataChildrenMediaContainer) GetMediaTagPrefix() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetMetadataChildrenMediaContainer) GetMediaTagVersion() *int { func (g *GetMetadataChildrenMediaContainer) GetMediaTagVersion() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetMetadataChildrenMediaContainer) GetNocache() *bool { func (g *GetMetadataChildrenMediaContainer) GetNocache() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Nocache return g.Nocache
} }
func (o *GetMetadataChildrenMediaContainer) GetParentIndex() *int { func (g *GetMetadataChildrenMediaContainer) GetParentIndex() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentIndex return g.ParentIndex
} }
func (o *GetMetadataChildrenMediaContainer) GetParentTitle() *string { func (g *GetMetadataChildrenMediaContainer) GetParentTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentTitle return g.ParentTitle
} }
func (o *GetMetadataChildrenMediaContainer) GetParentYear() *int { func (g *GetMetadataChildrenMediaContainer) GetParentYear() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentYear return g.ParentYear
} }
func (o *GetMetadataChildrenMediaContainer) GetSummary() *string { func (g *GetMetadataChildrenMediaContainer) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetMetadataChildrenMediaContainer) GetTheme() *string { func (g *GetMetadataChildrenMediaContainer) GetTheme() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Theme return g.Theme
} }
func (o *GetMetadataChildrenMediaContainer) GetThumb() *string { func (g *GetMetadataChildrenMediaContainer) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetMetadataChildrenMediaContainer) GetTitle1() *string { func (g *GetMetadataChildrenMediaContainer) GetTitle1() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title1 return g.Title1
} }
func (o *GetMetadataChildrenMediaContainer) GetTitle2() *string { func (g *GetMetadataChildrenMediaContainer) GetTitle2() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title2 return g.Title2
} }
func (o *GetMetadataChildrenMediaContainer) GetViewGroup() *string { func (g *GetMetadataChildrenMediaContainer) GetViewGroup() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewGroup return g.ViewGroup
} }
func (o *GetMetadataChildrenMediaContainer) GetViewMode() *int { func (g *GetMetadataChildrenMediaContainer) GetViewMode() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewMode return g.ViewMode
} }
func (o *GetMetadataChildrenMediaContainer) GetDirectory() []GetMetadataChildrenDirectory { func (g *GetMetadataChildrenMediaContainer) GetDirectory() []GetMetadataChildrenDirectory {
if o == nil { if g == nil {
return nil return nil
} }
return o.Directory return g.Directory
} }
func (o *GetMetadataChildrenMediaContainer) GetMetadata() []GetMetadataChildrenMetadata { func (g *GetMetadataChildrenMediaContainer) GetMetadata() []GetMetadataChildrenMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
// GetMetadataChildrenResponseBody - The children of the library item. // GetMetadataChildrenResponseBody - The children of the library item.
@@ -482,11 +482,11 @@ type GetMetadataChildrenResponseBody struct {
MediaContainer *GetMetadataChildrenMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetMetadataChildrenMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetMetadataChildrenResponseBody) GetMediaContainer() *GetMetadataChildrenMediaContainer { func (g *GetMetadataChildrenResponseBody) GetMediaContainer() *GetMetadataChildrenMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetMetadataChildrenResponse struct { type GetMetadataChildrenResponse struct {
@@ -500,30 +500,30 @@ type GetMetadataChildrenResponse struct {
Object *GetMetadataChildrenResponseBody Object *GetMetadataChildrenResponseBody
} }
func (o *GetMetadataChildrenResponse) GetContentType() string { func (g *GetMetadataChildrenResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetMetadataChildrenResponse) GetStatusCode() int { func (g *GetMetadataChildrenResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetMetadataChildrenResponse) GetRawResponse() *http.Response { func (g *GetMetadataChildrenResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetMetadataChildrenResponse) GetObject() *GetMetadataChildrenResponseBody { func (g *GetMetadataChildrenResponse) GetObject() *GetMetadataChildrenResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -21,88 +21,88 @@ type MyPlex struct {
SubscriptionState *string `json:"subscriptionState,omitempty"` SubscriptionState *string `json:"subscriptionState,omitempty"`
} }
func (o *MyPlex) GetAuthToken() *string { func (m *MyPlex) GetAuthToken() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.AuthToken return m.AuthToken
} }
func (o *MyPlex) GetUsername() *string { func (m *MyPlex) GetUsername() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Username return m.Username
} }
func (o *MyPlex) GetMappingState() *string { func (m *MyPlex) GetMappingState() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.MappingState return m.MappingState
} }
func (o *MyPlex) GetMappingError() *string { func (m *MyPlex) GetMappingError() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.MappingError return m.MappingError
} }
func (o *MyPlex) GetSignInState() *string { func (m *MyPlex) GetSignInState() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.SignInState return m.SignInState
} }
func (o *MyPlex) GetPublicAddress() *string { func (m *MyPlex) GetPublicAddress() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.PublicAddress return m.PublicAddress
} }
func (o *MyPlex) GetPublicPort() *float64 { func (m *MyPlex) GetPublicPort() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.PublicPort return m.PublicPort
} }
func (o *MyPlex) GetPrivateAddress() *string { func (m *MyPlex) GetPrivateAddress() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.PrivateAddress return m.PrivateAddress
} }
func (o *MyPlex) GetPrivatePort() *float64 { func (m *MyPlex) GetPrivatePort() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.PrivatePort return m.PrivatePort
} }
func (o *MyPlex) GetSubscriptionFeatures() *string { func (m *MyPlex) GetSubscriptionFeatures() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.SubscriptionFeatures return m.SubscriptionFeatures
} }
func (o *MyPlex) GetSubscriptionActive() *bool { func (m *MyPlex) GetSubscriptionActive() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.SubscriptionActive return m.SubscriptionActive
} }
func (o *MyPlex) GetSubscriptionState() *string { func (m *MyPlex) GetSubscriptionState() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.SubscriptionState return m.SubscriptionState
} }
// GetMyPlexAccountResponseBody - MyPlex Account // GetMyPlexAccountResponseBody - MyPlex Account
@@ -110,11 +110,11 @@ type GetMyPlexAccountResponseBody struct {
MyPlex *MyPlex `json:"MyPlex,omitempty"` MyPlex *MyPlex `json:"MyPlex,omitempty"`
} }
func (o *GetMyPlexAccountResponseBody) GetMyPlex() *MyPlex { func (g *GetMyPlexAccountResponseBody) GetMyPlex() *MyPlex {
if o == nil { if g == nil {
return nil return nil
} }
return o.MyPlex return g.MyPlex
} }
type GetMyPlexAccountResponse struct { type GetMyPlexAccountResponse struct {
@@ -128,30 +128,30 @@ type GetMyPlexAccountResponse struct {
Object *GetMyPlexAccountResponseBody Object *GetMyPlexAccountResponseBody
} }
func (o *GetMyPlexAccountResponse) GetContentType() string { func (g *GetMyPlexAccountResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetMyPlexAccountResponse) GetStatusCode() int { func (g *GetMyPlexAccountResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetMyPlexAccountResponse) GetRawResponse() *http.Response { func (g *GetMyPlexAccountResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetMyPlexAccountResponse) GetObject() *GetMyPlexAccountResponseBody { func (g *GetMyPlexAccountResponse) GetObject() *GetMyPlexAccountResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -41,46 +41,46 @@ func (g *GetPinRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetPinRequest) GetStrong() *bool { func (g *GetPinRequest) GetStrong() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Strong return g.Strong
} }
func (o *GetPinRequest) GetClientID() string { func (g *GetPinRequest) GetClientID() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ClientID return g.ClientID
} }
func (o *GetPinRequest) GetClientName() *string { func (g *GetPinRequest) GetClientName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientName return g.ClientName
} }
func (o *GetPinRequest) GetDeviceNickname() *string { func (g *GetPinRequest) GetDeviceNickname() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DeviceNickname return g.DeviceNickname
} }
func (o *GetPinRequest) GetClientVersion() *string { func (g *GetPinRequest) GetClientVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientVersion return g.ClientVersion
} }
func (o *GetPinRequest) GetPlatform() *string { func (g *GetPinRequest) GetPlatform() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Platform return g.Platform
} }
// GeoData - Geo location data // GeoData - Geo location data
@@ -120,81 +120,81 @@ func (g *GeoData) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GeoData) GetCode() string { func (g *GeoData) GetCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Code return g.Code
} }
func (o *GeoData) GetContinentCode() string { func (g *GeoData) GetContinentCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContinentCode return g.ContinentCode
} }
func (o *GeoData) GetCountry() string { func (g *GeoData) GetCountry() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Country return g.Country
} }
func (o *GeoData) GetCity() string { func (g *GeoData) GetCity() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.City return g.City
} }
func (o *GeoData) GetEuropeanUnionMember() *bool { func (g *GeoData) GetEuropeanUnionMember() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.EuropeanUnionMember return g.EuropeanUnionMember
} }
func (o *GeoData) GetTimeZone() string { func (g *GeoData) GetTimeZone() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.TimeZone return g.TimeZone
} }
func (o *GeoData) GetPostalCode() string { func (g *GeoData) GetPostalCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.PostalCode return g.PostalCode
} }
func (o *GeoData) GetInPrivacyRestrictedCountry() *bool { func (g *GeoData) GetInPrivacyRestrictedCountry() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.InPrivacyRestrictedCountry return g.InPrivacyRestrictedCountry
} }
func (o *GeoData) GetInPrivacyRestrictedRegion() *bool { func (g *GeoData) GetInPrivacyRestrictedRegion() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.InPrivacyRestrictedRegion return g.InPrivacyRestrictedRegion
} }
func (o *GeoData) GetSubdivisions() string { func (g *GeoData) GetSubdivisions() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Subdivisions return g.Subdivisions
} }
func (o *GeoData) GetCoordinates() string { func (g *GeoData) GetCoordinates() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Coordinates return g.Coordinates
} }
// GetPinAuthPinContainer - Requests a new pin id used in the authentication flow // GetPinAuthPinContainer - Requests a new pin id used in the authentication flow
@@ -227,88 +227,88 @@ func (g *GetPinAuthPinContainer) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetPinAuthPinContainer) GetID() int64 { func (g *GetPinAuthPinContainer) GetID() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ID return g.ID
} }
func (o *GetPinAuthPinContainer) GetCode() string { func (g *GetPinAuthPinContainer) GetCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Code return g.Code
} }
func (o *GetPinAuthPinContainer) GetProduct() string { func (g *GetPinAuthPinContainer) GetProduct() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Product return g.Product
} }
func (o *GetPinAuthPinContainer) GetTrusted() *bool { func (g *GetPinAuthPinContainer) GetTrusted() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Trusted return g.Trusted
} }
func (o *GetPinAuthPinContainer) GetQr() string { func (g *GetPinAuthPinContainer) GetQr() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Qr return g.Qr
} }
func (o *GetPinAuthPinContainer) GetClientIdentifier() string { func (g *GetPinAuthPinContainer) GetClientIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ClientIdentifier return g.ClientIdentifier
} }
func (o *GetPinAuthPinContainer) GetLocation() GeoData { func (g *GetPinAuthPinContainer) GetLocation() GeoData {
if o == nil { if g == nil {
return GeoData{} return GeoData{}
} }
return o.Location return g.Location
} }
func (o *GetPinAuthPinContainer) GetExpiresIn() *int64 { func (g *GetPinAuthPinContainer) GetExpiresIn() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ExpiresIn return g.ExpiresIn
} }
func (o *GetPinAuthPinContainer) GetCreatedAt() time.Time { func (g *GetPinAuthPinContainer) GetCreatedAt() time.Time {
if o == nil { if g == nil {
return time.Time{} return time.Time{}
} }
return o.CreatedAt return g.CreatedAt
} }
func (o *GetPinAuthPinContainer) GetExpiresAt() time.Time { func (g *GetPinAuthPinContainer) GetExpiresAt() time.Time {
if o == nil { if g == nil {
return time.Time{} return time.Time{}
} }
return o.ExpiresAt return g.ExpiresAt
} }
func (o *GetPinAuthPinContainer) GetAuthToken() *string { func (g *GetPinAuthPinContainer) GetAuthToken() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AuthToken return g.AuthToken
} }
func (o *GetPinAuthPinContainer) GetNewRegistration() any { func (g *GetPinAuthPinContainer) GetNewRegistration() any {
if o == nil { if g == nil {
return nil return nil
} }
return o.NewRegistration return g.NewRegistration
} }
type GetPinResponse struct { type GetPinResponse struct {
@@ -322,30 +322,30 @@ type GetPinResponse struct {
AuthPinContainer *GetPinAuthPinContainer AuthPinContainer *GetPinAuthPinContainer
} }
func (o *GetPinResponse) GetContentType() string { func (g *GetPinResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetPinResponse) GetStatusCode() int { func (g *GetPinResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetPinResponse) GetRawResponse() *http.Response { func (g *GetPinResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetPinResponse) GetAuthPinContainer() *GetPinAuthPinContainer { func (g *GetPinResponse) GetAuthPinContainer() *GetPinAuthPinContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.AuthPinContainer return g.AuthPinContainer
} }

View File

@@ -11,11 +11,11 @@ type GetPlaylistRequest struct {
PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"` PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"`
} }
func (o *GetPlaylistRequest) GetPlaylistID() float64 { func (g *GetPlaylistRequest) GetPlaylistID() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.PlaylistID return g.PlaylistID
} }
type GetPlaylistMetadata struct { type GetPlaylistMetadata struct {
@@ -36,109 +36,109 @@ type GetPlaylistMetadata struct {
UpdatedAt *int `json:"updatedAt,omitempty"` UpdatedAt *int `json:"updatedAt,omitempty"`
} }
func (o *GetPlaylistMetadata) GetContent() *string { func (g *GetPlaylistMetadata) GetContent() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Content return g.Content
} }
func (o *GetPlaylistMetadata) GetRatingKey() *string { func (g *GetPlaylistMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetPlaylistMetadata) GetKey() *string { func (g *GetPlaylistMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetPlaylistMetadata) GetGUID() *string { func (g *GetPlaylistMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetPlaylistMetadata) GetType() *string { func (g *GetPlaylistMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetPlaylistMetadata) GetTitle() *string { func (g *GetPlaylistMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetPlaylistMetadata) GetSummary() *string { func (g *GetPlaylistMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetPlaylistMetadata) GetSmart() *bool { func (g *GetPlaylistMetadata) GetSmart() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Smart return g.Smart
} }
func (o *GetPlaylistMetadata) GetPlaylistType() *string { func (g *GetPlaylistMetadata) GetPlaylistType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlaylistType return g.PlaylistType
} }
func (o *GetPlaylistMetadata) GetComposite() *string { func (g *GetPlaylistMetadata) GetComposite() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Composite return g.Composite
} }
func (o *GetPlaylistMetadata) GetIcon() *string { func (g *GetPlaylistMetadata) GetIcon() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Icon return g.Icon
} }
func (o *GetPlaylistMetadata) GetDuration() *int { func (g *GetPlaylistMetadata) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetPlaylistMetadata) GetLeafCount() *int { func (g *GetPlaylistMetadata) GetLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LeafCount return g.LeafCount
} }
func (o *GetPlaylistMetadata) GetAddedAt() *int { func (g *GetPlaylistMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetPlaylistMetadata) GetUpdatedAt() *int { func (g *GetPlaylistMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
type GetPlaylistMediaContainer struct { type GetPlaylistMediaContainer struct {
@@ -146,18 +146,18 @@ type GetPlaylistMediaContainer struct {
Metadata []GetPlaylistMetadata `json:"Metadata,omitempty"` Metadata []GetPlaylistMetadata `json:"Metadata,omitempty"`
} }
func (o *GetPlaylistMediaContainer) GetSize() *int { func (g *GetPlaylistMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetPlaylistMediaContainer) GetMetadata() []GetPlaylistMetadata { func (g *GetPlaylistMediaContainer) GetMetadata() []GetPlaylistMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
// GetPlaylistResponseBody - The playlist // GetPlaylistResponseBody - The playlist
@@ -165,11 +165,11 @@ type GetPlaylistResponseBody struct {
MediaContainer *GetPlaylistMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetPlaylistMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetPlaylistResponseBody) GetMediaContainer() *GetPlaylistMediaContainer { func (g *GetPlaylistResponseBody) GetMediaContainer() *GetPlaylistMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetPlaylistResponse struct { type GetPlaylistResponse struct {
@@ -183,30 +183,30 @@ type GetPlaylistResponse struct {
Object *GetPlaylistResponseBody Object *GetPlaylistResponseBody
} }
func (o *GetPlaylistResponse) GetContentType() string { func (g *GetPlaylistResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetPlaylistResponse) GetStatusCode() int { func (g *GetPlaylistResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetPlaylistResponse) GetRawResponse() *http.Response { func (g *GetPlaylistResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetPlaylistResponse) GetObject() *GetPlaylistResponseBody { func (g *GetPlaylistResponse) GetObject() *GetPlaylistResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -45,18 +45,18 @@ type GetPlaylistContentsRequest struct {
Type GetPlaylistContentsQueryParamType `queryParam:"style=form,explode=true,name=type"` Type GetPlaylistContentsQueryParamType `queryParam:"style=form,explode=true,name=type"`
} }
func (o *GetPlaylistContentsRequest) GetPlaylistID() float64 { func (g *GetPlaylistContentsRequest) GetPlaylistID() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.PlaylistID return g.PlaylistID
} }
func (o *GetPlaylistContentsRequest) GetType() GetPlaylistContentsQueryParamType { func (g *GetPlaylistContentsRequest) GetType() GetPlaylistContentsQueryParamType {
if o == nil { if g == nil {
return GetPlaylistContentsQueryParamType(0) return GetPlaylistContentsQueryParamType(0)
} }
return o.Type return g.Type
} }
type GetPlaylistContentsPart struct { type GetPlaylistContentsPart struct {
@@ -72,74 +72,74 @@ type GetPlaylistContentsPart struct {
VideoProfile *string `json:"videoProfile,omitempty"` VideoProfile *string `json:"videoProfile,omitempty"`
} }
func (o *GetPlaylistContentsPart) GetID() *int { func (g *GetPlaylistContentsPart) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetPlaylistContentsPart) GetKey() *string { func (g *GetPlaylistContentsPart) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetPlaylistContentsPart) GetDuration() *int { func (g *GetPlaylistContentsPart) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetPlaylistContentsPart) GetFile() *string { func (g *GetPlaylistContentsPart) GetFile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.File return g.File
} }
func (o *GetPlaylistContentsPart) GetSize() *int { func (g *GetPlaylistContentsPart) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetPlaylistContentsPart) GetAudioProfile() *string { func (g *GetPlaylistContentsPart) GetAudioProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioProfile return g.AudioProfile
} }
func (o *GetPlaylistContentsPart) GetContainer() *string { func (g *GetPlaylistContentsPart) GetContainer() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Container return g.Container
} }
func (o *GetPlaylistContentsPart) GetHas64bitOffsets() *bool { func (g *GetPlaylistContentsPart) GetHas64bitOffsets() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Has64bitOffsets return g.Has64bitOffsets
} }
func (o *GetPlaylistContentsPart) GetOptimizedForStreaming() *bool { func (g *GetPlaylistContentsPart) GetOptimizedForStreaming() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.OptimizedForStreaming return g.OptimizedForStreaming
} }
func (o *GetPlaylistContentsPart) GetVideoProfile() *string { func (g *GetPlaylistContentsPart) GetVideoProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoProfile return g.VideoProfile
} }
type GetPlaylistContentsMedia struct { type GetPlaylistContentsMedia struct {
@@ -162,178 +162,178 @@ type GetPlaylistContentsMedia struct {
Part []GetPlaylistContentsPart `json:"Part,omitempty"` Part []GetPlaylistContentsPart `json:"Part,omitempty"`
} }
func (o *GetPlaylistContentsMedia) GetID() *int { func (g *GetPlaylistContentsMedia) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetPlaylistContentsMedia) GetDuration() *int { func (g *GetPlaylistContentsMedia) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetPlaylistContentsMedia) GetBitrate() *int { func (g *GetPlaylistContentsMedia) GetBitrate() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Bitrate return g.Bitrate
} }
func (o *GetPlaylistContentsMedia) GetWidth() *int { func (g *GetPlaylistContentsMedia) GetWidth() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Width return g.Width
} }
func (o *GetPlaylistContentsMedia) GetHeight() *int { func (g *GetPlaylistContentsMedia) GetHeight() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Height return g.Height
} }
func (o *GetPlaylistContentsMedia) GetAspectRatio() *float64 { func (g *GetPlaylistContentsMedia) GetAspectRatio() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AspectRatio return g.AspectRatio
} }
func (o *GetPlaylistContentsMedia) GetAudioChannels() *int { func (g *GetPlaylistContentsMedia) GetAudioChannels() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioChannels return g.AudioChannels
} }
func (o *GetPlaylistContentsMedia) GetAudioCodec() *string { func (g *GetPlaylistContentsMedia) GetAudioCodec() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioCodec return g.AudioCodec
} }
func (o *GetPlaylistContentsMedia) GetVideoCodec() *string { func (g *GetPlaylistContentsMedia) GetVideoCodec() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoCodec return g.VideoCodec
} }
func (o *GetPlaylistContentsMedia) GetVideoResolution() *string { func (g *GetPlaylistContentsMedia) GetVideoResolution() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoResolution return g.VideoResolution
} }
func (o *GetPlaylistContentsMedia) GetContainer() *string { func (g *GetPlaylistContentsMedia) GetContainer() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Container return g.Container
} }
func (o *GetPlaylistContentsMedia) GetVideoFrameRate() *string { func (g *GetPlaylistContentsMedia) GetVideoFrameRate() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoFrameRate return g.VideoFrameRate
} }
func (o *GetPlaylistContentsMedia) GetOptimizedForStreaming() *int { func (g *GetPlaylistContentsMedia) GetOptimizedForStreaming() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.OptimizedForStreaming return g.OptimizedForStreaming
} }
func (o *GetPlaylistContentsMedia) GetAudioProfile() *string { func (g *GetPlaylistContentsMedia) GetAudioProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioProfile return g.AudioProfile
} }
func (o *GetPlaylistContentsMedia) GetHas64bitOffsets() *bool { func (g *GetPlaylistContentsMedia) GetHas64bitOffsets() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Has64bitOffsets return g.Has64bitOffsets
} }
func (o *GetPlaylistContentsMedia) GetVideoProfile() *string { func (g *GetPlaylistContentsMedia) GetVideoProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoProfile return g.VideoProfile
} }
func (o *GetPlaylistContentsMedia) GetPart() []GetPlaylistContentsPart { func (g *GetPlaylistContentsMedia) GetPart() []GetPlaylistContentsPart {
if o == nil { if g == nil {
return nil return nil
} }
return o.Part return g.Part
} }
type GetPlaylistContentsGenre struct { type GetPlaylistContentsGenre struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetPlaylistContentsGenre) GetTag() *string { func (g *GetPlaylistContentsGenre) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetPlaylistContentsCountry struct { type GetPlaylistContentsCountry struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetPlaylistContentsCountry) GetTag() *string { func (g *GetPlaylistContentsCountry) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetPlaylistContentsDirector struct { type GetPlaylistContentsDirector struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetPlaylistContentsDirector) GetTag() *string { func (g *GetPlaylistContentsDirector) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetPlaylistContentsWriter struct { type GetPlaylistContentsWriter struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetPlaylistContentsWriter) GetTag() *string { func (g *GetPlaylistContentsWriter) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetPlaylistContentsRole struct { type GetPlaylistContentsRole struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetPlaylistContentsRole) GetTag() *string { func (g *GetPlaylistContentsRole) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetPlaylistContentsMetadata struct { type GetPlaylistContentsMetadata struct {
@@ -382,228 +382,228 @@ func (g *GetPlaylistContentsMetadata) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetPlaylistContentsMetadata) GetRatingKey() *string { func (g *GetPlaylistContentsMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetPlaylistContentsMetadata) GetKey() *string { func (g *GetPlaylistContentsMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetPlaylistContentsMetadata) GetGUID() *string { func (g *GetPlaylistContentsMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetPlaylistContentsMetadata) GetStudio() *string { func (g *GetPlaylistContentsMetadata) GetStudio() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Studio return g.Studio
} }
func (o *GetPlaylistContentsMetadata) GetType() *string { func (g *GetPlaylistContentsMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetPlaylistContentsMetadata) GetTitle() *string { func (g *GetPlaylistContentsMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetPlaylistContentsMetadata) GetTitleSort() *string { func (g *GetPlaylistContentsMetadata) GetTitleSort() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.TitleSort return g.TitleSort
} }
func (o *GetPlaylistContentsMetadata) GetLibrarySectionTitle() *string { func (g *GetPlaylistContentsMetadata) GetLibrarySectionTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionTitle return g.LibrarySectionTitle
} }
func (o *GetPlaylistContentsMetadata) GetLibrarySectionID() *int { func (g *GetPlaylistContentsMetadata) GetLibrarySectionID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetPlaylistContentsMetadata) GetLibrarySectionKey() *string { func (g *GetPlaylistContentsMetadata) GetLibrarySectionKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionKey return g.LibrarySectionKey
} }
func (o *GetPlaylistContentsMetadata) GetContentRating() *string { func (g *GetPlaylistContentsMetadata) GetContentRating() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ContentRating return g.ContentRating
} }
func (o *GetPlaylistContentsMetadata) GetSummary() *string { func (g *GetPlaylistContentsMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetPlaylistContentsMetadata) GetRating() *float64 { func (g *GetPlaylistContentsMetadata) GetRating() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Rating return g.Rating
} }
func (o *GetPlaylistContentsMetadata) GetAudienceRating() *float64 { func (g *GetPlaylistContentsMetadata) GetAudienceRating() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRating return g.AudienceRating
} }
func (o *GetPlaylistContentsMetadata) GetYear() *int { func (g *GetPlaylistContentsMetadata) GetYear() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Year return g.Year
} }
func (o *GetPlaylistContentsMetadata) GetTagline() *string { func (g *GetPlaylistContentsMetadata) GetTagline() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tagline return g.Tagline
} }
func (o *GetPlaylistContentsMetadata) GetThumb() *string { func (g *GetPlaylistContentsMetadata) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetPlaylistContentsMetadata) GetArt() *string { func (g *GetPlaylistContentsMetadata) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetPlaylistContentsMetadata) GetDuration() *int { func (g *GetPlaylistContentsMetadata) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetPlaylistContentsMetadata) GetOriginallyAvailableAt() *types.Date { func (g *GetPlaylistContentsMetadata) GetOriginallyAvailableAt() *types.Date {
if o == nil { if g == nil {
return nil return nil
} }
return o.OriginallyAvailableAt return g.OriginallyAvailableAt
} }
func (o *GetPlaylistContentsMetadata) GetAddedAt() *int { func (g *GetPlaylistContentsMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetPlaylistContentsMetadata) GetUpdatedAt() *int { func (g *GetPlaylistContentsMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetPlaylistContentsMetadata) GetAudienceRatingImage() *string { func (g *GetPlaylistContentsMetadata) GetAudienceRatingImage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRatingImage return g.AudienceRatingImage
} }
func (o *GetPlaylistContentsMetadata) GetHasPremiumExtras() *string { func (g *GetPlaylistContentsMetadata) GetHasPremiumExtras() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.HasPremiumExtras return g.HasPremiumExtras
} }
func (o *GetPlaylistContentsMetadata) GetHasPremiumPrimaryExtra() *string { func (g *GetPlaylistContentsMetadata) GetHasPremiumPrimaryExtra() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.HasPremiumPrimaryExtra return g.HasPremiumPrimaryExtra
} }
func (o *GetPlaylistContentsMetadata) GetRatingImage() *string { func (g *GetPlaylistContentsMetadata) GetRatingImage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingImage return g.RatingImage
} }
func (o *GetPlaylistContentsMetadata) GetMedia() []GetPlaylistContentsMedia { func (g *GetPlaylistContentsMetadata) GetMedia() []GetPlaylistContentsMedia {
if o == nil { if g == nil {
return nil return nil
} }
return o.Media return g.Media
} }
func (o *GetPlaylistContentsMetadata) GetGenre() []GetPlaylistContentsGenre { func (g *GetPlaylistContentsMetadata) GetGenre() []GetPlaylistContentsGenre {
if o == nil { if g == nil {
return nil return nil
} }
return o.Genre return g.Genre
} }
func (o *GetPlaylistContentsMetadata) GetCountry() []GetPlaylistContentsCountry { func (g *GetPlaylistContentsMetadata) GetCountry() []GetPlaylistContentsCountry {
if o == nil { if g == nil {
return nil return nil
} }
return o.Country return g.Country
} }
func (o *GetPlaylistContentsMetadata) GetDirector() []GetPlaylistContentsDirector { func (g *GetPlaylistContentsMetadata) GetDirector() []GetPlaylistContentsDirector {
if o == nil { if g == nil {
return nil return nil
} }
return o.Director return g.Director
} }
func (o *GetPlaylistContentsMetadata) GetWriter() []GetPlaylistContentsWriter { func (g *GetPlaylistContentsMetadata) GetWriter() []GetPlaylistContentsWriter {
if o == nil { if g == nil {
return nil return nil
} }
return o.Writer return g.Writer
} }
func (o *GetPlaylistContentsMetadata) GetRole() []GetPlaylistContentsRole { func (g *GetPlaylistContentsMetadata) GetRole() []GetPlaylistContentsRole {
if o == nil { if g == nil {
return nil return nil
} }
return o.Role return g.Role
} }
type GetPlaylistContentsMediaContainer struct { type GetPlaylistContentsMediaContainer struct {
@@ -618,67 +618,67 @@ type GetPlaylistContentsMediaContainer struct {
Metadata []GetPlaylistContentsMetadata `json:"Metadata,omitempty"` Metadata []GetPlaylistContentsMetadata `json:"Metadata,omitempty"`
} }
func (o *GetPlaylistContentsMediaContainer) GetSize() *int { func (g *GetPlaylistContentsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetPlaylistContentsMediaContainer) GetComposite() *string { func (g *GetPlaylistContentsMediaContainer) GetComposite() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Composite return g.Composite
} }
func (o *GetPlaylistContentsMediaContainer) GetDuration() *int { func (g *GetPlaylistContentsMediaContainer) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetPlaylistContentsMediaContainer) GetLeafCount() *int { func (g *GetPlaylistContentsMediaContainer) GetLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LeafCount return g.LeafCount
} }
func (o *GetPlaylistContentsMediaContainer) GetPlaylistType() *string { func (g *GetPlaylistContentsMediaContainer) GetPlaylistType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlaylistType return g.PlaylistType
} }
func (o *GetPlaylistContentsMediaContainer) GetRatingKey() *string { func (g *GetPlaylistContentsMediaContainer) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetPlaylistContentsMediaContainer) GetSmart() *bool { func (g *GetPlaylistContentsMediaContainer) GetSmart() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Smart return g.Smart
} }
func (o *GetPlaylistContentsMediaContainer) GetTitle() *string { func (g *GetPlaylistContentsMediaContainer) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetPlaylistContentsMediaContainer) GetMetadata() []GetPlaylistContentsMetadata { func (g *GetPlaylistContentsMediaContainer) GetMetadata() []GetPlaylistContentsMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
// GetPlaylistContentsResponseBody - The playlist contents // GetPlaylistContentsResponseBody - The playlist contents
@@ -686,11 +686,11 @@ type GetPlaylistContentsResponseBody struct {
MediaContainer *GetPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetPlaylistContentsResponseBody) GetMediaContainer() *GetPlaylistContentsMediaContainer { func (g *GetPlaylistContentsResponseBody) GetMediaContainer() *GetPlaylistContentsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetPlaylistContentsResponse struct { type GetPlaylistContentsResponse struct {
@@ -704,30 +704,30 @@ type GetPlaylistContentsResponse struct {
Object *GetPlaylistContentsResponseBody Object *GetPlaylistContentsResponseBody
} }
func (o *GetPlaylistContentsResponse) GetContentType() string { func (g *GetPlaylistContentsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetPlaylistContentsResponse) GetStatusCode() int { func (g *GetPlaylistContentsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetPlaylistContentsResponse) GetRawResponse() *http.Response { func (g *GetPlaylistContentsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetPlaylistContentsResponse) GetObject() *GetPlaylistContentsResponseBody { func (g *GetPlaylistContentsResponse) GetObject() *GetPlaylistContentsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -38,18 +38,18 @@ type GetPlaylistsRequest struct {
Smart *QueryParamSmart `queryParam:"style=form,explode=true,name=smart"` Smart *QueryParamSmart `queryParam:"style=form,explode=true,name=smart"`
} }
func (o *GetPlaylistsRequest) GetPlaylistType() *PlaylistType { func (g *GetPlaylistsRequest) GetPlaylistType() *PlaylistType {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlaylistType return g.PlaylistType
} }
func (o *GetPlaylistsRequest) GetSmart() *QueryParamSmart { func (g *GetPlaylistsRequest) GetSmart() *QueryParamSmart {
if o == nil { if g == nil {
return nil return nil
} }
return o.Smart return g.Smart
} }
type GetPlaylistsMetadata struct { type GetPlaylistsMetadata struct {
@@ -71,116 +71,116 @@ type GetPlaylistsMetadata struct {
UpdatedAt *int `json:"updatedAt,omitempty"` UpdatedAt *int `json:"updatedAt,omitempty"`
} }
func (o *GetPlaylistsMetadata) GetRatingKey() *string { func (g *GetPlaylistsMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetPlaylistsMetadata) GetKey() *string { func (g *GetPlaylistsMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetPlaylistsMetadata) GetGUID() *string { func (g *GetPlaylistsMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetPlaylistsMetadata) GetType() *string { func (g *GetPlaylistsMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetPlaylistsMetadata) GetTitle() *string { func (g *GetPlaylistsMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetPlaylistsMetadata) GetSummary() *string { func (g *GetPlaylistsMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetPlaylistsMetadata) GetSmart() *bool { func (g *GetPlaylistsMetadata) GetSmart() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Smart return g.Smart
} }
func (o *GetPlaylistsMetadata) GetPlaylistType() *string { func (g *GetPlaylistsMetadata) GetPlaylistType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlaylistType return g.PlaylistType
} }
func (o *GetPlaylistsMetadata) GetComposite() *string { func (g *GetPlaylistsMetadata) GetComposite() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Composite return g.Composite
} }
func (o *GetPlaylistsMetadata) GetIcon() *string { func (g *GetPlaylistsMetadata) GetIcon() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Icon return g.Icon
} }
func (o *GetPlaylistsMetadata) GetViewCount() *int { func (g *GetPlaylistsMetadata) GetViewCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewCount return g.ViewCount
} }
func (o *GetPlaylistsMetadata) GetLastViewedAt() *int { func (g *GetPlaylistsMetadata) GetLastViewedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LastViewedAt return g.LastViewedAt
} }
func (o *GetPlaylistsMetadata) GetDuration() *int { func (g *GetPlaylistsMetadata) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetPlaylistsMetadata) GetLeafCount() *int { func (g *GetPlaylistsMetadata) GetLeafCount() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LeafCount return g.LeafCount
} }
func (o *GetPlaylistsMetadata) GetAddedAt() *int { func (g *GetPlaylistsMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetPlaylistsMetadata) GetUpdatedAt() *int { func (g *GetPlaylistsMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
type GetPlaylistsMediaContainer struct { type GetPlaylistsMediaContainer struct {
@@ -188,18 +188,18 @@ type GetPlaylistsMediaContainer struct {
Metadata []GetPlaylistsMetadata `json:"Metadata,omitempty"` Metadata []GetPlaylistsMetadata `json:"Metadata,omitempty"`
} }
func (o *GetPlaylistsMediaContainer) GetSize() *int { func (g *GetPlaylistsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetPlaylistsMediaContainer) GetMetadata() []GetPlaylistsMetadata { func (g *GetPlaylistsMediaContainer) GetMetadata() []GetPlaylistsMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
// GetPlaylistsResponseBody - returns all playlists // GetPlaylistsResponseBody - returns all playlists
@@ -207,11 +207,11 @@ type GetPlaylistsResponseBody struct {
MediaContainer *GetPlaylistsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetPlaylistsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetPlaylistsResponseBody) GetMediaContainer() *GetPlaylistsMediaContainer { func (g *GetPlaylistsResponseBody) GetMediaContainer() *GetPlaylistsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetPlaylistsResponse struct { type GetPlaylistsResponse struct {
@@ -225,30 +225,30 @@ type GetPlaylistsResponse struct {
Object *GetPlaylistsResponseBody Object *GetPlaylistsResponseBody
} }
func (o *GetPlaylistsResponse) GetContentType() string { func (g *GetPlaylistsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetPlaylistsResponse) GetStatusCode() int { func (g *GetPlaylistsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetPlaylistsResponse) GetRawResponse() *http.Response { func (g *GetPlaylistsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetPlaylistsResponse) GetObject() *GetPlaylistsResponseBody { func (g *GetPlaylistsResponse) GetObject() *GetPlaylistsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -44,18 +44,18 @@ type GetRefreshLibraryMetadataRequest struct {
SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"` SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"`
} }
func (o *GetRefreshLibraryMetadataRequest) GetForce() *Force { func (g *GetRefreshLibraryMetadataRequest) GetForce() *Force {
if o == nil { if g == nil {
return nil return nil
} }
return o.Force return g.Force
} }
func (o *GetRefreshLibraryMetadataRequest) GetSectionKey() int { func (g *GetRefreshLibraryMetadataRequest) GetSectionKey() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.SectionKey return g.SectionKey
} }
type GetRefreshLibraryMetadataResponse struct { type GetRefreshLibraryMetadataResponse struct {
@@ -67,23 +67,23 @@ type GetRefreshLibraryMetadataResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *GetRefreshLibraryMetadataResponse) GetContentType() string { func (g *GetRefreshLibraryMetadataResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetRefreshLibraryMetadataResponse) GetStatusCode() int { func (g *GetRefreshLibraryMetadataResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetRefreshLibraryMetadataResponse) GetRawResponse() *http.Response { func (g *GetRefreshLibraryMetadataResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }

View File

@@ -91,53 +91,53 @@ func (g *GetResizedPhotoRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetResizedPhotoRequest) GetWidth() float64 { func (g *GetResizedPhotoRequest) GetWidth() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.Width return g.Width
} }
func (o *GetResizedPhotoRequest) GetHeight() float64 { func (g *GetResizedPhotoRequest) GetHeight() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.Height return g.Height
} }
func (o *GetResizedPhotoRequest) GetOpacity() int64 { func (g *GetResizedPhotoRequest) GetOpacity() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Opacity return g.Opacity
} }
func (o *GetResizedPhotoRequest) GetBlur() float64 { func (g *GetResizedPhotoRequest) GetBlur() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.Blur return g.Blur
} }
func (o *GetResizedPhotoRequest) GetMinSize() MinSize { func (g *GetResizedPhotoRequest) GetMinSize() MinSize {
if o == nil { if g == nil {
return MinSize(0) return MinSize(0)
} }
return o.MinSize return g.MinSize
} }
func (o *GetResizedPhotoRequest) GetUpscale() Upscale { func (g *GetResizedPhotoRequest) GetUpscale() Upscale {
if o == nil { if g == nil {
return Upscale(0) return Upscale(0)
} }
return o.Upscale return g.Upscale
} }
func (o *GetResizedPhotoRequest) GetURL() string { func (g *GetResizedPhotoRequest) GetURL() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.URL return g.URL
} }
type GetResizedPhotoResponse struct { type GetResizedPhotoResponse struct {
@@ -149,23 +149,23 @@ type GetResizedPhotoResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *GetResizedPhotoResponse) GetContentType() string { func (g *GetResizedPhotoResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetResizedPhotoResponse) GetStatusCode() int { func (g *GetResizedPhotoResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetResizedPhotoResponse) GetRawResponse() *http.Response { func (g *GetResizedPhotoResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }

View File

@@ -13,11 +13,11 @@ type GetResourcesStatisticsRequest struct {
Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"` Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"`
} }
func (o *GetResourcesStatisticsRequest) GetTimespan() *int64 { func (g *GetResourcesStatisticsRequest) GetTimespan() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Timespan return g.Timespan
} }
type StatisticsResources struct { type StatisticsResources struct {
@@ -29,46 +29,46 @@ type StatisticsResources struct {
ProcessMemoryUtilization *float32 `json:"processMemoryUtilization,omitempty"` ProcessMemoryUtilization *float32 `json:"processMemoryUtilization,omitempty"`
} }
func (o *StatisticsResources) GetTimespan() *int64 { func (s *StatisticsResources) GetTimespan() *int64 {
if o == nil { if s == nil {
return nil return nil
} }
return o.Timespan return s.Timespan
} }
func (o *StatisticsResources) GetAt() *int64 { func (s *StatisticsResources) GetAt() *int64 {
if o == nil { if s == nil {
return nil return nil
} }
return o.At return s.At
} }
func (o *StatisticsResources) GetHostCPUUtilization() *float32 { func (s *StatisticsResources) GetHostCPUUtilization() *float32 {
if o == nil { if s == nil {
return nil return nil
} }
return o.HostCPUUtilization return s.HostCPUUtilization
} }
func (o *StatisticsResources) GetProcessCPUUtilization() *float32 { func (s *StatisticsResources) GetProcessCPUUtilization() *float32 {
if o == nil { if s == nil {
return nil return nil
} }
return o.ProcessCPUUtilization return s.ProcessCPUUtilization
} }
func (o *StatisticsResources) GetHostMemoryUtilization() *float32 { func (s *StatisticsResources) GetHostMemoryUtilization() *float32 {
if o == nil { if s == nil {
return nil return nil
} }
return o.HostMemoryUtilization return s.HostMemoryUtilization
} }
func (o *StatisticsResources) GetProcessMemoryUtilization() *float32 { func (s *StatisticsResources) GetProcessMemoryUtilization() *float32 {
if o == nil { if s == nil {
return nil return nil
} }
return o.ProcessMemoryUtilization return s.ProcessMemoryUtilization
} }
type GetResourcesStatisticsMediaContainer struct { type GetResourcesStatisticsMediaContainer struct {
@@ -76,18 +76,18 @@ type GetResourcesStatisticsMediaContainer struct {
StatisticsResources []StatisticsResources `json:"StatisticsResources,omitempty"` StatisticsResources []StatisticsResources `json:"StatisticsResources,omitempty"`
} }
func (o *GetResourcesStatisticsMediaContainer) GetSize() *int { func (g *GetResourcesStatisticsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetResourcesStatisticsMediaContainer) GetStatisticsResources() []StatisticsResources { func (g *GetResourcesStatisticsMediaContainer) GetStatisticsResources() []StatisticsResources {
if o == nil { if g == nil {
return nil return nil
} }
return o.StatisticsResources return g.StatisticsResources
} }
// GetResourcesStatisticsResponseBody - Resource Statistics // GetResourcesStatisticsResponseBody - Resource Statistics
@@ -95,11 +95,11 @@ type GetResourcesStatisticsResponseBody struct {
MediaContainer *GetResourcesStatisticsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetResourcesStatisticsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetResourcesStatisticsResponseBody) GetMediaContainer() *GetResourcesStatisticsMediaContainer { func (g *GetResourcesStatisticsResponseBody) GetMediaContainer() *GetResourcesStatisticsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetResourcesStatisticsResponse struct { type GetResourcesStatisticsResponse struct {
@@ -113,30 +113,30 @@ type GetResourcesStatisticsResponse struct {
Object *GetResourcesStatisticsResponseBody Object *GetResourcesStatisticsResponseBody
} }
func (o *GetResourcesStatisticsResponse) GetContentType() string { func (g *GetResourcesStatisticsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetResourcesStatisticsResponse) GetStatusCode() int { func (g *GetResourcesStatisticsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetResourcesStatisticsResponse) GetRawResponse() *http.Response { func (g *GetResourcesStatisticsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetResourcesStatisticsResponse) GetObject() *GetResourcesStatisticsResponseBody { func (g *GetResourcesStatisticsResponse) GetObject() *GetResourcesStatisticsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

File diff suppressed because it is too large Load Diff

View File

@@ -45,18 +45,18 @@ type GetSearchLibraryRequest struct {
Type GetSearchLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` Type GetSearchLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"`
} }
func (o *GetSearchLibraryRequest) GetSectionKey() int { func (g *GetSearchLibraryRequest) GetSectionKey() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.SectionKey return g.SectionKey
} }
func (o *GetSearchLibraryRequest) GetType() GetSearchLibraryQueryParamType { func (g *GetSearchLibraryRequest) GetType() GetSearchLibraryQueryParamType {
if o == nil { if g == nil {
return GetSearchLibraryQueryParamType(0) return GetSearchLibraryQueryParamType(0)
} }
return o.Type return g.Type
} }
type GetSearchLibraryMetadata struct { type GetSearchLibraryMetadata struct {
@@ -82,144 +82,144 @@ type GetSearchLibraryMetadata struct {
UpdatedAt *int `json:"updatedAt,omitempty"` UpdatedAt *int `json:"updatedAt,omitempty"`
} }
func (o *GetSearchLibraryMetadata) GetRatingKey() *string { func (g *GetSearchLibraryMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetSearchLibraryMetadata) GetKey() *string { func (g *GetSearchLibraryMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetSearchLibraryMetadata) GetParentRatingKey() *string { func (g *GetSearchLibraryMetadata) GetParentRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentRatingKey return g.ParentRatingKey
} }
func (o *GetSearchLibraryMetadata) GetGUID() *string { func (g *GetSearchLibraryMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetSearchLibraryMetadata) GetParentGUID() *string { func (g *GetSearchLibraryMetadata) GetParentGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentGUID return g.ParentGUID
} }
func (o *GetSearchLibraryMetadata) GetParentStudio() *string { func (g *GetSearchLibraryMetadata) GetParentStudio() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentStudio return g.ParentStudio
} }
func (o *GetSearchLibraryMetadata) GetType() *string { func (g *GetSearchLibraryMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetSearchLibraryMetadata) GetTitle() *string { func (g *GetSearchLibraryMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetSearchLibraryMetadata) GetParentKey() *string { func (g *GetSearchLibraryMetadata) GetParentKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentKey return g.ParentKey
} }
func (o *GetSearchLibraryMetadata) GetParentTitle() *string { func (g *GetSearchLibraryMetadata) GetParentTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentTitle return g.ParentTitle
} }
func (o *GetSearchLibraryMetadata) GetSummary() *string { func (g *GetSearchLibraryMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetSearchLibraryMetadata) GetIndex() *int { func (g *GetSearchLibraryMetadata) GetIndex() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Index return g.Index
} }
func (o *GetSearchLibraryMetadata) GetParentIndex() *int { func (g *GetSearchLibraryMetadata) GetParentIndex() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentIndex return g.ParentIndex
} }
func (o *GetSearchLibraryMetadata) GetParentYear() *int { func (g *GetSearchLibraryMetadata) GetParentYear() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentYear return g.ParentYear
} }
func (o *GetSearchLibraryMetadata) GetThumb() *string { func (g *GetSearchLibraryMetadata) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetSearchLibraryMetadata) GetArt() *string { func (g *GetSearchLibraryMetadata) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetSearchLibraryMetadata) GetParentThumb() *string { func (g *GetSearchLibraryMetadata) GetParentThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentThumb return g.ParentThumb
} }
func (o *GetSearchLibraryMetadata) GetParentTheme() *string { func (g *GetSearchLibraryMetadata) GetParentTheme() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentTheme return g.ParentTheme
} }
func (o *GetSearchLibraryMetadata) GetAddedAt() *int { func (g *GetSearchLibraryMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetSearchLibraryMetadata) GetUpdatedAt() *int { func (g *GetSearchLibraryMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
type GetSearchLibraryMediaContainer struct { type GetSearchLibraryMediaContainer struct {
@@ -238,95 +238,95 @@ type GetSearchLibraryMediaContainer struct {
Metadata []GetSearchLibraryMetadata `json:"Metadata,omitempty"` Metadata []GetSearchLibraryMetadata `json:"Metadata,omitempty"`
} }
func (o *GetSearchLibraryMediaContainer) GetSize() *int { func (g *GetSearchLibraryMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetSearchLibraryMediaContainer) GetAllowSync() *bool { func (g *GetSearchLibraryMediaContainer) GetAllowSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetSearchLibraryMediaContainer) GetArt() *string { func (g *GetSearchLibraryMediaContainer) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetSearchLibraryMediaContainer) GetIdentifier() *string { func (g *GetSearchLibraryMediaContainer) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetSearchLibraryMediaContainer) GetMediaTagPrefix() *string { func (g *GetSearchLibraryMediaContainer) GetMediaTagPrefix() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetSearchLibraryMediaContainer) GetMediaTagVersion() *int { func (g *GetSearchLibraryMediaContainer) GetMediaTagVersion() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetSearchLibraryMediaContainer) GetNocache() *bool { func (g *GetSearchLibraryMediaContainer) GetNocache() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Nocache return g.Nocache
} }
func (o *GetSearchLibraryMediaContainer) GetThumb() *string { func (g *GetSearchLibraryMediaContainer) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetSearchLibraryMediaContainer) GetTitle1() *string { func (g *GetSearchLibraryMediaContainer) GetTitle1() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title1 return g.Title1
} }
func (o *GetSearchLibraryMediaContainer) GetTitle2() *string { func (g *GetSearchLibraryMediaContainer) GetTitle2() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title2 return g.Title2
} }
func (o *GetSearchLibraryMediaContainer) GetViewGroup() *string { func (g *GetSearchLibraryMediaContainer) GetViewGroup() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewGroup return g.ViewGroup
} }
func (o *GetSearchLibraryMediaContainer) GetViewMode() *int { func (g *GetSearchLibraryMediaContainer) GetViewMode() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewMode return g.ViewMode
} }
func (o *GetSearchLibraryMediaContainer) GetMetadata() []GetSearchLibraryMetadata { func (g *GetSearchLibraryMediaContainer) GetMetadata() []GetSearchLibraryMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
// GetSearchLibraryResponseBody - The contents of the library by section and type // GetSearchLibraryResponseBody - The contents of the library by section and type
@@ -334,11 +334,11 @@ type GetSearchLibraryResponseBody struct {
MediaContainer *GetSearchLibraryMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetSearchLibraryMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetSearchLibraryResponseBody) GetMediaContainer() *GetSearchLibraryMediaContainer { func (g *GetSearchLibraryResponseBody) GetMediaContainer() *GetSearchLibraryMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetSearchLibraryResponse struct { type GetSearchLibraryResponse struct {
@@ -352,30 +352,30 @@ type GetSearchLibraryResponse struct {
Object *GetSearchLibraryResponseBody Object *GetSearchLibraryResponseBody
} }
func (o *GetSearchLibraryResponse) GetContentType() string { func (g *GetSearchLibraryResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetSearchLibraryResponse) GetStatusCode() int { func (g *GetSearchLibraryResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetSearchLibraryResponse) GetRawResponse() *http.Response { func (g *GetSearchLibraryResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetSearchLibraryResponse) GetObject() *GetSearchLibraryResponseBody { func (g *GetSearchLibraryResponse) GetObject() *GetSearchLibraryResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -13,11 +13,11 @@ type GetSearchResultsRequest struct {
Query string `queryParam:"style=form,explode=true,name=query"` Query string `queryParam:"style=form,explode=true,name=query"`
} }
func (o *GetSearchResultsRequest) GetQuery() string { func (g *GetSearchResultsRequest) GetQuery() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Query return g.Query
} }
type GetSearchResultsPart struct { type GetSearchResultsPart struct {
@@ -31,60 +31,60 @@ type GetSearchResultsPart struct {
VideoProfile *string `json:"videoProfile,omitempty"` VideoProfile *string `json:"videoProfile,omitempty"`
} }
func (o *GetSearchResultsPart) GetID() *float64 { func (g *GetSearchResultsPart) GetID() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetSearchResultsPart) GetKey() *string { func (g *GetSearchResultsPart) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetSearchResultsPart) GetDuration() *float64 { func (g *GetSearchResultsPart) GetDuration() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetSearchResultsPart) GetFile() *string { func (g *GetSearchResultsPart) GetFile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.File return g.File
} }
func (o *GetSearchResultsPart) GetSize() *float64 { func (g *GetSearchResultsPart) GetSize() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetSearchResultsPart) GetAudioProfile() *string { func (g *GetSearchResultsPart) GetAudioProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioProfile return g.AudioProfile
} }
func (o *GetSearchResultsPart) GetContainer() *string { func (g *GetSearchResultsPart) GetContainer() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Container return g.Container
} }
func (o *GetSearchResultsPart) GetVideoProfile() *string { func (g *GetSearchResultsPart) GetVideoProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoProfile return g.VideoProfile
} }
type GetSearchResultsMedia struct { type GetSearchResultsMedia struct {
@@ -105,164 +105,164 @@ type GetSearchResultsMedia struct {
Part []GetSearchResultsPart `json:"Part,omitempty"` Part []GetSearchResultsPart `json:"Part,omitempty"`
} }
func (o *GetSearchResultsMedia) GetID() *float64 { func (g *GetSearchResultsMedia) GetID() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetSearchResultsMedia) GetDuration() *float64 { func (g *GetSearchResultsMedia) GetDuration() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetSearchResultsMedia) GetBitrate() *float64 { func (g *GetSearchResultsMedia) GetBitrate() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Bitrate return g.Bitrate
} }
func (o *GetSearchResultsMedia) GetWidth() *float64 { func (g *GetSearchResultsMedia) GetWidth() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Width return g.Width
} }
func (o *GetSearchResultsMedia) GetHeight() *float64 { func (g *GetSearchResultsMedia) GetHeight() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Height return g.Height
} }
func (o *GetSearchResultsMedia) GetAspectRatio() *float64 { func (g *GetSearchResultsMedia) GetAspectRatio() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AspectRatio return g.AspectRatio
} }
func (o *GetSearchResultsMedia) GetAudioChannels() *float64 { func (g *GetSearchResultsMedia) GetAudioChannels() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioChannels return g.AudioChannels
} }
func (o *GetSearchResultsMedia) GetAudioCodec() *string { func (g *GetSearchResultsMedia) GetAudioCodec() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioCodec return g.AudioCodec
} }
func (o *GetSearchResultsMedia) GetVideoCodec() *string { func (g *GetSearchResultsMedia) GetVideoCodec() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoCodec return g.VideoCodec
} }
func (o *GetSearchResultsMedia) GetVideoResolution() *float64 { func (g *GetSearchResultsMedia) GetVideoResolution() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoResolution return g.VideoResolution
} }
func (o *GetSearchResultsMedia) GetContainer() *string { func (g *GetSearchResultsMedia) GetContainer() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Container return g.Container
} }
func (o *GetSearchResultsMedia) GetVideoFrameRate() *string { func (g *GetSearchResultsMedia) GetVideoFrameRate() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoFrameRate return g.VideoFrameRate
} }
func (o *GetSearchResultsMedia) GetAudioProfile() *string { func (g *GetSearchResultsMedia) GetAudioProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudioProfile return g.AudioProfile
} }
func (o *GetSearchResultsMedia) GetVideoProfile() *string { func (g *GetSearchResultsMedia) GetVideoProfile() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.VideoProfile return g.VideoProfile
} }
func (o *GetSearchResultsMedia) GetPart() []GetSearchResultsPart { func (g *GetSearchResultsMedia) GetPart() []GetSearchResultsPart {
if o == nil { if g == nil {
return nil return nil
} }
return o.Part return g.Part
} }
type GetSearchResultsGenre struct { type GetSearchResultsGenre struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetSearchResultsGenre) GetTag() *string { func (g *GetSearchResultsGenre) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetSearchResultsDirector struct { type GetSearchResultsDirector struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetSearchResultsDirector) GetTag() *string { func (g *GetSearchResultsDirector) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetSearchResultsWriter struct { type GetSearchResultsWriter struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetSearchResultsWriter) GetTag() *string { func (g *GetSearchResultsWriter) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetSearchResultsCountry struct { type GetSearchResultsCountry struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetSearchResultsCountry) GetTag() *string { func (g *GetSearchResultsCountry) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetSearchResultsRole struct { type GetSearchResultsRole struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetSearchResultsRole) GetTag() *string { func (g *GetSearchResultsRole) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetSearchResultsMetadata struct { type GetSearchResultsMetadata struct {
@@ -313,242 +313,242 @@ func (g *GetSearchResultsMetadata) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetSearchResultsMetadata) GetAllowSync() *bool { func (g *GetSearchResultsMetadata) GetAllowSync() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetSearchResultsMetadata) GetLibrarySectionID() *float64 { func (g *GetSearchResultsMetadata) GetLibrarySectionID() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetSearchResultsMetadata) GetLibrarySectionTitle() *string { func (g *GetSearchResultsMetadata) GetLibrarySectionTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionTitle return g.LibrarySectionTitle
} }
func (o *GetSearchResultsMetadata) GetLibrarySectionUUID() *string { func (g *GetSearchResultsMetadata) GetLibrarySectionUUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionUUID return g.LibrarySectionUUID
} }
func (o *GetSearchResultsMetadata) GetPersonal() *bool { func (g *GetSearchResultsMetadata) GetPersonal() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Personal return g.Personal
} }
func (o *GetSearchResultsMetadata) GetSourceTitle() *string { func (g *GetSearchResultsMetadata) GetSourceTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.SourceTitle return g.SourceTitle
} }
func (o *GetSearchResultsMetadata) GetRatingKey() *float64 { func (g *GetSearchResultsMetadata) GetRatingKey() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetSearchResultsMetadata) GetKey() *string { func (g *GetSearchResultsMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetSearchResultsMetadata) GetGUID() *string { func (g *GetSearchResultsMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetSearchResultsMetadata) GetStudio() *string { func (g *GetSearchResultsMetadata) GetStudio() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Studio return g.Studio
} }
func (o *GetSearchResultsMetadata) GetType() *string { func (g *GetSearchResultsMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetSearchResultsMetadata) GetTitle() *string { func (g *GetSearchResultsMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetSearchResultsMetadata) GetContentRating() *string { func (g *GetSearchResultsMetadata) GetContentRating() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ContentRating return g.ContentRating
} }
func (o *GetSearchResultsMetadata) GetSummary() *string { func (g *GetSearchResultsMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetSearchResultsMetadata) GetRating() *float64 { func (g *GetSearchResultsMetadata) GetRating() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Rating return g.Rating
} }
func (o *GetSearchResultsMetadata) GetAudienceRating() *float64 { func (g *GetSearchResultsMetadata) GetAudienceRating() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRating return g.AudienceRating
} }
func (o *GetSearchResultsMetadata) GetYear() *float64 { func (g *GetSearchResultsMetadata) GetYear() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Year return g.Year
} }
func (o *GetSearchResultsMetadata) GetTagline() *string { func (g *GetSearchResultsMetadata) GetTagline() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tagline return g.Tagline
} }
func (o *GetSearchResultsMetadata) GetThumb() *string { func (g *GetSearchResultsMetadata) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetSearchResultsMetadata) GetArt() *string { func (g *GetSearchResultsMetadata) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetSearchResultsMetadata) GetDuration() *float64 { func (g *GetSearchResultsMetadata) GetDuration() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetSearchResultsMetadata) GetOriginallyAvailableAt() *time.Time { func (g *GetSearchResultsMetadata) GetOriginallyAvailableAt() *time.Time {
if o == nil { if g == nil {
return nil return nil
} }
return o.OriginallyAvailableAt return g.OriginallyAvailableAt
} }
func (o *GetSearchResultsMetadata) GetAddedAt() *float64 { func (g *GetSearchResultsMetadata) GetAddedAt() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetSearchResultsMetadata) GetUpdatedAt() *float64 { func (g *GetSearchResultsMetadata) GetUpdatedAt() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetSearchResultsMetadata) GetAudienceRatingImage() *string { func (g *GetSearchResultsMetadata) GetAudienceRatingImage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRatingImage return g.AudienceRatingImage
} }
func (o *GetSearchResultsMetadata) GetChapterSource() *string { func (g *GetSearchResultsMetadata) GetChapterSource() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ChapterSource return g.ChapterSource
} }
func (o *GetSearchResultsMetadata) GetPrimaryExtraKey() *string { func (g *GetSearchResultsMetadata) GetPrimaryExtraKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PrimaryExtraKey return g.PrimaryExtraKey
} }
func (o *GetSearchResultsMetadata) GetRatingImage() *string { func (g *GetSearchResultsMetadata) GetRatingImage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingImage return g.RatingImage
} }
func (o *GetSearchResultsMetadata) GetMedia() []GetSearchResultsMedia { func (g *GetSearchResultsMetadata) GetMedia() []GetSearchResultsMedia {
if o == nil { if g == nil {
return nil return nil
} }
return o.Media return g.Media
} }
func (o *GetSearchResultsMetadata) GetGenre() []GetSearchResultsGenre { func (g *GetSearchResultsMetadata) GetGenre() []GetSearchResultsGenre {
if o == nil { if g == nil {
return nil return nil
} }
return o.Genre return g.Genre
} }
func (o *GetSearchResultsMetadata) GetDirector() []GetSearchResultsDirector { func (g *GetSearchResultsMetadata) GetDirector() []GetSearchResultsDirector {
if o == nil { if g == nil {
return nil return nil
} }
return o.Director return g.Director
} }
func (o *GetSearchResultsMetadata) GetWriter() []GetSearchResultsWriter { func (g *GetSearchResultsMetadata) GetWriter() []GetSearchResultsWriter {
if o == nil { if g == nil {
return nil return nil
} }
return o.Writer return g.Writer
} }
func (o *GetSearchResultsMetadata) GetCountry() []GetSearchResultsCountry { func (g *GetSearchResultsMetadata) GetCountry() []GetSearchResultsCountry {
if o == nil { if g == nil {
return nil return nil
} }
return o.Country return g.Country
} }
func (o *GetSearchResultsMetadata) GetRole() []GetSearchResultsRole { func (g *GetSearchResultsMetadata) GetRole() []GetSearchResultsRole {
if o == nil { if g == nil {
return nil return nil
} }
return o.Role return g.Role
} }
type Provider struct { type Provider struct {
@@ -557,25 +557,25 @@ type Provider struct {
Type *string `json:"type,omitempty"` Type *string `json:"type,omitempty"`
} }
func (o *Provider) GetKey() *string { func (p *Provider) GetKey() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Key return p.Key
} }
func (o *Provider) GetTitle() *string { func (p *Provider) GetTitle() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Title return p.Title
} }
func (o *Provider) GetType() *string { func (p *Provider) GetType() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Type return p.Type
} }
type GetSearchResultsMediaContainer struct { type GetSearchResultsMediaContainer struct {
@@ -587,46 +587,46 @@ type GetSearchResultsMediaContainer struct {
Provider []Provider `json:"Provider,omitempty"` Provider []Provider `json:"Provider,omitempty"`
} }
func (o *GetSearchResultsMediaContainer) GetSize() *float64 { func (g *GetSearchResultsMediaContainer) GetSize() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetSearchResultsMediaContainer) GetIdentifier() *string { func (g *GetSearchResultsMediaContainer) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetSearchResultsMediaContainer) GetMediaTagPrefix() *string { func (g *GetSearchResultsMediaContainer) GetMediaTagPrefix() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetSearchResultsMediaContainer) GetMediaTagVersion() *float64 { func (g *GetSearchResultsMediaContainer) GetMediaTagVersion() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetSearchResultsMediaContainer) GetMetadata() []GetSearchResultsMetadata { func (g *GetSearchResultsMediaContainer) GetMetadata() []GetSearchResultsMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
func (o *GetSearchResultsMediaContainer) GetProvider() []Provider { func (g *GetSearchResultsMediaContainer) GetProvider() []Provider {
if o == nil { if g == nil {
return nil return nil
} }
return o.Provider return g.Provider
} }
// GetSearchResultsResponseBody - Search Results // GetSearchResultsResponseBody - Search Results
@@ -634,11 +634,11 @@ type GetSearchResultsResponseBody struct {
MediaContainer *GetSearchResultsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetSearchResultsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetSearchResultsResponseBody) GetMediaContainer() *GetSearchResultsMediaContainer { func (g *GetSearchResultsResponseBody) GetMediaContainer() *GetSearchResultsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetSearchResultsResponse struct { type GetSearchResultsResponse struct {
@@ -652,30 +652,30 @@ type GetSearchResultsResponse struct {
Object *GetSearchResultsResponseBody Object *GetSearchResultsResponseBody
} }
func (o *GetSearchResultsResponse) GetContentType() string { func (g *GetSearchResultsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetSearchResultsResponse) GetStatusCode() int { func (g *GetSearchResultsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetSearchResultsResponse) GetRawResponse() *http.Response { func (g *GetSearchResultsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetSearchResultsResponse) GetObject() *GetSearchResultsResponseBody { func (g *GetSearchResultsResponse) GetObject() *GetSearchResultsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -10,11 +10,11 @@ type Context struct {
LibrarySectionID *string `json:"librarySectionID,omitempty"` LibrarySectionID *string `json:"librarySectionID,omitempty"`
} }
func (o *Context) GetLibrarySectionID() *string { func (c *Context) GetLibrarySectionID() *string {
if o == nil { if c == nil {
return nil return nil
} }
return o.LibrarySectionID return c.LibrarySectionID
} }
type Activity struct { type Activity struct {
@@ -28,60 +28,60 @@ type Activity struct {
Context *Context `json:"Context,omitempty"` Context *Context `json:"Context,omitempty"`
} }
func (o *Activity) GetUUID() *string { func (a *Activity) GetUUID() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.UUID return a.UUID
} }
func (o *Activity) GetType() *string { func (a *Activity) GetType() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Type return a.Type
} }
func (o *Activity) GetCancellable() *bool { func (a *Activity) GetCancellable() *bool {
if o == nil { if a == nil {
return nil return nil
} }
return o.Cancellable return a.Cancellable
} }
func (o *Activity) GetUserID() *float64 { func (a *Activity) GetUserID() *float64 {
if o == nil { if a == nil {
return nil return nil
} }
return o.UserID return a.UserID
} }
func (o *Activity) GetTitle() *string { func (a *Activity) GetTitle() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Title return a.Title
} }
func (o *Activity) GetSubtitle() *string { func (a *Activity) GetSubtitle() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Subtitle return a.Subtitle
} }
func (o *Activity) GetProgress() *float64 { func (a *Activity) GetProgress() *float64 {
if o == nil { if a == nil {
return nil return nil
} }
return o.Progress return a.Progress
} }
func (o *Activity) GetContext() *Context { func (a *Activity) GetContext() *Context {
if o == nil { if a == nil {
return nil return nil
} }
return o.Context return a.Context
} }
type GetServerActivitiesMediaContainer struct { type GetServerActivitiesMediaContainer struct {
@@ -89,18 +89,18 @@ type GetServerActivitiesMediaContainer struct {
Activity []Activity `json:"Activity,omitempty"` Activity []Activity `json:"Activity,omitempty"`
} }
func (o *GetServerActivitiesMediaContainer) GetSize() *float64 { func (g *GetServerActivitiesMediaContainer) GetSize() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetServerActivitiesMediaContainer) GetActivity() []Activity { func (g *GetServerActivitiesMediaContainer) GetActivity() []Activity {
if o == nil { if g == nil {
return nil return nil
} }
return o.Activity return g.Activity
} }
// GetServerActivitiesResponseBody - The Server Activities // GetServerActivitiesResponseBody - The Server Activities
@@ -108,11 +108,11 @@ type GetServerActivitiesResponseBody struct {
MediaContainer *GetServerActivitiesMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetServerActivitiesMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetServerActivitiesResponseBody) GetMediaContainer() *GetServerActivitiesMediaContainer { func (g *GetServerActivitiesResponseBody) GetMediaContainer() *GetServerActivitiesMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetServerActivitiesResponse struct { type GetServerActivitiesResponse struct {
@@ -126,30 +126,30 @@ type GetServerActivitiesResponse struct {
Object *GetServerActivitiesResponseBody Object *GetServerActivitiesResponseBody
} }
func (o *GetServerActivitiesResponse) GetContentType() string { func (g *GetServerActivitiesResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetServerActivitiesResponse) GetStatusCode() int { func (g *GetServerActivitiesResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetServerActivitiesResponse) GetRawResponse() *http.Response { func (g *GetServerActivitiesResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetServerActivitiesResponse) GetObject() *GetServerActivitiesResponseBody { func (g *GetServerActivitiesResponse) GetObject() *GetServerActivitiesResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -12,25 +12,25 @@ type Directory struct {
Title *string `json:"title,omitempty"` Title *string `json:"title,omitempty"`
} }
func (o *Directory) GetCount() *float64 { func (d *Directory) GetCount() *float64 {
if o == nil { if d == nil {
return nil return nil
} }
return o.Count return d.Count
} }
func (o *Directory) GetKey() *string { func (d *Directory) GetKey() *string {
if o == nil { if d == nil {
return nil return nil
} }
return o.Key return d.Key
} }
func (o *Directory) GetTitle() *string { func (d *Directory) GetTitle() *string {
if o == nil { if d == nil {
return nil return nil
} }
return o.Title return d.Title
} }
type MediaContainer struct { type MediaContainer struct {
@@ -87,361 +87,361 @@ type MediaContainer struct {
Directory []Directory `json:"Directory,omitempty"` Directory []Directory `json:"Directory,omitempty"`
} }
func (o *MediaContainer) GetSize() *float64 { func (m *MediaContainer) GetSize() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.Size return m.Size
} }
func (o *MediaContainer) GetAllowCameraUpload() *bool { func (m *MediaContainer) GetAllowCameraUpload() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.AllowCameraUpload return m.AllowCameraUpload
} }
func (o *MediaContainer) GetAllowChannelAccess() *bool { func (m *MediaContainer) GetAllowChannelAccess() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.AllowChannelAccess return m.AllowChannelAccess
} }
func (o *MediaContainer) GetAllowMediaDeletion() *bool { func (m *MediaContainer) GetAllowMediaDeletion() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.AllowMediaDeletion return m.AllowMediaDeletion
} }
func (o *MediaContainer) GetAllowSharing() *bool { func (m *MediaContainer) GetAllowSharing() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.AllowSharing return m.AllowSharing
} }
func (o *MediaContainer) GetAllowSync() *bool { func (m *MediaContainer) GetAllowSync() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.AllowSync return m.AllowSync
} }
func (o *MediaContainer) GetAllowTuners() *bool { func (m *MediaContainer) GetAllowTuners() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.AllowTuners return m.AllowTuners
} }
func (o *MediaContainer) GetBackgroundProcessing() *bool { func (m *MediaContainer) GetBackgroundProcessing() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.BackgroundProcessing return m.BackgroundProcessing
} }
func (o *MediaContainer) GetCertificate() *bool { func (m *MediaContainer) GetCertificate() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.Certificate return m.Certificate
} }
func (o *MediaContainer) GetCompanionProxy() *bool { func (m *MediaContainer) GetCompanionProxy() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.CompanionProxy return m.CompanionProxy
} }
func (o *MediaContainer) GetCountryCode() *string { func (m *MediaContainer) GetCountryCode() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.CountryCode return m.CountryCode
} }
func (o *MediaContainer) GetDiagnostics() *string { func (m *MediaContainer) GetDiagnostics() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Diagnostics return m.Diagnostics
} }
func (o *MediaContainer) GetEventStream() *bool { func (m *MediaContainer) GetEventStream() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.EventStream return m.EventStream
} }
func (o *MediaContainer) GetFriendlyName() *string { func (m *MediaContainer) GetFriendlyName() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.FriendlyName return m.FriendlyName
} }
func (o *MediaContainer) GetHubSearch() *bool { func (m *MediaContainer) GetHubSearch() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.HubSearch return m.HubSearch
} }
func (o *MediaContainer) GetItemClusters() *bool { func (m *MediaContainer) GetItemClusters() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.ItemClusters return m.ItemClusters
} }
func (o *MediaContainer) GetLivetv() *float64 { func (m *MediaContainer) GetLivetv() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.Livetv return m.Livetv
} }
func (o *MediaContainer) GetMachineIdentifier() *string { func (m *MediaContainer) GetMachineIdentifier() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.MachineIdentifier return m.MachineIdentifier
} }
func (o *MediaContainer) GetMediaProviders() *bool { func (m *MediaContainer) GetMediaProviders() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.MediaProviders return m.MediaProviders
} }
func (o *MediaContainer) GetMultiuser() *bool { func (m *MediaContainer) GetMultiuser() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.Multiuser return m.Multiuser
} }
func (o *MediaContainer) GetMusicAnalysis() *float64 { func (m *MediaContainer) GetMusicAnalysis() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.MusicAnalysis return m.MusicAnalysis
} }
func (o *MediaContainer) GetMyPlex() *bool { func (m *MediaContainer) GetMyPlex() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.MyPlex return m.MyPlex
} }
func (o *MediaContainer) GetMyPlexMappingState() *string { func (m *MediaContainer) GetMyPlexMappingState() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.MyPlexMappingState return m.MyPlexMappingState
} }
func (o *MediaContainer) GetMyPlexSigninState() *string { func (m *MediaContainer) GetMyPlexSigninState() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.MyPlexSigninState return m.MyPlexSigninState
} }
func (o *MediaContainer) GetMyPlexSubscription() *bool { func (m *MediaContainer) GetMyPlexSubscription() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.MyPlexSubscription return m.MyPlexSubscription
} }
func (o *MediaContainer) GetMyPlexUsername() *string { func (m *MediaContainer) GetMyPlexUsername() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.MyPlexUsername return m.MyPlexUsername
} }
func (o *MediaContainer) GetOfflineTranscode() *float64 { func (m *MediaContainer) GetOfflineTranscode() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.OfflineTranscode return m.OfflineTranscode
} }
func (o *MediaContainer) GetOwnerFeatures() *string { func (m *MediaContainer) GetOwnerFeatures() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.OwnerFeatures return m.OwnerFeatures
} }
func (o *MediaContainer) GetPhotoAutoTag() *bool { func (m *MediaContainer) GetPhotoAutoTag() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.PhotoAutoTag return m.PhotoAutoTag
} }
func (o *MediaContainer) GetPlatform() *string { func (m *MediaContainer) GetPlatform() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Platform return m.Platform
} }
func (o *MediaContainer) GetPlatformVersion() *string { func (m *MediaContainer) GetPlatformVersion() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.PlatformVersion return m.PlatformVersion
} }
func (o *MediaContainer) GetPluginHost() *bool { func (m *MediaContainer) GetPluginHost() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.PluginHost return m.PluginHost
} }
func (o *MediaContainer) GetPushNotifications() *bool { func (m *MediaContainer) GetPushNotifications() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.PushNotifications return m.PushNotifications
} }
func (o *MediaContainer) GetReadOnlyLibraries() *bool { func (m *MediaContainer) GetReadOnlyLibraries() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.ReadOnlyLibraries return m.ReadOnlyLibraries
} }
func (o *MediaContainer) GetStreamingBrainABRVersion() *float64 { func (m *MediaContainer) GetStreamingBrainABRVersion() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.StreamingBrainABRVersion return m.StreamingBrainABRVersion
} }
func (o *MediaContainer) GetStreamingBrainVersion() *float64 { func (m *MediaContainer) GetStreamingBrainVersion() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.StreamingBrainVersion return m.StreamingBrainVersion
} }
func (o *MediaContainer) GetSync() *bool { func (m *MediaContainer) GetSync() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.Sync return m.Sync
} }
func (o *MediaContainer) GetTranscoderActiveVideoSessions() *float64 { func (m *MediaContainer) GetTranscoderActiveVideoSessions() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderActiveVideoSessions return m.TranscoderActiveVideoSessions
} }
func (o *MediaContainer) GetTranscoderAudio() *bool { func (m *MediaContainer) GetTranscoderAudio() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderAudio return m.TranscoderAudio
} }
func (o *MediaContainer) GetTranscoderLyrics() *bool { func (m *MediaContainer) GetTranscoderLyrics() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderLyrics return m.TranscoderLyrics
} }
func (o *MediaContainer) GetTranscoderPhoto() *bool { func (m *MediaContainer) GetTranscoderPhoto() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderPhoto return m.TranscoderPhoto
} }
func (o *MediaContainer) GetTranscoderSubtitles() *bool { func (m *MediaContainer) GetTranscoderSubtitles() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderSubtitles return m.TranscoderSubtitles
} }
func (o *MediaContainer) GetTranscoderVideo() *bool { func (m *MediaContainer) GetTranscoderVideo() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderVideo return m.TranscoderVideo
} }
func (o *MediaContainer) GetTranscoderVideoBitrates() *string { func (m *MediaContainer) GetTranscoderVideoBitrates() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderVideoBitrates return m.TranscoderVideoBitrates
} }
func (o *MediaContainer) GetTranscoderVideoQualities() *string { func (m *MediaContainer) GetTranscoderVideoQualities() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderVideoQualities return m.TranscoderVideoQualities
} }
func (o *MediaContainer) GetTranscoderVideoResolutions() *string { func (m *MediaContainer) GetTranscoderVideoResolutions() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.TranscoderVideoResolutions return m.TranscoderVideoResolutions
} }
func (o *MediaContainer) GetUpdatedAt() *float64 { func (m *MediaContainer) GetUpdatedAt() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.UpdatedAt return m.UpdatedAt
} }
func (o *MediaContainer) GetUpdater() *bool { func (m *MediaContainer) GetUpdater() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.Updater return m.Updater
} }
func (o *MediaContainer) GetVersion() *string { func (m *MediaContainer) GetVersion() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Version return m.Version
} }
func (o *MediaContainer) GetVoiceSearch() *bool { func (m *MediaContainer) GetVoiceSearch() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.VoiceSearch return m.VoiceSearch
} }
func (o *MediaContainer) GetDirectory() []Directory { func (m *MediaContainer) GetDirectory() []Directory {
if o == nil { if m == nil {
return nil return nil
} }
return o.Directory return m.Directory
} }
// GetServerCapabilitiesResponseBody - The Server Capabilities // GetServerCapabilitiesResponseBody - The Server Capabilities
@@ -449,11 +449,11 @@ type GetServerCapabilitiesResponseBody struct {
MediaContainer *MediaContainer `json:"MediaContainer,omitempty"` MediaContainer *MediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetServerCapabilitiesResponseBody) GetMediaContainer() *MediaContainer { func (g *GetServerCapabilitiesResponseBody) GetMediaContainer() *MediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetServerCapabilitiesResponse struct { type GetServerCapabilitiesResponse struct {
@@ -467,30 +467,30 @@ type GetServerCapabilitiesResponse struct {
Object *GetServerCapabilitiesResponseBody Object *GetServerCapabilitiesResponseBody
} }
func (o *GetServerCapabilitiesResponse) GetContentType() string { func (g *GetServerCapabilitiesResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetServerCapabilitiesResponse) GetStatusCode() int { func (g *GetServerCapabilitiesResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetServerCapabilitiesResponse) GetRawResponse() *http.Response { func (g *GetServerCapabilitiesResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetServerCapabilitiesResponse) GetObject() *GetServerCapabilitiesResponseBody { func (g *GetServerCapabilitiesResponse) GetObject() *GetServerCapabilitiesResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -13,32 +13,32 @@ type GetServerIdentityMediaContainer struct {
Version *string `json:"version,omitempty"` Version *string `json:"version,omitempty"`
} }
func (o *GetServerIdentityMediaContainer) GetSize() *float64 { func (g *GetServerIdentityMediaContainer) GetSize() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetServerIdentityMediaContainer) GetClaimed() *bool { func (g *GetServerIdentityMediaContainer) GetClaimed() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Claimed return g.Claimed
} }
func (o *GetServerIdentityMediaContainer) GetMachineIdentifier() *string { func (g *GetServerIdentityMediaContainer) GetMachineIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MachineIdentifier return g.MachineIdentifier
} }
func (o *GetServerIdentityMediaContainer) GetVersion() *string { func (g *GetServerIdentityMediaContainer) GetVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Version return g.Version
} }
// GetServerIdentityResponseBody - The Server Identity information // GetServerIdentityResponseBody - The Server Identity information
@@ -46,11 +46,11 @@ type GetServerIdentityResponseBody struct {
MediaContainer *GetServerIdentityMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetServerIdentityMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetServerIdentityResponseBody) GetMediaContainer() *GetServerIdentityMediaContainer { func (g *GetServerIdentityResponseBody) GetMediaContainer() *GetServerIdentityMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetServerIdentityResponse struct { type GetServerIdentityResponse struct {
@@ -64,30 +64,30 @@ type GetServerIdentityResponse struct {
Object *GetServerIdentityResponseBody Object *GetServerIdentityResponseBody
} }
func (o *GetServerIdentityResponse) GetContentType() string { func (g *GetServerIdentityResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetServerIdentityResponse) GetStatusCode() int { func (g *GetServerIdentityResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetServerIdentityResponse) GetRawResponse() *http.Response { func (g *GetServerIdentityResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetServerIdentityResponse) GetObject() *GetServerIdentityResponseBody { func (g *GetServerIdentityResponse) GetObject() *GetServerIdentityResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -15,46 +15,46 @@ type GetServerListServer struct {
Version *string `json:"version,omitempty"` Version *string `json:"version,omitempty"`
} }
func (o *GetServerListServer) GetName() *string { func (g *GetServerListServer) GetName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Name return g.Name
} }
func (o *GetServerListServer) GetHost() *string { func (g *GetServerListServer) GetHost() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Host return g.Host
} }
func (o *GetServerListServer) GetAddress() *string { func (g *GetServerListServer) GetAddress() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Address return g.Address
} }
func (o *GetServerListServer) GetPort() *float64 { func (g *GetServerListServer) GetPort() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Port return g.Port
} }
func (o *GetServerListServer) GetMachineIdentifier() *string { func (g *GetServerListServer) GetMachineIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.MachineIdentifier return g.MachineIdentifier
} }
func (o *GetServerListServer) GetVersion() *string { func (g *GetServerListServer) GetVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Version return g.Version
} }
type GetServerListMediaContainer struct { type GetServerListMediaContainer struct {
@@ -62,18 +62,18 @@ type GetServerListMediaContainer struct {
Server []GetServerListServer `json:"Server,omitempty"` Server []GetServerListServer `json:"Server,omitempty"`
} }
func (o *GetServerListMediaContainer) GetSize() *float64 { func (g *GetServerListMediaContainer) GetSize() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetServerListMediaContainer) GetServer() []GetServerListServer { func (g *GetServerListMediaContainer) GetServer() []GetServerListServer {
if o == nil { if g == nil {
return nil return nil
} }
return o.Server return g.Server
} }
// GetServerListResponseBody - List of Servers // GetServerListResponseBody - List of Servers
@@ -81,11 +81,11 @@ type GetServerListResponseBody struct {
MediaContainer *GetServerListMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetServerListMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetServerListResponseBody) GetMediaContainer() *GetServerListMediaContainer { func (g *GetServerListResponseBody) GetMediaContainer() *GetServerListMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetServerListResponse struct { type GetServerListResponse struct {
@@ -99,30 +99,30 @@ type GetServerListResponse struct {
Object *GetServerListResponseBody Object *GetServerListResponseBody
} }
func (o *GetServerListResponse) GetContentType() string { func (g *GetServerListResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetServerListResponse) GetStatusCode() int { func (g *GetServerListResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetServerListResponse) GetRawResponse() *http.Response { func (g *GetServerListResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetServerListResponse) GetObject() *GetServerListResponseBody { func (g *GetServerListResponse) GetObject() *GetServerListResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -19,74 +19,74 @@ type Setting struct {
EnumValues *string `json:"enumValues,omitempty"` EnumValues *string `json:"enumValues,omitempty"`
} }
func (o *Setting) GetID() *string { func (s *Setting) GetID() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.ID return s.ID
} }
func (o *Setting) GetLabel() *string { func (s *Setting) GetLabel() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Label return s.Label
} }
func (o *Setting) GetSummary() *string { func (s *Setting) GetSummary() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Summary return s.Summary
} }
func (o *Setting) GetType() *string { func (s *Setting) GetType() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Type return s.Type
} }
func (o *Setting) GetDefault() *bool { func (s *Setting) GetDefault() *bool {
if o == nil { if s == nil {
return nil return nil
} }
return o.Default return s.Default
} }
func (o *Setting) GetValue() *bool { func (s *Setting) GetValue() *bool {
if o == nil { if s == nil {
return nil return nil
} }
return o.Value return s.Value
} }
func (o *Setting) GetHidden() *bool { func (s *Setting) GetHidden() *bool {
if o == nil { if s == nil {
return nil return nil
} }
return o.Hidden return s.Hidden
} }
func (o *Setting) GetAdvanced() *bool { func (s *Setting) GetAdvanced() *bool {
if o == nil { if s == nil {
return nil return nil
} }
return o.Advanced return s.Advanced
} }
func (o *Setting) GetGroup() *string { func (s *Setting) GetGroup() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Group return s.Group
} }
func (o *Setting) GetEnumValues() *string { func (s *Setting) GetEnumValues() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.EnumValues return s.EnumValues
} }
type GetServerPreferencesMediaContainer struct { type GetServerPreferencesMediaContainer struct {
@@ -94,18 +94,18 @@ type GetServerPreferencesMediaContainer struct {
Setting []Setting `json:"Setting,omitempty"` Setting []Setting `json:"Setting,omitempty"`
} }
func (o *GetServerPreferencesMediaContainer) GetSize() *int { func (g *GetServerPreferencesMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetServerPreferencesMediaContainer) GetSetting() []Setting { func (g *GetServerPreferencesMediaContainer) GetSetting() []Setting {
if o == nil { if g == nil {
return nil return nil
} }
return o.Setting return g.Setting
} }
// GetServerPreferencesResponseBody - Server Preferences // GetServerPreferencesResponseBody - Server Preferences
@@ -113,11 +113,11 @@ type GetServerPreferencesResponseBody struct {
MediaContainer *GetServerPreferencesMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetServerPreferencesMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetServerPreferencesResponseBody) GetMediaContainer() *GetServerPreferencesMediaContainer { func (g *GetServerPreferencesResponseBody) GetMediaContainer() *GetServerPreferencesMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetServerPreferencesResponse struct { type GetServerPreferencesResponse struct {
@@ -131,30 +131,30 @@ type GetServerPreferencesResponse struct {
Object *GetServerPreferencesResponseBody Object *GetServerPreferencesResponseBody
} }
func (o *GetServerPreferencesResponse) GetContentType() string { func (g *GetServerPreferencesResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetServerPreferencesResponse) GetStatusCode() int { func (g *GetServerPreferencesResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetServerPreferencesResponse) GetRawResponse() *http.Response { func (g *GetServerPreferencesResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetServerPreferencesResponse) GetObject() *GetServerPreferencesResponseBody { func (g *GetServerPreferencesResponse) GetObject() *GetServerPreferencesResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -120,32 +120,32 @@ func (g *GetServerResourcesRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS { func (g *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeHTTPS return g.IncludeHTTPS
} }
func (o *GetServerResourcesRequest) GetIncludeRelay() *IncludeRelay { func (g *GetServerResourcesRequest) GetIncludeRelay() *IncludeRelay {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeRelay return g.IncludeRelay
} }
func (o *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 { func (g *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeIPv6 return g.IncludeIPv6
} }
func (o *GetServerResourcesRequest) GetClientID() string { func (g *GetServerResourcesRequest) GetClientID() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ClientID return g.ClientID
} }
// Protocol - The protocol used for the connection (http, https, etc) // Protocol - The protocol used for the connection (http, https, etc)
@@ -192,53 +192,53 @@ type Connections struct {
IPv6 bool `json:"IPv6"` IPv6 bool `json:"IPv6"`
} }
func (o *Connections) GetProtocol() Protocol { func (c *Connections) GetProtocol() Protocol {
if o == nil { if c == nil {
return Protocol("") return Protocol("")
} }
return o.Protocol return c.Protocol
} }
func (o *Connections) GetAddress() string { func (c *Connections) GetAddress() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.Address return c.Address
} }
func (o *Connections) GetPort() int { func (c *Connections) GetPort() int {
if o == nil { if c == nil {
return 0 return 0
} }
return o.Port return c.Port
} }
func (o *Connections) GetURI() string { func (c *Connections) GetURI() string {
if o == nil { if c == nil {
return "" return ""
} }
return o.URI return c.URI
} }
func (o *Connections) GetLocal() bool { func (c *Connections) GetLocal() bool {
if o == nil { if c == nil {
return false return false
} }
return o.Local return c.Local
} }
func (o *Connections) GetRelay() bool { func (c *Connections) GetRelay() bool {
if o == nil { if c == nil {
return false return false
} }
return o.Relay return c.Relay
} }
func (o *Connections) GetIPv6() bool { func (c *Connections) GetIPv6() bool {
if o == nil { if c == nil {
return false return false
} }
return o.IPv6 return c.IPv6
} }
type PlexDevice struct { type PlexDevice struct {
@@ -274,178 +274,178 @@ func (p PlexDevice) MarshalJSON() ([]byte, error) {
} }
func (p *PlexDevice) UnmarshalJSON(data []byte) error { func (p *PlexDevice) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "product", "productVersion", "platform", "platformVersion", "device", "clientIdentifier", "createdAt", "lastSeenAt", "provides", "ownerId", "sourceTitle", "publicAddress", "accessToken", "owned", "home", "synced", "relay", "presence", "httpsRequired", "publicAddressMatches", "dnsRebindingProtection", "natLoopbackSupported", "connections"}); err != nil { if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "product", "productVersion", "clientIdentifier", "createdAt", "lastSeenAt", "provides", "publicAddress", "accessToken", "owned", "home", "synced", "relay", "presence", "httpsRequired", "publicAddressMatches", "dnsRebindingProtection", "natLoopbackSupported", "connections"}); err != nil {
return err return err
} }
return nil return nil
} }
func (o *PlexDevice) GetName() string { func (p *PlexDevice) GetName() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.Name return p.Name
} }
func (o *PlexDevice) GetProduct() string { func (p *PlexDevice) GetProduct() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.Product return p.Product
} }
func (o *PlexDevice) GetProductVersion() string { func (p *PlexDevice) GetProductVersion() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.ProductVersion return p.ProductVersion
} }
func (o *PlexDevice) GetPlatform() *string { func (p *PlexDevice) GetPlatform() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Platform return p.Platform
} }
func (o *PlexDevice) GetPlatformVersion() *string { func (p *PlexDevice) GetPlatformVersion() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.PlatformVersion return p.PlatformVersion
} }
func (o *PlexDevice) GetDevice() *string { func (p *PlexDevice) GetDevice() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.Device return p.Device
} }
func (o *PlexDevice) GetClientIdentifier() string { func (p *PlexDevice) GetClientIdentifier() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.ClientIdentifier return p.ClientIdentifier
} }
func (o *PlexDevice) GetCreatedAt() time.Time { func (p *PlexDevice) GetCreatedAt() time.Time {
if o == nil { if p == nil {
return time.Time{} return time.Time{}
} }
return o.CreatedAt return p.CreatedAt
} }
func (o *PlexDevice) GetLastSeenAt() time.Time { func (p *PlexDevice) GetLastSeenAt() time.Time {
if o == nil { if p == nil {
return time.Time{} return time.Time{}
} }
return o.LastSeenAt return p.LastSeenAt
} }
func (o *PlexDevice) GetProvides() string { func (p *PlexDevice) GetProvides() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.Provides return p.Provides
} }
func (o *PlexDevice) GetOwnerID() *int64 { func (p *PlexDevice) GetOwnerID() *int64 {
if o == nil { if p == nil {
return nil return nil
} }
return o.OwnerID return p.OwnerID
} }
func (o *PlexDevice) GetSourceTitle() *string { func (p *PlexDevice) GetSourceTitle() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.SourceTitle return p.SourceTitle
} }
func (o *PlexDevice) GetPublicAddress() string { func (p *PlexDevice) GetPublicAddress() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.PublicAddress return p.PublicAddress
} }
func (o *PlexDevice) GetAccessToken() string { func (p *PlexDevice) GetAccessToken() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.AccessToken return p.AccessToken
} }
func (o *PlexDevice) GetOwned() bool { func (p *PlexDevice) GetOwned() bool {
if o == nil { if p == nil {
return false return false
} }
return o.Owned return p.Owned
} }
func (o *PlexDevice) GetHome() bool { func (p *PlexDevice) GetHome() bool {
if o == nil { if p == nil {
return false return false
} }
return o.Home return p.Home
} }
func (o *PlexDevice) GetSynced() bool { func (p *PlexDevice) GetSynced() bool {
if o == nil { if p == nil {
return false return false
} }
return o.Synced return p.Synced
} }
func (o *PlexDevice) GetRelay() bool { func (p *PlexDevice) GetRelay() bool {
if o == nil { if p == nil {
return false return false
} }
return o.Relay return p.Relay
} }
func (o *PlexDevice) GetPresence() bool { func (p *PlexDevice) GetPresence() bool {
if o == nil { if p == nil {
return false return false
} }
return o.Presence return p.Presence
} }
func (o *PlexDevice) GetHTTPSRequired() bool { func (p *PlexDevice) GetHTTPSRequired() bool {
if o == nil { if p == nil {
return false return false
} }
return o.HTTPSRequired return p.HTTPSRequired
} }
func (o *PlexDevice) GetPublicAddressMatches() bool { func (p *PlexDevice) GetPublicAddressMatches() bool {
if o == nil { if p == nil {
return false return false
} }
return o.PublicAddressMatches return p.PublicAddressMatches
} }
func (o *PlexDevice) GetDNSRebindingProtection() bool { func (p *PlexDevice) GetDNSRebindingProtection() bool {
if o == nil { if p == nil {
return false return false
} }
return o.DNSRebindingProtection return p.DNSRebindingProtection
} }
func (o *PlexDevice) GetNatLoopbackSupported() bool { func (p *PlexDevice) GetNatLoopbackSupported() bool {
if o == nil { if p == nil {
return false return false
} }
return o.NatLoopbackSupported return p.NatLoopbackSupported
} }
func (o *PlexDevice) GetConnections() []Connections { func (p *PlexDevice) GetConnections() []Connections {
if o == nil { if p == nil {
return []Connections{} return []Connections{}
} }
return o.Connections return p.Connections
} }
type GetServerResourcesResponse struct { type GetServerResourcesResponse struct {
@@ -459,30 +459,30 @@ type GetServerResourcesResponse struct {
PlexDevices []PlexDevice PlexDevices []PlexDevice
} }
func (o *GetServerResourcesResponse) GetContentType() string { func (g *GetServerResourcesResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetServerResourcesResponse) GetStatusCode() int { func (g *GetServerResourcesResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetServerResourcesResponse) GetRawResponse() *http.Response { func (g *GetServerResourcesResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetServerResourcesResponse) GetPlexDevices() []PlexDevice { func (g *GetServerResourcesResponse) GetPlexDevices() []PlexDevice {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlexDevices return g.PlexDevices
} }

View File

@@ -29,32 +29,32 @@ type GetSessionHistoryRequest struct {
LibrarySectionID *int64 `queryParam:"style=form,explode=true,name=librarySectionID"` LibrarySectionID *int64 `queryParam:"style=form,explode=true,name=librarySectionID"`
} }
func (o *GetSessionHistoryRequest) GetSort() *string { func (g *GetSessionHistoryRequest) GetSort() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Sort return g.Sort
} }
func (o *GetSessionHistoryRequest) GetAccountID() *int64 { func (g *GetSessionHistoryRequest) GetAccountID() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AccountID return g.AccountID
} }
func (o *GetSessionHistoryRequest) GetFilter() *QueryParamFilter { func (g *GetSessionHistoryRequest) GetFilter() *QueryParamFilter {
if o == nil { if g == nil {
return nil return nil
} }
return o.Filter return g.Filter
} }
func (o *GetSessionHistoryRequest) GetLibrarySectionID() *int64 { func (g *GetSessionHistoryRequest) GetLibrarySectionID() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
type GetSessionHistoryMetadata struct { type GetSessionHistoryMetadata struct {
@@ -90,137 +90,137 @@ func (g *GetSessionHistoryMetadata) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetSessionHistoryMetadata) GetHistoryKey() *string { func (g *GetSessionHistoryMetadata) GetHistoryKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.HistoryKey return g.HistoryKey
} }
func (o *GetSessionHistoryMetadata) GetKey() *string { func (g *GetSessionHistoryMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetSessionHistoryMetadata) GetRatingKey() *string { func (g *GetSessionHistoryMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetSessionHistoryMetadata) GetLibrarySectionID() *string { func (g *GetSessionHistoryMetadata) GetLibrarySectionID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetSessionHistoryMetadata) GetParentKey() *string { func (g *GetSessionHistoryMetadata) GetParentKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentKey return g.ParentKey
} }
func (o *GetSessionHistoryMetadata) GetGrandparentKey() *string { func (g *GetSessionHistoryMetadata) GetGrandparentKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GrandparentKey return g.GrandparentKey
} }
func (o *GetSessionHistoryMetadata) GetTitle() *string { func (g *GetSessionHistoryMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetSessionHistoryMetadata) GetGrandparentTitle() *string { func (g *GetSessionHistoryMetadata) GetGrandparentTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GrandparentTitle return g.GrandparentTitle
} }
func (o *GetSessionHistoryMetadata) GetType() *string { func (g *GetSessionHistoryMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetSessionHistoryMetadata) GetThumb() *string { func (g *GetSessionHistoryMetadata) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetSessionHistoryMetadata) GetParentThumb() *string { func (g *GetSessionHistoryMetadata) GetParentThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentThumb return g.ParentThumb
} }
func (o *GetSessionHistoryMetadata) GetGrandparentThumb() *string { func (g *GetSessionHistoryMetadata) GetGrandparentThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GrandparentThumb return g.GrandparentThumb
} }
func (o *GetSessionHistoryMetadata) GetGrandparentArt() *string { func (g *GetSessionHistoryMetadata) GetGrandparentArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GrandparentArt return g.GrandparentArt
} }
func (o *GetSessionHistoryMetadata) GetIndex() *int { func (g *GetSessionHistoryMetadata) GetIndex() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Index return g.Index
} }
func (o *GetSessionHistoryMetadata) GetParentIndex() *int { func (g *GetSessionHistoryMetadata) GetParentIndex() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ParentIndex return g.ParentIndex
} }
func (o *GetSessionHistoryMetadata) GetOriginallyAvailableAt() *types.Date { func (g *GetSessionHistoryMetadata) GetOriginallyAvailableAt() *types.Date {
if o == nil { if g == nil {
return nil return nil
} }
return o.OriginallyAvailableAt return g.OriginallyAvailableAt
} }
func (o *GetSessionHistoryMetadata) GetViewedAt() *int { func (g *GetSessionHistoryMetadata) GetViewedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewedAt return g.ViewedAt
} }
func (o *GetSessionHistoryMetadata) GetAccountID() *int { func (g *GetSessionHistoryMetadata) GetAccountID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AccountID return g.AccountID
} }
func (o *GetSessionHistoryMetadata) GetDeviceID() *int { func (g *GetSessionHistoryMetadata) GetDeviceID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.DeviceID return g.DeviceID
} }
type GetSessionHistoryMediaContainer struct { type GetSessionHistoryMediaContainer struct {
@@ -228,18 +228,18 @@ type GetSessionHistoryMediaContainer struct {
Metadata []GetSessionHistoryMetadata `json:"Metadata,omitempty"` Metadata []GetSessionHistoryMetadata `json:"Metadata,omitempty"`
} }
func (o *GetSessionHistoryMediaContainer) GetSize() *int { func (g *GetSessionHistoryMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetSessionHistoryMediaContainer) GetMetadata() []GetSessionHistoryMetadata { func (g *GetSessionHistoryMediaContainer) GetMetadata() []GetSessionHistoryMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
// GetSessionHistoryResponseBody - List of Plex Sessions // GetSessionHistoryResponseBody - List of Plex Sessions
@@ -247,11 +247,11 @@ type GetSessionHistoryResponseBody struct {
MediaContainer *GetSessionHistoryMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetSessionHistoryMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetSessionHistoryResponseBody) GetMediaContainer() *GetSessionHistoryMediaContainer { func (g *GetSessionHistoryResponseBody) GetMediaContainer() *GetSessionHistoryMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetSessionHistoryResponse struct { type GetSessionHistoryResponse struct {
@@ -265,30 +265,30 @@ type GetSessionHistoryResponse struct {
Object *GetSessionHistoryResponseBody Object *GetSessionHistoryResponseBody
} }
func (o *GetSessionHistoryResponse) GetContentType() string { func (g *GetSessionHistoryResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetSessionHistoryResponse) GetStatusCode() int { func (g *GetSessionHistoryResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetSessionHistoryResponse) GetRawResponse() *http.Response { func (g *GetSessionHistoryResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetSessionHistoryResponse) GetObject() *GetSessionHistoryResponseBody { func (g *GetSessionHistoryResponse) GetObject() *GetSessionHistoryResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

File diff suppressed because it is too large Load Diff

View File

@@ -11,11 +11,11 @@ type GetSourceConnectionInformationRequest struct {
Source string `queryParam:"style=form,explode=true,name=source"` Source string `queryParam:"style=form,explode=true,name=source"`
} }
func (o *GetSourceConnectionInformationRequest) GetSource() string { func (g *GetSourceConnectionInformationRequest) GetSource() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Source return g.Source
} }
type GetSourceConnectionInformationResponse struct { type GetSourceConnectionInformationResponse struct {
@@ -27,23 +27,23 @@ type GetSourceConnectionInformationResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *GetSourceConnectionInformationResponse) GetContentType() string { func (g *GetSourceConnectionInformationResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetSourceConnectionInformationResponse) GetStatusCode() int { func (g *GetSourceConnectionInformationResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetSourceConnectionInformationResponse) GetRawResponse() *http.Response { func (g *GetSourceConnectionInformationResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }

View File

@@ -13,11 +13,11 @@ type GetStatisticsRequest struct {
Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"` Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"`
} }
func (o *GetStatisticsRequest) GetTimespan() *int64 { func (g *GetStatisticsRequest) GetTimespan() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Timespan return g.Timespan
} }
type GetStatisticsDevice struct { type GetStatisticsDevice struct {
@@ -28,39 +28,39 @@ type GetStatisticsDevice struct {
CreatedAt *int `json:"createdAt,omitempty"` CreatedAt *int `json:"createdAt,omitempty"`
} }
func (o *GetStatisticsDevice) GetID() *int { func (g *GetStatisticsDevice) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetStatisticsDevice) GetName() *string { func (g *GetStatisticsDevice) GetName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Name return g.Name
} }
func (o *GetStatisticsDevice) GetPlatform() *string { func (g *GetStatisticsDevice) GetPlatform() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Platform return g.Platform
} }
func (o *GetStatisticsDevice) GetClientIdentifier() *string { func (g *GetStatisticsDevice) GetClientIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientIdentifier return g.ClientIdentifier
} }
func (o *GetStatisticsDevice) GetCreatedAt() *int { func (g *GetStatisticsDevice) GetCreatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.CreatedAt return g.CreatedAt
} }
type Account struct { type Account struct {
@@ -74,60 +74,60 @@ type Account struct {
Thumb *string `json:"thumb,omitempty"` Thumb *string `json:"thumb,omitempty"`
} }
func (o *Account) GetID() *int { func (a *Account) GetID() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.ID return a.ID
} }
func (o *Account) GetKey() *string { func (a *Account) GetKey() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Key return a.Key
} }
func (o *Account) GetName() *string { func (a *Account) GetName() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Name return a.Name
} }
func (o *Account) GetDefaultAudioLanguage() *string { func (a *Account) GetDefaultAudioLanguage() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.DefaultAudioLanguage return a.DefaultAudioLanguage
} }
func (o *Account) GetAutoSelectAudio() *bool { func (a *Account) GetAutoSelectAudio() *bool {
if o == nil { if a == nil {
return nil return nil
} }
return o.AutoSelectAudio return a.AutoSelectAudio
} }
func (o *Account) GetDefaultSubtitleLanguage() *string { func (a *Account) GetDefaultSubtitleLanguage() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.DefaultSubtitleLanguage return a.DefaultSubtitleLanguage
} }
func (o *Account) GetSubtitleMode() *int { func (a *Account) GetSubtitleMode() *int {
if o == nil { if a == nil {
return nil return nil
} }
return o.SubtitleMode return a.SubtitleMode
} }
func (o *Account) GetThumb() *string { func (a *Account) GetThumb() *string {
if o == nil { if a == nil {
return nil return nil
} }
return o.Thumb return a.Thumb
} }
type StatisticsMedia struct { type StatisticsMedia struct {
@@ -140,53 +140,53 @@ type StatisticsMedia struct {
Duration *int `json:"duration,omitempty"` Duration *int `json:"duration,omitempty"`
} }
func (o *StatisticsMedia) GetAccountID() *int { func (s *StatisticsMedia) GetAccountID() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.AccountID return s.AccountID
} }
func (o *StatisticsMedia) GetDeviceID() *int { func (s *StatisticsMedia) GetDeviceID() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.DeviceID return s.DeviceID
} }
func (o *StatisticsMedia) GetTimespan() *int { func (s *StatisticsMedia) GetTimespan() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.Timespan return s.Timespan
} }
func (o *StatisticsMedia) GetAt() *int { func (s *StatisticsMedia) GetAt() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.At return s.At
} }
func (o *StatisticsMedia) GetMetadataType() *int { func (s *StatisticsMedia) GetMetadataType() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.MetadataType return s.MetadataType
} }
func (o *StatisticsMedia) GetCount() *int { func (s *StatisticsMedia) GetCount() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.Count return s.Count
} }
func (o *StatisticsMedia) GetDuration() *int { func (s *StatisticsMedia) GetDuration() *int {
if o == nil { if s == nil {
return nil return nil
} }
return o.Duration return s.Duration
} }
type GetStatisticsMediaContainer struct { type GetStatisticsMediaContainer struct {
@@ -196,32 +196,32 @@ type GetStatisticsMediaContainer struct {
StatisticsMedia []StatisticsMedia `json:"StatisticsMedia,omitempty"` StatisticsMedia []StatisticsMedia `json:"StatisticsMedia,omitempty"`
} }
func (o *GetStatisticsMediaContainer) GetSize() *int { func (g *GetStatisticsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetStatisticsMediaContainer) GetDevice() []GetStatisticsDevice { func (g *GetStatisticsMediaContainer) GetDevice() []GetStatisticsDevice {
if o == nil { if g == nil {
return nil return nil
} }
return o.Device return g.Device
} }
func (o *GetStatisticsMediaContainer) GetAccount() []Account { func (g *GetStatisticsMediaContainer) GetAccount() []Account {
if o == nil { if g == nil {
return nil return nil
} }
return o.Account return g.Account
} }
func (o *GetStatisticsMediaContainer) GetStatisticsMedia() []StatisticsMedia { func (g *GetStatisticsMediaContainer) GetStatisticsMedia() []StatisticsMedia {
if o == nil { if g == nil {
return nil return nil
} }
return o.StatisticsMedia return g.StatisticsMedia
} }
// GetStatisticsResponseBody - Media Statistics // GetStatisticsResponseBody - Media Statistics
@@ -229,11 +229,11 @@ type GetStatisticsResponseBody struct {
MediaContainer *GetStatisticsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetStatisticsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetStatisticsResponseBody) GetMediaContainer() *GetStatisticsMediaContainer { func (g *GetStatisticsResponseBody) GetMediaContainer() *GetStatisticsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetStatisticsResponse struct { type GetStatisticsResponse struct {
@@ -247,30 +247,30 @@ type GetStatisticsResponse struct {
Object *GetStatisticsResponseBody Object *GetStatisticsResponseBody
} }
func (o *GetStatisticsResponse) GetContentType() string { func (g *GetStatisticsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetStatisticsResponse) GetStatusCode() int { func (g *GetStatisticsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetStatisticsResponse) GetRawResponse() *http.Response { func (g *GetStatisticsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetStatisticsResponse) GetObject() *GetStatisticsResponseBody { func (g *GetStatisticsResponse) GetObject() *GetStatisticsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -18,46 +18,46 @@ type GetThumbImageRequest struct {
XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"`
} }
func (o *GetThumbImageRequest) GetRatingKey() int64 { func (g *GetThumbImageRequest) GetRatingKey() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetThumbImageRequest) GetWidth() int64 { func (g *GetThumbImageRequest) GetWidth() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Width return g.Width
} }
func (o *GetThumbImageRequest) GetHeight() int64 { func (g *GetThumbImageRequest) GetHeight() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Height return g.Height
} }
func (o *GetThumbImageRequest) GetMinSize() int64 { func (g *GetThumbImageRequest) GetMinSize() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MinSize return g.MinSize
} }
func (o *GetThumbImageRequest) GetUpscale() int64 { func (g *GetThumbImageRequest) GetUpscale() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Upscale return g.Upscale
} }
func (o *GetThumbImageRequest) GetXPlexToken() string { func (g *GetThumbImageRequest) GetXPlexToken() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.XPlexToken return g.XPlexToken
} }
type GetThumbImageResponse struct { type GetThumbImageResponse struct {
@@ -73,37 +73,37 @@ type GetThumbImageResponse struct {
Headers map[string][]string Headers map[string][]string
} }
func (o *GetThumbImageResponse) GetContentType() string { func (g *GetThumbImageResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetThumbImageResponse) GetStatusCode() int { func (g *GetThumbImageResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetThumbImageResponse) GetRawResponse() *http.Response { func (g *GetThumbImageResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetThumbImageResponse) GetResponseStream() io.ReadCloser { func (g *GetThumbImageResponse) GetResponseStream() io.ReadCloser {
if o == nil { if g == nil {
return nil return nil
} }
return o.ResponseStream return g.ResponseStream
} }
func (o *GetThumbImageResponse) GetHeaders() map[string][]string { func (g *GetThumbImageResponse) GetHeaders() map[string][]string {
if o == nil { if g == nil {
return map[string][]string{} return map[string][]string{}
} }
return o.Headers return g.Headers
} }

View File

@@ -42,74 +42,74 @@ type GetTimelineRequest struct {
Row float64 `queryParam:"style=form,explode=true,name=row"` Row float64 `queryParam:"style=form,explode=true,name=row"`
} }
func (o *GetTimelineRequest) GetRatingKey() float64 { func (g *GetTimelineRequest) GetRatingKey() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetTimelineRequest) GetKey() string { func (g *GetTimelineRequest) GetKey() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Key return g.Key
} }
func (o *GetTimelineRequest) GetState() State { func (g *GetTimelineRequest) GetState() State {
if o == nil { if g == nil {
return State("") return State("")
} }
return o.State return g.State
} }
func (o *GetTimelineRequest) GetHasMDE() float64 { func (g *GetTimelineRequest) GetHasMDE() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.HasMDE return g.HasMDE
} }
func (o *GetTimelineRequest) GetTime() float64 { func (g *GetTimelineRequest) GetTime() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.Time return g.Time
} }
func (o *GetTimelineRequest) GetDuration() float64 { func (g *GetTimelineRequest) GetDuration() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.Duration return g.Duration
} }
func (o *GetTimelineRequest) GetContext() string { func (g *GetTimelineRequest) GetContext() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Context return g.Context
} }
func (o *GetTimelineRequest) GetPlayQueueItemID() float64 { func (g *GetTimelineRequest) GetPlayQueueItemID() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.PlayQueueItemID return g.PlayQueueItemID
} }
func (o *GetTimelineRequest) GetPlayBackTime() float64 { func (g *GetTimelineRequest) GetPlayBackTime() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.PlayBackTime return g.PlayBackTime
} }
func (o *GetTimelineRequest) GetRow() float64 { func (g *GetTimelineRequest) GetRow() float64 {
if o == nil { if g == nil {
return 0.0 return 0.0
} }
return o.Row return g.Row
} }
type GetTimelineResponse struct { type GetTimelineResponse struct {
@@ -121,23 +121,23 @@ type GetTimelineResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *GetTimelineResponse) GetContentType() string { func (g *GetTimelineResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetTimelineResponse) GetStatusCode() int { func (g *GetTimelineResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetTimelineResponse) GetRawResponse() *http.Response { func (g *GetTimelineResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }

View File

@@ -27,46 +27,46 @@ type GetTokenByPinIDRequest struct {
Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"` Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"`
} }
func (o *GetTokenByPinIDRequest) GetPinID() int64 { func (g *GetTokenByPinIDRequest) GetPinID() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.PinID return g.PinID
} }
func (o *GetTokenByPinIDRequest) GetClientID() string { func (g *GetTokenByPinIDRequest) GetClientID() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ClientID return g.ClientID
} }
func (o *GetTokenByPinIDRequest) GetClientName() *string { func (g *GetTokenByPinIDRequest) GetClientName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientName return g.ClientName
} }
func (o *GetTokenByPinIDRequest) GetDeviceNickname() *string { func (g *GetTokenByPinIDRequest) GetDeviceNickname() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DeviceNickname return g.DeviceNickname
} }
func (o *GetTokenByPinIDRequest) GetClientVersion() *string { func (g *GetTokenByPinIDRequest) GetClientVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientVersion return g.ClientVersion
} }
func (o *GetTokenByPinIDRequest) GetPlatform() *string { func (g *GetTokenByPinIDRequest) GetPlatform() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Platform return g.Platform
} }
// GetTokenByPinIDGeoData - Geo location data // GetTokenByPinIDGeoData - Geo location data
@@ -106,81 +106,81 @@ func (g *GetTokenByPinIDGeoData) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetTokenByPinIDGeoData) GetCode() string { func (g *GetTokenByPinIDGeoData) GetCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Code return g.Code
} }
func (o *GetTokenByPinIDGeoData) GetContinentCode() string { func (g *GetTokenByPinIDGeoData) GetContinentCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContinentCode return g.ContinentCode
} }
func (o *GetTokenByPinIDGeoData) GetCountry() string { func (g *GetTokenByPinIDGeoData) GetCountry() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Country return g.Country
} }
func (o *GetTokenByPinIDGeoData) GetCity() string { func (g *GetTokenByPinIDGeoData) GetCity() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.City return g.City
} }
func (o *GetTokenByPinIDGeoData) GetEuropeanUnionMember() *bool { func (g *GetTokenByPinIDGeoData) GetEuropeanUnionMember() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.EuropeanUnionMember return g.EuropeanUnionMember
} }
func (o *GetTokenByPinIDGeoData) GetTimeZone() string { func (g *GetTokenByPinIDGeoData) GetTimeZone() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.TimeZone return g.TimeZone
} }
func (o *GetTokenByPinIDGeoData) GetPostalCode() string { func (g *GetTokenByPinIDGeoData) GetPostalCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.PostalCode return g.PostalCode
} }
func (o *GetTokenByPinIDGeoData) GetInPrivacyRestrictedCountry() *bool { func (g *GetTokenByPinIDGeoData) GetInPrivacyRestrictedCountry() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.InPrivacyRestrictedCountry return g.InPrivacyRestrictedCountry
} }
func (o *GetTokenByPinIDGeoData) GetInPrivacyRestrictedRegion() *bool { func (g *GetTokenByPinIDGeoData) GetInPrivacyRestrictedRegion() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.InPrivacyRestrictedRegion return g.InPrivacyRestrictedRegion
} }
func (o *GetTokenByPinIDGeoData) GetSubdivisions() string { func (g *GetTokenByPinIDGeoData) GetSubdivisions() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Subdivisions return g.Subdivisions
} }
func (o *GetTokenByPinIDGeoData) GetCoordinates() string { func (g *GetTokenByPinIDGeoData) GetCoordinates() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Coordinates return g.Coordinates
} }
// GetTokenByPinIDAuthPinContainer - The Pin with a non-null authToken when it has been verified by the user // GetTokenByPinIDAuthPinContainer - The Pin with a non-null authToken when it has been verified by the user
@@ -213,88 +213,88 @@ func (g *GetTokenByPinIDAuthPinContainer) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetTokenByPinIDAuthPinContainer) GetID() int64 { func (g *GetTokenByPinIDAuthPinContainer) GetID() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ID return g.ID
} }
func (o *GetTokenByPinIDAuthPinContainer) GetCode() string { func (g *GetTokenByPinIDAuthPinContainer) GetCode() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Code return g.Code
} }
func (o *GetTokenByPinIDAuthPinContainer) GetProduct() string { func (g *GetTokenByPinIDAuthPinContainer) GetProduct() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Product return g.Product
} }
func (o *GetTokenByPinIDAuthPinContainer) GetTrusted() *bool { func (g *GetTokenByPinIDAuthPinContainer) GetTrusted() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Trusted return g.Trusted
} }
func (o *GetTokenByPinIDAuthPinContainer) GetQr() string { func (g *GetTokenByPinIDAuthPinContainer) GetQr() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Qr return g.Qr
} }
func (o *GetTokenByPinIDAuthPinContainer) GetClientIdentifier() string { func (g *GetTokenByPinIDAuthPinContainer) GetClientIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ClientIdentifier return g.ClientIdentifier
} }
func (o *GetTokenByPinIDAuthPinContainer) GetLocation() GetTokenByPinIDGeoData { func (g *GetTokenByPinIDAuthPinContainer) GetLocation() GetTokenByPinIDGeoData {
if o == nil { if g == nil {
return GetTokenByPinIDGeoData{} return GetTokenByPinIDGeoData{}
} }
return o.Location return g.Location
} }
func (o *GetTokenByPinIDAuthPinContainer) GetExpiresIn() *int64 { func (g *GetTokenByPinIDAuthPinContainer) GetExpiresIn() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ExpiresIn return g.ExpiresIn
} }
func (o *GetTokenByPinIDAuthPinContainer) GetCreatedAt() time.Time { func (g *GetTokenByPinIDAuthPinContainer) GetCreatedAt() time.Time {
if o == nil { if g == nil {
return time.Time{} return time.Time{}
} }
return o.CreatedAt return g.CreatedAt
} }
func (o *GetTokenByPinIDAuthPinContainer) GetExpiresAt() time.Time { func (g *GetTokenByPinIDAuthPinContainer) GetExpiresAt() time.Time {
if o == nil { if g == nil {
return time.Time{} return time.Time{}
} }
return o.ExpiresAt return g.ExpiresAt
} }
func (o *GetTokenByPinIDAuthPinContainer) GetAuthToken() *string { func (g *GetTokenByPinIDAuthPinContainer) GetAuthToken() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AuthToken return g.AuthToken
} }
func (o *GetTokenByPinIDAuthPinContainer) GetNewRegistration() any { func (g *GetTokenByPinIDAuthPinContainer) GetNewRegistration() any {
if o == nil { if g == nil {
return nil return nil
} }
return o.NewRegistration return g.NewRegistration
} }
type GetTokenByPinIDResponse struct { type GetTokenByPinIDResponse struct {
@@ -308,30 +308,30 @@ type GetTokenByPinIDResponse struct {
AuthPinContainer *GetTokenByPinIDAuthPinContainer AuthPinContainer *GetTokenByPinIDAuthPinContainer
} }
func (o *GetTokenByPinIDResponse) GetContentType() string { func (g *GetTokenByPinIDResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetTokenByPinIDResponse) GetStatusCode() int { func (g *GetTokenByPinIDResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetTokenByPinIDResponse) GetRawResponse() *http.Response { func (g *GetTokenByPinIDResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetTokenByPinIDResponse) GetAuthPinContainer() *GetTokenByPinIDAuthPinContainer { func (g *GetTokenByPinIDResponse) GetAuthPinContainer() *GetTokenByPinIDAuthPinContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.AuthPinContainer return g.AuthPinContainer
} }

View File

@@ -179,66 +179,66 @@ func (u UserProfile) MarshalJSON() ([]byte, error) {
} }
func (u *UserProfile) UnmarshalJSON(data []byte) error { func (u *UserProfile) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &u, "", false, []string{"defaultAudioLanguage", "defaultSubtitleLanguage"}); err != nil { if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil {
return err return err
} }
return nil return nil
} }
func (o *UserProfile) GetAutoSelectAudio() *bool { func (u *UserProfile) GetAutoSelectAudio() *bool {
if o == nil { if u == nil {
return nil return nil
} }
return o.AutoSelectAudio return u.AutoSelectAudio
} }
func (o *UserProfile) GetDefaultAudioLanguage() *string { func (u *UserProfile) GetDefaultAudioLanguage() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.DefaultAudioLanguage return u.DefaultAudioLanguage
} }
func (o *UserProfile) GetDefaultSubtitleLanguage() *string { func (u *UserProfile) GetDefaultSubtitleLanguage() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.DefaultSubtitleLanguage return u.DefaultSubtitleLanguage
} }
func (o *UserProfile) GetAutoSelectSubtitle() *AutoSelectSubtitle { func (u *UserProfile) GetAutoSelectSubtitle() *AutoSelectSubtitle {
if o == nil { if u == nil {
return nil return nil
} }
return o.AutoSelectSubtitle return u.AutoSelectSubtitle
} }
func (o *UserProfile) GetDefaultSubtitleAccessibility() *DefaultSubtitleAccessibility { func (u *UserProfile) GetDefaultSubtitleAccessibility() *DefaultSubtitleAccessibility {
if o == nil { if u == nil {
return nil return nil
} }
return o.DefaultSubtitleAccessibility return u.DefaultSubtitleAccessibility
} }
func (o *UserProfile) GetDefaultSubtitleForced() *DefaultSubtitleForced { func (u *UserProfile) GetDefaultSubtitleForced() *DefaultSubtitleForced {
if o == nil { if u == nil {
return nil return nil
} }
return o.DefaultSubtitleForced return u.DefaultSubtitleForced
} }
func (o *UserProfile) GetWatchedIndicator() *WatchedIndicator { func (u *UserProfile) GetWatchedIndicator() *WatchedIndicator {
if o == nil { if u == nil {
return nil return nil
} }
return o.WatchedIndicator return u.WatchedIndicator
} }
func (o *UserProfile) GetMediaReviewsVisibility() *MediaReviewsVisibility { func (u *UserProfile) GetMediaReviewsVisibility() *MediaReviewsVisibility {
if o == nil { if u == nil {
return nil return nil
} }
return o.MediaReviewsVisibility return u.MediaReviewsVisibility
} }
type GetTokenDetailsStatus string type GetTokenDetailsStatus string
@@ -260,39 +260,39 @@ type Services struct {
Status GetTokenDetailsStatus `json:"status"` Status GetTokenDetailsStatus `json:"status"`
} }
func (o *Services) GetIdentifier() string { func (s *Services) GetIdentifier() string {
if o == nil { if s == nil {
return "" return ""
} }
return o.Identifier return s.Identifier
} }
func (o *Services) GetEndpoint() string { func (s *Services) GetEndpoint() string {
if o == nil { if s == nil {
return "" return ""
} }
return o.Endpoint return s.Endpoint
} }
func (o *Services) GetToken() *string { func (s *Services) GetToken() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Token return s.Token
} }
func (o *Services) GetSecret() *string { func (s *Services) GetSecret() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Secret return s.Secret
} }
func (o *Services) GetStatus() GetTokenDetailsStatus { func (s *Services) GetStatus() GetTokenDetailsStatus {
if o == nil { if s == nil {
return GetTokenDetailsStatus("") return GetTokenDetailsStatus("")
} }
return o.Status return s.Status
} }
// GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive // GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive
@@ -323,46 +323,46 @@ type Subscription struct {
Plan *string `json:"plan,omitempty"` Plan *string `json:"plan,omitempty"`
} }
func (o *Subscription) GetFeatures() []string { func (s *Subscription) GetFeatures() []string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Features return s.Features
} }
func (o *Subscription) GetActive() *bool { func (s *Subscription) GetActive() *bool {
if o == nil { if s == nil {
return nil return nil
} }
return o.Active return s.Active
} }
func (o *Subscription) GetSubscribedAt() *string { func (s *Subscription) GetSubscribedAt() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.SubscribedAt return s.SubscribedAt
} }
func (o *Subscription) GetStatus() *GetTokenDetailsAuthenticationStatus { func (s *Subscription) GetStatus() *GetTokenDetailsAuthenticationStatus {
if o == nil { if s == nil {
return nil return nil
} }
return o.Status return s.Status
} }
func (o *Subscription) GetPaymentService() *string { func (s *Subscription) GetPaymentService() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.PaymentService return s.PaymentService
} }
func (o *Subscription) GetPlan() *string { func (s *Subscription) GetPlan() *string {
if o == nil { if s == nil {
return nil return nil
} }
return o.Plan return s.Plan
} }
// GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive // GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive
@@ -392,46 +392,46 @@ type GetTokenDetailsSubscription struct {
Plan *string `json:"plan,omitempty"` Plan *string `json:"plan,omitempty"`
} }
func (o *GetTokenDetailsSubscription) GetFeatures() []string { func (g *GetTokenDetailsSubscription) GetFeatures() []string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Features return g.Features
} }
func (o *GetTokenDetailsSubscription) GetActive() *bool { func (g *GetTokenDetailsSubscription) GetActive() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Active return g.Active
} }
func (o *GetTokenDetailsSubscription) GetSubscribedAt() *string { func (g *GetTokenDetailsSubscription) GetSubscribedAt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.SubscribedAt return g.SubscribedAt
} }
func (o *GetTokenDetailsSubscription) GetStatus() *GetTokenDetailsAuthenticationResponseStatus { func (g *GetTokenDetailsSubscription) GetStatus() *GetTokenDetailsAuthenticationResponseStatus {
if o == nil { if g == nil {
return nil return nil
} }
return o.Status return g.Status
} }
func (o *GetTokenDetailsSubscription) GetPaymentService() *string { func (g *GetTokenDetailsSubscription) GetPaymentService() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PaymentService return g.PaymentService
} }
func (o *GetTokenDetailsSubscription) GetPlan() *string { func (g *GetTokenDetailsSubscription) GetPlan() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Plan return g.Plan
} }
// GetTokenDetailsUserPlexAccount - Logged in user details // GetTokenDetailsUserPlexAccount - Logged in user details
@@ -521,297 +521,297 @@ func (g GetTokenDetailsUserPlexAccount) MarshalJSON() ([]byte, error) {
} }
func (g *GetTokenDetailsUserPlexAccount) UnmarshalJSON(data []byte) error { func (g *GetTokenDetailsUserPlexAccount) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &g, "", false, []string{"adsConsent", "adsConsentReminderAt", "adsConsentSetAt", "authToken", "country", "email", "friendlyName", "entitlements", "homeSize", "id", "joinedAt", "locale", "mailingListStatus", "maxHomeSize", "profile", "rememberExpiresAt", "scrobbleTypes", "services", "subscription", "subscriptionDescription", "thumb", "title", "username", "uuid", "attributionPartner"}); err != nil { if err := utils.UnmarshalJSON(data, &g, "", false, []string{"authToken", "country", "email", "friendlyName", "entitlements", "homeSize", "id", "joinedAt", "mailingListStatus", "maxHomeSize", "profile", "rememberExpiresAt", "scrobbleTypes", "services", "subscription", "thumb", "title", "username", "uuid"}); err != nil {
return err return err
} }
return nil return nil
} }
func (o *GetTokenDetailsUserPlexAccount) GetAdsConsent() *bool { func (g *GetTokenDetailsUserPlexAccount) GetAdsConsent() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.AdsConsent return g.AdsConsent
} }
func (o *GetTokenDetailsUserPlexAccount) GetAdsConsentReminderAt() *int64 { func (g *GetTokenDetailsUserPlexAccount) GetAdsConsentReminderAt() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AdsConsentReminderAt return g.AdsConsentReminderAt
} }
func (o *GetTokenDetailsUserPlexAccount) GetAdsConsentSetAt() *int64 { func (g *GetTokenDetailsUserPlexAccount) GetAdsConsentSetAt() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AdsConsentSetAt return g.AdsConsentSetAt
} }
func (o *GetTokenDetailsUserPlexAccount) GetAnonymous() *bool { func (g *GetTokenDetailsUserPlexAccount) GetAnonymous() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Anonymous return g.Anonymous
} }
func (o *GetTokenDetailsUserPlexAccount) GetAuthToken() string { func (g *GetTokenDetailsUserPlexAccount) GetAuthToken() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.AuthToken return g.AuthToken
} }
func (o *GetTokenDetailsUserPlexAccount) GetBackupCodesCreated() *bool { func (g *GetTokenDetailsUserPlexAccount) GetBackupCodesCreated() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.BackupCodesCreated return g.BackupCodesCreated
} }
func (o *GetTokenDetailsUserPlexAccount) GetConfirmed() *bool { func (g *GetTokenDetailsUserPlexAccount) GetConfirmed() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Confirmed return g.Confirmed
} }
func (o *GetTokenDetailsUserPlexAccount) GetCountry() string { func (g *GetTokenDetailsUserPlexAccount) GetCountry() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Country return g.Country
} }
func (o *GetTokenDetailsUserPlexAccount) GetEmail() string { func (g *GetTokenDetailsUserPlexAccount) GetEmail() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Email return g.Email
} }
func (o *GetTokenDetailsUserPlexAccount) GetEmailOnlyAuth() *bool { func (g *GetTokenDetailsUserPlexAccount) GetEmailOnlyAuth() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.EmailOnlyAuth return g.EmailOnlyAuth
} }
func (o *GetTokenDetailsUserPlexAccount) GetExperimentalFeatures() *bool { func (g *GetTokenDetailsUserPlexAccount) GetExperimentalFeatures() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.ExperimentalFeatures return g.ExperimentalFeatures
} }
func (o *GetTokenDetailsUserPlexAccount) GetFriendlyName() string { func (g *GetTokenDetailsUserPlexAccount) GetFriendlyName() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.FriendlyName return g.FriendlyName
} }
func (o *GetTokenDetailsUserPlexAccount) GetEntitlements() []string { func (g *GetTokenDetailsUserPlexAccount) GetEntitlements() []string {
if o == nil { if g == nil {
return []string{} return []string{}
} }
return o.Entitlements return g.Entitlements
} }
func (o *GetTokenDetailsUserPlexAccount) GetGuest() *bool { func (g *GetTokenDetailsUserPlexAccount) GetGuest() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Guest return g.Guest
} }
func (o *GetTokenDetailsUserPlexAccount) GetHasPassword() *bool { func (g *GetTokenDetailsUserPlexAccount) GetHasPassword() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.HasPassword return g.HasPassword
} }
func (o *GetTokenDetailsUserPlexAccount) GetHome() *bool { func (g *GetTokenDetailsUserPlexAccount) GetHome() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Home return g.Home
} }
func (o *GetTokenDetailsUserPlexAccount) GetHomeAdmin() *bool { func (g *GetTokenDetailsUserPlexAccount) GetHomeAdmin() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.HomeAdmin return g.HomeAdmin
} }
func (o *GetTokenDetailsUserPlexAccount) GetHomeSize() int { func (g *GetTokenDetailsUserPlexAccount) GetHomeSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.HomeSize return g.HomeSize
} }
func (o *GetTokenDetailsUserPlexAccount) GetID() int { func (g *GetTokenDetailsUserPlexAccount) GetID() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ID return g.ID
} }
func (o *GetTokenDetailsUserPlexAccount) GetJoinedAt() int64 { func (g *GetTokenDetailsUserPlexAccount) GetJoinedAt() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.JoinedAt return g.JoinedAt
} }
func (o *GetTokenDetailsUserPlexAccount) GetLocale() *string { func (g *GetTokenDetailsUserPlexAccount) GetLocale() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Locale return g.Locale
} }
func (o *GetTokenDetailsUserPlexAccount) GetMailingListActive() *bool { func (g *GetTokenDetailsUserPlexAccount) GetMailingListActive() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.MailingListActive return g.MailingListActive
} }
func (o *GetTokenDetailsUserPlexAccount) GetMailingListStatus() MailingListStatus { func (g *GetTokenDetailsUserPlexAccount) GetMailingListStatus() MailingListStatus {
if o == nil { if g == nil {
return MailingListStatus("") return MailingListStatus("")
} }
return o.MailingListStatus return g.MailingListStatus
} }
func (o *GetTokenDetailsUserPlexAccount) GetMaxHomeSize() int { func (g *GetTokenDetailsUserPlexAccount) GetMaxHomeSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MaxHomeSize return g.MaxHomeSize
} }
func (o *GetTokenDetailsUserPlexAccount) GetPin() *string { func (g *GetTokenDetailsUserPlexAccount) GetPin() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Pin return g.Pin
} }
func (o *GetTokenDetailsUserPlexAccount) GetProfile() UserProfile { func (g *GetTokenDetailsUserPlexAccount) GetProfile() UserProfile {
if o == nil { if g == nil {
return UserProfile{} return UserProfile{}
} }
return o.Profile return g.Profile
} }
func (o *GetTokenDetailsUserPlexAccount) GetProtected() *bool { func (g *GetTokenDetailsUserPlexAccount) GetProtected() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Protected return g.Protected
} }
func (o *GetTokenDetailsUserPlexAccount) GetRememberExpiresAt() int64 { func (g *GetTokenDetailsUserPlexAccount) GetRememberExpiresAt() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.RememberExpiresAt return g.RememberExpiresAt
} }
func (o *GetTokenDetailsUserPlexAccount) GetRestricted() *bool { func (g *GetTokenDetailsUserPlexAccount) GetRestricted() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.Restricted return g.Restricted
} }
func (o *GetTokenDetailsUserPlexAccount) GetRoles() []string { func (g *GetTokenDetailsUserPlexAccount) GetRoles() []string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Roles return g.Roles
} }
func (o *GetTokenDetailsUserPlexAccount) GetScrobbleTypes() string { func (g *GetTokenDetailsUserPlexAccount) GetScrobbleTypes() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ScrobbleTypes return g.ScrobbleTypes
} }
func (o *GetTokenDetailsUserPlexAccount) GetServices() []Services { func (g *GetTokenDetailsUserPlexAccount) GetServices() []Services {
if o == nil { if g == nil {
return []Services{} return []Services{}
} }
return o.Services return g.Services
} }
func (o *GetTokenDetailsUserPlexAccount) GetSubscription() Subscription { func (g *GetTokenDetailsUserPlexAccount) GetSubscription() Subscription {
if o == nil { if g == nil {
return Subscription{} return Subscription{}
} }
return o.Subscription return g.Subscription
} }
func (o *GetTokenDetailsUserPlexAccount) GetSubscriptionDescription() *string { func (g *GetTokenDetailsUserPlexAccount) GetSubscriptionDescription() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.SubscriptionDescription return g.SubscriptionDescription
} }
func (o *GetTokenDetailsUserPlexAccount) GetSubscriptions() []GetTokenDetailsSubscription { func (g *GetTokenDetailsUserPlexAccount) GetSubscriptions() []GetTokenDetailsSubscription {
if o == nil { if g == nil {
return nil return nil
} }
return o.Subscriptions return g.Subscriptions
} }
func (o *GetTokenDetailsUserPlexAccount) GetThumb() string { func (g *GetTokenDetailsUserPlexAccount) GetThumb() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Thumb return g.Thumb
} }
func (o *GetTokenDetailsUserPlexAccount) GetTitle() string { func (g *GetTokenDetailsUserPlexAccount) GetTitle() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Title return g.Title
} }
func (o *GetTokenDetailsUserPlexAccount) GetTwoFactorEnabled() *bool { func (g *GetTokenDetailsUserPlexAccount) GetTwoFactorEnabled() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.TwoFactorEnabled return g.TwoFactorEnabled
} }
func (o *GetTokenDetailsUserPlexAccount) GetUsername() string { func (g *GetTokenDetailsUserPlexAccount) GetUsername() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Username return g.Username
} }
func (o *GetTokenDetailsUserPlexAccount) GetUUID() string { func (g *GetTokenDetailsUserPlexAccount) GetUUID() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.UUID return g.UUID
} }
func (o *GetTokenDetailsUserPlexAccount) GetAttributionPartner() *string { func (g *GetTokenDetailsUserPlexAccount) GetAttributionPartner() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AttributionPartner return g.AttributionPartner
} }
type GetTokenDetailsResponse struct { type GetTokenDetailsResponse struct {
@@ -825,30 +825,30 @@ type GetTokenDetailsResponse struct {
UserPlexAccount *GetTokenDetailsUserPlexAccount UserPlexAccount *GetTokenDetailsUserPlexAccount
} }
func (o *GetTokenDetailsResponse) GetContentType() string { func (g *GetTokenDetailsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetTokenDetailsResponse) GetStatusCode() int { func (g *GetTokenDetailsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetTokenDetailsResponse) GetRawResponse() *http.Response { func (g *GetTokenDetailsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetTokenDetailsResponse) GetUserPlexAccount() *GetTokenDetailsUserPlexAccount { func (g *GetTokenDetailsResponse) GetUserPlexAccount() *GetTokenDetailsUserPlexAccount {
if o == nil { if g == nil {
return nil return nil
} }
return o.UserPlexAccount return g.UserPlexAccount
} }

View File

@@ -86,18 +86,18 @@ func (g *GetTopWatchedContentRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetTopWatchedContentRequest) GetType() GetTopWatchedContentQueryParamType { func (g *GetTopWatchedContentRequest) GetType() GetTopWatchedContentQueryParamType {
if o == nil { if g == nil {
return GetTopWatchedContentQueryParamType(0) return GetTopWatchedContentQueryParamType(0)
} }
return o.Type return g.Type
} }
func (o *GetTopWatchedContentRequest) GetIncludeGuids() *GetTopWatchedContentQueryParamIncludeGuids { func (g *GetTopWatchedContentRequest) GetIncludeGuids() *GetTopWatchedContentQueryParamIncludeGuids {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeGuids return g.IncludeGuids
} }
type GetTopWatchedContentGenre struct { type GetTopWatchedContentGenre struct {
@@ -106,25 +106,25 @@ type GetTopWatchedContentGenre struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetTopWatchedContentGenre) GetID() *int { func (g *GetTopWatchedContentGenre) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetTopWatchedContentGenre) GetFilter() *string { func (g *GetTopWatchedContentGenre) GetFilter() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Filter return g.Filter
} }
func (o *GetTopWatchedContentGenre) GetTag() *string { func (g *GetTopWatchedContentGenre) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetTopWatchedContentCountry struct { type GetTopWatchedContentCountry struct {
@@ -133,36 +133,36 @@ type GetTopWatchedContentCountry struct {
Tag *string `json:"tag,omitempty"` Tag *string `json:"tag,omitempty"`
} }
func (o *GetTopWatchedContentCountry) GetID() *int { func (g *GetTopWatchedContentCountry) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetTopWatchedContentCountry) GetFilter() *string { func (g *GetTopWatchedContentCountry) GetFilter() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Filter return g.Filter
} }
func (o *GetTopWatchedContentCountry) GetTag() *string { func (g *GetTopWatchedContentCountry) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
type GetTopWatchedContentGuids struct { type GetTopWatchedContentGuids struct {
ID *string `json:"id,omitempty"` ID *string `json:"id,omitempty"`
} }
func (o *GetTopWatchedContentGuids) GetID() *string { func (g *GetTopWatchedContentGuids) GetID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
type GetTopWatchedContentRole struct { type GetTopWatchedContentRole struct {
@@ -174,57 +174,57 @@ type GetTopWatchedContentRole struct {
Thumb *string `json:"thumb,omitempty"` Thumb *string `json:"thumb,omitempty"`
} }
func (o *GetTopWatchedContentRole) GetID() *int { func (g *GetTopWatchedContentRole) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
func (o *GetTopWatchedContentRole) GetFilter() *string { func (g *GetTopWatchedContentRole) GetFilter() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Filter return g.Filter
} }
func (o *GetTopWatchedContentRole) GetTag() *string { func (g *GetTopWatchedContentRole) GetTag() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tag return g.Tag
} }
func (o *GetTopWatchedContentRole) GetTagKey() *string { func (g *GetTopWatchedContentRole) GetTagKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.TagKey return g.TagKey
} }
func (o *GetTopWatchedContentRole) GetRole() *string { func (g *GetTopWatchedContentRole) GetRole() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Role return g.Role
} }
func (o *GetTopWatchedContentRole) GetThumb() *string { func (g *GetTopWatchedContentRole) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
type GetTopWatchedContentUser struct { type GetTopWatchedContentUser struct {
ID *int `json:"id,omitempty"` ID *int `json:"id,omitempty"`
} }
func (o *GetTopWatchedContentUser) GetID() *int { func (g *GetTopWatchedContentUser) GetID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.ID return g.ID
} }
type GetTopWatchedContentMetadata struct { type GetTopWatchedContentMetadata struct {
@@ -273,228 +273,228 @@ func (g *GetTopWatchedContentMetadata) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetTopWatchedContentMetadata) GetRatingKey() *string { func (g *GetTopWatchedContentMetadata) GetRatingKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.RatingKey return g.RatingKey
} }
func (o *GetTopWatchedContentMetadata) GetKey() *string { func (g *GetTopWatchedContentMetadata) GetKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Key return g.Key
} }
func (o *GetTopWatchedContentMetadata) GetGUID() *string { func (g *GetTopWatchedContentMetadata) GetGUID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.GUID return g.GUID
} }
func (o *GetTopWatchedContentMetadata) GetSlug() *string { func (g *GetTopWatchedContentMetadata) GetSlug() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Slug return g.Slug
} }
func (o *GetTopWatchedContentMetadata) GetStudio() *string { func (g *GetTopWatchedContentMetadata) GetStudio() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Studio return g.Studio
} }
func (o *GetTopWatchedContentMetadata) GetType() *string { func (g *GetTopWatchedContentMetadata) GetType() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Type return g.Type
} }
func (o *GetTopWatchedContentMetadata) GetTitle() *string { func (g *GetTopWatchedContentMetadata) GetTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Title return g.Title
} }
func (o *GetTopWatchedContentMetadata) GetLibrarySectionTitle() *string { func (g *GetTopWatchedContentMetadata) GetLibrarySectionTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionTitle return g.LibrarySectionTitle
} }
func (o *GetTopWatchedContentMetadata) GetLibrarySectionID() *int { func (g *GetTopWatchedContentMetadata) GetLibrarySectionID() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetTopWatchedContentMetadata) GetLibrarySectionKey() *string { func (g *GetTopWatchedContentMetadata) GetLibrarySectionKey() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionKey return g.LibrarySectionKey
} }
func (o *GetTopWatchedContentMetadata) GetContentRating() *string { func (g *GetTopWatchedContentMetadata) GetContentRating() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ContentRating return g.ContentRating
} }
func (o *GetTopWatchedContentMetadata) GetSummary() *string { func (g *GetTopWatchedContentMetadata) GetSummary() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Summary return g.Summary
} }
func (o *GetTopWatchedContentMetadata) GetIndex() *int64 { func (g *GetTopWatchedContentMetadata) GetIndex() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.Index return g.Index
} }
func (o *GetTopWatchedContentMetadata) GetAudienceRating() *float64 { func (g *GetTopWatchedContentMetadata) GetAudienceRating() *float64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRating return g.AudienceRating
} }
func (o *GetTopWatchedContentMetadata) GetYear() *int { func (g *GetTopWatchedContentMetadata) GetYear() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Year return g.Year
} }
func (o *GetTopWatchedContentMetadata) GetTagline() *string { func (g *GetTopWatchedContentMetadata) GetTagline() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Tagline return g.Tagline
} }
func (o *GetTopWatchedContentMetadata) GetThumb() *string { func (g *GetTopWatchedContentMetadata) GetThumb() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Thumb return g.Thumb
} }
func (o *GetTopWatchedContentMetadata) GetArt() *string { func (g *GetTopWatchedContentMetadata) GetArt() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Art return g.Art
} }
func (o *GetTopWatchedContentMetadata) GetDuration() *int { func (g *GetTopWatchedContentMetadata) GetDuration() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Duration return g.Duration
} }
func (o *GetTopWatchedContentMetadata) GetOriginallyAvailableAt() *types.Date { func (g *GetTopWatchedContentMetadata) GetOriginallyAvailableAt() *types.Date {
if o == nil { if g == nil {
return nil return nil
} }
return o.OriginallyAvailableAt return g.OriginallyAvailableAt
} }
func (o *GetTopWatchedContentMetadata) GetLeafCount() *int64 { func (g *GetTopWatchedContentMetadata) GetLeafCount() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.LeafCount return g.LeafCount
} }
func (o *GetTopWatchedContentMetadata) GetViewedLeafCount() *int64 { func (g *GetTopWatchedContentMetadata) GetViewedLeafCount() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ViewedLeafCount return g.ViewedLeafCount
} }
func (o *GetTopWatchedContentMetadata) GetChildCount() *int64 { func (g *GetTopWatchedContentMetadata) GetChildCount() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.ChildCount return g.ChildCount
} }
func (o *GetTopWatchedContentMetadata) GetAddedAt() *int { func (g *GetTopWatchedContentMetadata) GetAddedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.AddedAt return g.AddedAt
} }
func (o *GetTopWatchedContentMetadata) GetUpdatedAt() *int { func (g *GetTopWatchedContentMetadata) GetUpdatedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.UpdatedAt return g.UpdatedAt
} }
func (o *GetTopWatchedContentMetadata) GetGlobalViewCount() *int64 { func (g *GetTopWatchedContentMetadata) GetGlobalViewCount() *int64 {
if o == nil { if g == nil {
return nil return nil
} }
return o.GlobalViewCount return g.GlobalViewCount
} }
func (o *GetTopWatchedContentMetadata) GetAudienceRatingImage() *string { func (g *GetTopWatchedContentMetadata) GetAudienceRatingImage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.AudienceRatingImage return g.AudienceRatingImage
} }
func (o *GetTopWatchedContentMetadata) GetGenre() []GetTopWatchedContentGenre { func (g *GetTopWatchedContentMetadata) GetGenre() []GetTopWatchedContentGenre {
if o == nil { if g == nil {
return nil return nil
} }
return o.Genre return g.Genre
} }
func (o *GetTopWatchedContentMetadata) GetCountry() []GetTopWatchedContentCountry { func (g *GetTopWatchedContentMetadata) GetCountry() []GetTopWatchedContentCountry {
if o == nil { if g == nil {
return nil return nil
} }
return o.Country return g.Country
} }
func (o *GetTopWatchedContentMetadata) GetGuids() []GetTopWatchedContentGuids { func (g *GetTopWatchedContentMetadata) GetGuids() []GetTopWatchedContentGuids {
if o == nil { if g == nil {
return nil return nil
} }
return o.Guids return g.Guids
} }
func (o *GetTopWatchedContentMetadata) GetRole() []GetTopWatchedContentRole { func (g *GetTopWatchedContentMetadata) GetRole() []GetTopWatchedContentRole {
if o == nil { if g == nil {
return nil return nil
} }
return o.Role return g.Role
} }
func (o *GetTopWatchedContentMetadata) GetUser() []GetTopWatchedContentUser { func (g *GetTopWatchedContentMetadata) GetUser() []GetTopWatchedContentUser {
if o == nil { if g == nil {
return nil return nil
} }
return o.User return g.User
} }
type GetTopWatchedContentMediaContainer struct { type GetTopWatchedContentMediaContainer struct {
@@ -511,46 +511,46 @@ type GetTopWatchedContentMediaContainer struct {
Metadata []GetTopWatchedContentMetadata `json:"Metadata,omitempty"` Metadata []GetTopWatchedContentMetadata `json:"Metadata,omitempty"`
} }
func (o *GetTopWatchedContentMediaContainer) GetSize() int { func (g *GetTopWatchedContentMediaContainer) GetSize() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetTopWatchedContentMediaContainer) GetAllowSync() bool { func (g *GetTopWatchedContentMediaContainer) GetAllowSync() bool {
if o == nil { if g == nil {
return false return false
} }
return o.AllowSync return g.AllowSync
} }
func (o *GetTopWatchedContentMediaContainer) GetIdentifier() string { func (g *GetTopWatchedContentMediaContainer) GetIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Identifier return g.Identifier
} }
func (o *GetTopWatchedContentMediaContainer) GetMediaTagPrefix() string { func (g *GetTopWatchedContentMediaContainer) GetMediaTagPrefix() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MediaTagPrefix return g.MediaTagPrefix
} }
func (o *GetTopWatchedContentMediaContainer) GetMediaTagVersion() int64 { func (g *GetTopWatchedContentMediaContainer) GetMediaTagVersion() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.MediaTagVersion return g.MediaTagVersion
} }
func (o *GetTopWatchedContentMediaContainer) GetMetadata() []GetTopWatchedContentMetadata { func (g *GetTopWatchedContentMediaContainer) GetMetadata() []GetTopWatchedContentMetadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
// GetTopWatchedContentResponseBody - The metadata of the library item. // GetTopWatchedContentResponseBody - The metadata of the library item.
@@ -558,11 +558,11 @@ type GetTopWatchedContentResponseBody struct {
MediaContainer *GetTopWatchedContentMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetTopWatchedContentMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetTopWatchedContentResponseBody) GetMediaContainer() *GetTopWatchedContentMediaContainer { func (g *GetTopWatchedContentResponseBody) GetMediaContainer() *GetTopWatchedContentMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetTopWatchedContentResponse struct { type GetTopWatchedContentResponse struct {
@@ -576,30 +576,30 @@ type GetTopWatchedContentResponse struct {
Object *GetTopWatchedContentResponseBody Object *GetTopWatchedContentResponseBody
} }
func (o *GetTopWatchedContentResponse) GetContentType() string { func (g *GetTopWatchedContentResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetTopWatchedContentResponse) GetStatusCode() int { func (g *GetTopWatchedContentResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetTopWatchedContentResponse) GetRawResponse() *http.Response { func (g *GetTopWatchedContentResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetTopWatchedContentResponse) GetObject() *GetTopWatchedContentResponseBody { func (g *GetTopWatchedContentResponse) GetObject() *GetTopWatchedContentResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -33,172 +33,172 @@ type TranscodeSession struct {
MinOffsetAvailable *float64 `json:"minOffsetAvailable,omitempty"` MinOffsetAvailable *float64 `json:"minOffsetAvailable,omitempty"`
} }
func (o *TranscodeSession) GetKey() *string { func (t *TranscodeSession) GetKey() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.Key return t.Key
} }
func (o *TranscodeSession) GetThrottled() *bool { func (t *TranscodeSession) GetThrottled() *bool {
if o == nil { if t == nil {
return nil return nil
} }
return o.Throttled return t.Throttled
} }
func (o *TranscodeSession) GetComplete() *bool { func (t *TranscodeSession) GetComplete() *bool {
if o == nil { if t == nil {
return nil return nil
} }
return o.Complete return t.Complete
} }
func (o *TranscodeSession) GetProgress() *float64 { func (t *TranscodeSession) GetProgress() *float64 {
if o == nil { if t == nil {
return nil return nil
} }
return o.Progress return t.Progress
} }
func (o *TranscodeSession) GetSize() *int { func (t *TranscodeSession) GetSize() *int {
if o == nil { if t == nil {
return nil return nil
} }
return o.Size return t.Size
} }
func (o *TranscodeSession) GetSpeed() *float64 { func (t *TranscodeSession) GetSpeed() *float64 {
if o == nil { if t == nil {
return nil return nil
} }
return o.Speed return t.Speed
} }
func (o *TranscodeSession) GetError() *bool { func (t *TranscodeSession) GetError() *bool {
if o == nil { if t == nil {
return nil return nil
} }
return o.Error return t.Error
} }
func (o *TranscodeSession) GetDuration() *int { func (t *TranscodeSession) GetDuration() *int {
if o == nil { if t == nil {
return nil return nil
} }
return o.Duration return t.Duration
} }
func (o *TranscodeSession) GetRemaining() *int { func (t *TranscodeSession) GetRemaining() *int {
if o == nil { if t == nil {
return nil return nil
} }
return o.Remaining return t.Remaining
} }
func (o *TranscodeSession) GetContext() *string { func (t *TranscodeSession) GetContext() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.Context return t.Context
} }
func (o *TranscodeSession) GetSourceVideoCodec() *string { func (t *TranscodeSession) GetSourceVideoCodec() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.SourceVideoCodec return t.SourceVideoCodec
} }
func (o *TranscodeSession) GetSourceAudioCodec() *string { func (t *TranscodeSession) GetSourceAudioCodec() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.SourceAudioCodec return t.SourceAudioCodec
} }
func (o *TranscodeSession) GetVideoDecision() *string { func (t *TranscodeSession) GetVideoDecision() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.VideoDecision return t.VideoDecision
} }
func (o *TranscodeSession) GetAudioDecision() *string { func (t *TranscodeSession) GetAudioDecision() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.AudioDecision return t.AudioDecision
} }
func (o *TranscodeSession) GetSubtitleDecision() *string { func (t *TranscodeSession) GetSubtitleDecision() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.SubtitleDecision return t.SubtitleDecision
} }
func (o *TranscodeSession) GetProtocol() *string { func (t *TranscodeSession) GetProtocol() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.Protocol return t.Protocol
} }
func (o *TranscodeSession) GetContainer() *string { func (t *TranscodeSession) GetContainer() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.Container return t.Container
} }
func (o *TranscodeSession) GetVideoCodec() *string { func (t *TranscodeSession) GetVideoCodec() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.VideoCodec return t.VideoCodec
} }
func (o *TranscodeSession) GetAudioCodec() *string { func (t *TranscodeSession) GetAudioCodec() *string {
if o == nil { if t == nil {
return nil return nil
} }
return o.AudioCodec return t.AudioCodec
} }
func (o *TranscodeSession) GetAudioChannels() *int { func (t *TranscodeSession) GetAudioChannels() *int {
if o == nil { if t == nil {
return nil return nil
} }
return o.AudioChannels return t.AudioChannels
} }
func (o *TranscodeSession) GetTranscodeHwRequested() *bool { func (t *TranscodeSession) GetTranscodeHwRequested() *bool {
if o == nil { if t == nil {
return nil return nil
} }
return o.TranscodeHwRequested return t.TranscodeHwRequested
} }
func (o *TranscodeSession) GetTimeStamp() *float64 { func (t *TranscodeSession) GetTimeStamp() *float64 {
if o == nil { if t == nil {
return nil return nil
} }
return o.TimeStamp return t.TimeStamp
} }
func (o *TranscodeSession) GetMaxOffsetAvailable() *float64 { func (t *TranscodeSession) GetMaxOffsetAvailable() *float64 {
if o == nil { if t == nil {
return nil return nil
} }
return o.MaxOffsetAvailable return t.MaxOffsetAvailable
} }
func (o *TranscodeSession) GetMinOffsetAvailable() *float64 { func (t *TranscodeSession) GetMinOffsetAvailable() *float64 {
if o == nil { if t == nil {
return nil return nil
} }
return o.MinOffsetAvailable return t.MinOffsetAvailable
} }
type GetTranscodeSessionsMediaContainer struct { type GetTranscodeSessionsMediaContainer struct {
@@ -206,18 +206,18 @@ type GetTranscodeSessionsMediaContainer struct {
TranscodeSession []TranscodeSession `json:"TranscodeSession,omitempty"` TranscodeSession []TranscodeSession `json:"TranscodeSession,omitempty"`
} }
func (o *GetTranscodeSessionsMediaContainer) GetSize() *int { func (g *GetTranscodeSessionsMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetTranscodeSessionsMediaContainer) GetTranscodeSession() []TranscodeSession { func (g *GetTranscodeSessionsMediaContainer) GetTranscodeSession() []TranscodeSession {
if o == nil { if g == nil {
return nil return nil
} }
return o.TranscodeSession return g.TranscodeSession
} }
// GetTranscodeSessionsResponseBody - The Transcode Sessions // GetTranscodeSessionsResponseBody - The Transcode Sessions
@@ -225,11 +225,11 @@ type GetTranscodeSessionsResponseBody struct {
MediaContainer *GetTranscodeSessionsMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetTranscodeSessionsMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetTranscodeSessionsResponseBody) GetMediaContainer() *GetTranscodeSessionsMediaContainer { func (g *GetTranscodeSessionsResponseBody) GetMediaContainer() *GetTranscodeSessionsMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetTranscodeSessionsResponse struct { type GetTranscodeSessionsResponse struct {
@@ -243,30 +243,30 @@ type GetTranscodeSessionsResponse struct {
Object *GetTranscodeSessionsResponseBody Object *GetTranscodeSessionsResponseBody
} }
func (o *GetTranscodeSessionsResponse) GetContentType() string { func (g *GetTranscodeSessionsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetTranscodeSessionsResponse) GetStatusCode() int { func (g *GetTranscodeSessionsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetTranscodeSessionsResponse) GetRawResponse() *http.Response { func (g *GetTranscodeSessionsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetTranscodeSessionsResponse) GetObject() *GetTranscodeSessionsResponseBody { func (g *GetTranscodeSessionsResponse) GetObject() *GetTranscodeSessionsResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -63,18 +63,18 @@ type GetTransientTokenRequest struct {
Scope Scope `queryParam:"style=form,explode=true,name=scope"` Scope Scope `queryParam:"style=form,explode=true,name=scope"`
} }
func (o *GetTransientTokenRequest) GetType() GetTransientTokenQueryParamType { func (g *GetTransientTokenRequest) GetType() GetTransientTokenQueryParamType {
if o == nil { if g == nil {
return GetTransientTokenQueryParamType("") return GetTransientTokenQueryParamType("")
} }
return o.Type return g.Type
} }
func (o *GetTransientTokenRequest) GetScope() Scope { func (g *GetTransientTokenRequest) GetScope() Scope {
if o == nil { if g == nil {
return Scope("") return Scope("")
} }
return o.Scope return g.Scope
} }
type GetTransientTokenResponse struct { type GetTransientTokenResponse struct {
@@ -86,23 +86,23 @@ type GetTransientTokenResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *GetTransientTokenResponse) GetContentType() string { func (g *GetTransientTokenResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetTransientTokenResponse) GetStatusCode() int { func (g *GetTransientTokenResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetTransientTokenResponse) GetRawResponse() *http.Response { func (g *GetTransientTokenResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }

View File

@@ -15,46 +15,46 @@ type Release struct {
State *string `json:"state,omitempty"` State *string `json:"state,omitempty"`
} }
func (o *Release) GetKey() *string { func (r *Release) GetKey() *string {
if o == nil { if r == nil {
return nil return nil
} }
return o.Key return r.Key
} }
func (o *Release) GetVersion() *string { func (r *Release) GetVersion() *string {
if o == nil { if r == nil {
return nil return nil
} }
return o.Version return r.Version
} }
func (o *Release) GetAdded() *string { func (r *Release) GetAdded() *string {
if o == nil { if r == nil {
return nil return nil
} }
return o.Added return r.Added
} }
func (o *Release) GetFixed() *string { func (r *Release) GetFixed() *string {
if o == nil { if r == nil {
return nil return nil
} }
return o.Fixed return r.Fixed
} }
func (o *Release) GetDownloadURL() *string { func (r *Release) GetDownloadURL() *string {
if o == nil { if r == nil {
return nil return nil
} }
return o.DownloadURL return r.DownloadURL
} }
func (o *Release) GetState() *string { func (r *Release) GetState() *string {
if o == nil { if r == nil {
return nil return nil
} }
return o.State return r.State
} }
type GetUpdateStatusMediaContainer struct { type GetUpdateStatusMediaContainer struct {
@@ -66,46 +66,46 @@ type GetUpdateStatusMediaContainer struct {
Release []Release `json:"Release,omitempty"` Release []Release `json:"Release,omitempty"`
} }
func (o *GetUpdateStatusMediaContainer) GetSize() *int { func (g *GetUpdateStatusMediaContainer) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetUpdateStatusMediaContainer) GetCanInstall() *bool { func (g *GetUpdateStatusMediaContainer) GetCanInstall() *bool {
if o == nil { if g == nil {
return nil return nil
} }
return o.CanInstall return g.CanInstall
} }
func (o *GetUpdateStatusMediaContainer) GetCheckedAt() *int { func (g *GetUpdateStatusMediaContainer) GetCheckedAt() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.CheckedAt return g.CheckedAt
} }
func (o *GetUpdateStatusMediaContainer) GetDownloadURL() *string { func (g *GetUpdateStatusMediaContainer) GetDownloadURL() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DownloadURL return g.DownloadURL
} }
func (o *GetUpdateStatusMediaContainer) GetStatus() *int { func (g *GetUpdateStatusMediaContainer) GetStatus() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Status return g.Status
} }
func (o *GetUpdateStatusMediaContainer) GetRelease() []Release { func (g *GetUpdateStatusMediaContainer) GetRelease() []Release {
if o == nil { if g == nil {
return nil return nil
} }
return o.Release return g.Release
} }
// GetUpdateStatusResponseBody - The Server Updates // GetUpdateStatusResponseBody - The Server Updates
@@ -113,11 +113,11 @@ type GetUpdateStatusResponseBody struct {
MediaContainer *GetUpdateStatusMediaContainer `json:"MediaContainer,omitempty"` MediaContainer *GetUpdateStatusMediaContainer `json:"MediaContainer,omitempty"`
} }
func (o *GetUpdateStatusResponseBody) GetMediaContainer() *GetUpdateStatusMediaContainer { func (g *GetUpdateStatusResponseBody) GetMediaContainer() *GetUpdateStatusMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetUpdateStatusResponse struct { type GetUpdateStatusResponse struct {
@@ -131,30 +131,30 @@ type GetUpdateStatusResponse struct {
Object *GetUpdateStatusResponseBody Object *GetUpdateStatusResponseBody
} }
func (o *GetUpdateStatusResponse) GetContentType() string { func (g *GetUpdateStatusResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetUpdateStatusResponse) GetStatusCode() int { func (g *GetUpdateStatusResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetUpdateStatusResponse) GetRawResponse() *http.Response { func (g *GetUpdateStatusResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetUpdateStatusResponse) GetObject() *GetUpdateStatusResponseBody { func (g *GetUpdateStatusResponse) GetObject() *GetUpdateStatusResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -58,94 +58,94 @@ func (f Friend) MarshalJSON() ([]byte, error) {
} }
func (f *Friend) UnmarshalJSON(data []byte) error { func (f *Friend) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &f, "", false, []string{"email", "friendlyName", "home", "id", "sharedServers", "sharedSources", "status", "thumb", "title", "username", "uuid"}); err != nil { if err := utils.UnmarshalJSON(data, &f, "", false, []string{"email", "home", "id", "sharedServers", "sharedSources", "status", "thumb", "title", "username", "uuid"}); err != nil {
return err return err
} }
return nil return nil
} }
func (o *Friend) GetEmail() string { func (f *Friend) GetEmail() string {
if o == nil { if f == nil {
return "" return ""
} }
return o.Email return f.Email
} }
func (o *Friend) GetFriendlyName() *string { func (f *Friend) GetFriendlyName() *string {
if o == nil { if f == nil {
return nil return nil
} }
return o.FriendlyName return f.FriendlyName
} }
func (o *Friend) GetHome() bool { func (f *Friend) GetHome() bool {
if o == nil { if f == nil {
return false return false
} }
return o.Home return f.Home
} }
func (o *Friend) GetID() int { func (f *Friend) GetID() int {
if o == nil { if f == nil {
return 0 return 0
} }
return o.ID return f.ID
} }
func (o *Friend) GetRestricted() *bool { func (f *Friend) GetRestricted() *bool {
if o == nil { if f == nil {
return nil return nil
} }
return o.Restricted return f.Restricted
} }
func (o *Friend) GetSharedServers() []SharedServers { func (f *Friend) GetSharedServers() []SharedServers {
if o == nil { if f == nil {
return []SharedServers{} return []SharedServers{}
} }
return o.SharedServers return f.SharedServers
} }
func (o *Friend) GetSharedSources() []SharedSources { func (f *Friend) GetSharedSources() []SharedSources {
if o == nil { if f == nil {
return []SharedSources{} return []SharedSources{}
} }
return o.SharedSources return f.SharedSources
} }
func (o *Friend) GetStatus() Status { func (f *Friend) GetStatus() Status {
if o == nil { if f == nil {
return Status("") return Status("")
} }
return o.Status return f.Status
} }
func (o *Friend) GetThumb() string { func (f *Friend) GetThumb() string {
if o == nil { if f == nil {
return "" return ""
} }
return o.Thumb return f.Thumb
} }
func (o *Friend) GetTitle() string { func (f *Friend) GetTitle() string {
if o == nil { if f == nil {
return "" return ""
} }
return o.Title return f.Title
} }
func (o *Friend) GetUsername() string { func (f *Friend) GetUsername() string {
if o == nil { if f == nil {
return "" return ""
} }
return o.Username return f.Username
} }
func (o *Friend) GetUUID() string { func (f *Friend) GetUUID() string {
if o == nil { if f == nil {
return "" return ""
} }
return o.UUID return f.UUID
} }
type GetUserFriendsResponse struct { type GetUserFriendsResponse struct {
@@ -159,30 +159,30 @@ type GetUserFriendsResponse struct {
Friends []Friend Friends []Friend
} }
func (o *GetUserFriendsResponse) GetContentType() string { func (g *GetUserFriendsResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetUserFriendsResponse) GetStatusCode() int { func (g *GetUserFriendsResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetUserFriendsResponse) GetRawResponse() *http.Response { func (g *GetUserFriendsResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetUserFriendsResponse) GetFriends() []Friend { func (g *GetUserFriendsResponse) GetFriends() []Friend {
if o == nil { if g == nil {
return nil return nil
} }
return o.Friends return g.Friends
} }

View File

@@ -42,95 +42,95 @@ type GetUsersRequest struct {
XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"`
} }
func (o *GetUsersRequest) GetClientID() string { func (g *GetUsersRequest) GetClientID() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ClientID return g.ClientID
} }
func (o *GetUsersRequest) GetClientName() *string { func (g *GetUsersRequest) GetClientName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientName return g.ClientName
} }
func (o *GetUsersRequest) GetDeviceNickname() *string { func (g *GetUsersRequest) GetDeviceNickname() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DeviceNickname return g.DeviceNickname
} }
func (o *GetUsersRequest) GetDeviceName() *string { func (g *GetUsersRequest) GetDeviceName() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DeviceName return g.DeviceName
} }
func (o *GetUsersRequest) GetDeviceScreenResolution() *string { func (g *GetUsersRequest) GetDeviceScreenResolution() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.DeviceScreenResolution return g.DeviceScreenResolution
} }
func (o *GetUsersRequest) GetClientVersion() *string { func (g *GetUsersRequest) GetClientVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientVersion return g.ClientVersion
} }
func (o *GetUsersRequest) GetPlatform() *string { func (g *GetUsersRequest) GetPlatform() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Platform return g.Platform
} }
func (o *GetUsersRequest) GetClientFeatures() *string { func (g *GetUsersRequest) GetClientFeatures() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.ClientFeatures return g.ClientFeatures
} }
func (o *GetUsersRequest) GetModel() *string { func (g *GetUsersRequest) GetModel() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Model return g.Model
} }
func (o *GetUsersRequest) GetXPlexSessionID() *string { func (g *GetUsersRequest) GetXPlexSessionID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.XPlexSessionID return g.XPlexSessionID
} }
func (o *GetUsersRequest) GetXPlexLanguage() *string { func (g *GetUsersRequest) GetXPlexLanguage() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.XPlexLanguage return g.XPlexLanguage
} }
func (o *GetUsersRequest) GetPlatformVersion() *string { func (g *GetUsersRequest) GetPlatformVersion() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.PlatformVersion return g.PlatformVersion
} }
func (o *GetUsersRequest) GetXPlexToken() string { func (g *GetUsersRequest) GetXPlexToken() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.XPlexToken return g.XPlexToken
} }
// Protected - Indicates whether the account is protected. // Protected - Indicates whether the account is protected.
@@ -458,67 +458,67 @@ func (g *GetUsersServer) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetUsersServer) GetID() int64 { func (g *GetUsersServer) GetID() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ID return g.ID
} }
func (o *GetUsersServer) GetServerID() int64 { func (g *GetUsersServer) GetServerID() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.ServerID return g.ServerID
} }
func (o *GetUsersServer) GetMachineIdentifier() string { func (g *GetUsersServer) GetMachineIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MachineIdentifier return g.MachineIdentifier
} }
func (o *GetUsersServer) GetName() string { func (g *GetUsersServer) GetName() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Name return g.Name
} }
func (o *GetUsersServer) GetLastSeenAt() int64 { func (g *GetUsersServer) GetLastSeenAt() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.LastSeenAt return g.LastSeenAt
} }
func (o *GetUsersServer) GetNumLibraries() int64 { func (g *GetUsersServer) GetNumLibraries() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.NumLibraries return g.NumLibraries
} }
func (o *GetUsersServer) GetAllLibraries() *AllLibraries { func (g *GetUsersServer) GetAllLibraries() *AllLibraries {
if o == nil { if g == nil {
return nil return nil
} }
return o.AllLibraries return g.AllLibraries
} }
func (o *GetUsersServer) GetOwned() *Owned { func (g *GetUsersServer) GetOwned() *Owned {
if o == nil { if g == nil {
return nil return nil
} }
return o.Owned return g.Owned
} }
func (o *GetUsersServer) GetPending() *Pending { func (g *GetUsersServer) GetPending() *Pending {
if o == nil { if g == nil {
return nil return nil
} }
return o.Pending return g.Pending
} }
type User struct { type User struct {
@@ -567,144 +567,144 @@ func (u *User) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *User) GetID() int64 { func (u *User) GetID() int64 {
if o == nil { if u == nil {
return 0 return 0
} }
return o.ID return u.ID
} }
func (o *User) GetTitle() string { func (u *User) GetTitle() string {
if o == nil { if u == nil {
return "" return ""
} }
return o.Title return u.Title
} }
func (o *User) GetUsername() string { func (u *User) GetUsername() string {
if o == nil { if u == nil {
return "" return ""
} }
return o.Username return u.Username
} }
func (o *User) GetEmail() string { func (u *User) GetEmail() string {
if o == nil { if u == nil {
return "" return ""
} }
return o.Email return u.Email
} }
func (o *User) GetRecommendationsPlaylistID() *string { func (u *User) GetRecommendationsPlaylistID() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.RecommendationsPlaylistID return u.RecommendationsPlaylistID
} }
func (o *User) GetThumb() string { func (u *User) GetThumb() string {
if o == nil { if u == nil {
return "" return ""
} }
return o.Thumb return u.Thumb
} }
func (o *User) GetProtected() *Protected { func (u *User) GetProtected() *Protected {
if o == nil { if u == nil {
return nil return nil
} }
return o.Protected return u.Protected
} }
func (o *User) GetHome() *Home { func (u *User) GetHome() *Home {
if o == nil { if u == nil {
return nil return nil
} }
return o.Home return u.Home
} }
func (o *User) GetAllowTuners() *AllowTuners { func (u *User) GetAllowTuners() *AllowTuners {
if o == nil { if u == nil {
return nil return nil
} }
return o.AllowTuners return u.AllowTuners
} }
func (o *User) GetAllowSync() *AllowSync { func (u *User) GetAllowSync() *AllowSync {
if o == nil { if u == nil {
return nil return nil
} }
return o.AllowSync return u.AllowSync
} }
func (o *User) GetAllowCameraUpload() *AllowCameraUpload { func (u *User) GetAllowCameraUpload() *AllowCameraUpload {
if o == nil { if u == nil {
return nil return nil
} }
return o.AllowCameraUpload return u.AllowCameraUpload
} }
func (o *User) GetAllowChannels() *AllowChannels { func (u *User) GetAllowChannels() *AllowChannels {
if o == nil { if u == nil {
return nil return nil
} }
return o.AllowChannels return u.AllowChannels
} }
func (o *User) GetAllowSubtitleAdmin() *AllowSubtitleAdmin { func (u *User) GetAllowSubtitleAdmin() *AllowSubtitleAdmin {
if o == nil { if u == nil {
return nil return nil
} }
return o.AllowSubtitleAdmin return u.AllowSubtitleAdmin
} }
func (o *User) GetFilterAll() *string { func (u *User) GetFilterAll() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.FilterAll return u.FilterAll
} }
func (o *User) GetFilterMovies() *string { func (u *User) GetFilterMovies() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.FilterMovies return u.FilterMovies
} }
func (o *User) GetFilterMusic() *string { func (u *User) GetFilterMusic() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.FilterMusic return u.FilterMusic
} }
func (o *User) GetFilterPhotos() *string { func (u *User) GetFilterPhotos() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.FilterPhotos return u.FilterPhotos
} }
func (o *User) GetFilterTelevision() *string { func (u *User) GetFilterTelevision() *string {
if o == nil { if u == nil {
return nil return nil
} }
return o.FilterTelevision return u.FilterTelevision
} }
func (o *User) GetRestricted() *Restricted { func (u *User) GetRestricted() *Restricted {
if o == nil { if u == nil {
return nil return nil
} }
return o.Restricted return u.Restricted
} }
func (o *User) GetServer() []GetUsersServer { func (u *User) GetServer() []GetUsersServer {
if o == nil { if u == nil {
return []GetUsersServer{} return []GetUsersServer{}
} }
return o.Server return u.Server
} }
// GetUsersMediaContainer - Container holding user and server details. // GetUsersMediaContainer - Container holding user and server details.
@@ -722,46 +722,46 @@ type GetUsersMediaContainer struct {
User []User User []User
} }
func (o *GetUsersMediaContainer) GetFriendlyName() string { func (g *GetUsersMediaContainer) GetFriendlyName() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.FriendlyName return g.FriendlyName
} }
func (o *GetUsersMediaContainer) GetIdentifier() string { func (g *GetUsersMediaContainer) GetIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.Identifier return g.Identifier
} }
func (o *GetUsersMediaContainer) GetMachineIdentifier() string { func (g *GetUsersMediaContainer) GetMachineIdentifier() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.MachineIdentifier return g.MachineIdentifier
} }
func (o *GetUsersMediaContainer) GetTotalSize() int64 { func (g *GetUsersMediaContainer) GetTotalSize() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.TotalSize return g.TotalSize
} }
func (o *GetUsersMediaContainer) GetSize() int64 { func (g *GetUsersMediaContainer) GetSize() int64 {
if o == nil { if g == nil {
return 0 return 0
} }
return o.Size return g.Size
} }
func (o *GetUsersMediaContainer) GetUser() []User { func (g *GetUsersMediaContainer) GetUser() []User {
if o == nil { if g == nil {
return []User{} return []User{}
} }
return o.User return g.User
} }
// GetUsersResponseBody - Successful response with media container data in XML // GetUsersResponseBody - Successful response with media container data in XML
@@ -770,11 +770,11 @@ type GetUsersResponseBody struct {
MediaContainer *GetUsersMediaContainer MediaContainer *GetUsersMediaContainer
} }
func (o *GetUsersResponseBody) GetMediaContainer() *GetUsersMediaContainer { func (g *GetUsersResponseBody) GetMediaContainer() *GetUsersMediaContainer {
if o == nil { if g == nil {
return nil return nil
} }
return o.MediaContainer return g.MediaContainer
} }
type GetUsersResponse struct { type GetUsersResponse struct {
@@ -787,30 +787,30 @@ type GetUsersResponse struct {
Body []byte Body []byte
} }
func (o *GetUsersResponse) GetContentType() string { func (g *GetUsersResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetUsersResponse) GetStatusCode() int { func (g *GetUsersResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetUsersResponse) GetRawResponse() *http.Response { func (g *GetUsersResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetUsersResponse) GetBody() []byte { func (g *GetUsersResponse) GetBody() []byte {
if o == nil { if g == nil {
return nil return nil
} }
return o.Body return g.Body
} }

View File

@@ -139,67 +139,67 @@ func (g *GetWatchListRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *GetWatchListRequest) GetFilter() Filter { func (g *GetWatchListRequest) GetFilter() Filter {
if o == nil { if g == nil {
return Filter("") return Filter("")
} }
return o.Filter return g.Filter
} }
func (o *GetWatchListRequest) GetSort() *string { func (g *GetWatchListRequest) GetSort() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Sort return g.Sort
} }
func (o *GetWatchListRequest) GetLibtype() *Libtype { func (g *GetWatchListRequest) GetLibtype() *Libtype {
if o == nil { if g == nil {
return nil return nil
} }
return o.Libtype return g.Libtype
} }
func (o *GetWatchListRequest) GetMaxresults() *int { func (g *GetWatchListRequest) GetMaxresults() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Maxresults return g.Maxresults
} }
func (o *GetWatchListRequest) GetIncludeCollections() *IncludeCollections { func (g *GetWatchListRequest) GetIncludeCollections() *IncludeCollections {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeCollections return g.IncludeCollections
} }
func (o *GetWatchListRequest) GetIncludeExternalMedia() *IncludeExternalMedia { func (g *GetWatchListRequest) GetIncludeExternalMedia() *IncludeExternalMedia {
if o == nil { if g == nil {
return nil return nil
} }
return o.IncludeExternalMedia return g.IncludeExternalMedia
} }
func (o *GetWatchListRequest) GetXPlexContainerStart() *int { func (g *GetWatchListRequest) GetXPlexContainerStart() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.XPlexContainerStart return g.XPlexContainerStart
} }
func (o *GetWatchListRequest) GetXPlexContainerSize() *int { func (g *GetWatchListRequest) GetXPlexContainerSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.XPlexContainerSize return g.XPlexContainerSize
} }
func (o *GetWatchListRequest) GetXPlexToken() string { func (g *GetWatchListRequest) GetXPlexToken() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.XPlexToken return g.XPlexToken
} }
type Image struct { type Image struct {
@@ -208,25 +208,25 @@ type Image struct {
URL *string `json:"url,omitempty"` URL *string `json:"url,omitempty"`
} }
func (o *Image) GetAlt() *string { func (i *Image) GetAlt() *string {
if o == nil { if i == nil {
return nil return nil
} }
return o.Alt return i.Alt
} }
func (o *Image) GetType() *string { func (i *Image) GetType() *string {
if o == nil { if i == nil {
return nil return nil
} }
return o.Type return i.Type
} }
func (o *Image) GetURL() *string { func (i *Image) GetURL() *string {
if o == nil { if i == nil {
return nil return nil
} }
return o.URL return i.URL
} }
type Metadata struct { type Metadata struct {
@@ -278,249 +278,249 @@ func (m *Metadata) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *Metadata) GetArt() *string { func (m *Metadata) GetArt() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Art return m.Art
} }
func (o *Metadata) GetGUID() *string { func (m *Metadata) GetGUID() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.GUID return m.GUID
} }
func (o *Metadata) GetKey() *string { func (m *Metadata) GetKey() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Key return m.Key
} }
func (o *Metadata) GetRatingKey() *string { func (m *Metadata) GetRatingKey() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.RatingKey return m.RatingKey
} }
func (o *Metadata) GetStudio() *string { func (m *Metadata) GetStudio() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Studio return m.Studio
} }
func (o *Metadata) GetTagline() *string { func (m *Metadata) GetTagline() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Tagline return m.Tagline
} }
func (o *Metadata) GetType() *string { func (m *Metadata) GetType() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Type return m.Type
} }
func (o *Metadata) GetThumb() *string { func (m *Metadata) GetThumb() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Thumb return m.Thumb
} }
func (o *Metadata) GetAddedAt() *int { func (m *Metadata) GetAddedAt() *int {
if o == nil { if m == nil {
return nil return nil
} }
return o.AddedAt return m.AddedAt
} }
func (o *Metadata) GetDuration() *int { func (m *Metadata) GetDuration() *int {
if o == nil { if m == nil {
return nil return nil
} }
return o.Duration return m.Duration
} }
func (o *Metadata) GetPublicPagesURL() *string { func (m *Metadata) GetPublicPagesURL() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.PublicPagesURL return m.PublicPagesURL
} }
func (o *Metadata) GetSlug() *string { func (m *Metadata) GetSlug() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Slug return m.Slug
} }
func (o *Metadata) GetUserState() *bool { func (m *Metadata) GetUserState() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.UserState return m.UserState
} }
func (o *Metadata) GetTitle() *string { func (m *Metadata) GetTitle() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Title return m.Title
} }
func (o *Metadata) GetContentRating() *string { func (m *Metadata) GetContentRating() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.ContentRating return m.ContentRating
} }
func (o *Metadata) GetOriginallyAvailableAt() *types.Date { func (m *Metadata) GetOriginallyAvailableAt() *types.Date {
if o == nil { if m == nil {
return nil return nil
} }
return o.OriginallyAvailableAt return m.OriginallyAvailableAt
} }
func (o *Metadata) GetYear() *int { func (m *Metadata) GetYear() *int {
if o == nil { if m == nil {
return nil return nil
} }
return o.Year return m.Year
} }
func (o *Metadata) GetImage() []Image { func (m *Metadata) GetImage() []Image {
if o == nil { if m == nil {
return nil return nil
} }
return o.Image return m.Image
} }
func (o *Metadata) GetBanner() *string { func (m *Metadata) GetBanner() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Banner return m.Banner
} }
func (o *Metadata) GetRating() *float64 { func (m *Metadata) GetRating() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.Rating return m.Rating
} }
func (o *Metadata) GetExpiresAt() *int { func (m *Metadata) GetExpiresAt() *int {
if o == nil { if m == nil {
return nil return nil
} }
return o.ExpiresAt return m.ExpiresAt
} }
func (o *Metadata) GetOriginalTitle() *string { func (m *Metadata) GetOriginalTitle() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.OriginalTitle return m.OriginalTitle
} }
func (o *Metadata) GetAudienceRating() *float64 { func (m *Metadata) GetAudienceRating() *float64 {
if o == nil { if m == nil {
return nil return nil
} }
return o.AudienceRating return m.AudienceRating
} }
func (o *Metadata) GetAudienceRatingImage() *string { func (m *Metadata) GetAudienceRatingImage() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.AudienceRatingImage return m.AudienceRatingImage
} }
func (o *Metadata) GetRatingImage() *string { func (m *Metadata) GetRatingImage() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.RatingImage return m.RatingImage
} }
func (o *Metadata) GetImdbRatingCount() *int { func (m *Metadata) GetImdbRatingCount() *int {
if o == nil { if m == nil {
return nil return nil
} }
return o.ImdbRatingCount return m.ImdbRatingCount
} }
func (o *Metadata) GetSubtype() *string { func (m *Metadata) GetSubtype() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Subtype return m.Subtype
} }
func (o *Metadata) GetTheme() *string { func (m *Metadata) GetTheme() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.Theme return m.Theme
} }
func (o *Metadata) GetLeafCount() *int { func (m *Metadata) GetLeafCount() *int {
if o == nil { if m == nil {
return nil return nil
} }
return o.LeafCount return m.LeafCount
} }
func (o *Metadata) GetChildCount() *int { func (m *Metadata) GetChildCount() *int {
if o == nil { if m == nil {
return nil return nil
} }
return o.ChildCount return m.ChildCount
} }
func (o *Metadata) GetIsContinuingSeries() *bool { func (m *Metadata) GetIsContinuingSeries() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.IsContinuingSeries return m.IsContinuingSeries
} }
func (o *Metadata) GetSkipChildren() *bool { func (m *Metadata) GetSkipChildren() *bool {
if o == nil { if m == nil {
return nil return nil
} }
return o.SkipChildren return m.SkipChildren
} }
func (o *Metadata) GetAvailabilityID() *string { func (m *Metadata) GetAvailabilityID() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.AvailabilityID return m.AvailabilityID
} }
func (o *Metadata) GetStreamingMediaID() *string { func (m *Metadata) GetStreamingMediaID() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.StreamingMediaID return m.StreamingMediaID
} }
func (o *Metadata) GetPlayableKey() *string { func (m *Metadata) GetPlayableKey() *string {
if o == nil { if m == nil {
return nil return nil
} }
return o.PlayableKey return m.PlayableKey
} }
// GetWatchListResponseBody - Watchlist Data // GetWatchListResponseBody - Watchlist Data
@@ -534,53 +534,53 @@ type GetWatchListResponseBody struct {
Metadata []Metadata `json:"Metadata,omitempty"` Metadata []Metadata `json:"Metadata,omitempty"`
} }
func (o *GetWatchListResponseBody) GetLibrarySectionID() *string { func (g *GetWatchListResponseBody) GetLibrarySectionID() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionID return g.LibrarySectionID
} }
func (o *GetWatchListResponseBody) GetLibrarySectionTitle() *string { func (g *GetWatchListResponseBody) GetLibrarySectionTitle() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.LibrarySectionTitle return g.LibrarySectionTitle
} }
func (o *GetWatchListResponseBody) GetOffset() *int { func (g *GetWatchListResponseBody) GetOffset() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Offset return g.Offset
} }
func (o *GetWatchListResponseBody) GetTotalSize() *int { func (g *GetWatchListResponseBody) GetTotalSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.TotalSize return g.TotalSize
} }
func (o *GetWatchListResponseBody) GetIdentifier() *string { func (g *GetWatchListResponseBody) GetIdentifier() *string {
if o == nil { if g == nil {
return nil return nil
} }
return o.Identifier return g.Identifier
} }
func (o *GetWatchListResponseBody) GetSize() *int { func (g *GetWatchListResponseBody) GetSize() *int {
if o == nil { if g == nil {
return nil return nil
} }
return o.Size return g.Size
} }
func (o *GetWatchListResponseBody) GetMetadata() []Metadata { func (g *GetWatchListResponseBody) GetMetadata() []Metadata {
if o == nil { if g == nil {
return nil return nil
} }
return o.Metadata return g.Metadata
} }
type GetWatchListResponse struct { type GetWatchListResponse struct {
@@ -594,30 +594,30 @@ type GetWatchListResponse struct {
Object *GetWatchListResponseBody Object *GetWatchListResponseBody
} }
func (o *GetWatchListResponse) GetContentType() string { func (g *GetWatchListResponse) GetContentType() string {
if o == nil { if g == nil {
return "" return ""
} }
return o.ContentType return g.ContentType
} }
func (o *GetWatchListResponse) GetStatusCode() int { func (g *GetWatchListResponse) GetStatusCode() int {
if o == nil { if g == nil {
return 0 return 0
} }
return o.StatusCode return g.StatusCode
} }
func (o *GetWatchListResponse) GetRawResponse() *http.Response { func (g *GetWatchListResponse) GetRawResponse() *http.Response {
if o == nil { if g == nil {
return nil return nil
} }
return o.RawResponse return g.RawResponse
} }
func (o *GetWatchListResponse) GetObject() *GetWatchListResponseBody { func (g *GetWatchListResponse) GetObject() *GetWatchListResponseBody {
if o == nil { if g == nil {
return nil return nil
} }
return o.Object return g.Object
} }

View File

@@ -41,25 +41,25 @@ type LogLineRequest struct {
Source string `queryParam:"style=form,explode=true,name=source"` Source string `queryParam:"style=form,explode=true,name=source"`
} }
func (o *LogLineRequest) GetLevel() Level { func (l *LogLineRequest) GetLevel() Level {
if o == nil { if l == nil {
return Level(0) return Level(0)
} }
return o.Level return l.Level
} }
func (o *LogLineRequest) GetMessage() string { func (l *LogLineRequest) GetMessage() string {
if o == nil { if l == nil {
return "" return ""
} }
return o.Message return l.Message
} }
func (o *LogLineRequest) GetSource() string { func (l *LogLineRequest) GetSource() string {
if o == nil { if l == nil {
return "" return ""
} }
return o.Source return l.Source
} }
type LogLineResponse struct { type LogLineResponse struct {
@@ -71,23 +71,23 @@ type LogLineResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *LogLineResponse) GetContentType() string { func (l *LogLineResponse) GetContentType() string {
if o == nil { if l == nil {
return "" return ""
} }
return o.ContentType return l.ContentType
} }
func (o *LogLineResponse) GetStatusCode() int { func (l *LogLineResponse) GetStatusCode() int {
if o == nil { if l == nil {
return 0 return 0
} }
return o.StatusCode return l.StatusCode
} }
func (o *LogLineResponse) GetRawResponse() *http.Response { func (l *LogLineResponse) GetRawResponse() *http.Response {
if o == nil { if l == nil {
return nil return nil
} }
return o.RawResponse return l.RawResponse
} }

View File

@@ -15,23 +15,23 @@ type LogMultiLineResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *LogMultiLineResponse) GetContentType() string { func (l *LogMultiLineResponse) GetContentType() string {
if o == nil { if l == nil {
return "" return ""
} }
return o.ContentType return l.ContentType
} }
func (o *LogMultiLineResponse) GetStatusCode() int { func (l *LogMultiLineResponse) GetStatusCode() int {
if o == nil { if l == nil {
return 0 return 0
} }
return o.StatusCode return l.StatusCode
} }
func (o *LogMultiLineResponse) GetRawResponse() *http.Response { func (l *LogMultiLineResponse) GetRawResponse() *http.Response {
if o == nil { if l == nil {
return nil return nil
} }
return o.RawResponse return l.RawResponse
} }

View File

@@ -11,11 +11,11 @@ type MarkPlayedRequest struct {
Key float64 `queryParam:"style=form,explode=true,name=key"` Key float64 `queryParam:"style=form,explode=true,name=key"`
} }
func (o *MarkPlayedRequest) GetKey() float64 { func (m *MarkPlayedRequest) GetKey() float64 {
if o == nil { if m == nil {
return 0.0 return 0.0
} }
return o.Key return m.Key
} }
type MarkPlayedResponse struct { type MarkPlayedResponse struct {
@@ -27,23 +27,23 @@ type MarkPlayedResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *MarkPlayedResponse) GetContentType() string { func (m *MarkPlayedResponse) GetContentType() string {
if o == nil { if m == nil {
return "" return ""
} }
return o.ContentType return m.ContentType
} }
func (o *MarkPlayedResponse) GetStatusCode() int { func (m *MarkPlayedResponse) GetStatusCode() int {
if o == nil { if m == nil {
return 0 return 0
} }
return o.StatusCode return m.StatusCode
} }
func (o *MarkPlayedResponse) GetRawResponse() *http.Response { func (m *MarkPlayedResponse) GetRawResponse() *http.Response {
if o == nil { if m == nil {
return nil return nil
} }
return o.RawResponse return m.RawResponse
} }

View File

@@ -11,11 +11,11 @@ type MarkUnplayedRequest struct {
Key float64 `queryParam:"style=form,explode=true,name=key"` Key float64 `queryParam:"style=form,explode=true,name=key"`
} }
func (o *MarkUnplayedRequest) GetKey() float64 { func (m *MarkUnplayedRequest) GetKey() float64 {
if o == nil { if m == nil {
return 0.0 return 0.0
} }
return o.Key return m.Key
} }
type MarkUnplayedResponse struct { type MarkUnplayedResponse struct {
@@ -27,23 +27,23 @@ type MarkUnplayedResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *MarkUnplayedResponse) GetContentType() string { func (m *MarkUnplayedResponse) GetContentType() string {
if o == nil { if m == nil {
return "" return ""
} }
return o.ContentType return m.ContentType
} }
func (o *MarkUnplayedResponse) GetStatusCode() int { func (m *MarkUnplayedResponse) GetStatusCode() int {
if o == nil { if m == nil {
return 0 return 0
} }
return o.StatusCode return m.StatusCode
} }
func (o *MarkUnplayedResponse) GetRawResponse() *http.Response { func (m *MarkUnplayedResponse) GetRawResponse() *http.Response {
if o == nil { if m == nil {
return nil return nil
} }
return o.RawResponse return m.RawResponse
} }

View File

@@ -27,25 +27,25 @@ func (p *PerformSearchRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *PerformSearchRequest) GetQuery() string { func (p *PerformSearchRequest) GetQuery() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.Query return p.Query
} }
func (o *PerformSearchRequest) GetSectionID() *float64 { func (p *PerformSearchRequest) GetSectionID() *float64 {
if o == nil { if p == nil {
return nil return nil
} }
return o.SectionID return p.SectionID
} }
func (o *PerformSearchRequest) GetLimit() *float64 { func (p *PerformSearchRequest) GetLimit() *float64 {
if o == nil { if p == nil {
return nil return nil
} }
return o.Limit return p.Limit
} }
type PerformSearchResponse struct { type PerformSearchResponse struct {
@@ -57,23 +57,23 @@ type PerformSearchResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *PerformSearchResponse) GetContentType() string { func (p *PerformSearchResponse) GetContentType() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.ContentType return p.ContentType
} }
func (o *PerformSearchResponse) GetStatusCode() int { func (p *PerformSearchResponse) GetStatusCode() int {
if o == nil { if p == nil {
return 0 return 0
} }
return o.StatusCode return p.StatusCode
} }
func (o *PerformSearchResponse) GetRawResponse() *http.Response { func (p *PerformSearchResponse) GetRawResponse() *http.Response {
if o == nil { if p == nil {
return nil return nil
} }
return o.RawResponse return p.RawResponse
} }

View File

@@ -27,25 +27,25 @@ func (p *PerformVoiceSearchRequest) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o *PerformVoiceSearchRequest) GetQuery() string { func (p *PerformVoiceSearchRequest) GetQuery() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.Query return p.Query
} }
func (o *PerformVoiceSearchRequest) GetSectionID() *float64 { func (p *PerformVoiceSearchRequest) GetSectionID() *float64 {
if o == nil { if p == nil {
return nil return nil
} }
return o.SectionID return p.SectionID
} }
func (o *PerformVoiceSearchRequest) GetLimit() *float64 { func (p *PerformVoiceSearchRequest) GetLimit() *float64 {
if o == nil { if p == nil {
return nil return nil
} }
return o.Limit return p.Limit
} }
type PerformVoiceSearchResponse struct { type PerformVoiceSearchResponse struct {
@@ -57,23 +57,23 @@ type PerformVoiceSearchResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *PerformVoiceSearchResponse) GetContentType() string { func (p *PerformVoiceSearchResponse) GetContentType() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.ContentType return p.ContentType
} }
func (o *PerformVoiceSearchResponse) GetStatusCode() int { func (p *PerformVoiceSearchResponse) GetStatusCode() int {
if o == nil { if p == nil {
return 0 return 0
} }
return o.StatusCode return p.StatusCode
} }
func (o *PerformVoiceSearchResponse) GetRawResponse() *http.Response { func (p *PerformVoiceSearchResponse) GetRawResponse() *http.Response {
if o == nil { if p == nil {
return nil return nil
} }
return o.RawResponse return p.RawResponse
} }

View File

@@ -16,25 +16,25 @@ type PostMediaArtsRequest struct {
RequestBody *any `request:"mediaType=image/*"` RequestBody *any `request:"mediaType=image/*"`
} }
func (o *PostMediaArtsRequest) GetRatingKey() int64 { func (p *PostMediaArtsRequest) GetRatingKey() int64 {
if o == nil { if p == nil {
return 0 return 0
} }
return o.RatingKey return p.RatingKey
} }
func (o *PostMediaArtsRequest) GetURL() *string { func (p *PostMediaArtsRequest) GetURL() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.URL return p.URL
} }
func (o *PostMediaArtsRequest) GetRequestBody() *any { func (p *PostMediaArtsRequest) GetRequestBody() *any {
if o == nil { if p == nil {
return nil return nil
} }
return o.RequestBody return p.RequestBody
} }
type PostMediaArtsResponse struct { type PostMediaArtsResponse struct {
@@ -46,23 +46,23 @@ type PostMediaArtsResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *PostMediaArtsResponse) GetContentType() string { func (p *PostMediaArtsResponse) GetContentType() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.ContentType return p.ContentType
} }
func (o *PostMediaArtsResponse) GetStatusCode() int { func (p *PostMediaArtsResponse) GetStatusCode() int {
if o == nil { if p == nil {
return 0 return 0
} }
return o.StatusCode return p.StatusCode
} }
func (o *PostMediaArtsResponse) GetRawResponse() *http.Response { func (p *PostMediaArtsResponse) GetRawResponse() *http.Response {
if o == nil { if p == nil {
return nil return nil
} }
return o.RawResponse return p.RawResponse
} }

View File

@@ -16,25 +16,25 @@ type PostMediaPosterRequest struct {
RequestBody *any `request:"mediaType=image/*"` RequestBody *any `request:"mediaType=image/*"`
} }
func (o *PostMediaPosterRequest) GetRatingKey() int64 { func (p *PostMediaPosterRequest) GetRatingKey() int64 {
if o == nil { if p == nil {
return 0 return 0
} }
return o.RatingKey return p.RatingKey
} }
func (o *PostMediaPosterRequest) GetURL() *string { func (p *PostMediaPosterRequest) GetURL() *string {
if o == nil { if p == nil {
return nil return nil
} }
return o.URL return p.URL
} }
func (o *PostMediaPosterRequest) GetRequestBody() *any { func (p *PostMediaPosterRequest) GetRequestBody() *any {
if o == nil { if p == nil {
return nil return nil
} }
return o.RequestBody return p.RequestBody
} }
type PostMediaPosterResponse struct { type PostMediaPosterResponse struct {
@@ -46,23 +46,23 @@ type PostMediaPosterResponse struct {
RawResponse *http.Response RawResponse *http.Response
} }
func (o *PostMediaPosterResponse) GetContentType() string { func (p *PostMediaPosterResponse) GetContentType() string {
if o == nil { if p == nil {
return "" return ""
} }
return o.ContentType return p.ContentType
} }
func (o *PostMediaPosterResponse) GetStatusCode() int { func (p *PostMediaPosterResponse) GetStatusCode() int {
if o == nil { if p == nil {
return 0 return 0
} }
return o.StatusCode return p.StatusCode
} }
func (o *PostMediaPosterResponse) GetRawResponse() *http.Response { func (p *PostMediaPosterResponse) GetRawResponse() *http.Response {
if o == nil { if p == nil {
return nil return nil
} }
return o.RawResponse return p.RawResponse
} }

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More