diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7d540a0..9c3000d 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: dfa99515-01c0-42eb-9be5-ee212fd03eb3 management: docChecksum: addaf2dfdac23cef2e234b64492b9c90 docVersion: 0.0.3 - speakeasyVersion: 1.615.2 - generationVersion: 2.698.4 - releaseVersion: 0.24.2 - configChecksum: 8d76d795a093eac0731c22ff2789a575 + speakeasyVersion: 1.635.1 + generationVersion: 2.722.2 + releaseVersion: 0.25.0 + configChecksum: 4ca3994cb62bfd5beb1e6c5c6b0ef941 repoURL: https://github.com/LukeHagar/plexgo.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexgo @@ -15,11 +15,11 @@ features: go: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.9.6 + core: 3.11.1 defaultEnabledRetries: 0.2.0 deprecations: 2.81.3 downloadStreams: 0.1.2 - enums: 2.81.1 + enums: 2.82.0 envVarSecurityUsage: 0.3.2 errors: 2.83.0 flattening: 2.81.1 @@ -30,12 +30,12 @@ features: intellisenseMarkdownSupport: 0.1.0 methodServerURLs: 2.82.1 nameOverrides: 2.81.2 - nullables: 0.1.1 + nullables: 0.2.1 openEnums: 0.1.0 responseFormat: 0.1.2 retries: 2.84.2 sdkHooks: 0.2.0 - unions: 2.85.14 + unions: 2.86.0 uploadStreams: 0.1.0 generatedFiles: - .gitattributes @@ -1158,6 +1158,8 @@ generatedFiles: - media.go - models/operations/options.go - models/sdkerrors/sdkerror.go + - optionalnullable/optionalnullable.go + - optionalnullable/optionalnullable_test.go - playlists.go - plex.go - plexapi.go @@ -1169,7 +1171,6 @@ generatedFiles: - types/bigint.go - types/date.go - types/datetime.go - - types/decimal.go - types/pointers.go - updater.go - users.go diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 034cb2a..96b1d05 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -22,7 +22,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false go: - version: 0.24.2 + version: 0.25.0 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: PlexAPIError @@ -41,6 +41,7 @@ go: maxMethodParams: 4 methodArguments: require-security-and-request modulePath: "" + nullableOptionalWrapper: false outputModelSuffix: output packageName: github.com/LukeHagar/plexgo respectRequiredFields: false diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0628dac..0fa2866 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.615.2 +speakeasyVersion: 1.635.1 sources: my-source: sourceNamespace: my-source @@ -13,7 +13,7 @@ sources: sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0 tags: - latest - - speakeasy-sdk-regen-1757981413 + - speakeasy-sdk-regen-1759795832 targets: plexgo: source: plexapi @@ -21,7 +21,7 @@ targets: sourceRevisionDigest: sha256:5125adfea1b0daea399c6ecf755e32795de6b4131465ae6a1f32ad73b3bc7787 sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0 codeSamplesNamespace: code-samples-go-plexgo - codeSamplesRevisionDigest: sha256:918f406f027ab1b34a6256235e3389f56c35fa6b319855542a8c2bccc8c97e1a + codeSamplesRevisionDigest: sha256:f5a86774481f3e1235a867167b1ae386f68f21ddfd77c07662ae7f91306f064e workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 43ecf9d..5e3b772 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1202,4 +1202,14 @@ Based on: ### Generated - [go v0.24.2] . ### Releases -- [Go v0.24.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.24.2 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 27c8cd8..0bcdc18 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -619,7 +619,7 @@ actions: res, err := s.Hubs.GetRecentlyAdded(ctx, operations.GetRecentlyAddedRequest{ ContentDirectoryID: 39486, - SectionID: plexgo.Int64(2), + SectionID: plexgo.Pointer[int64](2), Type: operations.TypeTvShow, IncludeMeta: operations.IncludeMetaEnable.ToPointer(), }) @@ -651,7 +651,7 @@ actions: plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -680,7 +680,7 @@ actions: plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -827,19 +827,19 @@ actions: res, err := s.Library.GetMediaMetaData(ctx, operations.GetMediaMetaDataRequest{ RatingKey: "21119,21617", - IncludeConcerts: plexgo.Bool(true), - IncludeExtras: plexgo.Bool(true), - IncludeOnDeck: plexgo.Bool(true), - IncludePopularLeaves: plexgo.Bool(true), - IncludePreferences: plexgo.Bool(true), - IncludeReviews: plexgo.Bool(true), - IncludeChapters: plexgo.Bool(true), - IncludeStations: plexgo.Bool(true), - IncludeExternalMedia: plexgo.Bool(true), - AsyncAugmentMetadata: plexgo.Bool(true), - AsyncCheckFiles: plexgo.Bool(true), - AsyncRefreshAnalysis: plexgo.Bool(true), - AsyncRefreshLocalMediaAgent: plexgo.Bool(true), + IncludeConcerts: plexgo.Pointer(true), + IncludeExtras: plexgo.Pointer(true), + IncludeOnDeck: plexgo.Pointer(true), + IncludePopularLeaves: plexgo.Pointer(true), + IncludePreferences: plexgo.Pointer(true), + IncludeReviews: plexgo.Pointer(true), + IncludeChapters: plexgo.Pointer(true), + IncludeStations: plexgo.Pointer(true), + IncludeExternalMedia: plexgo.Pointer(true), + AsyncAugmentMetadata: plexgo.Pointer(true), + AsyncCheckFiles: plexgo.Pointer(true), + AsyncRefreshAnalysis: plexgo.Pointer(true), + AsyncRefreshLocalMediaAgent: plexgo.Pointer(true), }) if err != nil { log.Fatal(err) @@ -898,7 +898,7 @@ actions: plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -964,7 +964,7 @@ actions: plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -1022,7 +1022,7 @@ actions: plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -1090,7 +1090,7 @@ actions: ) res, err := s.Library.GetRecentlyAddedLibrary(ctx, operations.GetRecentlyAddedLibraryRequest{ - ContentDirectoryID: plexgo.Int64(2), + ContentDirectoryID: plexgo.Pointer[int64](2), PinnedContentDirectoryID: []int64{ 3, 5, @@ -1105,7 +1105,7 @@ actions: 16, 17, }, - SectionID: plexgo.Int64(2), + SectionID: plexgo.Pointer[int64](2), Type: operations.QueryParamTypeTvShow, IncludeMeta: operations.QueryParamIncludeMetaEnable.ToPointer(), }) @@ -1706,10 +1706,10 @@ actions: res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{ ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), }) if err != nil { log.Fatal(err) @@ -1741,10 +1741,10 @@ actions: res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{ PinID: 232248, ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), }) if err != nil { log.Fatal(err) @@ -2014,7 +2014,7 @@ actions: plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -2190,7 +2190,7 @@ actions: plexgo.WithSecurity(""), ) - res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Int64(4)) + res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Pointer[int64](4)) if err != nil { log.Fatal(err) } @@ -2219,7 +2219,7 @@ actions: plexgo.WithSecurity(""), ) - res, err := s.Statistics.GetStatistics(ctx, plexgo.Int64(4)) + res, err := s.Statistics.GetStatistics(ctx, plexgo.Pointer[int64](4)) if err != nil { log.Fatal(err) } @@ -2248,7 +2248,7 @@ actions: plexgo.WithSecurity(""), ) - res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Int64(4)) + res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Pointer[int64](4)) if err != nil { log.Fatal(err) } @@ -2307,7 +2307,7 @@ actions: plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -2513,17 +2513,17 @@ actions: res, err := s.Users.GetUsers(ctx, operations.GetUsersRequest{ ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - DeviceName: plexgo.String("Chrome"), - DeviceScreenResolution: plexgo.String("1487x1165,2560x1440"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), - ClientFeatures: plexgo.String("external-media,indirect-media,hub-style-list"), - Model: plexgo.String("4200X"), - XPlexSessionID: plexgo.String("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"), - XPlexLanguage: plexgo.String("en"), - PlatformVersion: plexgo.String("4.3 build 1057"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + DeviceName: plexgo.Pointer("Chrome"), + DeviceScreenResolution: plexgo.Pointer("1487x1165,2560x1440"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), + ClientFeatures: plexgo.Pointer("external-media,indirect-media,hub-style-list"), + Model: plexgo.Pointer("4200X"), + XPlexSessionID: plexgo.Pointer("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"), + XPlexLanguage: plexgo.Pointer("en"), + PlatformVersion: plexgo.Pointer("4.3 build 1057"), XPlexToken: "CV5xoxjTpFKUzBTShsaf", }) if err != nil { @@ -2555,14 +2555,14 @@ actions: res, err := s.Authentication.PostUsersSignInData(ctx, operations.PostUsersSignInDataRequest{ ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), RequestBody: &operations.PostUsersSignInDataRequestBody{ Login: "username@email.com", Password: "password123", - VerificationCode: plexgo.String("123456"), + VerificationCode: plexgo.Pointer("123456"), }, }) if err != nil { @@ -2600,17 +2600,17 @@ actions: MediaIndex: 0, PartIndex: 0, Protocol: "hls", - FastSeek: plexgo.Float64(0), - DirectPlay: plexgo.Float64(0), - DirectStream: plexgo.Float64(0), - SubtitleSize: plexgo.Float64(100), - Subtites: plexgo.String("burn"), - AudioBoost: plexgo.Float64(100), - Location: plexgo.String("lan"), - MediaBufferSize: plexgo.Float64(102400), - Session: plexgo.String("zvcage8b7rkioqcm8f4uns4c"), - AddDebugOverlay: plexgo.Float64(0), - AutoAdjustQuality: plexgo.Float64(0), + FastSeek: plexgo.Pointer[float64](0), + DirectPlay: plexgo.Pointer[float64](0), + DirectStream: plexgo.Pointer[float64](0), + SubtitleSize: plexgo.Pointer[float64](100), + Subtites: plexgo.Pointer("burn"), + AudioBoost: plexgo.Pointer[float64](100), + Location: plexgo.Pointer("lan"), + MediaBufferSize: plexgo.Pointer[float64](102400), + Session: plexgo.Pointer("zvcage8b7rkioqcm8f4uns4c"), + AddDebugOverlay: plexgo.Pointer[float64](0), + AutoAdjustQuality: plexgo.Pointer[float64](0), }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index 723482e..6326c4d 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -200,14 +200,14 @@ func main() { res, err := s.Authentication.PostUsersSignInData(ctx, operations.PostUsersSignInDataRequest{ ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), RequestBody: &operations.PostUsersSignInDataRequestBody{ Login: "username@email.com", Password: "password123", - VerificationCode: plexgo.String("123456"), + VerificationCode: plexgo.Pointer("123456"), }, }) if err != nil { diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 7f885de..2c2a8e5 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -93,7 +93,7 @@ func main() { res, err := s.Hubs.GetRecentlyAdded(ctx, operations.GetRecentlyAddedRequest{ ContentDirectoryID: 39486, - SectionID: plexgo.Int64(2), + SectionID: plexgo.Pointer[int64](2), Type: operations.TypeTvShow, IncludeMeta: operations.IncludeMetaEnable.ToPointer(), }) diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 238eb14..d49e7ff 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -109,7 +109,7 @@ func main() { ) res, err := s.Library.GetRecentlyAddedLibrary(ctx, operations.GetRecentlyAddedLibraryRequest{ - ContentDirectoryID: plexgo.Int64(2), + ContentDirectoryID: plexgo.Pointer[int64](2), PinnedContentDirectoryID: []int64{ 3, 5, @@ -124,7 +124,7 @@ func main() { 16, 17, }, - SectionID: plexgo.Int64(2), + SectionID: plexgo.Pointer[int64](2), Type: operations.QueryParamTypeTvShow, IncludeMeta: operations.QueryParamIncludeMetaEnable.ToPointer(), }) @@ -894,19 +894,19 @@ func main() { res, err := s.Library.GetMediaMetaData(ctx, operations.GetMediaMetaDataRequest{ RatingKey: "21119,21617", - IncludeConcerts: plexgo.Bool(true), - IncludeExtras: plexgo.Bool(true), - IncludeOnDeck: plexgo.Bool(true), - IncludePopularLeaves: plexgo.Bool(true), - IncludePreferences: plexgo.Bool(true), - IncludeReviews: plexgo.Bool(true), - IncludeChapters: plexgo.Bool(true), - IncludeStations: plexgo.Bool(true), - IncludeExternalMedia: plexgo.Bool(true), - AsyncAugmentMetadata: plexgo.Bool(true), - AsyncCheckFiles: plexgo.Bool(true), - AsyncRefreshAnalysis: plexgo.Bool(true), - AsyncRefreshLocalMediaAgent: plexgo.Bool(true), + IncludeConcerts: plexgo.Pointer(true), + IncludeExtras: plexgo.Pointer(true), + IncludeOnDeck: plexgo.Pointer(true), + IncludePopularLeaves: plexgo.Pointer(true), + IncludePreferences: plexgo.Pointer(true), + IncludeReviews: plexgo.Pointer(true), + IncludeChapters: plexgo.Pointer(true), + IncludeStations: plexgo.Pointer(true), + IncludeExternalMedia: plexgo.Pointer(true), + AsyncAugmentMetadata: plexgo.Pointer(true), + AsyncCheckFiles: plexgo.Pointer(true), + AsyncRefreshAnalysis: plexgo.Pointer(true), + AsyncRefreshLocalMediaAgent: plexgo.Pointer(true), }) if err != nil { log.Fatal(err) @@ -1011,7 +1011,7 @@ func main() { plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -1115,7 +1115,7 @@ func main() { plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -1169,7 +1169,7 @@ func main() { plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index c7fbc7a..b4ea4fa 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -440,7 +440,7 @@ func main() { plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index cae9d12..49b1a6b 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -303,10 +303,10 @@ func main() { res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{ ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), }) if err != nil { log.Fatal(err) @@ -361,10 +361,10 @@ func main() { res, err := s.Plex.GetTokenByPinID(ctx, operations.GetTokenByPinIDRequest{ PinID: 232248, ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index a44e1b2..124b6c3 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -47,7 +47,7 @@ func main() { plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } @@ -106,7 +106,7 @@ func main() { plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index b7e1e3c..390a7f2 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -89,7 +89,7 @@ func main() { plexgo.WithSecurity(""), ) - 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 { log.Fatal(err) } diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index 80ac3cc..f48ff68 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -35,7 +35,7 @@ func main() { plexgo.WithSecurity(""), ) - res, err := s.Statistics.GetStatistics(ctx, plexgo.Int64(4)) + res, err := s.Statistics.GetStatistics(ctx, plexgo.Pointer[int64](4)) if err != nil { log.Fatal(err) } @@ -88,7 +88,7 @@ func main() { plexgo.WithSecurity(""), ) - res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Int64(4)) + res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Pointer[int64](4)) if err != nil { log.Fatal(err) } @@ -141,7 +141,7 @@ func main() { plexgo.WithSecurity(""), ) - res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Int64(4)) + res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Pointer[int64](4)) if err != nil { log.Fatal(err) } diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 87ff083..b325ec8 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -31,17 +31,17 @@ func main() { res, err := s.Users.GetUsers(ctx, operations.GetUsersRequest{ ClientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", - ClientName: plexgo.String("Plex for Roku"), - DeviceNickname: plexgo.String("Roku 3"), - DeviceName: plexgo.String("Chrome"), - DeviceScreenResolution: plexgo.String("1487x1165,2560x1440"), - ClientVersion: plexgo.String("2.4.1"), - Platform: plexgo.String("Roku"), - ClientFeatures: plexgo.String("external-media,indirect-media,hub-style-list"), - Model: plexgo.String("4200X"), - XPlexSessionID: plexgo.String("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"), - XPlexLanguage: plexgo.String("en"), - PlatformVersion: plexgo.String("4.3 build 1057"), + ClientName: plexgo.Pointer("Plex for Roku"), + DeviceNickname: plexgo.Pointer("Roku 3"), + DeviceName: plexgo.Pointer("Chrome"), + DeviceScreenResolution: plexgo.Pointer("1487x1165,2560x1440"), + ClientVersion: plexgo.Pointer("2.4.1"), + Platform: plexgo.Pointer("Roku"), + ClientFeatures: plexgo.Pointer("external-media,indirect-media,hub-style-list"), + Model: plexgo.Pointer("4200X"), + XPlexSessionID: plexgo.Pointer("97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"), + XPlexLanguage: plexgo.Pointer("en"), + PlatformVersion: plexgo.Pointer("4.3 build 1057"), XPlexToken: "CV5xoxjTpFKUzBTShsaf", }) if err != nil { diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index 5d62ece..3267bce 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -106,17 +106,17 @@ func main() { MediaIndex: 0, PartIndex: 0, Protocol: "hls", - FastSeek: plexgo.Float64(0), - DirectPlay: plexgo.Float64(0), - DirectStream: plexgo.Float64(0), - SubtitleSize: plexgo.Float64(100), - Subtites: plexgo.String("burn"), - AudioBoost: plexgo.Float64(100), - Location: plexgo.String("lan"), - MediaBufferSize: plexgo.Float64(102400), - Session: plexgo.String("zvcage8b7rkioqcm8f4uns4c"), - AddDebugOverlay: plexgo.Float64(0), - AutoAdjustQuality: plexgo.Float64(0), + FastSeek: plexgo.Pointer[float64](0), + DirectPlay: plexgo.Pointer[float64](0), + DirectStream: plexgo.Pointer[float64](0), + SubtitleSize: plexgo.Pointer[float64](100), + Subtites: plexgo.Pointer("burn"), + AudioBoost: plexgo.Pointer[float64](100), + Location: plexgo.Pointer("lan"), + MediaBufferSize: plexgo.Pointer[float64](102400), + Session: plexgo.Pointer("zvcage8b7rkioqcm8f4uns4c"), + AddDebugOverlay: plexgo.Pointer[float64](0), + AutoAdjustQuality: plexgo.Pointer[float64](0), }) if err != nil { log.Fatal(err) diff --git a/go.mod b/go.mod index 803b2e5..b1e2a79 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,10 @@ module github.com/LukeHagar/plexgo 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 +) diff --git a/go.sum b/go.sum index c5a75f1..c4c1710 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,10 @@ -github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw= -github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +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= diff --git a/internal/utils/form.go b/internal/utils/form.go index 1ae8a79..97d553e 100644 --- a/internal/utils/form.go +++ b/internal/utils/form.go @@ -10,8 +10,7 @@ import ( "strings" "time" - "github.com/ericlagergren/decimal" - + "github.com/LukeHagar/plexgo/optionalnullable" "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())) case big.Int: formValues.Add(paramName, valToString(objValue.Interface())) - case decimal.Big: - formValues.Add(paramName, valToString(objValue.Interface())) default: var items []string @@ -64,7 +61,13 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue } 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 { 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: + // 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{} iter := objValue.MapRange() diff --git a/internal/utils/headers.go b/internal/utils/headers.go index a07608b..e12f1a3 100644 --- a/internal/utils/headers.go +++ b/internal/utils/headers.go @@ -8,6 +8,8 @@ import ( "net/http" "reflect" "strings" + + "github.com/LukeHagar/plexgo/optionalnullable" ) 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, ",") 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{} iter := objValue.MapRange() diff --git a/internal/utils/json.go b/internal/utils/json.go index b349b9b..bd2ece0 100644 --- a/internal/utils/json.go +++ b/internal/utils/json.go @@ -15,8 +15,6 @@ import ( "unsafe" "github.com/LukeHagar/plexgo/types" - - "github.com/ericlagergren/decimal" ) 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 } + // 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{} for _, key := range val.MapKeys() { @@ -340,17 +343,6 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) b := val.Interface().(big.Int) 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" { 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{}): return []byte(fmt.Sprintf(`"%s"`, tagValue)) default: @@ -566,27 +553,6 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa v.Set(reflect.ValueOf(b)) 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{}): var s string @@ -651,8 +617,6 @@ func isComplexValueType(typ reflect.Type) bool { fallthrough case reflect.TypeOf(big.Int{}): fallthrough - case reflect.TypeOf(decimal.Big{}): - fallthrough case reflect.TypeOf(types.Date{}): return true } diff --git a/internal/utils/pathparams.go b/internal/utils/pathparams.go index ac1bd2a..3f35a4f 100644 --- a/internal/utils/pathparams.go +++ b/internal/utils/pathparams.go @@ -11,8 +11,7 @@ import ( "strings" "time" - "github.com/ericlagergren/decimal" - + "github.com/LukeHagar/plexgo/optionalnullable" "github.com/LukeHagar/plexgo/types" ) @@ -114,6 +113,16 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle } pathParams[parentName] = strings.Join(ppVals, ",") 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 { return nil } @@ -135,8 +144,6 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle pathParams[parentName] = valToString(objValue.Interface()) case big.Int: pathParams[parentName] = valToString(objValue.Interface()) - case decimal.Big: - pathParams[parentName] = valToString(objValue.Interface()) default: var ppVals []string for i := 0; i < objType.NumField(); i++ { diff --git a/internal/utils/queryparams.go b/internal/utils/queryparams.go index 9dd4d9e..bba048f 100644 --- a/internal/utils/queryparams.go +++ b/internal/utils/queryparams.go @@ -12,8 +12,7 @@ import ( "reflect" "time" - "github.com/ericlagergren/decimal" - + "github.com/LukeHagar/plexgo/optionalnullable" "github.com/LukeHagar/plexgo/types" ) @@ -157,6 +156,16 @@ func populateDeepObjectParams(tag *paramTag, objType reflect.Type, objValue refl switch objValue.Kind() { 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) case reflect.Struct: populateDeepObjectParamsStruct(values, tag.ParamName, objValue) @@ -235,7 +244,7 @@ func populateDeepObjectParamsStruct(qsValues url.Values, priorScope string, stru populateDeepObjectParamsMap(qsValues, scope, fieldValue) case reflect.Struct: 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())) continue diff --git a/internal/utils/requestbody.go b/internal/utils/requestbody.go index 8622ec5..596646a 100644 --- a/internal/utils/requestbody.go +++ b/internal/utils/requestbody.go @@ -14,6 +14,8 @@ import ( "path/filepath" "reflect" "regexp" + + "github.com/LukeHagar/plexgo/optionalnullable" ) const ( @@ -340,6 +342,17 @@ func encodeFormData(fieldName string, w io.Writer, data interface{}) error { } } 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() { v := requestValType.MapIndex(k) dataValues.Set(fmt.Sprintf("%v", k.Interface()), valToString(v.Interface())) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index ea624e7..76cbe94 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -14,8 +14,6 @@ import ( "strconv" "strings" "time" - - "github.com/ericlagergren/decimal" ) const ( @@ -183,8 +181,6 @@ func valToString(val interface{}) string { return v.Format(time.RFC3339Nano) case big.Int: return v.String() - case decimal.Big: - return v.String() default: return fmt.Sprintf("%v", v) } diff --git a/models/components/security.go b/models/components/security.go index d8e7578..167129e 100644 --- a/models/components/security.go +++ b/models/components/security.go @@ -6,9 +6,9 @@ type Security struct { AccessToken *string `security:"scheme,type=apiKey,subtype=header,name=X-Plex-Token"` } -func (o *Security) GetAccessToken() *string { - if o == nil { +func (s *Security) GetAccessToken() *string { + if s == nil { return nil } - return o.AccessToken + return s.AccessToken } diff --git a/models/operations/addplaylistcontents.go b/models/operations/addplaylistcontents.go index c141f61..50ad94a 100644 --- a/models/operations/addplaylistcontents.go +++ b/models/operations/addplaylistcontents.go @@ -15,25 +15,25 @@ type AddPlaylistContentsRequest struct { PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"` } -func (o *AddPlaylistContentsRequest) GetPlaylistID() float64 { - if o == nil { +func (a *AddPlaylistContentsRequest) GetPlaylistID() float64 { + if a == nil { return 0.0 } - return o.PlaylistID + return a.PlaylistID } -func (o *AddPlaylistContentsRequest) GetURI() string { - if o == nil { +func (a *AddPlaylistContentsRequest) GetURI() string { + if a == nil { return "" } - return o.URI + return a.URI } -func (o *AddPlaylistContentsRequest) GetPlayQueueID() *float64 { - if o == nil { +func (a *AddPlaylistContentsRequest) GetPlayQueueID() *float64 { + if a == nil { return nil } - return o.PlayQueueID + return a.PlayQueueID } type AddPlaylistContentsMetadata struct { @@ -52,95 +52,95 @@ type AddPlaylistContentsMetadata struct { UpdatedAt *int `json:"updatedAt,omitempty"` } -func (o *AddPlaylistContentsMetadata) GetRatingKey() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetRatingKey() *string { + if a == nil { return nil } - return o.RatingKey + return a.RatingKey } -func (o *AddPlaylistContentsMetadata) GetKey() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetKey() *string { + if a == nil { return nil } - return o.Key + return a.Key } -func (o *AddPlaylistContentsMetadata) GetGUID() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetGUID() *string { + if a == nil { return nil } - return o.GUID + return a.GUID } -func (o *AddPlaylistContentsMetadata) GetType() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetType() *string { + if a == nil { return nil } - return o.Type + return a.Type } -func (o *AddPlaylistContentsMetadata) GetTitle() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetTitle() *string { + if a == nil { return nil } - return o.Title + return a.Title } -func (o *AddPlaylistContentsMetadata) GetSummary() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetSummary() *string { + if a == nil { return nil } - return o.Summary + return a.Summary } -func (o *AddPlaylistContentsMetadata) GetSmart() *bool { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetSmart() *bool { + if a == nil { return nil } - return o.Smart + return a.Smart } -func (o *AddPlaylistContentsMetadata) GetPlaylistType() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetPlaylistType() *string { + if a == nil { return nil } - return o.PlaylistType + return a.PlaylistType } -func (o *AddPlaylistContentsMetadata) GetComposite() *string { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetComposite() *string { + if a == nil { return nil } - return o.Composite + return a.Composite } -func (o *AddPlaylistContentsMetadata) GetDuration() *int { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetDuration() *int { + if a == nil { return nil } - return o.Duration + return a.Duration } -func (o *AddPlaylistContentsMetadata) GetLeafCount() *int { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetLeafCount() *int { + if a == nil { return nil } - return o.LeafCount + return a.LeafCount } -func (o *AddPlaylistContentsMetadata) GetAddedAt() *int { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetAddedAt() *int { + if a == nil { return nil } - return o.AddedAt + return a.AddedAt } -func (o *AddPlaylistContentsMetadata) GetUpdatedAt() *int { - if o == nil { +func (a *AddPlaylistContentsMetadata) GetUpdatedAt() *int { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } type AddPlaylistContentsMediaContainer struct { @@ -150,32 +150,32 @@ type AddPlaylistContentsMediaContainer struct { Metadata []AddPlaylistContentsMetadata `json:"Metadata,omitempty"` } -func (o *AddPlaylistContentsMediaContainer) GetSize() *int { - if o == nil { +func (a *AddPlaylistContentsMediaContainer) GetSize() *int { + if a == nil { return nil } - return o.Size + return a.Size } -func (o *AddPlaylistContentsMediaContainer) GetLeafCountAdded() *int { - if o == nil { +func (a *AddPlaylistContentsMediaContainer) GetLeafCountAdded() *int { + if a == nil { return nil } - return o.LeafCountAdded + return a.LeafCountAdded } -func (o *AddPlaylistContentsMediaContainer) GetLeafCountRequested() *int { - if o == nil { +func (a *AddPlaylistContentsMediaContainer) GetLeafCountRequested() *int { + if a == nil { return nil } - return o.LeafCountRequested + return a.LeafCountRequested } -func (o *AddPlaylistContentsMediaContainer) GetMetadata() []AddPlaylistContentsMetadata { - if o == nil { +func (a *AddPlaylistContentsMediaContainer) GetMetadata() []AddPlaylistContentsMetadata { + if a == nil { return nil } - return o.Metadata + return a.Metadata } // AddPlaylistContentsResponseBody - Playlist Updated @@ -183,11 +183,11 @@ type AddPlaylistContentsResponseBody struct { MediaContainer *AddPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *AddPlaylistContentsResponseBody) GetMediaContainer() *AddPlaylistContentsMediaContainer { - if o == nil { +func (a *AddPlaylistContentsResponseBody) GetMediaContainer() *AddPlaylistContentsMediaContainer { + if a == nil { return nil } - return o.MediaContainer + return a.MediaContainer } type AddPlaylistContentsResponse struct { @@ -201,30 +201,30 @@ type AddPlaylistContentsResponse struct { Object *AddPlaylistContentsResponseBody } -func (o *AddPlaylistContentsResponse) GetContentType() string { - if o == nil { +func (a *AddPlaylistContentsResponse) GetContentType() string { + if a == nil { return "" } - return o.ContentType + return a.ContentType } -func (o *AddPlaylistContentsResponse) GetStatusCode() int { - if o == nil { +func (a *AddPlaylistContentsResponse) GetStatusCode() int { + if a == nil { return 0 } - return o.StatusCode + return a.StatusCode } -func (o *AddPlaylistContentsResponse) GetRawResponse() *http.Response { - if o == nil { +func (a *AddPlaylistContentsResponse) GetRawResponse() *http.Response { + if a == nil { return nil } - return o.RawResponse + return a.RawResponse } -func (o *AddPlaylistContentsResponse) GetObject() *AddPlaylistContentsResponseBody { - if o == nil { +func (a *AddPlaylistContentsResponse) GetObject() *AddPlaylistContentsResponseBody { + if a == nil { return nil } - return o.Object + return a.Object } diff --git a/models/operations/applyupdates.go b/models/operations/applyupdates.go index 5f114ae..13cfac8 100644 --- a/models/operations/applyupdates.go +++ b/models/operations/applyupdates.go @@ -69,18 +69,18 @@ type ApplyUpdatesRequest struct { Skip *Skip `queryParam:"style=form,explode=true,name=skip"` } -func (o *ApplyUpdatesRequest) GetTonight() *Tonight { - if o == nil { +func (a *ApplyUpdatesRequest) GetTonight() *Tonight { + if a == nil { return nil } - return o.Tonight + return a.Tonight } -func (o *ApplyUpdatesRequest) GetSkip() *Skip { - if o == nil { +func (a *ApplyUpdatesRequest) GetSkip() *Skip { + if a == nil { return nil } - return o.Skip + return a.Skip } type ApplyUpdatesResponse struct { @@ -92,23 +92,23 @@ type ApplyUpdatesResponse struct { RawResponse *http.Response } -func (o *ApplyUpdatesResponse) GetContentType() string { - if o == nil { +func (a *ApplyUpdatesResponse) GetContentType() string { + if a == nil { return "" } - return o.ContentType + return a.ContentType } -func (o *ApplyUpdatesResponse) GetStatusCode() int { - if o == nil { +func (a *ApplyUpdatesResponse) GetStatusCode() int { + if a == nil { return 0 } - return o.StatusCode + return a.StatusCode } -func (o *ApplyUpdatesResponse) GetRawResponse() *http.Response { - if o == nil { +func (a *ApplyUpdatesResponse) GetRawResponse() *http.Response { + if a == nil { return nil } - return o.RawResponse + return a.RawResponse } diff --git a/models/operations/cancelserveractivities.go b/models/operations/cancelserveractivities.go index 6659dc7..ceec833 100644 --- a/models/operations/cancelserveractivities.go +++ b/models/operations/cancelserveractivities.go @@ -11,11 +11,11 @@ type CancelServerActivitiesRequest struct { ActivityUUID string `pathParam:"style=simple,explode=false,name=activityUUID"` } -func (o *CancelServerActivitiesRequest) GetActivityUUID() string { - if o == nil { +func (c *CancelServerActivitiesRequest) GetActivityUUID() string { + if c == nil { return "" } - return o.ActivityUUID + return c.ActivityUUID } type CancelServerActivitiesResponse struct { @@ -27,23 +27,23 @@ type CancelServerActivitiesResponse struct { RawResponse *http.Response } -func (o *CancelServerActivitiesResponse) GetContentType() string { - if o == nil { +func (c *CancelServerActivitiesResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CancelServerActivitiesResponse) GetStatusCode() int { - if o == nil { +func (c *CancelServerActivitiesResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CancelServerActivitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CancelServerActivitiesResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/models/operations/checkforupdates.go b/models/operations/checkforupdates.go index 6411f29..460436c 100644 --- a/models/operations/checkforupdates.go +++ b/models/operations/checkforupdates.go @@ -40,11 +40,11 @@ type CheckForUpdatesRequest struct { Download *Download `queryParam:"style=form,explode=true,name=download"` } -func (o *CheckForUpdatesRequest) GetDownload() *Download { - if o == nil { +func (c *CheckForUpdatesRequest) GetDownload() *Download { + if c == nil { return nil } - return o.Download + return c.Download } type CheckForUpdatesResponse struct { @@ -56,23 +56,23 @@ type CheckForUpdatesResponse struct { RawResponse *http.Response } -func (o *CheckForUpdatesResponse) GetContentType() string { - if o == nil { +func (c *CheckForUpdatesResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CheckForUpdatesResponse) GetStatusCode() int { - if o == nil { +func (c *CheckForUpdatesResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CheckForUpdatesResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CheckForUpdatesResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/models/operations/clearplaylistcontents.go b/models/operations/clearplaylistcontents.go index 3127b39..5af937a 100644 --- a/models/operations/clearplaylistcontents.go +++ b/models/operations/clearplaylistcontents.go @@ -11,11 +11,11 @@ type ClearPlaylistContentsRequest struct { PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"` } -func (o *ClearPlaylistContentsRequest) GetPlaylistID() float64 { - if o == nil { +func (c *ClearPlaylistContentsRequest) GetPlaylistID() float64 { + if c == nil { return 0.0 } - return o.PlaylistID + return c.PlaylistID } type ClearPlaylistContentsResponse struct { @@ -27,23 +27,23 @@ type ClearPlaylistContentsResponse struct { RawResponse *http.Response } -func (o *ClearPlaylistContentsResponse) GetContentType() string { - if o == nil { +func (c *ClearPlaylistContentsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *ClearPlaylistContentsResponse) GetStatusCode() int { - if o == nil { +func (c *ClearPlaylistContentsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *ClearPlaylistContentsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *ClearPlaylistContentsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/models/operations/createplaylist.go b/models/operations/createplaylist.go index 501a95b..96817d2 100644 --- a/models/operations/createplaylist.go +++ b/models/operations/createplaylist.go @@ -61,39 +61,39 @@ type CreatePlaylistRequest struct { PlayQueueID *float64 `queryParam:"style=form,explode=true,name=playQueueID"` } -func (o *CreatePlaylistRequest) GetTitle() string { - if o == nil { +func (c *CreatePlaylistRequest) GetTitle() string { + if c == nil { return "" } - return o.Title + return c.Title } -func (o *CreatePlaylistRequest) GetType() CreatePlaylistQueryParamType { - if o == nil { +func (c *CreatePlaylistRequest) GetType() CreatePlaylistQueryParamType { + if c == nil { return CreatePlaylistQueryParamType("") } - return o.Type + return c.Type } -func (o *CreatePlaylistRequest) GetSmart() Smart { - if o == nil { +func (c *CreatePlaylistRequest) GetSmart() Smart { + if c == nil { return Smart(0) } - return o.Smart + return c.Smart } -func (o *CreatePlaylistRequest) GetURI() string { - if o == nil { +func (c *CreatePlaylistRequest) GetURI() string { + if c == nil { return "" } - return o.URI + return c.URI } -func (o *CreatePlaylistRequest) GetPlayQueueID() *float64 { - if o == nil { +func (c *CreatePlaylistRequest) GetPlayQueueID() *float64 { + if c == nil { return nil } - return o.PlayQueueID + return c.PlayQueueID } type CreatePlaylistMetadata struct { @@ -115,116 +115,116 @@ type CreatePlaylistMetadata struct { Duration *int `json:"duration,omitempty"` } -func (o *CreatePlaylistMetadata) GetRatingKey() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetRatingKey() *string { + if c == nil { return nil } - return o.RatingKey + return c.RatingKey } -func (o *CreatePlaylistMetadata) GetKey() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetKey() *string { + if c == nil { return nil } - return o.Key + return c.Key } -func (o *CreatePlaylistMetadata) GetGUID() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetGUID() *string { + if c == nil { return nil } - return o.GUID + return c.GUID } -func (o *CreatePlaylistMetadata) GetType() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetType() *string { + if c == nil { return nil } - return o.Type + return c.Type } -func (o *CreatePlaylistMetadata) GetTitle() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetTitle() *string { + if c == nil { return nil } - return o.Title + return c.Title } -func (o *CreatePlaylistMetadata) GetSummary() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetSummary() *string { + if c == nil { return nil } - return o.Summary + return c.Summary } -func (o *CreatePlaylistMetadata) GetSmart() *bool { - if o == nil { +func (c *CreatePlaylistMetadata) GetSmart() *bool { + if c == nil { return nil } - return o.Smart + return c.Smart } -func (o *CreatePlaylistMetadata) GetPlaylistType() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetPlaylistType() *string { + if c == nil { return nil } - return o.PlaylistType + return c.PlaylistType } -func (o *CreatePlaylistMetadata) GetIcon() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetIcon() *string { + if c == nil { return nil } - return o.Icon + return c.Icon } -func (o *CreatePlaylistMetadata) GetViewCount() *int { - if o == nil { +func (c *CreatePlaylistMetadata) GetViewCount() *int { + if c == nil { return nil } - return o.ViewCount + return c.ViewCount } -func (o *CreatePlaylistMetadata) GetLastViewedAt() *int { - if o == nil { +func (c *CreatePlaylistMetadata) GetLastViewedAt() *int { + if c == nil { return nil } - return o.LastViewedAt + return c.LastViewedAt } -func (o *CreatePlaylistMetadata) GetLeafCount() *int { - if o == nil { +func (c *CreatePlaylistMetadata) GetLeafCount() *int { + if c == nil { return nil } - return o.LeafCount + return c.LeafCount } -func (o *CreatePlaylistMetadata) GetAddedAt() *int { - if o == nil { +func (c *CreatePlaylistMetadata) GetAddedAt() *int { + if c == nil { return nil } - return o.AddedAt + return c.AddedAt } -func (o *CreatePlaylistMetadata) GetUpdatedAt() *int { - if o == nil { +func (c *CreatePlaylistMetadata) GetUpdatedAt() *int { + if c == nil { return nil } - return o.UpdatedAt + return c.UpdatedAt } -func (o *CreatePlaylistMetadata) GetComposite() *string { - if o == nil { +func (c *CreatePlaylistMetadata) GetComposite() *string { + if c == nil { return nil } - return o.Composite + return c.Composite } -func (o *CreatePlaylistMetadata) GetDuration() *int { - if o == nil { +func (c *CreatePlaylistMetadata) GetDuration() *int { + if c == nil { return nil } - return o.Duration + return c.Duration } type CreatePlaylistMediaContainer struct { @@ -232,18 +232,18 @@ type CreatePlaylistMediaContainer struct { Metadata []CreatePlaylistMetadata `json:"Metadata,omitempty"` } -func (o *CreatePlaylistMediaContainer) GetSize() *int { - if o == nil { +func (c *CreatePlaylistMediaContainer) GetSize() *int { + if c == nil { return nil } - return o.Size + return c.Size } -func (o *CreatePlaylistMediaContainer) GetMetadata() []CreatePlaylistMetadata { - if o == nil { +func (c *CreatePlaylistMediaContainer) GetMetadata() []CreatePlaylistMetadata { + if c == nil { return nil } - return o.Metadata + return c.Metadata } // CreatePlaylistResponseBody - returns all playlists @@ -251,11 +251,11 @@ type CreatePlaylistResponseBody struct { MediaContainer *CreatePlaylistMediaContainer `json:"MediaContainer,omitempty"` } -func (o *CreatePlaylistResponseBody) GetMediaContainer() *CreatePlaylistMediaContainer { - if o == nil { +func (c *CreatePlaylistResponseBody) GetMediaContainer() *CreatePlaylistMediaContainer { + if c == nil { return nil } - return o.MediaContainer + return c.MediaContainer } type CreatePlaylistResponse struct { @@ -269,30 +269,30 @@ type CreatePlaylistResponse struct { Object *CreatePlaylistResponseBody } -func (o *CreatePlaylistResponse) GetContentType() string { - if o == nil { +func (c *CreatePlaylistResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreatePlaylistResponse) GetStatusCode() int { - if o == nil { +func (c *CreatePlaylistResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreatePlaylistResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreatePlaylistResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreatePlaylistResponse) GetObject() *CreatePlaylistResponseBody { - if o == nil { +func (c *CreatePlaylistResponse) GetObject() *CreatePlaylistResponseBody { + if c == nil { return nil } - return o.Object + return c.Object } diff --git a/models/operations/deletelibrary.go b/models/operations/deletelibrary.go index 3d24361..4579196 100644 --- a/models/operations/deletelibrary.go +++ b/models/operations/deletelibrary.go @@ -13,11 +13,11 @@ type DeleteLibraryRequest struct { SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"` } -func (o *DeleteLibraryRequest) GetSectionKey() int { - if o == nil { +func (d *DeleteLibraryRequest) GetSectionKey() int { + if d == nil { return 0 } - return o.SectionKey + return d.SectionKey } type DeleteLibraryResponse struct { @@ -29,23 +29,23 @@ type DeleteLibraryResponse struct { RawResponse *http.Response } -func (o *DeleteLibraryResponse) GetContentType() string { - if o == nil { +func (d *DeleteLibraryResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteLibraryResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteLibraryResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteLibraryResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteLibraryResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } diff --git a/models/operations/deleteplaylist.go b/models/operations/deleteplaylist.go index 199b937..db8efa6 100644 --- a/models/operations/deleteplaylist.go +++ b/models/operations/deleteplaylist.go @@ -11,11 +11,11 @@ type DeletePlaylistRequest struct { PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"` } -func (o *DeletePlaylistRequest) GetPlaylistID() float64 { - if o == nil { +func (d *DeletePlaylistRequest) GetPlaylistID() float64 { + if d == nil { return 0.0 } - return o.PlaylistID + return d.PlaylistID } type DeletePlaylistResponse struct { @@ -27,23 +27,23 @@ type DeletePlaylistResponse struct { RawResponse *http.Response } -func (o *DeletePlaylistResponse) GetContentType() string { - if o == nil { +func (d *DeletePlaylistResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeletePlaylistResponse) GetStatusCode() int { - if o == nil { +func (d *DeletePlaylistResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeletePlaylistResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeletePlaylistResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } diff --git a/models/operations/enablepapertrail.go b/models/operations/enablepapertrail.go index 9de0163..d74dc3b 100644 --- a/models/operations/enablepapertrail.go +++ b/models/operations/enablepapertrail.go @@ -15,23 +15,23 @@ type EnablePaperTrailResponse struct { RawResponse *http.Response } -func (o *EnablePaperTrailResponse) GetContentType() string { - if o == nil { +func (e *EnablePaperTrailResponse) GetContentType() string { + if e == nil { return "" } - return o.ContentType + return e.ContentType } -func (o *EnablePaperTrailResponse) GetStatusCode() int { - if o == nil { +func (e *EnablePaperTrailResponse) GetStatusCode() int { + if e == nil { return 0 } - return o.StatusCode + return e.StatusCode } -func (o *EnablePaperTrailResponse) GetRawResponse() *http.Response { - if o == nil { +func (e *EnablePaperTrailResponse) GetRawResponse() *http.Response { + if e == nil { return nil } - return o.RawResponse + return e.RawResponse } diff --git a/models/operations/getactorslibrary.go b/models/operations/getactorslibrary.go index d00a92c..c326704 100644 --- a/models/operations/getactorslibrary.go +++ b/models/operations/getactorslibrary.go @@ -45,18 +45,18 @@ type GetActorsLibraryRequest struct { Type GetActorsLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` } -func (o *GetActorsLibraryRequest) GetSectionKey() int { - if o == nil { +func (g *GetActorsLibraryRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } -func (o *GetActorsLibraryRequest) GetType() GetActorsLibraryQueryParamType { - if o == nil { +func (g *GetActorsLibraryRequest) GetType() GetActorsLibraryQueryParamType { + if g == nil { return GetActorsLibraryQueryParamType(0) } - return o.Type + return g.Type } type GetActorsLibraryDirectory struct { @@ -70,32 +70,32 @@ type GetActorsLibraryDirectory struct { Title string `json:"title"` } -func (o *GetActorsLibraryDirectory) GetFastKey() string { - if o == nil { +func (g *GetActorsLibraryDirectory) GetFastKey() string { + if g == nil { return "" } - return o.FastKey + return g.FastKey } -func (o *GetActorsLibraryDirectory) GetThumb() string { - if o == nil { +func (g *GetActorsLibraryDirectory) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetActorsLibraryDirectory) GetKey() string { - if o == nil { +func (g *GetActorsLibraryDirectory) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetActorsLibraryDirectory) GetTitle() string { - if o == nil { +func (g *GetActorsLibraryDirectory) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetActorsLibraryMediaContainer struct { @@ -127,95 +127,95 @@ type GetActorsLibraryMediaContainer struct { Directory []GetActorsLibraryDirectory `json:"Directory,omitempty"` } -func (o *GetActorsLibraryMediaContainer) GetSize() int { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetActorsLibraryMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetActorsLibraryMediaContainer) GetArt() string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetActorsLibraryMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetActorsLibraryMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetActorsLibraryMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetActorsLibraryMediaContainer) GetNocache() bool { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetNocache() bool { + if g == nil { return false } - return o.Nocache + return g.Nocache } -func (o *GetActorsLibraryMediaContainer) GetThumb() string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetActorsLibraryMediaContainer) GetTitle1() string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetTitle1() string { + if g == nil { return "" } - return o.Title1 + return g.Title1 } -func (o *GetActorsLibraryMediaContainer) GetTitle2() string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetTitle2() string { + if g == nil { return "" } - return o.Title2 + return g.Title2 } -func (o *GetActorsLibraryMediaContainer) GetViewGroup() string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetViewGroup() string { + if g == nil { return "" } - return o.ViewGroup + return g.ViewGroup } -func (o *GetActorsLibraryMediaContainer) GetViewMode() *string { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetViewMode() *string { + if g == nil { return nil } - return o.ViewMode + return g.ViewMode } -func (o *GetActorsLibraryMediaContainer) GetDirectory() []GetActorsLibraryDirectory { - if o == nil { +func (g *GetActorsLibraryMediaContainer) GetDirectory() []GetActorsLibraryDirectory { + if g == nil { return nil } - return o.Directory + return g.Directory } // GetActorsLibraryResponseBody - Successful response containing media container data. @@ -223,11 +223,11 @@ type GetActorsLibraryResponseBody struct { MediaContainer *GetActorsLibraryMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetActorsLibraryResponseBody) GetMediaContainer() *GetActorsLibraryMediaContainer { - if o == nil { +func (g *GetActorsLibraryResponseBody) GetMediaContainer() *GetActorsLibraryMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetActorsLibraryResponse struct { @@ -241,30 +241,30 @@ type GetActorsLibraryResponse struct { Object *GetActorsLibraryResponseBody } -func (o *GetActorsLibraryResponse) GetContentType() string { - if o == nil { +func (g *GetActorsLibraryResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetActorsLibraryResponse) GetStatusCode() int { - if o == nil { +func (g *GetActorsLibraryResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetActorsLibraryResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetActorsLibraryResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetActorsLibraryResponse) GetObject() *GetActorsLibraryResponseBody { - if o == nil { +func (g *GetActorsLibraryResponse) GetObject() *GetActorsLibraryResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getalllibraries.go b/models/operations/getalllibraries.go index 1525058..717ac4a 100644 --- a/models/operations/getalllibraries.go +++ b/models/operations/getalllibraries.go @@ -66,18 +66,18 @@ type GetAllLibrariesLocation struct { Path string `json:"path"` } -func (o *GetAllLibrariesLocation) GetID() int { - if o == nil { +func (g *GetAllLibrariesLocation) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetAllLibrariesLocation) GetPath() string { - if o == nil { +func (g *GetAllLibrariesLocation) GetPath() string { + if g == nil { return "" } - return o.Path + return g.Path } type GetAllLibrariesDirectory struct { @@ -135,151 +135,151 @@ func (g *GetAllLibrariesDirectory) UnmarshalJSON(data []byte) error { return nil } -func (o *GetAllLibrariesDirectory) GetAllowSync() bool { - if o == nil { +func (g *GetAllLibrariesDirectory) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetAllLibrariesDirectory) GetArt() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetAllLibrariesDirectory) GetComposite() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetComposite() string { + if g == nil { return "" } - return o.Composite + return g.Composite } -func (o *GetAllLibrariesDirectory) GetFilters() bool { - if o == nil { +func (g *GetAllLibrariesDirectory) GetFilters() bool { + if g == nil { return false } - return o.Filters + return g.Filters } -func (o *GetAllLibrariesDirectory) GetRefreshing() bool { - if o == nil { +func (g *GetAllLibrariesDirectory) GetRefreshing() bool { + if g == nil { return false } - return o.Refreshing + return g.Refreshing } -func (o *GetAllLibrariesDirectory) GetThumb() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetAllLibrariesDirectory) GetKey() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetAllLibrariesDirectory) GetType() GetAllLibrariesType { - if o == nil { +func (g *GetAllLibrariesDirectory) GetType() GetAllLibrariesType { + if g == nil { return GetAllLibrariesType("") } - return o.Type + return g.Type } -func (o *GetAllLibrariesDirectory) GetTitle() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetAllLibrariesDirectory) GetAgent() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetAgent() string { + if g == nil { return "" } - return o.Agent + return g.Agent } -func (o *GetAllLibrariesDirectory) GetScanner() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetScanner() string { + if g == nil { return "" } - return o.Scanner + return g.Scanner } -func (o *GetAllLibrariesDirectory) GetLanguage() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetLanguage() string { + if g == nil { return "" } - return o.Language + return g.Language } -func (o *GetAllLibrariesDirectory) GetUUID() string { - if o == nil { +func (g *GetAllLibrariesDirectory) GetUUID() string { + if g == nil { return "" } - return o.UUID + return g.UUID } -func (o *GetAllLibrariesDirectory) GetUpdatedAt() int64 { - if o == nil { +func (g *GetAllLibrariesDirectory) GetUpdatedAt() int64 { + if g == nil { return 0 } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetAllLibrariesDirectory) GetCreatedAt() *int64 { - if o == nil { +func (g *GetAllLibrariesDirectory) GetCreatedAt() *int64 { + if g == nil { return nil } - return o.CreatedAt + return g.CreatedAt } -func (o *GetAllLibrariesDirectory) GetScannedAt() int64 { - if o == nil { +func (g *GetAllLibrariesDirectory) GetScannedAt() int64 { + if g == nil { return 0 } - return o.ScannedAt + return g.ScannedAt } -func (o *GetAllLibrariesDirectory) GetContent() bool { - if o == nil { +func (g *GetAllLibrariesDirectory) GetContent() bool { + if g == nil { return false } - return o.Content + return g.Content } -func (o *GetAllLibrariesDirectory) GetDirectory() bool { - if o == nil { +func (g *GetAllLibrariesDirectory) GetDirectory() bool { + if g == nil { return false } - return o.Directory + return g.Directory } -func (o *GetAllLibrariesDirectory) GetContentChangedAt() int64 { - if o == nil { +func (g *GetAllLibrariesDirectory) GetContentChangedAt() int64 { + if g == nil { return 0 } - return o.ContentChangedAt + return g.ContentChangedAt } -func (o *GetAllLibrariesDirectory) GetHidden() *Hidden { - if o == nil { +func (g *GetAllLibrariesDirectory) GetHidden() *Hidden { + if g == nil { return nil } - return o.Hidden + return g.Hidden } -func (o *GetAllLibrariesDirectory) GetLocation() []GetAllLibrariesLocation { - if o == nil { +func (g *GetAllLibrariesDirectory) GetLocation() []GetAllLibrariesLocation { + if g == nil { return []GetAllLibrariesLocation{} } - return o.Location + return g.Location } type GetAllLibrariesMediaContainer struct { @@ -292,32 +292,32 @@ type GetAllLibrariesMediaContainer struct { Directory []GetAllLibrariesDirectory `json:"Directory,omitempty"` } -func (o *GetAllLibrariesMediaContainer) GetSize() int { - if o == nil { +func (g *GetAllLibrariesMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetAllLibrariesMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetAllLibrariesMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetAllLibrariesMediaContainer) GetTitle1() string { - if o == nil { +func (g *GetAllLibrariesMediaContainer) GetTitle1() string { + if g == nil { return "" } - return o.Title1 + return g.Title1 } -func (o *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory { - if o == nil { +func (g *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory { + if g == nil { return nil } - return o.Directory + return g.Directory } // GetAllLibrariesResponseBody - The libraries available on the Server @@ -325,11 +325,11 @@ type GetAllLibrariesResponseBody struct { MediaContainer *GetAllLibrariesMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetAllLibrariesResponseBody) GetMediaContainer() *GetAllLibrariesMediaContainer { - if o == nil { +func (g *GetAllLibrariesResponseBody) GetMediaContainer() *GetAllLibrariesMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetAllLibrariesResponse struct { @@ -343,30 +343,30 @@ type GetAllLibrariesResponse struct { Object *GetAllLibrariesResponseBody } -func (o *GetAllLibrariesResponse) GetContentType() string { - if o == nil { +func (g *GetAllLibrariesResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetAllLibrariesResponse) GetStatusCode() int { - if o == nil { +func (g *GetAllLibrariesResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetAllLibrariesResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetAllLibrariesResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetAllLibrariesResponse) GetObject() *GetAllLibrariesResponseBody { - if o == nil { +func (g *GetAllLibrariesResponse) GetObject() *GetAllLibrariesResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getavailableclients.go b/models/operations/getavailableclients.go index cbfe0dc..b1f0fbb 100644 --- a/models/operations/getavailableclients.go +++ b/models/operations/getavailableclients.go @@ -20,81 +20,81 @@ type Server struct { ProtocolCapabilities *string `json:"protocolCapabilities,omitempty"` } -func (o *Server) GetName() *string { - if o == nil { +func (s *Server) GetName() *string { + if s == nil { return nil } - return o.Name + return s.Name } -func (o *Server) GetHost() *string { - if o == nil { +func (s *Server) GetHost() *string { + if s == nil { return nil } - return o.Host + return s.Host } -func (o *Server) GetAddress() *string { - if o == nil { +func (s *Server) GetAddress() *string { + if s == nil { return nil } - return o.Address + return s.Address } -func (o *Server) GetPort() *float64 { - if o == nil { +func (s *Server) GetPort() *float64 { + if s == nil { return nil } - return o.Port + return s.Port } -func (o *Server) GetMachineIdentifier() *string { - if o == nil { +func (s *Server) GetMachineIdentifier() *string { + if s == nil { return nil } - return o.MachineIdentifier + return s.MachineIdentifier } -func (o *Server) GetVersion() *string { - if o == nil { +func (s *Server) GetVersion() *string { + if s == nil { return nil } - return o.Version + return s.Version } -func (o *Server) GetProtocol() *string { - if o == nil { +func (s *Server) GetProtocol() *string { + if s == nil { return nil } - return o.Protocol + return s.Protocol } -func (o *Server) GetProduct() *string { - if o == nil { +func (s *Server) GetProduct() *string { + if s == nil { return nil } - return o.Product + return s.Product } -func (o *Server) GetDeviceClass() *string { - if o == nil { +func (s *Server) GetDeviceClass() *string { + if s == nil { return nil } - return o.DeviceClass + return s.DeviceClass } -func (o *Server) GetProtocolVersion() *float64 { - if o == nil { +func (s *Server) GetProtocolVersion() *float64 { + if s == nil { return nil } - return o.ProtocolVersion + return s.ProtocolVersion } -func (o *Server) GetProtocolCapabilities() *string { - if o == nil { +func (s *Server) GetProtocolCapabilities() *string { + if s == nil { return nil } - return o.ProtocolCapabilities + return s.ProtocolCapabilities } type GetAvailableClientsMediaContainer struct { @@ -102,18 +102,18 @@ type GetAvailableClientsMediaContainer struct { Server []Server `json:"Server,omitempty"` } -func (o *GetAvailableClientsMediaContainer) GetSize() *float64 { - if o == nil { +func (g *GetAvailableClientsMediaContainer) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetAvailableClientsMediaContainer) GetServer() []Server { - if o == nil { +func (g *GetAvailableClientsMediaContainer) GetServer() []Server { + if g == nil { return nil } - return o.Server + return g.Server } // GetAvailableClientsResponseBody - Available Clients @@ -121,11 +121,11 @@ type GetAvailableClientsResponseBody struct { MediaContainer *GetAvailableClientsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetAvailableClientsResponseBody) GetMediaContainer() *GetAvailableClientsMediaContainer { - if o == nil { +func (g *GetAvailableClientsResponseBody) GetMediaContainer() *GetAvailableClientsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetAvailableClientsResponse struct { @@ -139,30 +139,30 @@ type GetAvailableClientsResponse struct { Object *GetAvailableClientsResponseBody } -func (o *GetAvailableClientsResponse) GetContentType() string { - if o == nil { +func (g *GetAvailableClientsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetAvailableClientsResponse) GetStatusCode() int { - if o == nil { +func (g *GetAvailableClientsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetAvailableClientsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetAvailableClientsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetAvailableClientsResponse) GetObject() *GetAvailableClientsResponseBody { - if o == nil { +func (g *GetAvailableClientsResponse) GetObject() *GetAvailableClientsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getbandwidthstatistics.go b/models/operations/getbandwidthstatistics.go index c8ccf05..8a37256 100644 --- a/models/operations/getbandwidthstatistics.go +++ b/models/operations/getbandwidthstatistics.go @@ -13,11 +13,11 @@ type GetBandwidthStatisticsRequest struct { Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"` } -func (o *GetBandwidthStatisticsRequest) GetTimespan() *int64 { - if o == nil { +func (g *GetBandwidthStatisticsRequest) GetTimespan() *int64 { + if g == nil { return nil } - return o.Timespan + return g.Timespan } type GetBandwidthStatisticsDevice struct { @@ -28,39 +28,39 @@ type GetBandwidthStatisticsDevice struct { CreatedAt *int `json:"createdAt,omitempty"` } -func (o *GetBandwidthStatisticsDevice) GetID() *int { - if o == nil { +func (g *GetBandwidthStatisticsDevice) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetBandwidthStatisticsDevice) GetName() *string { - if o == nil { +func (g *GetBandwidthStatisticsDevice) GetName() *string { + if g == nil { return nil } - return o.Name + return g.Name } -func (o *GetBandwidthStatisticsDevice) GetPlatform() *string { - if o == nil { +func (g *GetBandwidthStatisticsDevice) GetPlatform() *string { + if g == nil { return nil } - return o.Platform + return g.Platform } -func (o *GetBandwidthStatisticsDevice) GetClientIdentifier() *string { - if o == nil { +func (g *GetBandwidthStatisticsDevice) GetClientIdentifier() *string { + if g == nil { return nil } - return o.ClientIdentifier + return g.ClientIdentifier } -func (o *GetBandwidthStatisticsDevice) GetCreatedAt() *int { - if o == nil { +func (g *GetBandwidthStatisticsDevice) GetCreatedAt() *int { + if g == nil { return nil } - return o.CreatedAt + return g.CreatedAt } type GetBandwidthStatisticsAccount struct { @@ -74,60 +74,60 @@ type GetBandwidthStatisticsAccount struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetBandwidthStatisticsAccount) GetID() *int { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetBandwidthStatisticsAccount) GetKey() *string { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetBandwidthStatisticsAccount) GetName() *string { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetName() *string { + if g == nil { return nil } - return o.Name + return g.Name } -func (o *GetBandwidthStatisticsAccount) GetDefaultAudioLanguage() *string { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetDefaultAudioLanguage() *string { + if g == nil { return nil } - return o.DefaultAudioLanguage + return g.DefaultAudioLanguage } -func (o *GetBandwidthStatisticsAccount) GetAutoSelectAudio() *bool { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetAutoSelectAudio() *bool { + if g == nil { return nil } - return o.AutoSelectAudio + return g.AutoSelectAudio } -func (o *GetBandwidthStatisticsAccount) GetDefaultSubtitleLanguage() *string { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetDefaultSubtitleLanguage() *string { + if g == nil { return nil } - return o.DefaultSubtitleLanguage + return g.DefaultSubtitleLanguage } -func (o *GetBandwidthStatisticsAccount) GetSubtitleMode() *int { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetSubtitleMode() *int { + if g == nil { return nil } - return o.SubtitleMode + return g.SubtitleMode } -func (o *GetBandwidthStatisticsAccount) GetThumb() *string { - if o == nil { +func (g *GetBandwidthStatisticsAccount) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type StatisticsBandwidth struct { @@ -139,46 +139,46 @@ type StatisticsBandwidth struct { Bytes *int64 `json:"bytes,omitempty"` } -func (o *StatisticsBandwidth) GetAccountID() *int { - if o == nil { +func (s *StatisticsBandwidth) GetAccountID() *int { + if s == nil { return nil } - return o.AccountID + return s.AccountID } -func (o *StatisticsBandwidth) GetDeviceID() *int { - if o == nil { +func (s *StatisticsBandwidth) GetDeviceID() *int { + if s == nil { return nil } - return o.DeviceID + return s.DeviceID } -func (o *StatisticsBandwidth) GetTimespan() *int64 { - if o == nil { +func (s *StatisticsBandwidth) GetTimespan() *int64 { + if s == nil { return nil } - return o.Timespan + return s.Timespan } -func (o *StatisticsBandwidth) GetAt() *int { - if o == nil { +func (s *StatisticsBandwidth) GetAt() *int { + if s == nil { return nil } - return o.At + return s.At } -func (o *StatisticsBandwidth) GetLan() *bool { - if o == nil { +func (s *StatisticsBandwidth) GetLan() *bool { + if s == nil { return nil } - return o.Lan + return s.Lan } -func (o *StatisticsBandwidth) GetBytes() *int64 { - if o == nil { +func (s *StatisticsBandwidth) GetBytes() *int64 { + if s == nil { return nil } - return o.Bytes + return s.Bytes } type GetBandwidthStatisticsMediaContainer struct { @@ -188,32 +188,32 @@ type GetBandwidthStatisticsMediaContainer struct { StatisticsBandwidth []StatisticsBandwidth `json:"StatisticsBandwidth,omitempty"` } -func (o *GetBandwidthStatisticsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetBandwidthStatisticsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetBandwidthStatisticsMediaContainer) GetDevice() []GetBandwidthStatisticsDevice { - if o == nil { +func (g *GetBandwidthStatisticsMediaContainer) GetDevice() []GetBandwidthStatisticsDevice { + if g == nil { return nil } - return o.Device + return g.Device } -func (o *GetBandwidthStatisticsMediaContainer) GetAccount() []GetBandwidthStatisticsAccount { - if o == nil { +func (g *GetBandwidthStatisticsMediaContainer) GetAccount() []GetBandwidthStatisticsAccount { + if g == nil { return nil } - return o.Account + return g.Account } -func (o *GetBandwidthStatisticsMediaContainer) GetStatisticsBandwidth() []StatisticsBandwidth { - if o == nil { +func (g *GetBandwidthStatisticsMediaContainer) GetStatisticsBandwidth() []StatisticsBandwidth { + if g == nil { return nil } - return o.StatisticsBandwidth + return g.StatisticsBandwidth } // GetBandwidthStatisticsResponseBody - Bandwidth Statistics @@ -221,11 +221,11 @@ type GetBandwidthStatisticsResponseBody struct { MediaContainer *GetBandwidthStatisticsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetBandwidthStatisticsResponseBody) GetMediaContainer() *GetBandwidthStatisticsMediaContainer { - if o == nil { +func (g *GetBandwidthStatisticsResponseBody) GetMediaContainer() *GetBandwidthStatisticsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetBandwidthStatisticsResponse struct { @@ -239,30 +239,30 @@ type GetBandwidthStatisticsResponse struct { Object *GetBandwidthStatisticsResponseBody } -func (o *GetBandwidthStatisticsResponse) GetContentType() string { - if o == nil { +func (g *GetBandwidthStatisticsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetBandwidthStatisticsResponse) GetStatusCode() int { - if o == nil { +func (g *GetBandwidthStatisticsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetBandwidthStatisticsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetBandwidthStatisticsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetBandwidthStatisticsResponse) GetObject() *GetBandwidthStatisticsResponseBody { - if o == nil { +func (g *GetBandwidthStatisticsResponse) GetObject() *GetBandwidthStatisticsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getbannerimage.go b/models/operations/getbannerimage.go index 1018e0c..5fec742 100644 --- a/models/operations/getbannerimage.go +++ b/models/operations/getbannerimage.go @@ -18,46 +18,46 @@ type GetBannerImageRequest struct { XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` } -func (o *GetBannerImageRequest) GetRatingKey() int64 { - if o == nil { +func (g *GetBannerImageRequest) GetRatingKey() int64 { + if g == nil { return 0 } - return o.RatingKey + return g.RatingKey } -func (o *GetBannerImageRequest) GetWidth() int64 { - if o == nil { +func (g *GetBannerImageRequest) GetWidth() int64 { + if g == nil { return 0 } - return o.Width + return g.Width } -func (o *GetBannerImageRequest) GetHeight() int64 { - if o == nil { +func (g *GetBannerImageRequest) GetHeight() int64 { + if g == nil { return 0 } - return o.Height + return g.Height } -func (o *GetBannerImageRequest) GetMinSize() int64 { - if o == nil { +func (g *GetBannerImageRequest) GetMinSize() int64 { + if g == nil { return 0 } - return o.MinSize + return g.MinSize } -func (o *GetBannerImageRequest) GetUpscale() int64 { - if o == nil { +func (g *GetBannerImageRequest) GetUpscale() int64 { + if g == nil { return 0 } - return o.Upscale + return g.Upscale } -func (o *GetBannerImageRequest) GetXPlexToken() string { - if o == nil { +func (g *GetBannerImageRequest) GetXPlexToken() string { + if g == nil { return "" } - return o.XPlexToken + return g.XPlexToken } type GetBannerImageResponse struct { @@ -73,37 +73,37 @@ type GetBannerImageResponse struct { Headers map[string][]string } -func (o *GetBannerImageResponse) GetContentType() string { - if o == nil { +func (g *GetBannerImageResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetBannerImageResponse) GetStatusCode() int { - if o == nil { +func (g *GetBannerImageResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetBannerImageResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetBannerImageResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetBannerImageResponse) GetResponseStream() io.ReadCloser { - if o == nil { +func (g *GetBannerImageResponse) GetResponseStream() io.ReadCloser { + if g == nil { return nil } - return o.ResponseStream + return g.ResponseStream } -func (o *GetBannerImageResponse) GetHeaders() map[string][]string { - if o == nil { +func (g *GetBannerImageResponse) GetHeaders() map[string][]string { + if g == nil { return map[string][]string{} } - return o.Headers + return g.Headers } diff --git a/models/operations/getbutlertasks.go b/models/operations/getbutlertasks.go index e1d22e7..3ea1a30 100644 --- a/models/operations/getbutlertasks.go +++ b/models/operations/getbutlertasks.go @@ -15,57 +15,57 @@ type ButlerTask struct { Description *string `json:"description,omitempty"` } -func (o *ButlerTask) GetName() *string { - if o == nil { +func (b *ButlerTask) GetName() *string { + if b == nil { return nil } - return o.Name + return b.Name } -func (o *ButlerTask) GetInterval() *float64 { - if o == nil { +func (b *ButlerTask) GetInterval() *float64 { + if b == nil { return nil } - return o.Interval + return b.Interval } -func (o *ButlerTask) GetScheduleRandomized() *bool { - if o == nil { +func (b *ButlerTask) GetScheduleRandomized() *bool { + if b == nil { return nil } - return o.ScheduleRandomized + return b.ScheduleRandomized } -func (o *ButlerTask) GetEnabled() *bool { - if o == nil { +func (b *ButlerTask) GetEnabled() *bool { + if b == nil { return nil } - return o.Enabled + return b.Enabled } -func (o *ButlerTask) GetTitle() *string { - if o == nil { +func (b *ButlerTask) GetTitle() *string { + if b == nil { return nil } - return o.Title + return b.Title } -func (o *ButlerTask) GetDescription() *string { - if o == nil { +func (b *ButlerTask) GetDescription() *string { + if b == nil { return nil } - return o.Description + return b.Description } type ButlerTasks struct { ButlerTask []ButlerTask `json:"ButlerTask,omitempty"` } -func (o *ButlerTasks) GetButlerTask() []ButlerTask { - if o == nil { +func (b *ButlerTasks) GetButlerTask() []ButlerTask { + if b == nil { return nil } - return o.ButlerTask + return b.ButlerTask } // GetButlerTasksResponseBody - All butler tasks @@ -73,11 +73,11 @@ type GetButlerTasksResponseBody struct { ButlerTasks *ButlerTasks `json:"ButlerTasks,omitempty"` } -func (o *GetButlerTasksResponseBody) GetButlerTasks() *ButlerTasks { - if o == nil { +func (g *GetButlerTasksResponseBody) GetButlerTasks() *ButlerTasks { + if g == nil { return nil } - return o.ButlerTasks + return g.ButlerTasks } type GetButlerTasksResponse struct { @@ -91,30 +91,30 @@ type GetButlerTasksResponse struct { Object *GetButlerTasksResponseBody } -func (o *GetButlerTasksResponse) GetContentType() string { - if o == nil { +func (g *GetButlerTasksResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetButlerTasksResponse) GetStatusCode() int { - if o == nil { +func (g *GetButlerTasksResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetButlerTasksResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetButlerTasksResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetButlerTasksResponse) GetObject() *GetButlerTasksResponseBody { - if o == nil { +func (g *GetButlerTasksResponse) GetObject() *GetButlerTasksResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getcompanionsdata.go b/models/operations/getcompanionsdata.go index bd69f15..190f601 100644 --- a/models/operations/getcompanionsdata.go +++ b/models/operations/getcompanionsdata.go @@ -20,46 +20,46 @@ type ResponseBody struct { Token string `json:"token"` } -func (o *ResponseBody) GetIdentifier() string { - if o == nil { +func (r *ResponseBody) GetIdentifier() string { + if r == nil { return "" } - return o.Identifier + return r.Identifier } -func (o *ResponseBody) GetBaseURL() string { - if o == nil { +func (r *ResponseBody) GetBaseURL() string { + if r == nil { return "" } - return o.BaseURL + return r.BaseURL } -func (o *ResponseBody) GetTitle() string { - if o == nil { +func (r *ResponseBody) GetTitle() string { + if r == nil { return "" } - return o.Title + return r.Title } -func (o *ResponseBody) GetLinkURL() string { - if o == nil { +func (r *ResponseBody) GetLinkURL() string { + if r == nil { return "" } - return o.LinkURL + return r.LinkURL } -func (o *ResponseBody) GetProvides() string { - if o == nil { +func (r *ResponseBody) GetProvides() string { + if r == nil { return "" } - return o.Provides + return r.Provides } -func (o *ResponseBody) GetToken() string { - if o == nil { +func (r *ResponseBody) GetToken() string { + if r == nil { return "" } - return o.Token + return r.Token } type GetCompanionsDataResponse struct { @@ -73,30 +73,30 @@ type GetCompanionsDataResponse struct { ResponseBodies []ResponseBody } -func (o *GetCompanionsDataResponse) GetContentType() string { - if o == nil { +func (g *GetCompanionsDataResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetCompanionsDataResponse) GetStatusCode() int { - if o == nil { +func (g *GetCompanionsDataResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetCompanionsDataResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetCompanionsDataResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetCompanionsDataResponse) GetResponseBodies() []ResponseBody { - if o == nil { +func (g *GetCompanionsDataResponse) GetResponseBodies() []ResponseBody { + if g == nil { return nil } - return o.ResponseBodies + return g.ResponseBodies } diff --git a/models/operations/getcountrieslibrary.go b/models/operations/getcountrieslibrary.go index dcf8bfa..ceade70 100644 --- a/models/operations/getcountrieslibrary.go +++ b/models/operations/getcountrieslibrary.go @@ -45,18 +45,18 @@ type GetCountriesLibraryRequest struct { Type GetCountriesLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` } -func (o *GetCountriesLibraryRequest) GetSectionKey() int { - if o == nil { +func (g *GetCountriesLibraryRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } -func (o *GetCountriesLibraryRequest) GetType() GetCountriesLibraryQueryParamType { - if o == nil { +func (g *GetCountriesLibraryRequest) GetType() GetCountriesLibraryQueryParamType { + if g == nil { return GetCountriesLibraryQueryParamType(0) } - return o.Type + return g.Type } type GetCountriesLibraryDirectory struct { @@ -65,25 +65,25 @@ type GetCountriesLibraryDirectory struct { Title string `json:"title"` } -func (o *GetCountriesLibraryDirectory) GetFastKey() string { - if o == nil { +func (g *GetCountriesLibraryDirectory) GetFastKey() string { + if g == nil { return "" } - return o.FastKey + return g.FastKey } -func (o *GetCountriesLibraryDirectory) GetKey() string { - if o == nil { +func (g *GetCountriesLibraryDirectory) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetCountriesLibraryDirectory) GetTitle() string { - if o == nil { +func (g *GetCountriesLibraryDirectory) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetCountriesLibraryMediaContainer struct { @@ -114,95 +114,95 @@ type GetCountriesLibraryMediaContainer struct { Directory []GetCountriesLibraryDirectory `json:"Directory,omitempty"` } -func (o *GetCountriesLibraryMediaContainer) GetSize() int { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetCountriesLibraryMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetCountriesLibraryMediaContainer) GetArt() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetCountriesLibraryMediaContainer) GetContent() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetContent() string { + if g == nil { return "" } - return o.Content + return g.Content } -func (o *GetCountriesLibraryMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetCountriesLibraryMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetCountriesLibraryMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetCountriesLibraryMediaContainer) GetNocache() bool { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetNocache() bool { + if g == nil { return false } - return o.Nocache + return g.Nocache } -func (o *GetCountriesLibraryMediaContainer) GetThumb() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetCountriesLibraryMediaContainer) GetTitle1() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetTitle1() string { + if g == nil { return "" } - return o.Title1 + return g.Title1 } -func (o *GetCountriesLibraryMediaContainer) GetTitle2() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetTitle2() string { + if g == nil { return "" } - return o.Title2 + return g.Title2 } -func (o *GetCountriesLibraryMediaContainer) GetViewGroup() string { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetViewGroup() string { + if g == nil { return "" } - return o.ViewGroup + return g.ViewGroup } -func (o *GetCountriesLibraryMediaContainer) GetDirectory() []GetCountriesLibraryDirectory { - if o == nil { +func (g *GetCountriesLibraryMediaContainer) GetDirectory() []GetCountriesLibraryDirectory { + if g == nil { return nil } - return o.Directory + return g.Directory } // GetCountriesLibraryResponseBody - Successful response containing media container data. @@ -210,11 +210,11 @@ type GetCountriesLibraryResponseBody struct { MediaContainer *GetCountriesLibraryMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetCountriesLibraryResponseBody) GetMediaContainer() *GetCountriesLibraryMediaContainer { - if o == nil { +func (g *GetCountriesLibraryResponseBody) GetMediaContainer() *GetCountriesLibraryMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetCountriesLibraryResponse struct { @@ -228,30 +228,30 @@ type GetCountriesLibraryResponse struct { Object *GetCountriesLibraryResponseBody } -func (o *GetCountriesLibraryResponse) GetContentType() string { - if o == nil { +func (g *GetCountriesLibraryResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetCountriesLibraryResponse) GetStatusCode() int { - if o == nil { +func (g *GetCountriesLibraryResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetCountriesLibraryResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetCountriesLibraryResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetCountriesLibraryResponse) GetObject() *GetCountriesLibraryResponseBody { - if o == nil { +func (g *GetCountriesLibraryResponse) GetObject() *GetCountriesLibraryResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getdevices.go b/models/operations/getdevices.go index a69fa0b..668240a 100644 --- a/models/operations/getdevices.go +++ b/models/operations/getdevices.go @@ -14,39 +14,39 @@ type Device struct { CreatedAt *float64 `json:"createdAt,omitempty"` } -func (o *Device) GetID() *float64 { - if o == nil { +func (d *Device) GetID() *float64 { + if d == nil { return nil } - return o.ID + return d.ID } -func (o *Device) GetName() *string { - if o == nil { +func (d *Device) GetName() *string { + if d == nil { return nil } - return o.Name + return d.Name } -func (o *Device) GetPlatform() *string { - if o == nil { +func (d *Device) GetPlatform() *string { + if d == nil { return nil } - return o.Platform + return d.Platform } -func (o *Device) GetClientIdentifier() *string { - if o == nil { +func (d *Device) GetClientIdentifier() *string { + if d == nil { return nil } - return o.ClientIdentifier + return d.ClientIdentifier } -func (o *Device) GetCreatedAt() *float64 { - if o == nil { +func (d *Device) GetCreatedAt() *float64 { + if d == nil { return nil } - return o.CreatedAt + return d.CreatedAt } type GetDevicesMediaContainer struct { @@ -55,25 +55,25 @@ type GetDevicesMediaContainer struct { Device []Device `json:"Device,omitempty"` } -func (o *GetDevicesMediaContainer) GetSize() *float64 { - if o == nil { +func (g *GetDevicesMediaContainer) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetDevicesMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetDevicesMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetDevicesMediaContainer) GetDevice() []Device { - if o == nil { +func (g *GetDevicesMediaContainer) GetDevice() []Device { + if g == nil { return nil } - return o.Device + return g.Device } // GetDevicesResponseBody - Devices @@ -81,11 +81,11 @@ type GetDevicesResponseBody struct { MediaContainer *GetDevicesMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetDevicesResponseBody) GetMediaContainer() *GetDevicesMediaContainer { - if o == nil { +func (g *GetDevicesResponseBody) GetMediaContainer() *GetDevicesMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetDevicesResponse struct { @@ -99,30 +99,30 @@ type GetDevicesResponse struct { Object *GetDevicesResponseBody } -func (o *GetDevicesResponse) GetContentType() string { - if o == nil { +func (g *GetDevicesResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetDevicesResponse) GetStatusCode() int { - if o == nil { +func (g *GetDevicesResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetDevicesResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetDevicesResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetDevicesResponse) GetObject() *GetDevicesResponseBody { - if o == nil { +func (g *GetDevicesResponse) GetObject() *GetDevicesResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getfilehash.go b/models/operations/getfilehash.go index 90ebebe..8900701 100644 --- a/models/operations/getfilehash.go +++ b/models/operations/getfilehash.go @@ -13,18 +13,18 @@ type GetFileHashRequest struct { Type *float64 `queryParam:"style=form,explode=true,name=type"` } -func (o *GetFileHashRequest) GetURL() string { - if o == nil { +func (g *GetFileHashRequest) GetURL() string { + if g == nil { return "" } - return o.URL + return g.URL } -func (o *GetFileHashRequest) GetType() *float64 { - if o == nil { +func (g *GetFileHashRequest) GetType() *float64 { + if g == nil { return nil } - return o.Type + return g.Type } type GetFileHashResponse struct { @@ -36,23 +36,23 @@ type GetFileHashResponse struct { RawResponse *http.Response } -func (o *GetFileHashResponse) GetContentType() string { - if o == nil { +func (g *GetFileHashResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetFileHashResponse) GetStatusCode() int { - if o == nil { +func (g *GetFileHashResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetFileHashResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetFileHashResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } diff --git a/models/operations/getgenreslibrary.go b/models/operations/getgenreslibrary.go index e6d013a..11085be 100644 --- a/models/operations/getgenreslibrary.go +++ b/models/operations/getgenreslibrary.go @@ -45,18 +45,18 @@ type GetGenresLibraryRequest struct { Type GetGenresLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` } -func (o *GetGenresLibraryRequest) GetSectionKey() int { - if o == nil { +func (g *GetGenresLibraryRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } -func (o *GetGenresLibraryRequest) GetType() GetGenresLibraryQueryParamType { - if o == nil { +func (g *GetGenresLibraryRequest) GetType() GetGenresLibraryQueryParamType { + if g == nil { return GetGenresLibraryQueryParamType(0) } - return o.Type + return g.Type } type GetGenresLibraryDirectory struct { @@ -66,32 +66,32 @@ type GetGenresLibraryDirectory struct { Type string `json:"type"` } -func (o *GetGenresLibraryDirectory) GetFastKey() string { - if o == nil { +func (g *GetGenresLibraryDirectory) GetFastKey() string { + if g == nil { return "" } - return o.FastKey + return g.FastKey } -func (o *GetGenresLibraryDirectory) GetKey() string { - if o == nil { +func (g *GetGenresLibraryDirectory) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetGenresLibraryDirectory) GetTitle() string { - if o == nil { +func (g *GetGenresLibraryDirectory) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetGenresLibraryDirectory) GetType() string { - if o == nil { +func (g *GetGenresLibraryDirectory) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } type GetGenresLibraryMediaContainer struct { @@ -122,95 +122,95 @@ type GetGenresLibraryMediaContainer struct { Directory []GetGenresLibraryDirectory `json:"Directory,omitempty"` } -func (o *GetGenresLibraryMediaContainer) GetSize() int { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetGenresLibraryMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetGenresLibraryMediaContainer) GetArt() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetGenresLibraryMediaContainer) GetContent() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetContent() string { + if g == nil { return "" } - return o.Content + return g.Content } -func (o *GetGenresLibraryMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetGenresLibraryMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetGenresLibraryMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetGenresLibraryMediaContainer) GetNocache() bool { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetNocache() bool { + if g == nil { return false } - return o.Nocache + return g.Nocache } -func (o *GetGenresLibraryMediaContainer) GetThumb() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetGenresLibraryMediaContainer) GetTitle1() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetTitle1() string { + if g == nil { return "" } - return o.Title1 + return g.Title1 } -func (o *GetGenresLibraryMediaContainer) GetTitle2() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetTitle2() string { + if g == nil { return "" } - return o.Title2 + return g.Title2 } -func (o *GetGenresLibraryMediaContainer) GetViewGroup() string { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetViewGroup() string { + if g == nil { return "" } - return o.ViewGroup + return g.ViewGroup } -func (o *GetGenresLibraryMediaContainer) GetDirectory() []GetGenresLibraryDirectory { - if o == nil { +func (g *GetGenresLibraryMediaContainer) GetDirectory() []GetGenresLibraryDirectory { + if g == nil { return nil } - return o.Directory + return g.Directory } // GetGenresLibraryResponseBody - Successful response containing media container data. @@ -218,11 +218,11 @@ type GetGenresLibraryResponseBody struct { MediaContainer *GetGenresLibraryMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetGenresLibraryResponseBody) GetMediaContainer() *GetGenresLibraryMediaContainer { - if o == nil { +func (g *GetGenresLibraryResponseBody) GetMediaContainer() *GetGenresLibraryMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetGenresLibraryResponse struct { @@ -236,30 +236,30 @@ type GetGenresLibraryResponse struct { Object *GetGenresLibraryResponseBody } -func (o *GetGenresLibraryResponse) GetContentType() string { - if o == nil { +func (g *GetGenresLibraryResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetGenresLibraryResponse) GetStatusCode() int { - if o == nil { +func (g *GetGenresLibraryResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetGenresLibraryResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetGenresLibraryResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetGenresLibraryResponse) GetObject() *GetGenresLibraryResponseBody { - if o == nil { +func (g *GetGenresLibraryResponse) GetObject() *GetGenresLibraryResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getgeodata.go b/models/operations/getgeodata.go index 9c07386..1672508 100644 --- a/models/operations/getgeodata.go +++ b/models/operations/getgeodata.go @@ -48,81 +48,81 @@ func (g *GetGeoDataGeoData) UnmarshalJSON(data []byte) error { return nil } -func (o *GetGeoDataGeoData) GetCode() string { - if o == nil { +func (g *GetGeoDataGeoData) GetCode() string { + if g == nil { return "" } - return o.Code + return g.Code } -func (o *GetGeoDataGeoData) GetContinentCode() string { - if o == nil { +func (g *GetGeoDataGeoData) GetContinentCode() string { + if g == nil { return "" } - return o.ContinentCode + return g.ContinentCode } -func (o *GetGeoDataGeoData) GetCountry() string { - if o == nil { +func (g *GetGeoDataGeoData) GetCountry() string { + if g == nil { return "" } - return o.Country + return g.Country } -func (o *GetGeoDataGeoData) GetCity() string { - if o == nil { +func (g *GetGeoDataGeoData) GetCity() string { + if g == nil { return "" } - return o.City + return g.City } -func (o *GetGeoDataGeoData) GetEuropeanUnionMember() *bool { - if o == nil { +func (g *GetGeoDataGeoData) GetEuropeanUnionMember() *bool { + if g == nil { return nil } - return o.EuropeanUnionMember + return g.EuropeanUnionMember } -func (o *GetGeoDataGeoData) GetTimeZone() string { - if o == nil { +func (g *GetGeoDataGeoData) GetTimeZone() string { + if g == nil { return "" } - return o.TimeZone + return g.TimeZone } -func (o *GetGeoDataGeoData) GetPostalCode() string { - if o == nil { +func (g *GetGeoDataGeoData) GetPostalCode() string { + if g == nil { return "" } - return o.PostalCode + return g.PostalCode } -func (o *GetGeoDataGeoData) GetInPrivacyRestrictedCountry() *bool { - if o == nil { +func (g *GetGeoDataGeoData) GetInPrivacyRestrictedCountry() *bool { + if g == nil { return nil } - return o.InPrivacyRestrictedCountry + return g.InPrivacyRestrictedCountry } -func (o *GetGeoDataGeoData) GetInPrivacyRestrictedRegion() *bool { - if o == nil { +func (g *GetGeoDataGeoData) GetInPrivacyRestrictedRegion() *bool { + if g == nil { return nil } - return o.InPrivacyRestrictedRegion + return g.InPrivacyRestrictedRegion } -func (o *GetGeoDataGeoData) GetSubdivisions() string { - if o == nil { +func (g *GetGeoDataGeoData) GetSubdivisions() string { + if g == nil { return "" } - return o.Subdivisions + return g.Subdivisions } -func (o *GetGeoDataGeoData) GetCoordinates() string { - if o == nil { +func (g *GetGeoDataGeoData) GetCoordinates() string { + if g == nil { return "" } - return o.Coordinates + return g.Coordinates } type GetGeoDataResponse struct { @@ -136,30 +136,30 @@ type GetGeoDataResponse struct { GeoData *GetGeoDataGeoData } -func (o *GetGeoDataResponse) GetContentType() string { - if o == nil { +func (g *GetGeoDataResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetGeoDataResponse) GetStatusCode() int { - if o == nil { +func (g *GetGeoDataResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetGeoDataResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetGeoDataResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetGeoDataResponse) GetGeoData() *GetGeoDataGeoData { - if o == nil { +func (g *GetGeoDataResponse) GetGeoData() *GetGeoDataGeoData { + if g == nil { return nil } - return o.GeoData + return g.GeoData } diff --git a/models/operations/getglobalhubs.go b/models/operations/getglobalhubs.go index 837f4c0..e0ba9ca 100644 --- a/models/operations/getglobalhubs.go +++ b/models/operations/getglobalhubs.go @@ -42,18 +42,18 @@ type GetGlobalHubsRequest struct { OnlyTransient *OnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"` } -func (o *GetGlobalHubsRequest) GetCount() *float64 { - if o == nil { +func (g *GetGlobalHubsRequest) GetCount() *float64 { + if g == nil { return nil } - return o.Count + return g.Count } -func (o *GetGlobalHubsRequest) GetOnlyTransient() *OnlyTransient { - if o == nil { +func (g *GetGlobalHubsRequest) GetOnlyTransient() *OnlyTransient { + if g == nil { return nil } - return o.OnlyTransient + return g.OnlyTransient } type GetGlobalHubsMetadata struct { @@ -76,123 +76,123 @@ type GetGlobalHubsMetadata struct { UpdatedAt *int `json:"updatedAt,omitempty"` } -func (o *GetGlobalHubsMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetGlobalHubsMetadata) GetKey() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetGlobalHubsMetadata) GetGUID() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetGlobalHubsMetadata) GetType() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetGlobalHubsMetadata) GetTitle() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetGlobalHubsMetadata) GetTitleSort() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetTitleSort() *string { + if g == nil { return nil } - return o.TitleSort + return g.TitleSort } -func (o *GetGlobalHubsMetadata) GetSummary() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetGlobalHubsMetadata) GetSmart() *bool { - if o == nil { +func (g *GetGlobalHubsMetadata) GetSmart() *bool { + if g == nil { return nil } - return o.Smart + return g.Smart } -func (o *GetGlobalHubsMetadata) GetPlaylistType() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetPlaylistType() *string { + if g == nil { return nil } - return o.PlaylistType + return g.PlaylistType } -func (o *GetGlobalHubsMetadata) GetComposite() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetComposite() *string { + if g == nil { return nil } - return o.Composite + return g.Composite } -func (o *GetGlobalHubsMetadata) GetIcon() *string { - if o == nil { +func (g *GetGlobalHubsMetadata) GetIcon() *string { + if g == nil { return nil } - return o.Icon + return g.Icon } -func (o *GetGlobalHubsMetadata) GetViewCount() *int { - if o == nil { +func (g *GetGlobalHubsMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetGlobalHubsMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetGlobalHubsMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetGlobalHubsMetadata) GetDuration() *int { - if o == nil { +func (g *GetGlobalHubsMetadata) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetGlobalHubsMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetGlobalHubsMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetGlobalHubsMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetGlobalHubsMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetGlobalHubsMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetGlobalHubsMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } type Hub struct { @@ -209,81 +209,81 @@ type Hub struct { Metadata []GetGlobalHubsMetadata `json:"Metadata,omitempty"` } -func (o *Hub) GetHubKey() *string { - if o == nil { +func (h *Hub) GetHubKey() *string { + if h == nil { return nil } - return o.HubKey + return h.HubKey } -func (o *Hub) GetKey() *string { - if o == nil { +func (h *Hub) GetKey() *string { + if h == nil { return nil } - return o.Key + return h.Key } -func (o *Hub) GetTitle() *string { - if o == nil { +func (h *Hub) GetTitle() *string { + if h == nil { return nil } - return o.Title + return h.Title } -func (o *Hub) GetType() *string { - if o == nil { +func (h *Hub) GetType() *string { + if h == nil { return nil } - return o.Type + return h.Type } -func (o *Hub) GetHubIdentifier() *string { - if o == nil { +func (h *Hub) GetHubIdentifier() *string { + if h == nil { return nil } - return o.HubIdentifier + return h.HubIdentifier } -func (o *Hub) GetContext() *string { - if o == nil { +func (h *Hub) GetContext() *string { + if h == nil { return nil } - return o.Context + return h.Context } -func (o *Hub) GetSize() *int { - if o == nil { +func (h *Hub) GetSize() *int { + if h == nil { return nil } - return o.Size + return h.Size } -func (o *Hub) GetMore() *bool { - if o == nil { +func (h *Hub) GetMore() *bool { + if h == nil { return nil } - return o.More + return h.More } -func (o *Hub) GetStyle() *string { - if o == nil { +func (h *Hub) GetStyle() *string { + if h == nil { return nil } - return o.Style + return h.Style } -func (o *Hub) GetPromoted() *bool { - if o == nil { +func (h *Hub) GetPromoted() *bool { + if h == nil { return nil } - return o.Promoted + return h.Promoted } -func (o *Hub) GetMetadata() []GetGlobalHubsMetadata { - if o == nil { +func (h *Hub) GetMetadata() []GetGlobalHubsMetadata { + if h == nil { return nil } - return o.Metadata + return h.Metadata } type GetGlobalHubsMediaContainer struct { @@ -293,32 +293,32 @@ type GetGlobalHubsMediaContainer struct { Hub []Hub `json:"Hub,omitempty"` } -func (o *GetGlobalHubsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetGlobalHubsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetGlobalHubsMediaContainer) GetAllowSync() *bool { - if o == nil { +func (g *GetGlobalHubsMediaContainer) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetGlobalHubsMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetGlobalHubsMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetGlobalHubsMediaContainer) GetHub() []Hub { - if o == nil { +func (g *GetGlobalHubsMediaContainer) GetHub() []Hub { + if g == nil { return nil } - return o.Hub + return g.Hub } // GetGlobalHubsResponseBody - returns global hubs @@ -326,11 +326,11 @@ type GetGlobalHubsResponseBody struct { MediaContainer *GetGlobalHubsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetGlobalHubsResponseBody) GetMediaContainer() *GetGlobalHubsMediaContainer { - if o == nil { +func (g *GetGlobalHubsResponseBody) GetMediaContainer() *GetGlobalHubsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetGlobalHubsResponse struct { @@ -344,30 +344,30 @@ type GetGlobalHubsResponse struct { Object *GetGlobalHubsResponseBody } -func (o *GetGlobalHubsResponse) GetContentType() string { - if o == nil { +func (g *GetGlobalHubsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetGlobalHubsResponse) GetStatusCode() int { - if o == nil { +func (g *GetGlobalHubsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetGlobalHubsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetGlobalHubsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetGlobalHubsResponse) GetObject() *GetGlobalHubsResponseBody { - if o == nil { +func (g *GetGlobalHubsResponse) GetObject() *GetGlobalHubsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/gethomedata.go b/models/operations/gethomedata.go index 49be2b1..fffccb3 100644 --- a/models/operations/gethomedata.go +++ b/models/operations/gethomedata.go @@ -16,46 +16,46 @@ type GetHomeDataResponseBody struct { Subscription *bool `json:"subscription,omitempty"` } -func (o *GetHomeDataResponseBody) GetID() *float64 { - if o == nil { +func (g *GetHomeDataResponseBody) GetID() *float64 { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetHomeDataResponseBody) GetName() *string { - if o == nil { +func (g *GetHomeDataResponseBody) GetName() *string { + if g == nil { return nil } - return o.Name + return g.Name } -func (o *GetHomeDataResponseBody) GetGuestUserID() *float64 { - if o == nil { +func (g *GetHomeDataResponseBody) GetGuestUserID() *float64 { + if g == nil { return nil } - return o.GuestUserID + return g.GuestUserID } -func (o *GetHomeDataResponseBody) GetGuestUserUUID() *string { - if o == nil { +func (g *GetHomeDataResponseBody) GetGuestUserUUID() *string { + if g == nil { return nil } - return o.GuestUserUUID + return g.GuestUserUUID } -func (o *GetHomeDataResponseBody) GetGuestEnabled() *bool { - if o == nil { +func (g *GetHomeDataResponseBody) GetGuestEnabled() *bool { + if g == nil { return nil } - return o.GuestEnabled + return g.GuestEnabled } -func (o *GetHomeDataResponseBody) GetSubscription() *bool { - if o == nil { +func (g *GetHomeDataResponseBody) GetSubscription() *bool { + if g == nil { return nil } - return o.Subscription + return g.Subscription } type GetHomeDataResponse struct { @@ -69,30 +69,30 @@ type GetHomeDataResponse struct { Object *GetHomeDataResponseBody } -func (o *GetHomeDataResponse) GetContentType() string { - if o == nil { +func (g *GetHomeDataResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetHomeDataResponse) GetStatusCode() int { - if o == nil { +func (g *GetHomeDataResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetHomeDataResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetHomeDataResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetHomeDataResponse) GetObject() *GetHomeDataResponseBody { - if o == nil { +func (g *GetHomeDataResponse) GetObject() *GetHomeDataResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getlibrarydetails.go b/models/operations/getlibrarydetails.go index 8b87d8b..f83a0c4 100644 --- a/models/operations/getlibrarydetails.go +++ b/models/operations/getlibrarydetails.go @@ -59,18 +59,18 @@ func (g *GetLibraryDetailsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibraryDetailsRequest) GetIncludeDetails() *IncludeDetails { - if o == nil { +func (g *GetLibraryDetailsRequest) GetIncludeDetails() *IncludeDetails { + if g == nil { return nil } - return o.IncludeDetails + return g.IncludeDetails } -func (o *GetLibraryDetailsRequest) GetSectionKey() int { - if o == nil { +func (g *GetLibraryDetailsRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } type GetLibraryDetailsDirectory struct { @@ -81,39 +81,39 @@ type GetLibraryDetailsDirectory struct { Search *bool `json:"search,omitempty"` } -func (o *GetLibraryDetailsDirectory) GetKey() *string { - if o == nil { +func (g *GetLibraryDetailsDirectory) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryDetailsDirectory) GetTitle() *string { - if o == nil { +func (g *GetLibraryDetailsDirectory) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetLibraryDetailsDirectory) GetSecondary() *bool { - if o == nil { +func (g *GetLibraryDetailsDirectory) GetSecondary() *bool { + if g == nil { return nil } - return o.Secondary + return g.Secondary } -func (o *GetLibraryDetailsDirectory) GetPrompt() *string { - if o == nil { +func (g *GetLibraryDetailsDirectory) GetPrompt() *string { + if g == nil { return nil } - return o.Prompt + return g.Prompt } -func (o *GetLibraryDetailsDirectory) GetSearch() *bool { - if o == nil { +func (g *GetLibraryDetailsDirectory) GetSearch() *bool { + if g == nil { return nil } - return o.Search + return g.Search } type GetLibraryDetailsFilter struct { @@ -124,39 +124,39 @@ type GetLibraryDetailsFilter struct { Type *string `json:"type,omitempty"` } -func (o *GetLibraryDetailsFilter) GetFilter() *string { - if o == nil { +func (g *GetLibraryDetailsFilter) GetFilter() *string { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetLibraryDetailsFilter) GetFilterType() *string { - if o == nil { +func (g *GetLibraryDetailsFilter) GetFilterType() *string { + if g == nil { return nil } - return o.FilterType + return g.FilterType } -func (o *GetLibraryDetailsFilter) GetKey() *string { - if o == nil { +func (g *GetLibraryDetailsFilter) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryDetailsFilter) GetTitle() *string { - if o == nil { +func (g *GetLibraryDetailsFilter) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetLibraryDetailsFilter) GetType() *string { - if o == nil { +func (g *GetLibraryDetailsFilter) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } type GetLibraryDetailsSort struct { @@ -168,46 +168,46 @@ type GetLibraryDetailsSort struct { Title *string `json:"title,omitempty"` } -func (o *GetLibraryDetailsSort) GetDefault() *string { - if o == nil { +func (g *GetLibraryDetailsSort) GetDefault() *string { + if g == nil { return nil } - return o.Default + return g.Default } -func (o *GetLibraryDetailsSort) GetDefaultDirection() *string { - if o == nil { +func (g *GetLibraryDetailsSort) GetDefaultDirection() *string { + if g == nil { return nil } - return o.DefaultDirection + return g.DefaultDirection } -func (o *GetLibraryDetailsSort) GetDescKey() *string { - if o == nil { +func (g *GetLibraryDetailsSort) GetDescKey() *string { + if g == nil { return nil } - return o.DescKey + return g.DescKey } -func (o *GetLibraryDetailsSort) GetFirstCharacterKey() *string { - if o == nil { +func (g *GetLibraryDetailsSort) GetFirstCharacterKey() *string { + if g == nil { return nil } - return o.FirstCharacterKey + return g.FirstCharacterKey } -func (o *GetLibraryDetailsSort) GetKey() *string { - if o == nil { +func (g *GetLibraryDetailsSort) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryDetailsSort) GetTitle() *string { - if o == nil { +func (g *GetLibraryDetailsSort) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } type GetLibraryDetailsField struct { @@ -217,32 +217,32 @@ type GetLibraryDetailsField struct { SubType *string `json:"subType,omitempty"` } -func (o *GetLibraryDetailsField) GetKey() *string { - if o == nil { +func (g *GetLibraryDetailsField) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryDetailsField) GetTitle() *string { - if o == nil { +func (g *GetLibraryDetailsField) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetLibraryDetailsField) GetType() *string { - if o == nil { +func (g *GetLibraryDetailsField) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibraryDetailsField) GetSubType() *string { - if o == nil { +func (g *GetLibraryDetailsField) GetSubType() *string { + if g == nil { return nil } - return o.SubType + return g.SubType } type GetLibraryDetailsType struct { @@ -255,53 +255,53 @@ type GetLibraryDetailsType struct { Field []GetLibraryDetailsField `json:"Field,omitempty"` } -func (o *GetLibraryDetailsType) GetKey() *string { - if o == nil { +func (g *GetLibraryDetailsType) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryDetailsType) GetType() *string { - if o == nil { +func (g *GetLibraryDetailsType) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibraryDetailsType) GetTitle() *string { - if o == nil { +func (g *GetLibraryDetailsType) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetLibraryDetailsType) GetActive() *bool { - if o == nil { +func (g *GetLibraryDetailsType) GetActive() *bool { + if g == nil { return nil } - return o.Active + return g.Active } -func (o *GetLibraryDetailsType) GetFilter() []GetLibraryDetailsFilter { - if o == nil { +func (g *GetLibraryDetailsType) GetFilter() []GetLibraryDetailsFilter { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetLibraryDetailsType) GetSort() []GetLibraryDetailsSort { - if o == nil { +func (g *GetLibraryDetailsType) GetSort() []GetLibraryDetailsSort { + if g == nil { return nil } - return o.Sort + return g.Sort } -func (o *GetLibraryDetailsType) GetField() []GetLibraryDetailsField { - if o == nil { +func (g *GetLibraryDetailsType) GetField() []GetLibraryDetailsField { + if g == nil { return nil } - return o.Field + return g.Field } type GetLibraryDetailsOperator struct { @@ -309,18 +309,18 @@ type GetLibraryDetailsOperator struct { Title *string `json:"title,omitempty"` } -func (o *GetLibraryDetailsOperator) GetKey() *string { - if o == nil { +func (g *GetLibraryDetailsOperator) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryDetailsOperator) GetTitle() *string { - if o == nil { +func (g *GetLibraryDetailsOperator) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } type GetLibraryDetailsFieldType struct { @@ -328,18 +328,18 @@ type GetLibraryDetailsFieldType struct { Operator []GetLibraryDetailsOperator `json:"Operator,omitempty"` } -func (o *GetLibraryDetailsFieldType) GetType() *string { - if o == nil { +func (g *GetLibraryDetailsFieldType) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibraryDetailsFieldType) GetOperator() []GetLibraryDetailsOperator { - if o == nil { +func (g *GetLibraryDetailsFieldType) GetOperator() []GetLibraryDetailsOperator { + if g == nil { return nil } - return o.Operator + return g.Operator } type GetLibraryDetailsMediaContainer struct { @@ -360,109 +360,109 @@ type GetLibraryDetailsMediaContainer struct { FieldType []GetLibraryDetailsFieldType `json:"FieldType,omitempty"` } -func (o *GetLibraryDetailsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetLibraryDetailsMediaContainer) GetAllowSync() *bool { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetLibraryDetailsMediaContainer) GetArt() *string { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetLibraryDetailsMediaContainer) GetContent() *string { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetContent() *string { + if g == nil { return nil } - return o.Content + return g.Content } -func (o *GetLibraryDetailsMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetLibraryDetailsMediaContainer) GetLibrarySectionID() *int { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetLibrarySectionID() *int { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetLibraryDetailsMediaContainer) GetMediaTagPrefix() *string { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetMediaTagPrefix() *string { + if g == nil { return nil } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetLibraryDetailsMediaContainer) GetMediaTagVersion() *int { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetMediaTagVersion() *int { + if g == nil { return nil } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetLibraryDetailsMediaContainer) GetThumb() *string { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetLibraryDetailsMediaContainer) GetTitle1() *string { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetTitle1() *string { + if g == nil { return nil } - return o.Title1 + return g.Title1 } -func (o *GetLibraryDetailsMediaContainer) GetViewGroup() *string { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetViewGroup() *string { + if g == nil { return nil } - return o.ViewGroup + return g.ViewGroup } -func (o *GetLibraryDetailsMediaContainer) GetViewMode() *int { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetViewMode() *int { + if g == nil { return nil } - return o.ViewMode + return g.ViewMode } -func (o *GetLibraryDetailsMediaContainer) GetDirectory() []GetLibraryDetailsDirectory { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetDirectory() []GetLibraryDetailsDirectory { + if g == nil { return nil } - return o.Directory + return g.Directory } -func (o *GetLibraryDetailsMediaContainer) GetType() []GetLibraryDetailsType { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetType() []GetLibraryDetailsType { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibraryDetailsMediaContainer) GetFieldType() []GetLibraryDetailsFieldType { - if o == nil { +func (g *GetLibraryDetailsMediaContainer) GetFieldType() []GetLibraryDetailsFieldType { + if g == nil { return nil } - return o.FieldType + return g.FieldType } // GetLibraryDetailsResponseBody - The details of the library @@ -470,11 +470,11 @@ type GetLibraryDetailsResponseBody struct { MediaContainer *GetLibraryDetailsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetLibraryDetailsResponseBody) GetMediaContainer() *GetLibraryDetailsMediaContainer { - if o == nil { +func (g *GetLibraryDetailsResponseBody) GetMediaContainer() *GetLibraryDetailsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetLibraryDetailsResponse struct { @@ -488,30 +488,30 @@ type GetLibraryDetailsResponse struct { Object *GetLibraryDetailsResponseBody } -func (o *GetLibraryDetailsResponse) GetContentType() string { - if o == nil { +func (g *GetLibraryDetailsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetLibraryDetailsResponse) GetStatusCode() int { - if o == nil { +func (g *GetLibraryDetailsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetLibraryDetailsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetLibraryDetailsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetLibraryDetailsResponse) GetObject() *GetLibraryDetailsResponseBody { - if o == nil { +func (g *GetLibraryDetailsResponse) GetObject() *GetLibraryDetailsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getlibraryhubs.go b/models/operations/getlibraryhubs.go index e6946fd..7158ab5 100644 --- a/models/operations/getlibraryhubs.go +++ b/models/operations/getlibraryhubs.go @@ -46,25 +46,25 @@ type GetLibraryHubsRequest struct { OnlyTransient *QueryParamOnlyTransient `queryParam:"style=form,explode=true,name=onlyTransient"` } -func (o *GetLibraryHubsRequest) GetSectionID() float64 { - if o == nil { +func (g *GetLibraryHubsRequest) GetSectionID() float64 { + if g == nil { return 0.0 } - return o.SectionID + return g.SectionID } -func (o *GetLibraryHubsRequest) GetCount() *float64 { - if o == nil { +func (g *GetLibraryHubsRequest) GetCount() *float64 { + if g == nil { return nil } - return o.Count + return g.Count } -func (o *GetLibraryHubsRequest) GetOnlyTransient() *QueryParamOnlyTransient { - if o == nil { +func (g *GetLibraryHubsRequest) GetOnlyTransient() *QueryParamOnlyTransient { + if g == nil { return nil } - return o.OnlyTransient + return g.OnlyTransient } type GetLibraryHubsPart struct { @@ -80,74 +80,74 @@ type GetLibraryHubsPart struct { VideoProfile *string `json:"videoProfile,omitempty"` } -func (o *GetLibraryHubsPart) GetID() *int { - if o == nil { +func (g *GetLibraryHubsPart) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetLibraryHubsPart) GetKey() *string { - if o == nil { +func (g *GetLibraryHubsPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryHubsPart) GetDuration() *int { - if o == nil { +func (g *GetLibraryHubsPart) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetLibraryHubsPart) GetFile() *string { - if o == nil { +func (g *GetLibraryHubsPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetLibraryHubsPart) GetSize() *int { - if o == nil { +func (g *GetLibraryHubsPart) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetLibraryHubsPart) GetAudioProfile() *string { - if o == nil { +func (g *GetLibraryHubsPart) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetLibraryHubsPart) GetContainer() *string { - if o == nil { +func (g *GetLibraryHubsPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetLibraryHubsPart) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetLibraryHubsPart) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetLibraryHubsPart) GetOptimizedForStreaming() *bool { - if o == nil { +func (g *GetLibraryHubsPart) GetOptimizedForStreaming() *bool { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetLibraryHubsPart) GetVideoProfile() *string { - if o == nil { +func (g *GetLibraryHubsPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } type GetLibraryHubsMedia struct { @@ -170,178 +170,178 @@ type GetLibraryHubsMedia struct { Part []GetLibraryHubsPart `json:"Part,omitempty"` } -func (o *GetLibraryHubsMedia) GetID() *int { - if o == nil { +func (g *GetLibraryHubsMedia) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetLibraryHubsMedia) GetDuration() *int { - if o == nil { +func (g *GetLibraryHubsMedia) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetLibraryHubsMedia) GetBitrate() *int { - if o == nil { +func (g *GetLibraryHubsMedia) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetLibraryHubsMedia) GetWidth() *int { - if o == nil { +func (g *GetLibraryHubsMedia) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetLibraryHubsMedia) GetHeight() *int { - if o == nil { +func (g *GetLibraryHubsMedia) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetLibraryHubsMedia) GetAspectRatio() *float64 { - if o == nil { +func (g *GetLibraryHubsMedia) GetAspectRatio() *float64 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetLibraryHubsMedia) GetAudioChannels() *int { - if o == nil { +func (g *GetLibraryHubsMedia) GetAudioChannels() *int { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetLibraryHubsMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetLibraryHubsMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetLibraryHubsMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetLibraryHubsMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetLibraryHubsMedia) GetVideoResolution() *string { - if o == nil { +func (g *GetLibraryHubsMedia) GetVideoResolution() *string { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetLibraryHubsMedia) GetContainer() *string { - if o == nil { +func (g *GetLibraryHubsMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetLibraryHubsMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetLibraryHubsMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetLibraryHubsMedia) GetOptimizedForStreaming() *int { - if o == nil { +func (g *GetLibraryHubsMedia) GetOptimizedForStreaming() *int { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetLibraryHubsMedia) GetAudioProfile() *string { - if o == nil { +func (g *GetLibraryHubsMedia) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetLibraryHubsMedia) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetLibraryHubsMedia) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetLibraryHubsMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetLibraryHubsMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetLibraryHubsMedia) GetPart() []GetLibraryHubsPart { - if o == nil { +func (g *GetLibraryHubsMedia) GetPart() []GetLibraryHubsPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetLibraryHubsGenre struct { Tag *string `json:"tag,omitempty"` } -func (o *GetLibraryHubsGenre) GetTag() *string { - if o == nil { +func (g *GetLibraryHubsGenre) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetLibraryHubsCountry struct { Tag *string `json:"tag,omitempty"` } -func (o *GetLibraryHubsCountry) GetTag() *string { - if o == nil { +func (g *GetLibraryHubsCountry) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetLibraryHubsDirector struct { Tag *string `json:"tag,omitempty"` } -func (o *GetLibraryHubsDirector) GetTag() *string { - if o == nil { +func (g *GetLibraryHubsDirector) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetLibraryHubsRole struct { Tag *string `json:"tag,omitempty"` } -func (o *GetLibraryHubsRole) GetTag() *string { - if o == nil { +func (g *GetLibraryHubsRole) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetLibraryHubsWriter struct { Tag *string `json:"tag,omitempty"` } -func (o *GetLibraryHubsWriter) GetTag() *string { - if o == nil { +func (g *GetLibraryHubsWriter) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetLibraryHubsMetadata struct { @@ -392,242 +392,242 @@ func (g *GetLibraryHubsMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibraryHubsMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetLibraryHubsMetadata) GetKey() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryHubsMetadata) GetGUID() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetLibraryHubsMetadata) GetStudio() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetLibraryHubsMetadata) GetType() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibraryHubsMetadata) GetTitle() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetLibraryHubsMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetLibraryHubsMetadata) GetLibrarySectionID() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetLibrarySectionID() *int { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetLibraryHubsMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetLibraryHubsMetadata) GetContentRating() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetLibraryHubsMetadata) GetSummary() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetLibraryHubsMetadata) GetRating() *float64 { - if o == nil { +func (g *GetLibraryHubsMetadata) GetRating() *float64 { + if g == nil { return nil } - return o.Rating + return g.Rating } -func (o *GetLibraryHubsMetadata) GetAudienceRating() *float64 { - if o == nil { +func (g *GetLibraryHubsMetadata) GetAudienceRating() *float64 { + if g == nil { return nil } - return o.AudienceRating + return g.AudienceRating } -func (o *GetLibraryHubsMetadata) GetViewCount() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetLibraryHubsMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetLibraryHubsMetadata) GetYear() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetLibraryHubsMetadata) GetTagline() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetTagline() *string { + if g == nil { return nil } - return o.Tagline + return g.Tagline } -func (o *GetLibraryHubsMetadata) GetThumb() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetLibraryHubsMetadata) GetArt() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetLibraryHubsMetadata) GetDuration() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetLibraryHubsMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetLibraryHubsMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetLibraryHubsMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetLibraryHubsMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetLibraryHubsMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetLibraryHubsMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetLibraryHubsMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetLibraryHubsMetadata) GetMedia() []GetLibraryHubsMedia { - if o == nil { +func (g *GetLibraryHubsMetadata) GetMedia() []GetLibraryHubsMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetLibraryHubsMetadata) GetGenre() []GetLibraryHubsGenre { - if o == nil { +func (g *GetLibraryHubsMetadata) GetGenre() []GetLibraryHubsGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetLibraryHubsMetadata) GetCountry() []GetLibraryHubsCountry { - if o == nil { +func (g *GetLibraryHubsMetadata) GetCountry() []GetLibraryHubsCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetLibraryHubsMetadata) GetDirector() []GetLibraryHubsDirector { - if o == nil { +func (g *GetLibraryHubsMetadata) GetDirector() []GetLibraryHubsDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetLibraryHubsMetadata) GetRole() []GetLibraryHubsRole { - if o == nil { +func (g *GetLibraryHubsMetadata) GetRole() []GetLibraryHubsRole { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetLibraryHubsMetadata) GetWriter() []GetLibraryHubsWriter { - if o == nil { +func (g *GetLibraryHubsMetadata) GetWriter() []GetLibraryHubsWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetLibraryHubsMetadata) GetSkipCount() *int { - if o == nil { +func (g *GetLibraryHubsMetadata) GetSkipCount() *int { + if g == nil { return nil } - return o.SkipCount + return g.SkipCount } -func (o *GetLibraryHubsMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetLibraryHubsMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } type GetLibraryHubsHub struct { @@ -645,88 +645,88 @@ type GetLibraryHubsHub struct { Random *bool `json:"random,omitempty"` } -func (o *GetLibraryHubsHub) GetKey() *string { - if o == nil { +func (g *GetLibraryHubsHub) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryHubsHub) GetTitle() *string { - if o == nil { +func (g *GetLibraryHubsHub) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetLibraryHubsHub) GetType() *string { - if o == nil { +func (g *GetLibraryHubsHub) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibraryHubsHub) GetHubIdentifier() *string { - if o == nil { +func (g *GetLibraryHubsHub) GetHubIdentifier() *string { + if g == nil { return nil } - return o.HubIdentifier + return g.HubIdentifier } -func (o *GetLibraryHubsHub) GetContext() *string { - if o == nil { +func (g *GetLibraryHubsHub) GetContext() *string { + if g == nil { return nil } - return o.Context + return g.Context } -func (o *GetLibraryHubsHub) GetSize() *int { - if o == nil { +func (g *GetLibraryHubsHub) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetLibraryHubsHub) GetMore() *bool { - if o == nil { +func (g *GetLibraryHubsHub) GetMore() *bool { + if g == nil { return nil } - return o.More + return g.More } -func (o *GetLibraryHubsHub) GetStyle() *string { - if o == nil { +func (g *GetLibraryHubsHub) GetStyle() *string { + if g == nil { return nil } - return o.Style + return g.Style } -func (o *GetLibraryHubsHub) GetHubKey() *string { - if o == nil { +func (g *GetLibraryHubsHub) GetHubKey() *string { + if g == nil { return nil } - return o.HubKey + return g.HubKey } -func (o *GetLibraryHubsHub) GetMetadata() []GetLibraryHubsMetadata { - if o == nil { +func (g *GetLibraryHubsHub) GetMetadata() []GetLibraryHubsMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } -func (o *GetLibraryHubsHub) GetPromoted() *bool { - if o == nil { +func (g *GetLibraryHubsHub) GetPromoted() *bool { + if g == nil { return nil } - return o.Promoted + return g.Promoted } -func (o *GetLibraryHubsHub) GetRandom() *bool { - if o == nil { +func (g *GetLibraryHubsHub) GetRandom() *bool { + if g == nil { return nil } - return o.Random + return g.Random } type GetLibraryHubsMediaContainer struct { @@ -739,53 +739,53 @@ type GetLibraryHubsMediaContainer struct { Hub []GetLibraryHubsHub `json:"Hub,omitempty"` } -func (o *GetLibraryHubsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetLibraryHubsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetLibraryHubsMediaContainer) GetAllowSync() *bool { - if o == nil { +func (g *GetLibraryHubsMediaContainer) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetLibraryHubsMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetLibraryHubsMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetLibraryHubsMediaContainer) GetLibrarySectionID() *int { - if o == nil { +func (g *GetLibraryHubsMediaContainer) GetLibrarySectionID() *int { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetLibraryHubsMediaContainer) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetLibraryHubsMediaContainer) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetLibraryHubsMediaContainer) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetLibraryHubsMediaContainer) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetLibraryHubsMediaContainer) GetHub() []GetLibraryHubsHub { - if o == nil { +func (g *GetLibraryHubsMediaContainer) GetHub() []GetLibraryHubsHub { + if g == nil { return nil } - return o.Hub + return g.Hub } // GetLibraryHubsResponseBody - The hubs specific to the library @@ -793,11 +793,11 @@ type GetLibraryHubsResponseBody struct { MediaContainer *GetLibraryHubsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetLibraryHubsResponseBody) GetMediaContainer() *GetLibraryHubsMediaContainer { - if o == nil { +func (g *GetLibraryHubsResponseBody) GetMediaContainer() *GetLibraryHubsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetLibraryHubsResponse struct { @@ -811,30 +811,30 @@ type GetLibraryHubsResponse struct { Object *GetLibraryHubsResponseBody } -func (o *GetLibraryHubsResponse) GetContentType() string { - if o == nil { +func (g *GetLibraryHubsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetLibraryHubsResponse) GetStatusCode() int { - if o == nil { +func (g *GetLibraryHubsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetLibraryHubsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetLibraryHubsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetLibraryHubsResponse) GetObject() *GetLibraryHubsResponseBody { - if o == nil { +func (g *GetLibraryHubsResponse) GetObject() *GetLibraryHubsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getlibraryitems.go b/models/operations/getlibraryitems.go index b2c4150..d68dac2 100644 --- a/models/operations/getlibraryitems.go +++ b/models/operations/getlibraryitems.go @@ -159,53 +159,53 @@ func (g *GetLibraryItemsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibraryItemsRequest) GetTag() Tag { - if o == nil { +func (g *GetLibraryItemsRequest) GetTag() Tag { + if g == nil { return Tag("") } - return o.Tag + return g.Tag } -func (o *GetLibraryItemsRequest) GetIncludeGuids() *IncludeGuids { - if o == nil { +func (g *GetLibraryItemsRequest) GetIncludeGuids() *IncludeGuids { + if g == nil { return nil } - return o.IncludeGuids + return g.IncludeGuids } -func (o *GetLibraryItemsRequest) GetType() GetLibraryItemsQueryParamType { - if o == nil { +func (g *GetLibraryItemsRequest) GetType() GetLibraryItemsQueryParamType { + if g == nil { return GetLibraryItemsQueryParamType(0) } - return o.Type + return g.Type } -func (o *GetLibraryItemsRequest) GetSectionKey() int { - if o == nil { +func (g *GetLibraryItemsRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } -func (o *GetLibraryItemsRequest) GetIncludeMeta() *GetLibraryItemsQueryParamIncludeMeta { - if o == nil { +func (g *GetLibraryItemsRequest) GetIncludeMeta() *GetLibraryItemsQueryParamIncludeMeta { + if g == nil { return nil } - return o.IncludeMeta + return g.IncludeMeta } -func (o *GetLibraryItemsRequest) GetXPlexContainerStart() *int { - if o == nil { +func (g *GetLibraryItemsRequest) GetXPlexContainerStart() *int { + if g == nil { return nil } - return o.XPlexContainerStart + return g.XPlexContainerStart } -func (o *GetLibraryItemsRequest) GetXPlexContainerSize() *int { - if o == nil { +func (g *GetLibraryItemsRequest) GetXPlexContainerSize() *int { + if g == nil { return nil } - return o.XPlexContainerSize + return g.XPlexContainerSize } // GetLibraryItemsType - The type of media content in the Plex library. This can represent videos, music, or photos. @@ -247,25 +247,25 @@ type GetLibraryItemsImage struct { URL string `json:"url"` } -func (o *GetLibraryItemsImage) GetAlt() string { - if o == nil { +func (g *GetLibraryItemsImage) GetAlt() string { + if g == nil { return "" } - return o.Alt + return g.Alt } -func (o *GetLibraryItemsImage) GetType() GetLibraryItemsLibraryResponseType { - if o == nil { +func (g *GetLibraryItemsImage) GetType() GetLibraryItemsLibraryResponseType { + if g == nil { return GetLibraryItemsLibraryResponseType("") } - return o.Type + return g.Type } -func (o *GetLibraryItemsImage) GetURL() string { - if o == nil { +func (g *GetLibraryItemsImage) GetURL() string { + if g == nil { return "" } - return o.URL + return g.URL } type GetLibraryItemsUltraBlurColors struct { @@ -275,32 +275,32 @@ type GetLibraryItemsUltraBlurColors struct { BottomLeft string `json:"bottomLeft"` } -func (o *GetLibraryItemsUltraBlurColors) GetTopLeft() string { - if o == nil { +func (g *GetLibraryItemsUltraBlurColors) GetTopLeft() string { + if g == nil { return "" } - return o.TopLeft + return g.TopLeft } -func (o *GetLibraryItemsUltraBlurColors) GetTopRight() string { - if o == nil { +func (g *GetLibraryItemsUltraBlurColors) GetTopRight() string { + if g == nil { return "" } - return o.TopRight + return g.TopRight } -func (o *GetLibraryItemsUltraBlurColors) GetBottomRight() string { - if o == nil { +func (g *GetLibraryItemsUltraBlurColors) GetBottomRight() string { + if g == nil { return "" } - return o.BottomRight + return g.BottomRight } -func (o *GetLibraryItemsUltraBlurColors) GetBottomLeft() string { - if o == nil { +func (g *GetLibraryItemsUltraBlurColors) GetBottomLeft() string { + if g == nil { return "" } - return o.BottomLeft + return g.BottomLeft } type GetLibraryItemsGuids struct { @@ -309,11 +309,11 @@ type GetLibraryItemsGuids struct { ID string `json:"id"` } -func (o *GetLibraryItemsGuids) GetID() string { - if o == nil { +func (g *GetLibraryItemsGuids) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } // ShowOrdering - Setting that indicates the episode ordering for the show. @@ -385,8 +385,8 @@ const ( // GetLibraryItemsOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetLibraryItemsOptimizedForStreaming struct { - OptimizedForStreaming1 *OptimizedForStreaming1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + OptimizedForStreaming1 *OptimizedForStreaming1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetLibraryItemsOptimizedForStreamingType } @@ -475,8 +475,8 @@ const ( // GetLibraryItemsLibraryOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetLibraryItemsLibraryOptimizedForStreaming struct { - GetLibraryItemsOptimizedForStreaming1 *GetLibraryItemsOptimizedForStreaming1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetLibraryItemsOptimizedForStreaming1 *GetLibraryItemsOptimizedForStreaming1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetLibraryItemsLibraryOptimizedForStreamingType } @@ -598,109 +598,109 @@ func (g *GetLibraryItemsPart) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibraryItemsPart) GetAccessible() *bool { - if o == nil { +func (g *GetLibraryItemsPart) GetAccessible() *bool { + if g == nil { return nil } - return o.Accessible + return g.Accessible } -func (o *GetLibraryItemsPart) GetExists() *bool { - if o == nil { +func (g *GetLibraryItemsPart) GetExists() *bool { + if g == nil { return nil } - return o.Exists + return g.Exists } -func (o *GetLibraryItemsPart) GetID() int64 { - if o == nil { +func (g *GetLibraryItemsPart) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsPart) GetKey() *string { - if o == nil { +func (g *GetLibraryItemsPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibraryItemsPart) GetIndexes() *string { - if o == nil { +func (g *GetLibraryItemsPart) GetIndexes() *string { + if g == nil { return nil } - return o.Indexes + return g.Indexes } -func (o *GetLibraryItemsPart) GetDuration() *int { - if o == nil { +func (g *GetLibraryItemsPart) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetLibraryItemsPart) GetFile() *string { - if o == nil { +func (g *GetLibraryItemsPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetLibraryItemsPart) GetSize() *int64 { - if o == nil { +func (g *GetLibraryItemsPart) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetLibraryItemsPart) GetPacketLength() *int { - if o == nil { +func (g *GetLibraryItemsPart) GetPacketLength() *int { + if g == nil { return nil } - return o.PacketLength + return g.PacketLength } -func (o *GetLibraryItemsPart) GetContainer() *string { - if o == nil { +func (g *GetLibraryItemsPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetLibraryItemsPart) GetVideoProfile() *string { - if o == nil { +func (g *GetLibraryItemsPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetLibraryItemsPart) GetAudioProfile() *string { - if o == nil { +func (g *GetLibraryItemsPart) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetLibraryItemsPart) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetLibraryItemsPart) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetLibraryItemsPart) GetOptimizedForStreaming() *GetLibraryItemsLibraryOptimizedForStreaming { - if o == nil { +func (g *GetLibraryItemsPart) GetOptimizedForStreaming() *GetLibraryItemsLibraryOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetLibraryItemsPart) GetHasThumbnail() *GetLibraryItemsHasThumbnail { - if o == nil { +func (g *GetLibraryItemsPart) GetHasThumbnail() *GetLibraryItemsHasThumbnail { + if g == nil { return nil } - return o.HasThumbnail + return g.HasThumbnail } type GetLibraryItemsMedia struct { @@ -745,137 +745,137 @@ type GetLibraryItemsMedia struct { Part []GetLibraryItemsPart `json:"Part,omitempty"` } -func (o *GetLibraryItemsMedia) GetID() int64 { - if o == nil { +func (g *GetLibraryItemsMedia) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsMedia) GetDuration() *int { - if o == nil { +func (g *GetLibraryItemsMedia) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetLibraryItemsMedia) GetBitrate() *int { - if o == nil { +func (g *GetLibraryItemsMedia) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetLibraryItemsMedia) GetWidth() *int { - if o == nil { +func (g *GetLibraryItemsMedia) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetLibraryItemsMedia) GetHeight() *int { - if o == nil { +func (g *GetLibraryItemsMedia) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetLibraryItemsMedia) GetAspectRatio() *float32 { - if o == nil { +func (g *GetLibraryItemsMedia) GetAspectRatio() *float32 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetLibraryItemsMedia) GetAudioChannels() *int { - if o == nil { +func (g *GetLibraryItemsMedia) GetAudioChannels() *int { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetLibraryItemsMedia) GetDisplayOffset() *int { - if o == nil { +func (g *GetLibraryItemsMedia) GetDisplayOffset() *int { + if g == nil { return nil } - return o.DisplayOffset + return g.DisplayOffset } -func (o *GetLibraryItemsMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetLibraryItemsMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetLibraryItemsMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetLibraryItemsMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetLibraryItemsMedia) GetVideoResolution() *string { - if o == nil { +func (g *GetLibraryItemsMedia) GetVideoResolution() *string { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetLibraryItemsMedia) GetContainer() *string { - if o == nil { +func (g *GetLibraryItemsMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetLibraryItemsMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetLibraryItemsMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetLibraryItemsMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetLibraryItemsMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetLibraryItemsMedia) GetHasVoiceActivity() *bool { - if o == nil { +func (g *GetLibraryItemsMedia) GetHasVoiceActivity() *bool { + if g == nil { return nil } - return o.HasVoiceActivity + return g.HasVoiceActivity } -func (o *GetLibraryItemsMedia) GetAudioProfile() *string { - if o == nil { +func (g *GetLibraryItemsMedia) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetLibraryItemsMedia) GetOptimizedForStreaming() *GetLibraryItemsOptimizedForStreaming { - if o == nil { +func (g *GetLibraryItemsMedia) GetOptimizedForStreaming() *GetLibraryItemsOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetLibraryItemsMedia) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetLibraryItemsMedia) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetLibraryItemsMedia) GetPart() []GetLibraryItemsPart { - if o == nil { +func (g *GetLibraryItemsMedia) GetPart() []GetLibraryItemsPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetLibraryItemsGenre struct { @@ -888,18 +888,18 @@ type GetLibraryItemsGenre struct { Tag string `json:"tag"` } -func (o *GetLibraryItemsGenre) GetID() int { - if o == nil { +func (g *GetLibraryItemsGenre) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsGenre) GetTag() string { - if o == nil { +func (g *GetLibraryItemsGenre) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibraryItemsCountry struct { @@ -911,18 +911,18 @@ type GetLibraryItemsCountry struct { Tag string `json:"tag"` } -func (o *GetLibraryItemsCountry) GetID() int { - if o == nil { +func (g *GetLibraryItemsCountry) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsCountry) GetTag() string { - if o == nil { +func (g *GetLibraryItemsCountry) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibraryItemsDirector struct { @@ -934,25 +934,25 @@ type GetLibraryItemsDirector struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetLibraryItemsDirector) GetID() int { - if o == nil { +func (g *GetLibraryItemsDirector) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsDirector) GetTag() string { - if o == nil { +func (g *GetLibraryItemsDirector) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetLibraryItemsDirector) GetThumb() *string { - if o == nil { +func (g *GetLibraryItemsDirector) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetLibraryItemsWriter struct { @@ -964,25 +964,25 @@ type GetLibraryItemsWriter struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetLibraryItemsWriter) GetID() int { - if o == nil { +func (g *GetLibraryItemsWriter) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsWriter) GetTag() string { - if o == nil { +func (g *GetLibraryItemsWriter) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetLibraryItemsWriter) GetThumb() *string { - if o == nil { +func (g *GetLibraryItemsWriter) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetLibraryItemsProducer struct { @@ -1000,46 +1000,46 @@ type GetLibraryItemsProducer struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetLibraryItemsProducer) GetID() int64 { - if o == nil { +func (g *GetLibraryItemsProducer) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsProducer) GetFilter() string { - if o == nil { +func (g *GetLibraryItemsProducer) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetLibraryItemsProducer) GetTag() string { - if o == nil { +func (g *GetLibraryItemsProducer) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetLibraryItemsProducer) GetTagKey() string { - if o == nil { +func (g *GetLibraryItemsProducer) GetTagKey() string { + if g == nil { return "" } - return o.TagKey + return g.TagKey } -func (o *GetLibraryItemsProducer) GetRole() *string { - if o == nil { +func (g *GetLibraryItemsProducer) GetRole() *string { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetLibraryItemsProducer) GetThumb() *string { - if o == nil { +func (g *GetLibraryItemsProducer) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetLibraryItemsCollection struct { @@ -1047,11 +1047,11 @@ type GetLibraryItemsCollection struct { Tag string `json:"tag"` } -func (o *GetLibraryItemsCollection) GetTag() string { - if o == nil { +func (g *GetLibraryItemsCollection) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibraryItemsRole struct { @@ -1067,32 +1067,32 @@ type GetLibraryItemsRole struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetLibraryItemsRole) GetID() int { - if o == nil { +func (g *GetLibraryItemsRole) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsRole) GetTag() string { - if o == nil { +func (g *GetLibraryItemsRole) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetLibraryItemsRole) GetRole() *string { - if o == nil { +func (g *GetLibraryItemsRole) GetRole() *string { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetLibraryItemsRole) GetThumb() *string { - if o == nil { +func (g *GetLibraryItemsRole) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type Ratings struct { @@ -1104,25 +1104,25 @@ type Ratings struct { Type string `json:"type"` } -func (o *Ratings) GetImage() string { - if o == nil { +func (r *Ratings) GetImage() string { + if r == nil { return "" } - return o.Image + return r.Image } -func (o *Ratings) GetValue() float32 { - if o == nil { +func (r *Ratings) GetValue() float32 { + if r == nil { return 0.0 } - return o.Value + return r.Value } -func (o *Ratings) GetType() string { - if o == nil { +func (r *Ratings) GetType() string { + if r == nil { return "" } - return o.Type + return r.Type } type GetLibraryItemsSimilar struct { @@ -1134,25 +1134,25 @@ type GetLibraryItemsSimilar struct { Tag string `json:"tag"` } -func (o *GetLibraryItemsSimilar) GetID() int64 { - if o == nil { +func (g *GetLibraryItemsSimilar) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibraryItemsSimilar) GetFilter() string { - if o == nil { +func (g *GetLibraryItemsSimilar) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetLibraryItemsSimilar) GetTag() string { - if o == nil { +func (g *GetLibraryItemsSimilar) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } // GetLibraryItemsLocation - The folder path for the media item. @@ -1160,11 +1160,11 @@ type GetLibraryItemsLocation struct { Path string `json:"path"` } -func (o *GetLibraryItemsLocation) GetPath() string { - if o == nil { +func (g *GetLibraryItemsLocation) GetPath() string { + if g == nil { return "" } - return o.Path + return g.Path } // Chapter - The thumbnail for the chapter @@ -1177,46 +1177,46 @@ type Chapter struct { Thumb string `json:"thumb"` } -func (o *Chapter) GetID() int64 { - if o == nil { +func (c *Chapter) GetID() int64 { + if c == nil { return 0 } - return o.ID + return c.ID } -func (o *Chapter) GetFilter() string { - if o == nil { +func (c *Chapter) GetFilter() string { + if c == nil { return "" } - return o.Filter + return c.Filter } -func (o *Chapter) GetIndex() int64 { - if o == nil { +func (c *Chapter) GetIndex() int64 { + if c == nil { return 0 } - return o.Index + return c.Index } -func (o *Chapter) GetStartTimeOffset() int64 { - if o == nil { +func (c *Chapter) GetStartTimeOffset() int64 { + if c == nil { return 0 } - return o.StartTimeOffset + return c.StartTimeOffset } -func (o *Chapter) GetEndTimeOffset() int64 { - if o == nil { +func (c *Chapter) GetEndTimeOffset() int64 { + if c == nil { return 0 } - return o.EndTimeOffset + return c.EndTimeOffset } -func (o *Chapter) GetThumb() string { - if o == nil { +func (c *Chapter) GetThumb() string { + if c == nil { return "" } - return o.Thumb + return c.Thumb } // Attributes associated with the marker. @@ -1227,18 +1227,18 @@ type Attributes struct { Version *int64 `json:"version,omitempty"` } -func (o *Attributes) GetID() int64 { - if o == nil { +func (a *Attributes) GetID() int64 { + if a == nil { return 0 } - return o.ID + return a.ID } -func (o *Attributes) GetVersion() *int64 { - if o == nil { +func (a *Attributes) GetVersion() *int64 { + if a == nil { return nil } - return o.Version + return a.Version } // Marker - The final status of the marker @@ -1252,46 +1252,46 @@ type Marker struct { Attributes *Attributes `json:"Attributes,omitempty"` } -func (o *Marker) GetID() int64 { - if o == nil { +func (m *Marker) GetID() int64 { + if m == nil { return 0 } - return o.ID + return m.ID } -func (o *Marker) GetType() string { - if o == nil { +func (m *Marker) GetType() string { + if m == nil { return "" } - return o.Type + return m.Type } -func (o *Marker) GetStartTimeOffset() int64 { - if o == nil { +func (m *Marker) GetStartTimeOffset() int64 { + if m == nil { return 0 } - return o.StartTimeOffset + return m.StartTimeOffset } -func (o *Marker) GetEndTimeOffset() int64 { - if o == nil { +func (m *Marker) GetEndTimeOffset() int64 { + if m == nil { return 0 } - return o.EndTimeOffset + return m.EndTimeOffset } -func (o *Marker) GetFinal() *bool { - if o == nil { +func (m *Marker) GetFinal() *bool { + if m == nil { return nil } - return o.Final + return m.Final } -func (o *Marker) GetAttributes() *Attributes { - if o == nil { +func (m *Marker) GetAttributes() *Attributes { + if m == nil { return nil } - return o.Attributes + return m.Attributes } type Extras struct { @@ -1299,11 +1299,11 @@ type Extras struct { Size *int64 `json:"size,omitempty"` } -func (o *Extras) GetSize() *int64 { - if o == nil { +func (e *Extras) GetSize() *int64 { + if e == nil { return nil } - return o.Size + return e.Size } // GetLibraryItemsMetadata - Unknown @@ -1466,550 +1466,550 @@ func (g *GetLibraryItemsMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibraryItemsMetadata) GetRatingKey() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetLibraryItemsMetadata) GetKey() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibraryItemsMetadata) GetGUID() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGUID() string { + if g == nil { return "" } - return o.GUID + return g.GUID } -func (o *GetLibraryItemsMetadata) GetSlug() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetLibraryItemsMetadata) GetStudio() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetLibraryItemsMetadata) GetType() GetLibraryItemsType { - if o == nil { +func (g *GetLibraryItemsMetadata) GetType() GetLibraryItemsType { + if g == nil { return GetLibraryItemsType("") } - return o.Type + return g.Type } -func (o *GetLibraryItemsMetadata) GetTitle() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibraryItemsMetadata) GetBanner() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetBanner() string { + if g == nil { return "" } - return o.Banner + return g.Banner } -func (o *GetLibraryItemsMetadata) GetTitleSort() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetTitleSort() string { + if g == nil { return "" } - return o.TitleSort + return g.TitleSort } -func (o *GetLibraryItemsMetadata) GetContentRating() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetLibraryItemsMetadata) GetSummary() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetSummary() string { + if g == nil { return "" } - return o.Summary + return g.Summary } -func (o *GetLibraryItemsMetadata) GetRating() float32 { - if o == nil { +func (g *GetLibraryItemsMetadata) GetRating() float32 { + if g == nil { return 0.0 } - return o.Rating + return g.Rating } -func (o *GetLibraryItemsMetadata) GetAudienceRating() float64 { - if o == nil { +func (g *GetLibraryItemsMetadata) GetAudienceRating() float64 { + if g == nil { return 0.0 } - return o.AudienceRating + return g.AudienceRating } -func (o *GetLibraryItemsMetadata) GetYear() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetLibraryItemsMetadata) GetTagline() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetTagline() string { + if g == nil { return "" } - return o.Tagline + return g.Tagline } -func (o *GetLibraryItemsMetadata) GetThumb() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetLibraryItemsMetadata) GetArt() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetLibraryItemsMetadata) GetTheme() string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetTheme() string { + if g == nil { return "" } - return o.Theme + return g.Theme } -func (o *GetLibraryItemsMetadata) GetIndex() int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetIndex() int { + if g == nil { return 0 } - return o.Index + return g.Index } -func (o *GetLibraryItemsMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetLibraryItemsMetadata) GetViewedLeafCount() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetViewedLeafCount() *int { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetLibraryItemsMetadata) GetChildCount() int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetChildCount() int { + if g == nil { return 0 } - return o.ChildCount + return g.ChildCount } -func (o *GetLibraryItemsMetadata) GetSeasonCount() int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetSeasonCount() int { + if g == nil { return 0 } - return o.SeasonCount + return g.SeasonCount } -func (o *GetLibraryItemsMetadata) GetDuration() int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetDuration() int { + if g == nil { return 0 } - return o.Duration + return g.Duration } -func (o *GetLibraryItemsMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetLibraryItemsMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetLibraryItemsMetadata) GetAddedAt() int64 { - if o == nil { +func (g *GetLibraryItemsMetadata) GetAddedAt() int64 { + if g == nil { return 0 } - return o.AddedAt + return g.AddedAt } -func (o *GetLibraryItemsMetadata) GetUpdatedAt() *int64 { - if o == nil { +func (g *GetLibraryItemsMetadata) GetUpdatedAt() *int64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetLibraryItemsMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetLibraryItemsMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } -func (o *GetLibraryItemsMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetLibraryItemsMetadata) GetOriginalTitle() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetOriginalTitle() *string { + if g == nil { return nil } - return o.OriginalTitle + return g.OriginalTitle } -func (o *GetLibraryItemsMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetLibraryItemsMetadata) GetGrandparentRatingKey() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentRatingKey() *string { + if g == nil { return nil } - return o.GrandparentRatingKey + return g.GrandparentRatingKey } -func (o *GetLibraryItemsMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetLibraryItemsMetadata) GetGrandparentGUID() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentGUID() *string { + if g == nil { return nil } - return o.GrandparentGUID + return g.GrandparentGUID } -func (o *GetLibraryItemsMetadata) GetGrandparentSlug() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentSlug() *string { + if g == nil { return nil } - return o.GrandparentSlug + return g.GrandparentSlug } -func (o *GetLibraryItemsMetadata) GetGrandparentKey() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentKey() *string { + if g == nil { return nil } - return o.GrandparentKey + return g.GrandparentKey } -func (o *GetLibraryItemsMetadata) GetParentKey() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetLibraryItemsMetadata) GetGrandparentTitle() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentTitle() *string { + if g == nil { return nil } - return o.GrandparentTitle + return g.GrandparentTitle } -func (o *GetLibraryItemsMetadata) GetGrandparentThumb() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentThumb() *string { + if g == nil { return nil } - return o.GrandparentThumb + return g.GrandparentThumb } -func (o *GetLibraryItemsMetadata) GetGrandparentTheme() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentTheme() *string { + if g == nil { return nil } - return o.GrandparentTheme + return g.GrandparentTheme } -func (o *GetLibraryItemsMetadata) GetGrandparentArt() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGrandparentArt() *string { + if g == nil { return nil } - return o.GrandparentArt + return g.GrandparentArt } -func (o *GetLibraryItemsMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetLibraryItemsMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetLibraryItemsMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetLibraryItemsMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetLibraryItemsMetadata) GetViewCount() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetLibraryItemsMetadata) GetViewOffset() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetViewOffset() *int { + if g == nil { return nil } - return o.ViewOffset + return g.ViewOffset } -func (o *GetLibraryItemsMetadata) GetSkipCount() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetSkipCount() *int { + if g == nil { return nil } - return o.SkipCount + return g.SkipCount } -func (o *GetLibraryItemsMetadata) GetSubtype() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetLibraryItemsMetadata) GetLastRatedAt() *int64 { - if o == nil { +func (g *GetLibraryItemsMetadata) GetLastRatedAt() *int64 { + if g == nil { return nil } - return o.LastRatedAt + return g.LastRatedAt } -func (o *GetLibraryItemsMetadata) GetCreatedAtAccuracy() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetCreatedAtAccuracy() *string { + if g == nil { return nil } - return o.CreatedAtAccuracy + return g.CreatedAtAccuracy } -func (o *GetLibraryItemsMetadata) GetCreatedAtTZOffset() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetCreatedAtTZOffset() *string { + if g == nil { return nil } - return o.CreatedAtTZOffset + return g.CreatedAtTZOffset } -func (o *GetLibraryItemsMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetLibraryItemsMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetLibraryItemsMetadata) GetUserRating() *float32 { - if o == nil { +func (g *GetLibraryItemsMetadata) GetUserRating() *float32 { + if g == nil { return nil } - return o.UserRating + return g.UserRating } -func (o *GetLibraryItemsMetadata) GetImage() []GetLibraryItemsImage { - if o == nil { +func (g *GetLibraryItemsMetadata) GetImage() []GetLibraryItemsImage { + if g == nil { return nil } - return o.Image + return g.Image } -func (o *GetLibraryItemsMetadata) GetUltraBlurColors() *GetLibraryItemsUltraBlurColors { - if o == nil { +func (g *GetLibraryItemsMetadata) GetUltraBlurColors() *GetLibraryItemsUltraBlurColors { + if g == nil { return nil } - return o.UltraBlurColors + return g.UltraBlurColors } -func (o *GetLibraryItemsMetadata) GetGuids() []GetLibraryItemsGuids { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGuids() []GetLibraryItemsGuids { + if g == nil { return nil } - return o.Guids + return g.Guids } -func (o *GetLibraryItemsMetadata) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetLibraryItemsMetadata) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetLibraryItemsMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetLibraryItemsMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetLibraryItemsMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetLibraryItemsMetadata) GetShowOrdering() *ShowOrdering { - if o == nil { +func (g *GetLibraryItemsMetadata) GetShowOrdering() *ShowOrdering { + if g == nil { return nil } - return o.ShowOrdering + return g.ShowOrdering } -func (o *GetLibraryItemsMetadata) GetFlattenSeasons() *FlattenSeasons { - if o == nil { +func (g *GetLibraryItemsMetadata) GetFlattenSeasons() *FlattenSeasons { + if g == nil { return nil } - return o.FlattenSeasons + return g.FlattenSeasons } -func (o *GetLibraryItemsMetadata) GetSkipChildren() *bool { - if o == nil { +func (g *GetLibraryItemsMetadata) GetSkipChildren() *bool { + if g == nil { return nil } - return o.SkipChildren + return g.SkipChildren } -func (o *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia { - if o == nil { +func (g *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetLibraryItemsMetadata) GetGenre() []GetLibraryItemsGenre { - if o == nil { +func (g *GetLibraryItemsMetadata) GetGenre() []GetLibraryItemsGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetLibraryItemsMetadata) GetCountry() []GetLibraryItemsCountry { - if o == nil { +func (g *GetLibraryItemsMetadata) GetCountry() []GetLibraryItemsCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetLibraryItemsMetadata) GetDirector() []GetLibraryItemsDirector { - if o == nil { +func (g *GetLibraryItemsMetadata) GetDirector() []GetLibraryItemsDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetLibraryItemsMetadata) GetWriter() []GetLibraryItemsWriter { - if o == nil { +func (g *GetLibraryItemsMetadata) GetWriter() []GetLibraryItemsWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetLibraryItemsMetadata) GetProducer() []GetLibraryItemsProducer { - if o == nil { +func (g *GetLibraryItemsMetadata) GetProducer() []GetLibraryItemsProducer { + if g == nil { return nil } - return o.Producer + return g.Producer } -func (o *GetLibraryItemsMetadata) GetCollection() []GetLibraryItemsCollection { - if o == nil { +func (g *GetLibraryItemsMetadata) GetCollection() []GetLibraryItemsCollection { + if g == nil { return nil } - return o.Collection + return g.Collection } -func (o *GetLibraryItemsMetadata) GetRole() []GetLibraryItemsRole { - if o == nil { +func (g *GetLibraryItemsMetadata) GetRole() []GetLibraryItemsRole { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetLibraryItemsMetadata) GetRatings() []Ratings { - if o == nil { +func (g *GetLibraryItemsMetadata) GetRatings() []Ratings { + if g == nil { return nil } - return o.Ratings + return g.Ratings } -func (o *GetLibraryItemsMetadata) GetSimilar() []GetLibraryItemsSimilar { - if o == nil { +func (g *GetLibraryItemsMetadata) GetSimilar() []GetLibraryItemsSimilar { + if g == nil { return nil } - return o.Similar + return g.Similar } -func (o *GetLibraryItemsMetadata) GetLocation() []GetLibraryItemsLocation { - if o == nil { +func (g *GetLibraryItemsMetadata) GetLocation() []GetLibraryItemsLocation { + if g == nil { return nil } - return o.Location + return g.Location } -func (o *GetLibraryItemsMetadata) GetChapter() []Chapter { - if o == nil { +func (g *GetLibraryItemsMetadata) GetChapter() []Chapter { + if g == nil { return nil } - return o.Chapter + return g.Chapter } -func (o *GetLibraryItemsMetadata) GetMarker() []Marker { - if o == nil { +func (g *GetLibraryItemsMetadata) GetMarker() []Marker { + if g == nil { return nil } - return o.Marker + return g.Marker } -func (o *GetLibraryItemsMetadata) GetExtras() *Extras { - if o == nil { +func (g *GetLibraryItemsMetadata) GetExtras() *Extras { + if g == nil { return nil } - return o.Extras + return g.Extras } type GetLibraryItemsFilter struct { @@ -2020,39 +2020,39 @@ type GetLibraryItemsFilter struct { Type string `json:"type"` } -func (o *GetLibraryItemsFilter) GetFilter() string { - if o == nil { +func (g *GetLibraryItemsFilter) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetLibraryItemsFilter) GetFilterType() string { - if o == nil { +func (g *GetLibraryItemsFilter) GetFilterType() string { + if g == nil { return "" } - return o.FilterType + return g.FilterType } -func (o *GetLibraryItemsFilter) GetKey() string { - if o == nil { +func (g *GetLibraryItemsFilter) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibraryItemsFilter) GetTitle() string { - if o == nil { +func (g *GetLibraryItemsFilter) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibraryItemsFilter) GetType() string { - if o == nil { +func (g *GetLibraryItemsFilter) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } // GetLibraryItemsActiveDirection - The direction of the sort. Can be either `asc` or `desc`. @@ -2135,60 +2135,60 @@ func (g *GetLibraryItemsSort) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibraryItemsSort) GetDefault() *string { - if o == nil { +func (g *GetLibraryItemsSort) GetDefault() *string { + if g == nil { return nil } - return o.Default + return g.Default } -func (o *GetLibraryItemsSort) GetActive() *bool { - if o == nil { +func (g *GetLibraryItemsSort) GetActive() *bool { + if g == nil { return nil } - return o.Active + return g.Active } -func (o *GetLibraryItemsSort) GetActiveDirection() *GetLibraryItemsActiveDirection { - if o == nil { +func (g *GetLibraryItemsSort) GetActiveDirection() *GetLibraryItemsActiveDirection { + if g == nil { return nil } - return o.ActiveDirection + return g.ActiveDirection } -func (o *GetLibraryItemsSort) GetDefaultDirection() *GetLibraryItemsDefaultDirection { - if o == nil { +func (g *GetLibraryItemsSort) GetDefaultDirection() *GetLibraryItemsDefaultDirection { + if g == nil { return nil } - return o.DefaultDirection + return g.DefaultDirection } -func (o *GetLibraryItemsSort) GetDescKey() *string { - if o == nil { +func (g *GetLibraryItemsSort) GetDescKey() *string { + if g == nil { return nil } - return o.DescKey + return g.DescKey } -func (o *GetLibraryItemsSort) GetFirstCharacterKey() *string { - if o == nil { +func (g *GetLibraryItemsSort) GetFirstCharacterKey() *string { + if g == nil { return nil } - return o.FirstCharacterKey + return g.FirstCharacterKey } -func (o *GetLibraryItemsSort) GetKey() string { - if o == nil { +func (g *GetLibraryItemsSort) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibraryItemsSort) GetTitle() string { - if o == nil { +func (g *GetLibraryItemsSort) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetLibraryItemsField struct { @@ -2198,32 +2198,32 @@ type GetLibraryItemsField struct { SubType *string `json:"subType,omitempty"` } -func (o *GetLibraryItemsField) GetKey() string { - if o == nil { +func (g *GetLibraryItemsField) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibraryItemsField) GetTitle() string { - if o == nil { +func (g *GetLibraryItemsField) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibraryItemsField) GetType() string { - if o == nil { +func (g *GetLibraryItemsField) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetLibraryItemsField) GetSubType() *string { - if o == nil { +func (g *GetLibraryItemsField) GetSubType() *string { + if g == nil { return nil } - return o.SubType + return g.SubType } type GetLibraryItemsLibraryType struct { @@ -2236,53 +2236,53 @@ type GetLibraryItemsLibraryType struct { Field []GetLibraryItemsField `json:"Field,omitempty"` } -func (o *GetLibraryItemsLibraryType) GetKey() string { - if o == nil { +func (g *GetLibraryItemsLibraryType) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibraryItemsLibraryType) GetType() string { - if o == nil { +func (g *GetLibraryItemsLibraryType) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetLibraryItemsLibraryType) GetTitle() string { - if o == nil { +func (g *GetLibraryItemsLibraryType) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibraryItemsLibraryType) GetActive() bool { - if o == nil { +func (g *GetLibraryItemsLibraryType) GetActive() bool { + if g == nil { return false } - return o.Active + return g.Active } -func (o *GetLibraryItemsLibraryType) GetFilter() []GetLibraryItemsFilter { - if o == nil { +func (g *GetLibraryItemsLibraryType) GetFilter() []GetLibraryItemsFilter { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetLibraryItemsLibraryType) GetSort() []GetLibraryItemsSort { - if o == nil { +func (g *GetLibraryItemsLibraryType) GetSort() []GetLibraryItemsSort { + if g == nil { return nil } - return o.Sort + return g.Sort } -func (o *GetLibraryItemsLibraryType) GetField() []GetLibraryItemsField { - if o == nil { +func (g *GetLibraryItemsLibraryType) GetField() []GetLibraryItemsField { + if g == nil { return nil } - return o.Field + return g.Field } type GetLibraryItemsOperator struct { @@ -2290,18 +2290,18 @@ type GetLibraryItemsOperator struct { Title string `json:"title"` } -func (o *GetLibraryItemsOperator) GetKey() string { - if o == nil { +func (g *GetLibraryItemsOperator) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibraryItemsOperator) GetTitle() string { - if o == nil { +func (g *GetLibraryItemsOperator) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetLibraryItemsFieldType struct { @@ -2309,18 +2309,18 @@ type GetLibraryItemsFieldType struct { Operator []GetLibraryItemsOperator `json:"Operator"` } -func (o *GetLibraryItemsFieldType) GetType() string { - if o == nil { +func (g *GetLibraryItemsFieldType) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetLibraryItemsFieldType) GetOperator() []GetLibraryItemsOperator { - if o == nil { +func (g *GetLibraryItemsFieldType) GetOperator() []GetLibraryItemsOperator { + if g == nil { return []GetLibraryItemsOperator{} } - return o.Operator + return g.Operator } // GetLibraryItemsMeta - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. @@ -2329,18 +2329,18 @@ type GetLibraryItemsMeta struct { FieldType []GetLibraryItemsFieldType `json:"FieldType,omitempty"` } -func (o *GetLibraryItemsMeta) GetType() []GetLibraryItemsLibraryType { - if o == nil { +func (g *GetLibraryItemsMeta) GetType() []GetLibraryItemsLibraryType { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibraryItemsMeta) GetFieldType() []GetLibraryItemsFieldType { - if o == nil { +func (g *GetLibraryItemsMeta) GetFieldType() []GetLibraryItemsFieldType { + if g == nil { return nil } - return o.FieldType + return g.FieldType } type GetLibraryItemsMediaContainer struct { @@ -2389,151 +2389,151 @@ type GetLibraryItemsMediaContainer struct { Meta *GetLibraryItemsMeta `json:"Meta,omitempty"` } -func (o *GetLibraryItemsMediaContainer) GetSize() int { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetLibraryItemsMediaContainer) GetTotalSize() int { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetTotalSize() int { + if g == nil { return 0 } - return o.TotalSize + return g.TotalSize } -func (o *GetLibraryItemsMediaContainer) GetOffset() int64 { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetOffset() int64 { + if g == nil { return 0 } - return o.Offset + return g.Offset } -func (o *GetLibraryItemsMediaContainer) GetContent() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetContent() string { + if g == nil { return "" } - return o.Content + return g.Content } -func (o *GetLibraryItemsMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetLibraryItemsMediaContainer) GetNocache() bool { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetNocache() bool { + if g == nil { return false } - return o.Nocache + return g.Nocache } -func (o *GetLibraryItemsMediaContainer) GetArt() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetLibraryItemsMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetLibraryItemsMediaContainer) GetThumb() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetLibraryItemsMediaContainer) GetTitle1() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetTitle1() string { + if g == nil { return "" } - return o.Title1 + return g.Title1 } -func (o *GetLibraryItemsMediaContainer) GetTitle2() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetTitle2() string { + if g == nil { return "" } - return o.Title2 + return g.Title2 } -func (o *GetLibraryItemsMediaContainer) GetViewGroup() string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetViewGroup() string { + if g == nil { return "" } - return o.ViewGroup + return g.ViewGroup } -func (o *GetLibraryItemsMediaContainer) GetViewMode() *string { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetViewMode() *string { + if g == nil { return nil } - return o.ViewMode + return g.ViewMode } -func (o *GetLibraryItemsMediaContainer) GetMixedParents() *bool { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetMixedParents() *bool { + if g == nil { return nil } - return o.MixedParents + return g.MixedParents } -func (o *GetLibraryItemsMediaContainer) GetMetadata() []GetLibraryItemsMetadata { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetMetadata() []GetLibraryItemsMetadata { + if g == nil { return []GetLibraryItemsMetadata{} } - return o.Metadata + return g.Metadata } -func (o *GetLibraryItemsMediaContainer) GetMeta() *GetLibraryItemsMeta { - if o == nil { +func (g *GetLibraryItemsMediaContainer) GetMeta() *GetLibraryItemsMeta { + if g == nil { return nil } - return o.Meta + return g.Meta } // GetLibraryItemsResponseBody - The contents of the library by section and tag @@ -2541,11 +2541,11 @@ type GetLibraryItemsResponseBody struct { MediaContainer *GetLibraryItemsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetLibraryItemsResponseBody) GetMediaContainer() *GetLibraryItemsMediaContainer { - if o == nil { +func (g *GetLibraryItemsResponseBody) GetMediaContainer() *GetLibraryItemsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetLibraryItemsResponse struct { @@ -2559,30 +2559,30 @@ type GetLibraryItemsResponse struct { Object *GetLibraryItemsResponseBody } -func (o *GetLibraryItemsResponse) GetContentType() string { - if o == nil { +func (g *GetLibraryItemsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetLibraryItemsResponse) GetStatusCode() int { - if o == nil { +func (g *GetLibraryItemsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetLibraryItemsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetLibraryItemsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetLibraryItemsResponse) GetObject() *GetLibraryItemsResponseBody { - if o == nil { +func (g *GetLibraryItemsResponse) GetObject() *GetLibraryItemsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getlibrarysectionsall.go b/models/operations/getlibrarysectionsall.go index e5f1173..ab27105 100644 --- a/models/operations/getlibrarysectionsall.go +++ b/models/operations/getlibrarysectionsall.go @@ -212,67 +212,67 @@ func (g *GetLibrarySectionsAllRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibrarySectionsAllRequest) GetSectionKey() int { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } -func (o *GetLibrarySectionsAllRequest) GetType() GetLibrarySectionsAllQueryParamType { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetType() GetLibrarySectionsAllQueryParamType { + if g == nil { return GetLibrarySectionsAllQueryParamType(0) } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllRequest) GetIncludeMeta() *GetLibrarySectionsAllQueryParamIncludeMeta { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetIncludeMeta() *GetLibrarySectionsAllQueryParamIncludeMeta { + if g == nil { return nil } - return o.IncludeMeta + return g.IncludeMeta } -func (o *GetLibrarySectionsAllRequest) GetIncludeGuids() *QueryParamIncludeGuids { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetIncludeGuids() *QueryParamIncludeGuids { + if g == nil { return nil } - return o.IncludeGuids + return g.IncludeGuids } -func (o *GetLibrarySectionsAllRequest) GetIncludeAdvanced() *IncludeAdvanced { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetIncludeAdvanced() *IncludeAdvanced { + if g == nil { return nil } - return o.IncludeAdvanced + return g.IncludeAdvanced } -func (o *GetLibrarySectionsAllRequest) GetIncludeCollections() *QueryParamIncludeCollections { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetIncludeCollections() *QueryParamIncludeCollections { + if g == nil { return nil } - return o.IncludeCollections + return g.IncludeCollections } -func (o *GetLibrarySectionsAllRequest) GetIncludeExternalMedia() *QueryParamIncludeExternalMedia { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetIncludeExternalMedia() *QueryParamIncludeExternalMedia { + if g == nil { return nil } - return o.IncludeExternalMedia + return g.IncludeExternalMedia } -func (o *GetLibrarySectionsAllRequest) GetXPlexContainerStart() *int { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetXPlexContainerStart() *int { + if g == nil { return nil } - return o.XPlexContainerStart + return g.XPlexContainerStart } -func (o *GetLibrarySectionsAllRequest) GetXPlexContainerSize() *int { - if o == nil { +func (g *GetLibrarySectionsAllRequest) GetXPlexContainerSize() *int { + if g == nil { return nil } - return o.XPlexContainerSize + return g.XPlexContainerSize } type GetLibrarySectionsAllFilter struct { @@ -284,46 +284,46 @@ type GetLibrarySectionsAllFilter struct { Advanced *bool `json:"advanced,omitempty"` } -func (o *GetLibrarySectionsAllFilter) GetFilter() string { - if o == nil { +func (g *GetLibrarySectionsAllFilter) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetLibrarySectionsAllFilter) GetFilterType() string { - if o == nil { +func (g *GetLibrarySectionsAllFilter) GetFilterType() string { + if g == nil { return "" } - return o.FilterType + return g.FilterType } -func (o *GetLibrarySectionsAllFilter) GetKey() string { - if o == nil { +func (g *GetLibrarySectionsAllFilter) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllFilter) GetTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllFilter) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibrarySectionsAllFilter) GetType() string { - if o == nil { +func (g *GetLibrarySectionsAllFilter) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllFilter) GetAdvanced() *bool { - if o == nil { +func (g *GetLibrarySectionsAllFilter) GetAdvanced() *bool { + if g == nil { return nil } - return o.Advanced + return g.Advanced } // GetLibrarySectionsAllActiveDirection - The direction of the sort. Can be either `asc` or `desc`. @@ -406,60 +406,60 @@ func (g *GetLibrarySectionsAllSort) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibrarySectionsAllSort) GetDefault() *string { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetDefault() *string { + if g == nil { return nil } - return o.Default + return g.Default } -func (o *GetLibrarySectionsAllSort) GetActive() *bool { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetActive() *bool { + if g == nil { return nil } - return o.Active + return g.Active } -func (o *GetLibrarySectionsAllSort) GetActiveDirection() *GetLibrarySectionsAllActiveDirection { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetActiveDirection() *GetLibrarySectionsAllActiveDirection { + if g == nil { return nil } - return o.ActiveDirection + return g.ActiveDirection } -func (o *GetLibrarySectionsAllSort) GetDefaultDirection() *GetLibrarySectionsAllDefaultDirection { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetDefaultDirection() *GetLibrarySectionsAllDefaultDirection { + if g == nil { return nil } - return o.DefaultDirection + return g.DefaultDirection } -func (o *GetLibrarySectionsAllSort) GetDescKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetDescKey() *string { + if g == nil { return nil } - return o.DescKey + return g.DescKey } -func (o *GetLibrarySectionsAllSort) GetFirstCharacterKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetFirstCharacterKey() *string { + if g == nil { return nil } - return o.FirstCharacterKey + return g.FirstCharacterKey } -func (o *GetLibrarySectionsAllSort) GetKey() string { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllSort) GetTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllSort) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetLibrarySectionsAllField struct { @@ -469,32 +469,32 @@ type GetLibrarySectionsAllField struct { SubType *string `json:"subType,omitempty"` } -func (o *GetLibrarySectionsAllField) GetKey() string { - if o == nil { +func (g *GetLibrarySectionsAllField) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllField) GetTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllField) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibrarySectionsAllField) GetType() string { - if o == nil { +func (g *GetLibrarySectionsAllField) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllField) GetSubType() *string { - if o == nil { +func (g *GetLibrarySectionsAllField) GetSubType() *string { + if g == nil { return nil } - return o.SubType + return g.SubType } type GetLibrarySectionsAllType struct { @@ -508,60 +508,60 @@ type GetLibrarySectionsAllType struct { Field []GetLibrarySectionsAllField `json:"Field,omitempty"` } -func (o *GetLibrarySectionsAllType) GetKey() string { - if o == nil { +func (g *GetLibrarySectionsAllType) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllType) GetType() string { - if o == nil { +func (g *GetLibrarySectionsAllType) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllType) GetSubtype() *string { - if o == nil { +func (g *GetLibrarySectionsAllType) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetLibrarySectionsAllType) GetTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllType) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibrarySectionsAllType) GetActive() bool { - if o == nil { +func (g *GetLibrarySectionsAllType) GetActive() bool { + if g == nil { return false } - return o.Active + return g.Active } -func (o *GetLibrarySectionsAllType) GetFilter() []GetLibrarySectionsAllFilter { - if o == nil { +func (g *GetLibrarySectionsAllType) GetFilter() []GetLibrarySectionsAllFilter { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetLibrarySectionsAllType) GetSort() []GetLibrarySectionsAllSort { - if o == nil { +func (g *GetLibrarySectionsAllType) GetSort() []GetLibrarySectionsAllSort { + if g == nil { return nil } - return o.Sort + return g.Sort } -func (o *GetLibrarySectionsAllType) GetField() []GetLibrarySectionsAllField { - if o == nil { +func (g *GetLibrarySectionsAllType) GetField() []GetLibrarySectionsAllField { + if g == nil { return nil } - return o.Field + return g.Field } type GetLibrarySectionsAllOperator struct { @@ -569,18 +569,18 @@ type GetLibrarySectionsAllOperator struct { Title string `json:"title"` } -func (o *GetLibrarySectionsAllOperator) GetKey() string { - if o == nil { +func (g *GetLibrarySectionsAllOperator) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllOperator) GetTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllOperator) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetLibrarySectionsAllFieldType struct { @@ -588,18 +588,18 @@ type GetLibrarySectionsAllFieldType struct { Operator []GetLibrarySectionsAllOperator `json:"Operator"` } -func (o *GetLibrarySectionsAllFieldType) GetType() string { - if o == nil { +func (g *GetLibrarySectionsAllFieldType) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllFieldType) GetOperator() []GetLibrarySectionsAllOperator { - if o == nil { +func (g *GetLibrarySectionsAllFieldType) GetOperator() []GetLibrarySectionsAllOperator { + if g == nil { return []GetLibrarySectionsAllOperator{} } - return o.Operator + return g.Operator } // GetLibrarySectionsAllMeta - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. @@ -608,18 +608,18 @@ type GetLibrarySectionsAllMeta struct { FieldType []GetLibrarySectionsAllFieldType `json:"FieldType,omitempty"` } -func (o *GetLibrarySectionsAllMeta) GetType() []GetLibrarySectionsAllType { - if o == nil { +func (g *GetLibrarySectionsAllMeta) GetType() []GetLibrarySectionsAllType { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllMeta) GetFieldType() []GetLibrarySectionsAllFieldType { - if o == nil { +func (g *GetLibrarySectionsAllMeta) GetFieldType() []GetLibrarySectionsAllFieldType { + if g == nil { return nil } - return o.FieldType + return g.FieldType } // GetLibrarySectionsAllLibraryType - The type of media content in the Plex library. This can represent videos, music, or photos. @@ -661,25 +661,25 @@ type GetLibrarySectionsAllImage struct { URL string `json:"url"` } -func (o *GetLibrarySectionsAllImage) GetAlt() string { - if o == nil { +func (g *GetLibrarySectionsAllImage) GetAlt() string { + if g == nil { return "" } - return o.Alt + return g.Alt } -func (o *GetLibrarySectionsAllImage) GetType() GetLibrarySectionsAllLibraryResponseType { - if o == nil { +func (g *GetLibrarySectionsAllImage) GetType() GetLibrarySectionsAllLibraryResponseType { + if g == nil { return GetLibrarySectionsAllLibraryResponseType("") } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllImage) GetURL() string { - if o == nil { +func (g *GetLibrarySectionsAllImage) GetURL() string { + if g == nil { return "" } - return o.URL + return g.URL } type GetLibrarySectionsAllUltraBlurColors struct { @@ -689,32 +689,32 @@ type GetLibrarySectionsAllUltraBlurColors struct { BottomLeft string `json:"bottomLeft"` } -func (o *GetLibrarySectionsAllUltraBlurColors) GetTopLeft() string { - if o == nil { +func (g *GetLibrarySectionsAllUltraBlurColors) GetTopLeft() string { + if g == nil { return "" } - return o.TopLeft + return g.TopLeft } -func (o *GetLibrarySectionsAllUltraBlurColors) GetTopRight() string { - if o == nil { +func (g *GetLibrarySectionsAllUltraBlurColors) GetTopRight() string { + if g == nil { return "" } - return o.TopRight + return g.TopRight } -func (o *GetLibrarySectionsAllUltraBlurColors) GetBottomRight() string { - if o == nil { +func (g *GetLibrarySectionsAllUltraBlurColors) GetBottomRight() string { + if g == nil { return "" } - return o.BottomRight + return g.BottomRight } -func (o *GetLibrarySectionsAllUltraBlurColors) GetBottomLeft() string { - if o == nil { +func (g *GetLibrarySectionsAllUltraBlurColors) GetBottomLeft() string { + if g == nil { return "" } - return o.BottomLeft + return g.BottomLeft } type GetLibrarySectionsAllGuids struct { @@ -723,11 +723,11 @@ type GetLibrarySectionsAllGuids struct { ID string `json:"id"` } -func (o *GetLibrarySectionsAllGuids) GetID() string { - if o == nil { +func (g *GetLibrarySectionsAllGuids) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } type GetLibrarySectionsAllOptimizedForStreaming1 int @@ -765,8 +765,8 @@ const ( // GetLibrarySectionsAllOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetLibrarySectionsAllOptimizedForStreaming struct { - GetLibrarySectionsAllOptimizedForStreaming1 *GetLibrarySectionsAllOptimizedForStreaming1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetLibrarySectionsAllOptimizedForStreaming1 *GetLibrarySectionsAllOptimizedForStreaming1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetLibrarySectionsAllOptimizedForStreamingType } @@ -855,8 +855,8 @@ const ( // GetLibrarySectionsAllLibraryOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetLibrarySectionsAllLibraryOptimizedForStreaming struct { - GetLibrarySectionsAllOptimizedForStreamingLibrary1 *GetLibrarySectionsAllOptimizedForStreamingLibrary1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetLibrarySectionsAllOptimizedForStreamingLibrary1 *GetLibrarySectionsAllOptimizedForStreamingLibrary1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetLibrarySectionsAllLibraryOptimizedForStreamingType } @@ -1052,358 +1052,358 @@ func (g *GetLibrarySectionsAllStream) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibrarySectionsAllStream) GetID() int64 { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibrarySectionsAllStream) GetStreamType() int64 { +func (g *GetLibrarySectionsAllStream) GetStreamType() int64 { return 1 } -func (o *GetLibrarySectionsAllStream) GetFormat() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetFormat() *string { + if g == nil { return nil } - return o.Format + return g.Format } -func (o *GetLibrarySectionsAllStream) GetDefault() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDefault() *bool { + if g == nil { return nil } - return o.Default + return g.Default } -func (o *GetLibrarySectionsAllStream) GetCodec() string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetCodec() string { + if g == nil { return "" } - return o.Codec + return g.Codec } -func (o *GetLibrarySectionsAllStream) GetIndex() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetIndex() *int { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetLibrarySectionsAllStream) GetBitrate() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetLibrarySectionsAllStream) GetLanguage() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetLanguage() *string { + if g == nil { return nil } - return o.Language + return g.Language } -func (o *GetLibrarySectionsAllStream) GetLanguageTag() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetLanguageTag() *string { + if g == nil { return nil } - return o.LanguageTag + return g.LanguageTag } -func (o *GetLibrarySectionsAllStream) GetLanguageCode() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetLanguageCode() *string { + if g == nil { return nil } - return o.LanguageCode + return g.LanguageCode } -func (o *GetLibrarySectionsAllStream) GetHeaderCompression() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetHeaderCompression() *bool { + if g == nil { return nil } - return o.HeaderCompression + return g.HeaderCompression } -func (o *GetLibrarySectionsAllStream) GetDOVIBLCompatID() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVIBLCompatID() *int { + if g == nil { return nil } - return o.DOVIBLCompatID + return g.DOVIBLCompatID } -func (o *GetLibrarySectionsAllStream) GetDOVIBLPresent() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVIBLPresent() *bool { + if g == nil { return nil } - return o.DOVIBLPresent + return g.DOVIBLPresent } -func (o *GetLibrarySectionsAllStream) GetDOVIELPresent() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVIELPresent() *bool { + if g == nil { return nil } - return o.DOVIELPresent + return g.DOVIELPresent } -func (o *GetLibrarySectionsAllStream) GetDOVILevel() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVILevel() *int { + if g == nil { return nil } - return o.DOVILevel + return g.DOVILevel } -func (o *GetLibrarySectionsAllStream) GetDOVIPresent() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVIPresent() *bool { + if g == nil { return nil } - return o.DOVIPresent + return g.DOVIPresent } -func (o *GetLibrarySectionsAllStream) GetDOVIProfile() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVIProfile() *int { + if g == nil { return nil } - return o.DOVIProfile + return g.DOVIProfile } -func (o *GetLibrarySectionsAllStream) GetDOVIRPUPresent() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVIRPUPresent() *bool { + if g == nil { return nil } - return o.DOVIRPUPresent + return g.DOVIRPUPresent } -func (o *GetLibrarySectionsAllStream) GetDOVIVersion() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDOVIVersion() *string { + if g == nil { return nil } - return o.DOVIVersion + return g.DOVIVersion } -func (o *GetLibrarySectionsAllStream) GetBitDepth() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetBitDepth() *int { + if g == nil { return nil } - return o.BitDepth + return g.BitDepth } -func (o *GetLibrarySectionsAllStream) GetChromaLocation() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetChromaLocation() *string { + if g == nil { return nil } - return o.ChromaLocation + return g.ChromaLocation } -func (o *GetLibrarySectionsAllStream) GetChromaSubsampling() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetChromaSubsampling() *string { + if g == nil { return nil } - return o.ChromaSubsampling + return g.ChromaSubsampling } -func (o *GetLibrarySectionsAllStream) GetCodedHeight() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetCodedHeight() *int { + if g == nil { return nil } - return o.CodedHeight + return g.CodedHeight } -func (o *GetLibrarySectionsAllStream) GetCodedWidth() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetCodedWidth() *int { + if g == nil { return nil } - return o.CodedWidth + return g.CodedWidth } -func (o *GetLibrarySectionsAllStream) GetClosedCaptions() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetClosedCaptions() *bool { + if g == nil { return nil } - return o.ClosedCaptions + return g.ClosedCaptions } -func (o *GetLibrarySectionsAllStream) GetColorPrimaries() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetColorPrimaries() *string { + if g == nil { return nil } - return o.ColorPrimaries + return g.ColorPrimaries } -func (o *GetLibrarySectionsAllStream) GetColorRange() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetColorRange() *string { + if g == nil { return nil } - return o.ColorRange + return g.ColorRange } -func (o *GetLibrarySectionsAllStream) GetColorSpace() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetColorSpace() *string { + if g == nil { return nil } - return o.ColorSpace + return g.ColorSpace } -func (o *GetLibrarySectionsAllStream) GetColorTrc() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetColorTrc() *string { + if g == nil { return nil } - return o.ColorTrc + return g.ColorTrc } -func (o *GetLibrarySectionsAllStream) GetFrameRate() *float32 { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetFrameRate() *float32 { + if g == nil { return nil } - return o.FrameRate + return g.FrameRate } -func (o *GetLibrarySectionsAllStream) GetKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllStream) GetHeight() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetLibrarySectionsAllStream) GetLevel() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetLevel() *int { + if g == nil { return nil } - return o.Level + return g.Level } -func (o *GetLibrarySectionsAllStream) GetOriginal() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetOriginal() *bool { + if g == nil { return nil } - return o.Original + return g.Original } -func (o *GetLibrarySectionsAllStream) GetHasScalingMatrix() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetHasScalingMatrix() *bool { + if g == nil { return nil } - return o.HasScalingMatrix + return g.HasScalingMatrix } -func (o *GetLibrarySectionsAllStream) GetProfile() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetProfile() *string { + if g == nil { return nil } - return o.Profile + return g.Profile } -func (o *GetLibrarySectionsAllStream) GetScanType() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetScanType() *string { + if g == nil { return nil } - return o.ScanType + return g.ScanType } -func (o *GetLibrarySectionsAllStream) GetEmbeddedInVideo() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetEmbeddedInVideo() *string { + if g == nil { return nil } - return o.EmbeddedInVideo + return g.EmbeddedInVideo } -func (o *GetLibrarySectionsAllStream) GetRefFrames() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetRefFrames() *int { + if g == nil { return nil } - return o.RefFrames + return g.RefFrames } -func (o *GetLibrarySectionsAllStream) GetWidth() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetLibrarySectionsAllStream) GetDisplayTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDisplayTitle() string { + if g == nil { return "" } - return o.DisplayTitle + return g.DisplayTitle } -func (o *GetLibrarySectionsAllStream) GetExtendedDisplayTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetExtendedDisplayTitle() string { + if g == nil { return "" } - return o.ExtendedDisplayTitle + return g.ExtendedDisplayTitle } -func (o *GetLibrarySectionsAllStream) GetSelected() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetSelected() *bool { + if g == nil { return nil } - return o.Selected + return g.Selected } -func (o *GetLibrarySectionsAllStream) GetForced() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetForced() *bool { + if g == nil { return nil } - return o.Forced + return g.Forced } -func (o *GetLibrarySectionsAllStream) GetChannels() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetChannels() *int { + if g == nil { return nil } - return o.Channels + return g.Channels } -func (o *GetLibrarySectionsAllStream) GetAudioChannelLayout() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetAudioChannelLayout() *string { + if g == nil { return nil } - return o.AudioChannelLayout + return g.AudioChannelLayout } -func (o *GetLibrarySectionsAllStream) GetSamplingRate() *int { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetSamplingRate() *int { + if g == nil { return nil } - return o.SamplingRate + return g.SamplingRate } -func (o *GetLibrarySectionsAllStream) GetCanAutoSync() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetCanAutoSync() *bool { + if g == nil { return nil } - return o.CanAutoSync + return g.CanAutoSync } -func (o *GetLibrarySectionsAllStream) GetHearingImpaired() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetHearingImpaired() *bool { + if g == nil { return nil } - return o.HearingImpaired + return g.HearingImpaired } -func (o *GetLibrarySectionsAllStream) GetDub() *bool { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetDub() *bool { + if g == nil { return nil } - return o.Dub + return g.Dub } -func (o *GetLibrarySectionsAllStream) GetTitle() *string { - if o == nil { +func (g *GetLibrarySectionsAllStream) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } type GetLibrarySectionsAllPart struct { @@ -1448,116 +1448,116 @@ func (g *GetLibrarySectionsAllPart) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibrarySectionsAllPart) GetAccessible() *bool { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetAccessible() *bool { + if g == nil { return nil } - return o.Accessible + return g.Accessible } -func (o *GetLibrarySectionsAllPart) GetExists() *bool { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetExists() *bool { + if g == nil { return nil } - return o.Exists + return g.Exists } -func (o *GetLibrarySectionsAllPart) GetID() int64 { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibrarySectionsAllPart) GetKey() string { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllPart) GetIndexes() *string { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetIndexes() *string { + if g == nil { return nil } - return o.Indexes + return g.Indexes } -func (o *GetLibrarySectionsAllPart) GetDuration() *int { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetLibrarySectionsAllPart) GetFile() string { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetFile() string { + if g == nil { return "" } - return o.File + return g.File } -func (o *GetLibrarySectionsAllPart) GetSize() int64 { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetSize() int64 { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetLibrarySectionsAllPart) GetPacketLength() *int { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetPacketLength() *int { + if g == nil { return nil } - return o.PacketLength + return g.PacketLength } -func (o *GetLibrarySectionsAllPart) GetContainer() *string { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetLibrarySectionsAllPart) GetVideoProfile() *string { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetLibrarySectionsAllPart) GetAudioProfile() *string { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetLibrarySectionsAllPart) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetLibrarySectionsAllPart) GetOptimizedForStreaming() *GetLibrarySectionsAllLibraryOptimizedForStreaming { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetOptimizedForStreaming() *GetLibrarySectionsAllLibraryOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetLibrarySectionsAllPart) GetHasThumbnail() *GetLibrarySectionsAllHasThumbnail { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetHasThumbnail() *GetLibrarySectionsAllHasThumbnail { + if g == nil { return nil } - return o.HasThumbnail + return g.HasThumbnail } -func (o *GetLibrarySectionsAllPart) GetStream() []GetLibrarySectionsAllStream { - if o == nil { +func (g *GetLibrarySectionsAllPart) GetStream() []GetLibrarySectionsAllStream { + if g == nil { return nil } - return o.Stream + return g.Stream } type GetLibrarySectionsAllMedia struct { @@ -1600,137 +1600,137 @@ type GetLibrarySectionsAllMedia struct { Part []GetLibrarySectionsAllPart `json:"Part,omitempty"` } -func (o *GetLibrarySectionsAllMedia) GetID() int64 { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetLibrarySectionsAllMedia) GetDuration() *int { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetLibrarySectionsAllMedia) GetBitrate() *int { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetLibrarySectionsAllMedia) GetWidth() *int { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetLibrarySectionsAllMedia) GetHeight() *int { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetLibrarySectionsAllMedia) GetAspectRatio() *float32 { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetAspectRatio() *float32 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetLibrarySectionsAllMedia) GetAudioChannels() *int { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetAudioChannels() *int { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetLibrarySectionsAllMedia) GetDisplayOffset() *int { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetDisplayOffset() *int { + if g == nil { return nil } - return o.DisplayOffset + return g.DisplayOffset } -func (o *GetLibrarySectionsAllMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetLibrarySectionsAllMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetLibrarySectionsAllMedia) GetVideoResolution() *string { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetVideoResolution() *string { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetLibrarySectionsAllMedia) GetContainer() *string { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetLibrarySectionsAllMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetLibrarySectionsAllMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetLibrarySectionsAllMedia) GetHasVoiceActivity() *bool { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetHasVoiceActivity() *bool { + if g == nil { return nil } - return o.HasVoiceActivity + return g.HasVoiceActivity } -func (o *GetLibrarySectionsAllMedia) GetAudioProfile() *string { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetLibrarySectionsAllMedia) GetOptimizedForStreaming() *GetLibrarySectionsAllOptimizedForStreaming { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetOptimizedForStreaming() *GetLibrarySectionsAllOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetLibrarySectionsAllMedia) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetLibrarySectionsAllMedia) GetPart() []GetLibrarySectionsAllPart { - if o == nil { +func (g *GetLibrarySectionsAllMedia) GetPart() []GetLibrarySectionsAllPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetLibrarySectionsAllGenre struct { @@ -1739,11 +1739,11 @@ type GetLibrarySectionsAllGenre struct { Tag string `json:"tag"` } -func (o *GetLibrarySectionsAllGenre) GetTag() string { - if o == nil { +func (g *GetLibrarySectionsAllGenre) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibrarySectionsAllCountry struct { @@ -1751,11 +1751,11 @@ type GetLibrarySectionsAllCountry struct { Tag string `json:"tag"` } -func (o *GetLibrarySectionsAllCountry) GetTag() string { - if o == nil { +func (g *GetLibrarySectionsAllCountry) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibrarySectionsAllDirector struct { @@ -1763,11 +1763,11 @@ type GetLibrarySectionsAllDirector struct { Tag string `json:"tag"` } -func (o *GetLibrarySectionsAllDirector) GetTag() string { - if o == nil { +func (g *GetLibrarySectionsAllDirector) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibrarySectionsAllWriter struct { @@ -1775,11 +1775,11 @@ type GetLibrarySectionsAllWriter struct { Tag string `json:"tag"` } -func (o *GetLibrarySectionsAllWriter) GetTag() string { - if o == nil { +func (g *GetLibrarySectionsAllWriter) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibrarySectionsAllRole struct { @@ -1787,11 +1787,11 @@ type GetLibrarySectionsAllRole struct { Tag string `json:"tag"` } -func (o *GetLibrarySectionsAllRole) GetTag() string { - if o == nil { +func (g *GetLibrarySectionsAllRole) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetLibrarySectionsAllCollection struct { @@ -1799,11 +1799,11 @@ type GetLibrarySectionsAllCollection struct { Tag string `json:"tag"` } -func (o *GetLibrarySectionsAllCollection) GetTag() string { - if o == nil { +func (g *GetLibrarySectionsAllCollection) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } // GetLibrarySectionsAllMetadata - Unknown @@ -1937,452 +1937,452 @@ func (g *GetLibrarySectionsAllMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetLibrarySectionsAllMetadata) GetRatingKey() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetLibrarySectionsAllMetadata) GetKey() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetLibrarySectionsAllMetadata) GetGUID() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGUID() string { + if g == nil { return "" } - return o.GUID + return g.GUID } -func (o *GetLibrarySectionsAllMetadata) GetSlug() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetLibrarySectionsAllMetadata) GetStudio() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetLibrarySectionsAllMetadata) GetType() GetLibrarySectionsAllLibraryType { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetType() GetLibrarySectionsAllLibraryType { + if g == nil { return GetLibrarySectionsAllLibraryType("") } - return o.Type + return g.Type } -func (o *GetLibrarySectionsAllMetadata) GetTitle() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetLibrarySectionsAllMetadata) GetTitleSort() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetTitleSort() string { + if g == nil { return "" } - return o.TitleSort + return g.TitleSort } -func (o *GetLibrarySectionsAllMetadata) GetContentRating() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetLibrarySectionsAllMetadata) GetSummary() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetSummary() string { + if g == nil { return "" } - return o.Summary + return g.Summary } -func (o *GetLibrarySectionsAllMetadata) GetRating() float32 { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetRating() float32 { + if g == nil { return 0.0 } - return o.Rating + return g.Rating } -func (o *GetLibrarySectionsAllMetadata) GetAudienceRating() float64 { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetAudienceRating() float64 { + if g == nil { return 0.0 } - return o.AudienceRating + return g.AudienceRating } -func (o *GetLibrarySectionsAllMetadata) GetYear() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetLibrarySectionsAllMetadata) GetTagline() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetTagline() string { + if g == nil { return "" } - return o.Tagline + return g.Tagline } -func (o *GetLibrarySectionsAllMetadata) GetThumb() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetLibrarySectionsAllMetadata) GetArt() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetLibrarySectionsAllMetadata) GetTheme() string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetTheme() string { + if g == nil { return "" } - return o.Theme + return g.Theme } -func (o *GetLibrarySectionsAllMetadata) GetIndex() int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetIndex() int { + if g == nil { return 0 } - return o.Index + return g.Index } -func (o *GetLibrarySectionsAllMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetLibrarySectionsAllMetadata) GetViewedLeafCount() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetViewedLeafCount() *int { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetLibrarySectionsAllMetadata) GetChildCount() int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetChildCount() int { + if g == nil { return 0 } - return o.ChildCount + return g.ChildCount } -func (o *GetLibrarySectionsAllMetadata) GetSeasonCount() int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetSeasonCount() int { + if g == nil { return 0 } - return o.SeasonCount + return g.SeasonCount } -func (o *GetLibrarySectionsAllMetadata) GetDuration() int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetDuration() int { + if g == nil { return 0 } - return o.Duration + return g.Duration } -func (o *GetLibrarySectionsAllMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetLibrarySectionsAllMetadata) GetAddedAt() int64 { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetAddedAt() int64 { + if g == nil { return 0 } - return o.AddedAt + return g.AddedAt } -func (o *GetLibrarySectionsAllMetadata) GetUpdatedAt() *int64 { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetUpdatedAt() *int64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetLibrarySectionsAllMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetLibrarySectionsAllMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } -func (o *GetLibrarySectionsAllMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetLibrarySectionsAllMetadata) GetOriginalTitle() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetOriginalTitle() *string { + if g == nil { return nil } - return o.OriginalTitle + return g.OriginalTitle } -func (o *GetLibrarySectionsAllMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentRatingKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentRatingKey() *string { + if g == nil { return nil } - return o.GrandparentRatingKey + return g.GrandparentRatingKey } -func (o *GetLibrarySectionsAllMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentGUID() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentGUID() *string { + if g == nil { return nil } - return o.GrandparentGUID + return g.GrandparentGUID } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentSlug() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentSlug() *string { + if g == nil { return nil } - return o.GrandparentSlug + return g.GrandparentSlug } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentKey() *string { + if g == nil { return nil } - return o.GrandparentKey + return g.GrandparentKey } -func (o *GetLibrarySectionsAllMetadata) GetParentKey() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentTitle() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentTitle() *string { + if g == nil { return nil } - return o.GrandparentTitle + return g.GrandparentTitle } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentThumb() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentThumb() *string { + if g == nil { return nil } - return o.GrandparentThumb + return g.GrandparentThumb } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentTheme() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentTheme() *string { + if g == nil { return nil } - return o.GrandparentTheme + return g.GrandparentTheme } -func (o *GetLibrarySectionsAllMetadata) GetGrandparentArt() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGrandparentArt() *string { + if g == nil { return nil } - return o.GrandparentArt + return g.GrandparentArt } -func (o *GetLibrarySectionsAllMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetLibrarySectionsAllMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetLibrarySectionsAllMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetLibrarySectionsAllMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetLibrarySectionsAllMetadata) GetViewCount() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetLibrarySectionsAllMetadata) GetViewOffset() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetViewOffset() *int { + if g == nil { return nil } - return o.ViewOffset + return g.ViewOffset } -func (o *GetLibrarySectionsAllMetadata) GetSkipCount() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetSkipCount() *int { + if g == nil { return nil } - return o.SkipCount + return g.SkipCount } -func (o *GetLibrarySectionsAllMetadata) GetSubtype() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetLibrarySectionsAllMetadata) GetLastRatedAt() *int64 { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetLastRatedAt() *int64 { + if g == nil { return nil } - return o.LastRatedAt + return g.LastRatedAt } -func (o *GetLibrarySectionsAllMetadata) GetCreatedAtAccuracy() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetCreatedAtAccuracy() *string { + if g == nil { return nil } - return o.CreatedAtAccuracy + return g.CreatedAtAccuracy } -func (o *GetLibrarySectionsAllMetadata) GetCreatedAtTZOffset() *string { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetCreatedAtTZOffset() *string { + if g == nil { return nil } - return o.CreatedAtTZOffset + return g.CreatedAtTZOffset } -func (o *GetLibrarySectionsAllMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetLibrarySectionsAllMetadata) GetUserRating() *float32 { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetUserRating() *float32 { + if g == nil { return nil } - return o.UserRating + return g.UserRating } -func (o *GetLibrarySectionsAllMetadata) GetImage() []GetLibrarySectionsAllImage { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetImage() []GetLibrarySectionsAllImage { + if g == nil { return nil } - return o.Image + return g.Image } -func (o *GetLibrarySectionsAllMetadata) GetUltraBlurColors() *GetLibrarySectionsAllUltraBlurColors { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetUltraBlurColors() *GetLibrarySectionsAllUltraBlurColors { + if g == nil { return nil } - return o.UltraBlurColors + return g.UltraBlurColors } -func (o *GetLibrarySectionsAllMetadata) GetGuids() []GetLibrarySectionsAllGuids { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGuids() []GetLibrarySectionsAllGuids { + if g == nil { return nil } - return o.Guids + return g.Guids } -func (o *GetLibrarySectionsAllMetadata) GetMedia() []GetLibrarySectionsAllMedia { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetMedia() []GetLibrarySectionsAllMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetLibrarySectionsAllMetadata) GetGenre() []GetLibrarySectionsAllGenre { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetGenre() []GetLibrarySectionsAllGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetLibrarySectionsAllMetadata) GetCountry() []GetLibrarySectionsAllCountry { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetCountry() []GetLibrarySectionsAllCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetLibrarySectionsAllMetadata) GetDirector() []GetLibrarySectionsAllDirector { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetDirector() []GetLibrarySectionsAllDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetLibrarySectionsAllMetadata) GetWriter() []GetLibrarySectionsAllWriter { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetWriter() []GetLibrarySectionsAllWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetLibrarySectionsAllMetadata) GetRole() []GetLibrarySectionsAllRole { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetRole() []GetLibrarySectionsAllRole { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetLibrarySectionsAllMetadata) GetCollection() []GetLibrarySectionsAllCollection { - if o == nil { +func (g *GetLibrarySectionsAllMetadata) GetCollection() []GetLibrarySectionsAllCollection { + if g == nil { return nil } - return o.Collection + return g.Collection } type GetLibrarySectionsAllMediaContainer struct { @@ -2427,137 +2427,137 @@ type GetLibrarySectionsAllMediaContainer struct { Metadata []GetLibrarySectionsAllMetadata `json:"Metadata,omitempty"` } -func (o *GetLibrarySectionsAllMediaContainer) GetSize() int { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetLibrarySectionsAllMediaContainer) GetTotalSize() int { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetTotalSize() int { + if g == nil { return 0 } - return o.TotalSize + return g.TotalSize } -func (o *GetLibrarySectionsAllMediaContainer) GetOffset() int64 { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetOffset() int64 { + if g == nil { return 0 } - return o.Offset + return g.Offset } -func (o *GetLibrarySectionsAllMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetLibrarySectionsAllMediaContainer) GetArt() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetLibrarySectionsAllMediaContainer) GetContent() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetContent() string { + if g == nil { return "" } - return o.Content + return g.Content } -func (o *GetLibrarySectionsAllMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetLibrarySectionsAllMediaContainer) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetLibrarySectionsAllMediaContainer) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetLibrarySectionsAllMediaContainer) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetLibrarySectionsAllMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetLibrarySectionsAllMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetLibrarySectionsAllMediaContainer) GetThumb() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetLibrarySectionsAllMediaContainer) GetNocache() bool { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetNocache() bool { + if g == nil { return false } - return o.Nocache + return g.Nocache } -func (o *GetLibrarySectionsAllMediaContainer) GetTitle1() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetTitle1() string { + if g == nil { return "" } - return o.Title1 + return g.Title1 } -func (o *GetLibrarySectionsAllMediaContainer) GetTitle2() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetTitle2() string { + if g == nil { return "" } - return o.Title2 + return g.Title2 } -func (o *GetLibrarySectionsAllMediaContainer) GetViewGroup() string { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetViewGroup() string { + if g == nil { return "" } - return o.ViewGroup + return g.ViewGroup } -func (o *GetLibrarySectionsAllMediaContainer) GetMeta() *GetLibrarySectionsAllMeta { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetMeta() *GetLibrarySectionsAllMeta { + if g == nil { return nil } - return o.Meta + return g.Meta } -func (o *GetLibrarySectionsAllMediaContainer) GetMetadata() []GetLibrarySectionsAllMetadata { - if o == nil { +func (g *GetLibrarySectionsAllMediaContainer) GetMetadata() []GetLibrarySectionsAllMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetLibrarySectionsAllResponseBody - Successful response containing media container data. @@ -2565,11 +2565,11 @@ type GetLibrarySectionsAllResponseBody struct { MediaContainer *GetLibrarySectionsAllMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetLibrarySectionsAllResponseBody) GetMediaContainer() *GetLibrarySectionsAllMediaContainer { - if o == nil { +func (g *GetLibrarySectionsAllResponseBody) GetMediaContainer() *GetLibrarySectionsAllMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetLibrarySectionsAllResponse struct { @@ -2583,30 +2583,30 @@ type GetLibrarySectionsAllResponse struct { Object *GetLibrarySectionsAllResponseBody } -func (o *GetLibrarySectionsAllResponse) GetContentType() string { - if o == nil { +func (g *GetLibrarySectionsAllResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetLibrarySectionsAllResponse) GetStatusCode() int { - if o == nil { +func (g *GetLibrarySectionsAllResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetLibrarySectionsAllResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetLibrarySectionsAllResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetLibrarySectionsAllResponse) GetObject() *GetLibrarySectionsAllResponseBody { - if o == nil { +func (g *GetLibrarySectionsAllResponse) GetObject() *GetLibrarySectionsAllResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getmediaarts.go b/models/operations/getmediaarts.go index 9a4a579..5baed5c 100644 --- a/models/operations/getmediaarts.go +++ b/models/operations/getmediaarts.go @@ -11,11 +11,11 @@ type GetMediaArtsRequest struct { RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"` } -func (o *GetMediaArtsRequest) GetRatingKey() int64 { - if o == nil { +func (g *GetMediaArtsRequest) GetRatingKey() int64 { + if g == nil { return 0 } - return o.RatingKey + return g.RatingKey } type GetMediaArtsMetadata struct { @@ -31,39 +31,39 @@ type GetMediaArtsMetadata struct { Thumb string `json:"thumb"` } -func (o *GetMediaArtsMetadata) GetKey() string { - if o == nil { +func (g *GetMediaArtsMetadata) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetMediaArtsMetadata) GetProvider() *string { - if o == nil { +func (g *GetMediaArtsMetadata) GetProvider() *string { + if g == nil { return nil } - return o.Provider + return g.Provider } -func (o *GetMediaArtsMetadata) GetRatingKey() string { - if o == nil { +func (g *GetMediaArtsMetadata) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetMediaArtsMetadata) GetSelected() bool { - if o == nil { +func (g *GetMediaArtsMetadata) GetSelected() bool { + if g == nil { return false } - return o.Selected + return g.Selected } -func (o *GetMediaArtsMetadata) GetThumb() string { - if o == nil { +func (g *GetMediaArtsMetadata) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } type GetMediaArtsMediaContainer struct { @@ -78,39 +78,39 @@ type GetMediaArtsMediaContainer struct { Metadata []GetMediaArtsMetadata `json:"Metadata"` } -func (o *GetMediaArtsMediaContainer) GetSize() int { - if o == nil { +func (g *GetMediaArtsMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetMediaArtsMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetMediaArtsMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetMediaArtsMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetMediaArtsMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetMediaArtsMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetMediaArtsMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetMediaArtsMediaContainer) GetMetadata() []GetMediaArtsMetadata { - if o == nil { +func (g *GetMediaArtsMediaContainer) GetMetadata() []GetMediaArtsMetadata { + if g == nil { return []GetMediaArtsMetadata{} } - return o.Metadata + return g.Metadata } // GetMediaArtsResponseBody - The available background artwork for the library item. @@ -118,11 +118,11 @@ type GetMediaArtsResponseBody struct { MediaContainer *GetMediaArtsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetMediaArtsResponseBody) GetMediaContainer() *GetMediaArtsMediaContainer { - if o == nil { +func (g *GetMediaArtsResponseBody) GetMediaContainer() *GetMediaArtsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetMediaArtsResponse struct { @@ -136,30 +136,30 @@ type GetMediaArtsResponse struct { Object *GetMediaArtsResponseBody } -func (o *GetMediaArtsResponse) GetContentType() string { - if o == nil { +func (g *GetMediaArtsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetMediaArtsResponse) GetStatusCode() int { - if o == nil { +func (g *GetMediaArtsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetMediaArtsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetMediaArtsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetMediaArtsResponse) GetObject() *GetMediaArtsResponseBody { - if o == nil { +func (g *GetMediaArtsResponse) GetObject() *GetMediaArtsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getmediametadata.go b/models/operations/getmediametadata.go index d3e7060..17d5931 100644 --- a/models/operations/getmediametadata.go +++ b/models/operations/getmediametadata.go @@ -42,102 +42,102 @@ type GetMediaMetaDataRequest struct { AsyncRefreshLocalMediaAgent *bool `queryParam:"style=form,explode=true,name=asyncRefreshLocalMediaAgent"` } -func (o *GetMediaMetaDataRequest) GetRatingKey() string { - if o == nil { +func (g *GetMediaMetaDataRequest) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetMediaMetaDataRequest) GetIncludeConcerts() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludeConcerts() *bool { + if g == nil { return nil } - return o.IncludeConcerts + return g.IncludeConcerts } -func (o *GetMediaMetaDataRequest) GetIncludeExtras() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludeExtras() *bool { + if g == nil { return nil } - return o.IncludeExtras + return g.IncludeExtras } -func (o *GetMediaMetaDataRequest) GetIncludeOnDeck() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludeOnDeck() *bool { + if g == nil { return nil } - return o.IncludeOnDeck + return g.IncludeOnDeck } -func (o *GetMediaMetaDataRequest) GetIncludePopularLeaves() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludePopularLeaves() *bool { + if g == nil { return nil } - return o.IncludePopularLeaves + return g.IncludePopularLeaves } -func (o *GetMediaMetaDataRequest) GetIncludePreferences() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludePreferences() *bool { + if g == nil { return nil } - return o.IncludePreferences + return g.IncludePreferences } -func (o *GetMediaMetaDataRequest) GetIncludeReviews() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludeReviews() *bool { + if g == nil { return nil } - return o.IncludeReviews + return g.IncludeReviews } -func (o *GetMediaMetaDataRequest) GetIncludeChapters() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludeChapters() *bool { + if g == nil { return nil } - return o.IncludeChapters + return g.IncludeChapters } -func (o *GetMediaMetaDataRequest) GetIncludeStations() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludeStations() *bool { + if g == nil { return nil } - return o.IncludeStations + return g.IncludeStations } -func (o *GetMediaMetaDataRequest) GetIncludeExternalMedia() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetIncludeExternalMedia() *bool { + if g == nil { return nil } - return o.IncludeExternalMedia + return g.IncludeExternalMedia } -func (o *GetMediaMetaDataRequest) GetAsyncAugmentMetadata() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetAsyncAugmentMetadata() *bool { + if g == nil { return nil } - return o.AsyncAugmentMetadata + return g.AsyncAugmentMetadata } -func (o *GetMediaMetaDataRequest) GetAsyncCheckFiles() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetAsyncCheckFiles() *bool { + if g == nil { return nil } - return o.AsyncCheckFiles + return g.AsyncCheckFiles } -func (o *GetMediaMetaDataRequest) GetAsyncRefreshAnalysis() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetAsyncRefreshAnalysis() *bool { + if g == nil { return nil } - return o.AsyncRefreshAnalysis + return g.AsyncRefreshAnalysis } -func (o *GetMediaMetaDataRequest) GetAsyncRefreshLocalMediaAgent() *bool { - if o == nil { +func (g *GetMediaMetaDataRequest) GetAsyncRefreshLocalMediaAgent() *bool { + if g == nil { return nil } - return o.AsyncRefreshLocalMediaAgent + return g.AsyncRefreshLocalMediaAgent } // GetMediaMetaDataType - The type of media content in the Plex library. This can represent videos, music, or photos. @@ -179,25 +179,25 @@ type GetMediaMetaDataImage struct { URL string `json:"url"` } -func (o *GetMediaMetaDataImage) GetAlt() string { - if o == nil { +func (g *GetMediaMetaDataImage) GetAlt() string { + if g == nil { return "" } - return o.Alt + return g.Alt } -func (o *GetMediaMetaDataImage) GetType() GetMediaMetaDataLibraryType { - if o == nil { +func (g *GetMediaMetaDataImage) GetType() GetMediaMetaDataLibraryType { + if g == nil { return GetMediaMetaDataLibraryType("") } - return o.Type + return g.Type } -func (o *GetMediaMetaDataImage) GetURL() string { - if o == nil { +func (g *GetMediaMetaDataImage) GetURL() string { + if g == nil { return "" } - return o.URL + return g.URL } type GetMediaMetaDataUltraBlurColors struct { @@ -207,32 +207,32 @@ type GetMediaMetaDataUltraBlurColors struct { BottomLeft string `json:"bottomLeft"` } -func (o *GetMediaMetaDataUltraBlurColors) GetTopLeft() string { - if o == nil { +func (g *GetMediaMetaDataUltraBlurColors) GetTopLeft() string { + if g == nil { return "" } - return o.TopLeft + return g.TopLeft } -func (o *GetMediaMetaDataUltraBlurColors) GetTopRight() string { - if o == nil { +func (g *GetMediaMetaDataUltraBlurColors) GetTopRight() string { + if g == nil { return "" } - return o.TopRight + return g.TopRight } -func (o *GetMediaMetaDataUltraBlurColors) GetBottomRight() string { - if o == nil { +func (g *GetMediaMetaDataUltraBlurColors) GetBottomRight() string { + if g == nil { return "" } - return o.BottomRight + return g.BottomRight } -func (o *GetMediaMetaDataUltraBlurColors) GetBottomLeft() string { - if o == nil { +func (g *GetMediaMetaDataUltraBlurColors) GetBottomLeft() string { + if g == nil { return "" } - return o.BottomLeft + return g.BottomLeft } type GetMediaMetaDataGuids struct { @@ -241,11 +241,11 @@ type GetMediaMetaDataGuids struct { ID string `json:"id"` } -func (o *GetMediaMetaDataGuids) GetID() string { - if o == nil { +func (g *GetMediaMetaDataGuids) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } type GetMediaMetaDataOptimizedForStreaming1 int @@ -283,8 +283,8 @@ const ( // GetMediaMetaDataOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetMediaMetaDataOptimizedForStreaming struct { - GetMediaMetaDataOptimizedForStreaming1 *GetMediaMetaDataOptimizedForStreaming1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetMediaMetaDataOptimizedForStreaming1 *GetMediaMetaDataOptimizedForStreaming1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetMediaMetaDataOptimizedForStreamingType } @@ -373,8 +373,8 @@ const ( // GetMediaMetaDataLibraryOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetMediaMetaDataLibraryOptimizedForStreaming struct { - GetMediaMetaDataOptimizedForStreamingLibrary1 *GetMediaMetaDataOptimizedForStreamingLibrary1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetMediaMetaDataOptimizedForStreamingLibrary1 *GetMediaMetaDataOptimizedForStreamingLibrary1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetMediaMetaDataLibraryOptimizedForStreamingType } @@ -570,358 +570,358 @@ func (g *GetMediaMetaDataStream) UnmarshalJSON(data []byte) error { return nil } -func (o *GetMediaMetaDataStream) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataStream) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataStream) GetStreamType() int64 { +func (g *GetMediaMetaDataStream) GetStreamType() int64 { return 1 } -func (o *GetMediaMetaDataStream) GetFormat() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetFormat() *string { + if g == nil { return nil } - return o.Format + return g.Format } -func (o *GetMediaMetaDataStream) GetDefault() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetDefault() *bool { + if g == nil { return nil } - return o.Default + return g.Default } -func (o *GetMediaMetaDataStream) GetCodec() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetCodec() *string { + if g == nil { return nil } - return o.Codec + return g.Codec } -func (o *GetMediaMetaDataStream) GetIndex() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetIndex() *int { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetMediaMetaDataStream) GetBitrate() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetMediaMetaDataStream) GetLanguage() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetLanguage() *string { + if g == nil { return nil } - return o.Language + return g.Language } -func (o *GetMediaMetaDataStream) GetLanguageTag() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetLanguageTag() *string { + if g == nil { return nil } - return o.LanguageTag + return g.LanguageTag } -func (o *GetMediaMetaDataStream) GetLanguageCode() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetLanguageCode() *string { + if g == nil { return nil } - return o.LanguageCode + return g.LanguageCode } -func (o *GetMediaMetaDataStream) GetHeaderCompression() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetHeaderCompression() *bool { + if g == nil { return nil } - return o.HeaderCompression + return g.HeaderCompression } -func (o *GetMediaMetaDataStream) GetDOVIBLCompatID() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVIBLCompatID() *int { + if g == nil { return nil } - return o.DOVIBLCompatID + return g.DOVIBLCompatID } -func (o *GetMediaMetaDataStream) GetDOVIBLPresent() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVIBLPresent() *bool { + if g == nil { return nil } - return o.DOVIBLPresent + return g.DOVIBLPresent } -func (o *GetMediaMetaDataStream) GetDOVIELPresent() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVIELPresent() *bool { + if g == nil { return nil } - return o.DOVIELPresent + return g.DOVIELPresent } -func (o *GetMediaMetaDataStream) GetDOVILevel() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVILevel() *int { + if g == nil { return nil } - return o.DOVILevel + return g.DOVILevel } -func (o *GetMediaMetaDataStream) GetDOVIPresent() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVIPresent() *bool { + if g == nil { return nil } - return o.DOVIPresent + return g.DOVIPresent } -func (o *GetMediaMetaDataStream) GetDOVIProfile() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVIProfile() *int { + if g == nil { return nil } - return o.DOVIProfile + return g.DOVIProfile } -func (o *GetMediaMetaDataStream) GetDOVIRPUPresent() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVIRPUPresent() *bool { + if g == nil { return nil } - return o.DOVIRPUPresent + return g.DOVIRPUPresent } -func (o *GetMediaMetaDataStream) GetDOVIVersion() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetDOVIVersion() *string { + if g == nil { return nil } - return o.DOVIVersion + return g.DOVIVersion } -func (o *GetMediaMetaDataStream) GetBitDepth() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetBitDepth() *int { + if g == nil { return nil } - return o.BitDepth + return g.BitDepth } -func (o *GetMediaMetaDataStream) GetChromaLocation() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetChromaLocation() *string { + if g == nil { return nil } - return o.ChromaLocation + return g.ChromaLocation } -func (o *GetMediaMetaDataStream) GetChromaSubsampling() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetChromaSubsampling() *string { + if g == nil { return nil } - return o.ChromaSubsampling + return g.ChromaSubsampling } -func (o *GetMediaMetaDataStream) GetCodedHeight() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetCodedHeight() *int { + if g == nil { return nil } - return o.CodedHeight + return g.CodedHeight } -func (o *GetMediaMetaDataStream) GetCodedWidth() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetCodedWidth() *int { + if g == nil { return nil } - return o.CodedWidth + return g.CodedWidth } -func (o *GetMediaMetaDataStream) GetClosedCaptions() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetClosedCaptions() *bool { + if g == nil { return nil } - return o.ClosedCaptions + return g.ClosedCaptions } -func (o *GetMediaMetaDataStream) GetColorPrimaries() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetColorPrimaries() *string { + if g == nil { return nil } - return o.ColorPrimaries + return g.ColorPrimaries } -func (o *GetMediaMetaDataStream) GetColorRange() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetColorRange() *string { + if g == nil { return nil } - return o.ColorRange + return g.ColorRange } -func (o *GetMediaMetaDataStream) GetColorSpace() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetColorSpace() *string { + if g == nil { return nil } - return o.ColorSpace + return g.ColorSpace } -func (o *GetMediaMetaDataStream) GetColorTrc() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetColorTrc() *string { + if g == nil { return nil } - return o.ColorTrc + return g.ColorTrc } -func (o *GetMediaMetaDataStream) GetFrameRate() *float32 { - if o == nil { +func (g *GetMediaMetaDataStream) GetFrameRate() *float32 { + if g == nil { return nil } - return o.FrameRate + return g.FrameRate } -func (o *GetMediaMetaDataStream) GetKey() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetMediaMetaDataStream) GetHeight() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetMediaMetaDataStream) GetLevel() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetLevel() *int { + if g == nil { return nil } - return o.Level + return g.Level } -func (o *GetMediaMetaDataStream) GetOriginal() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetOriginal() *bool { + if g == nil { return nil } - return o.Original + return g.Original } -func (o *GetMediaMetaDataStream) GetHasScalingMatrix() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetHasScalingMatrix() *bool { + if g == nil { return nil } - return o.HasScalingMatrix + return g.HasScalingMatrix } -func (o *GetMediaMetaDataStream) GetProfile() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetProfile() *string { + if g == nil { return nil } - return o.Profile + return g.Profile } -func (o *GetMediaMetaDataStream) GetScanType() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetScanType() *string { + if g == nil { return nil } - return o.ScanType + return g.ScanType } -func (o *GetMediaMetaDataStream) GetEmbeddedInVideo() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetEmbeddedInVideo() *string { + if g == nil { return nil } - return o.EmbeddedInVideo + return g.EmbeddedInVideo } -func (o *GetMediaMetaDataStream) GetRefFrames() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetRefFrames() *int { + if g == nil { return nil } - return o.RefFrames + return g.RefFrames } -func (o *GetMediaMetaDataStream) GetWidth() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetMediaMetaDataStream) GetDisplayTitle() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetDisplayTitle() *string { + if g == nil { return nil } - return o.DisplayTitle + return g.DisplayTitle } -func (o *GetMediaMetaDataStream) GetExtendedDisplayTitle() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetExtendedDisplayTitle() *string { + if g == nil { return nil } - return o.ExtendedDisplayTitle + return g.ExtendedDisplayTitle } -func (o *GetMediaMetaDataStream) GetSelected() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetSelected() *bool { + if g == nil { return nil } - return o.Selected + return g.Selected } -func (o *GetMediaMetaDataStream) GetForced() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetForced() *bool { + if g == nil { return nil } - return o.Forced + return g.Forced } -func (o *GetMediaMetaDataStream) GetChannels() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetChannels() *int { + if g == nil { return nil } - return o.Channels + return g.Channels } -func (o *GetMediaMetaDataStream) GetAudioChannelLayout() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetAudioChannelLayout() *string { + if g == nil { return nil } - return o.AudioChannelLayout + return g.AudioChannelLayout } -func (o *GetMediaMetaDataStream) GetSamplingRate() *int { - if o == nil { +func (g *GetMediaMetaDataStream) GetSamplingRate() *int { + if g == nil { return nil } - return o.SamplingRate + return g.SamplingRate } -func (o *GetMediaMetaDataStream) GetCanAutoSync() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetCanAutoSync() *bool { + if g == nil { return nil } - return o.CanAutoSync + return g.CanAutoSync } -func (o *GetMediaMetaDataStream) GetHearingImpaired() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetHearingImpaired() *bool { + if g == nil { return nil } - return o.HearingImpaired + return g.HearingImpaired } -func (o *GetMediaMetaDataStream) GetDub() *bool { - if o == nil { +func (g *GetMediaMetaDataStream) GetDub() *bool { + if g == nil { return nil } - return o.Dub + return g.Dub } -func (o *GetMediaMetaDataStream) GetTitle() *string { - if o == nil { +func (g *GetMediaMetaDataStream) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } type GetMediaMetaDataPart struct { @@ -966,116 +966,116 @@ func (g *GetMediaMetaDataPart) UnmarshalJSON(data []byte) error { return nil } -func (o *GetMediaMetaDataPart) GetAccessible() *bool { - if o == nil { +func (g *GetMediaMetaDataPart) GetAccessible() *bool { + if g == nil { return nil } - return o.Accessible + return g.Accessible } -func (o *GetMediaMetaDataPart) GetExists() *bool { - if o == nil { +func (g *GetMediaMetaDataPart) GetExists() *bool { + if g == nil { return nil } - return o.Exists + return g.Exists } -func (o *GetMediaMetaDataPart) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataPart) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataPart) GetKey() *string { - if o == nil { +func (g *GetMediaMetaDataPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetMediaMetaDataPart) GetIndexes() *string { - if o == nil { +func (g *GetMediaMetaDataPart) GetIndexes() *string { + if g == nil { return nil } - return o.Indexes + return g.Indexes } -func (o *GetMediaMetaDataPart) GetDuration() *int { - if o == nil { +func (g *GetMediaMetaDataPart) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetMediaMetaDataPart) GetFile() *string { - if o == nil { +func (g *GetMediaMetaDataPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetMediaMetaDataPart) GetSize() *int64 { - if o == nil { +func (g *GetMediaMetaDataPart) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetMediaMetaDataPart) GetPacketLength() *int { - if o == nil { +func (g *GetMediaMetaDataPart) GetPacketLength() *int { + if g == nil { return nil } - return o.PacketLength + return g.PacketLength } -func (o *GetMediaMetaDataPart) GetContainer() *string { - if o == nil { +func (g *GetMediaMetaDataPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetMediaMetaDataPart) GetVideoProfile() *string { - if o == nil { +func (g *GetMediaMetaDataPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetMediaMetaDataPart) GetAudioProfile() *string { - if o == nil { +func (g *GetMediaMetaDataPart) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetMediaMetaDataPart) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetMediaMetaDataPart) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetMediaMetaDataPart) GetOptimizedForStreaming() *GetMediaMetaDataLibraryOptimizedForStreaming { - if o == nil { +func (g *GetMediaMetaDataPart) GetOptimizedForStreaming() *GetMediaMetaDataLibraryOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetMediaMetaDataPart) GetHasThumbnail() *GetMediaMetaDataHasThumbnail { - if o == nil { +func (g *GetMediaMetaDataPart) GetHasThumbnail() *GetMediaMetaDataHasThumbnail { + if g == nil { return nil } - return o.HasThumbnail + return g.HasThumbnail } -func (o *GetMediaMetaDataPart) GetStream() []GetMediaMetaDataStream { - if o == nil { +func (g *GetMediaMetaDataPart) GetStream() []GetMediaMetaDataStream { + if g == nil { return nil } - return o.Stream + return g.Stream } type GetMediaMetaDataMedia struct { @@ -1120,137 +1120,137 @@ type GetMediaMetaDataMedia struct { Part []GetMediaMetaDataPart `json:"Part,omitempty"` } -func (o *GetMediaMetaDataMedia) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataMedia) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataMedia) GetDuration() *int { - if o == nil { +func (g *GetMediaMetaDataMedia) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetMediaMetaDataMedia) GetBitrate() *int { - if o == nil { +func (g *GetMediaMetaDataMedia) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetMediaMetaDataMedia) GetWidth() *int { - if o == nil { +func (g *GetMediaMetaDataMedia) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetMediaMetaDataMedia) GetHeight() *int { - if o == nil { +func (g *GetMediaMetaDataMedia) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetMediaMetaDataMedia) GetAspectRatio() *float32 { - if o == nil { +func (g *GetMediaMetaDataMedia) GetAspectRatio() *float32 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetMediaMetaDataMedia) GetAudioChannels() *int { - if o == nil { +func (g *GetMediaMetaDataMedia) GetAudioChannels() *int { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetMediaMetaDataMedia) GetDisplayOffset() *int { - if o == nil { +func (g *GetMediaMetaDataMedia) GetDisplayOffset() *int { + if g == nil { return nil } - return o.DisplayOffset + return g.DisplayOffset } -func (o *GetMediaMetaDataMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetMediaMetaDataMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetMediaMetaDataMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetMediaMetaDataMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetMediaMetaDataMedia) GetVideoResolution() *string { - if o == nil { +func (g *GetMediaMetaDataMedia) GetVideoResolution() *string { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetMediaMetaDataMedia) GetContainer() *string { - if o == nil { +func (g *GetMediaMetaDataMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetMediaMetaDataMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetMediaMetaDataMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetMediaMetaDataMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetMediaMetaDataMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetMediaMetaDataMedia) GetHasVoiceActivity() *bool { - if o == nil { +func (g *GetMediaMetaDataMedia) GetHasVoiceActivity() *bool { + if g == nil { return nil } - return o.HasVoiceActivity + return g.HasVoiceActivity } -func (o *GetMediaMetaDataMedia) GetAudioProfile() *string { - if o == nil { +func (g *GetMediaMetaDataMedia) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetMediaMetaDataMedia) GetOptimizedForStreaming() *GetMediaMetaDataOptimizedForStreaming { - if o == nil { +func (g *GetMediaMetaDataMedia) GetOptimizedForStreaming() *GetMediaMetaDataOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetMediaMetaDataMedia) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetMediaMetaDataMedia) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetMediaMetaDataMedia) GetPart() []GetMediaMetaDataPart { - if o == nil { +func (g *GetMediaMetaDataMedia) GetPart() []GetMediaMetaDataPart { + if g == nil { return nil } - return o.Part + return g.Part } // GetMediaMetaDataGenre - The filter query string for similar items. @@ -1265,25 +1265,25 @@ type GetMediaMetaDataGenre struct { Filter string `json:"filter"` } -func (o *GetMediaMetaDataGenre) GetID() int { - if o == nil { +func (g *GetMediaMetaDataGenre) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataGenre) GetTag() string { - if o == nil { +func (g *GetMediaMetaDataGenre) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetMediaMetaDataGenre) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataGenre) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } // GetMediaMetaDataCountry - The filter query string for country media items. @@ -1297,25 +1297,25 @@ type GetMediaMetaDataCountry struct { Filter string `json:"filter"` } -func (o *GetMediaMetaDataCountry) GetID() int { - if o == nil { +func (g *GetMediaMetaDataCountry) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataCountry) GetTag() string { - if o == nil { +func (g *GetMediaMetaDataCountry) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetMediaMetaDataCountry) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataCountry) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } type GetMediaMetaDataDirector struct { @@ -1331,39 +1331,39 @@ type GetMediaMetaDataDirector struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetMediaMetaDataDirector) GetID() int { - if o == nil { +func (g *GetMediaMetaDataDirector) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataDirector) GetTag() string { - if o == nil { +func (g *GetMediaMetaDataDirector) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetMediaMetaDataDirector) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataDirector) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetMediaMetaDataDirector) GetTagKey() string { - if o == nil { +func (g *GetMediaMetaDataDirector) GetTagKey() string { + if g == nil { return "" } - return o.TagKey + return g.TagKey } -func (o *GetMediaMetaDataDirector) GetThumb() *string { - if o == nil { +func (g *GetMediaMetaDataDirector) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetMediaMetaDataWriter struct { @@ -1379,39 +1379,39 @@ type GetMediaMetaDataWriter struct { TagKey *string `json:"tagKey,omitempty"` } -func (o *GetMediaMetaDataWriter) GetID() int { - if o == nil { +func (g *GetMediaMetaDataWriter) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataWriter) GetTag() string { - if o == nil { +func (g *GetMediaMetaDataWriter) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetMediaMetaDataWriter) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataWriter) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetMediaMetaDataWriter) GetThumb() *string { - if o == nil { +func (g *GetMediaMetaDataWriter) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetMediaMetaDataWriter) GetTagKey() *string { - if o == nil { +func (g *GetMediaMetaDataWriter) GetTagKey() *string { + if g == nil { return nil } - return o.TagKey + return g.TagKey } type GetMediaMetaDataProducer struct { @@ -1429,46 +1429,46 @@ type GetMediaMetaDataProducer struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetMediaMetaDataProducer) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataProducer) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataProducer) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataProducer) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetMediaMetaDataProducer) GetTag() string { - if o == nil { +func (g *GetMediaMetaDataProducer) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetMediaMetaDataProducer) GetTagKey() string { - if o == nil { +func (g *GetMediaMetaDataProducer) GetTagKey() string { + if g == nil { return "" } - return o.TagKey + return g.TagKey } -func (o *GetMediaMetaDataProducer) GetRole() *string { - if o == nil { +func (g *GetMediaMetaDataProducer) GetRole() *string { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetMediaMetaDataProducer) GetThumb() *string { - if o == nil { +func (g *GetMediaMetaDataProducer) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetMediaMetaDataRole struct { @@ -1490,46 +1490,46 @@ type GetMediaMetaDataRole struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetMediaMetaDataRole) GetID() int { - if o == nil { +func (g *GetMediaMetaDataRole) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataRole) GetTag() string { - if o == nil { +func (g *GetMediaMetaDataRole) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetMediaMetaDataRole) GetRole() *string { - if o == nil { +func (g *GetMediaMetaDataRole) GetRole() *string { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetMediaMetaDataRole) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataRole) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetMediaMetaDataRole) GetTagKey() string { - if o == nil { +func (g *GetMediaMetaDataRole) GetTagKey() string { + if g == nil { return "" } - return o.TagKey + return g.TagKey } -func (o *GetMediaMetaDataRole) GetThumb() *string { - if o == nil { +func (g *GetMediaMetaDataRole) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetMediaMetaDataRatings struct { @@ -1541,25 +1541,25 @@ type GetMediaMetaDataRatings struct { Type string `json:"type"` } -func (o *GetMediaMetaDataRatings) GetImage() string { - if o == nil { +func (g *GetMediaMetaDataRatings) GetImage() string { + if g == nil { return "" } - return o.Image + return g.Image } -func (o *GetMediaMetaDataRatings) GetValue() float32 { - if o == nil { +func (g *GetMediaMetaDataRatings) GetValue() float32 { + if g == nil { return 0.0 } - return o.Value + return g.Value } -func (o *GetMediaMetaDataRatings) GetType() string { - if o == nil { +func (g *GetMediaMetaDataRatings) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } type GetMediaMetaDataSimilar struct { @@ -1571,25 +1571,25 @@ type GetMediaMetaDataSimilar struct { Tag string `json:"tag"` } -func (o *GetMediaMetaDataSimilar) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataSimilar) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataSimilar) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataSimilar) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetMediaMetaDataSimilar) GetTag() string { - if o == nil { +func (g *GetMediaMetaDataSimilar) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetMediaMetaDataLocation struct { @@ -1597,11 +1597,11 @@ type GetMediaMetaDataLocation struct { Path string `json:"path"` } -func (o *GetMediaMetaDataLocation) GetPath() string { - if o == nil { +func (g *GetMediaMetaDataLocation) GetPath() string { + if g == nil { return "" } - return o.Path + return g.Path } // GetMediaMetaDataChapter - The thumbnail for the chapter @@ -1614,46 +1614,46 @@ type GetMediaMetaDataChapter struct { Thumb string `json:"thumb"` } -func (o *GetMediaMetaDataChapter) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataChapter) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataChapter) GetFilter() string { - if o == nil { +func (g *GetMediaMetaDataChapter) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetMediaMetaDataChapter) GetIndex() int64 { - if o == nil { +func (g *GetMediaMetaDataChapter) GetIndex() int64 { + if g == nil { return 0 } - return o.Index + return g.Index } -func (o *GetMediaMetaDataChapter) GetStartTimeOffset() int64 { - if o == nil { +func (g *GetMediaMetaDataChapter) GetStartTimeOffset() int64 { + if g == nil { return 0 } - return o.StartTimeOffset + return g.StartTimeOffset } -func (o *GetMediaMetaDataChapter) GetEndTimeOffset() int64 { - if o == nil { +func (g *GetMediaMetaDataChapter) GetEndTimeOffset() int64 { + if g == nil { return 0 } - return o.EndTimeOffset + return g.EndTimeOffset } -func (o *GetMediaMetaDataChapter) GetThumb() string { - if o == nil { +func (g *GetMediaMetaDataChapter) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } // GetMediaMetaDataAttributes - Attributes associated with the marker. @@ -1664,18 +1664,18 @@ type GetMediaMetaDataAttributes struct { Version *int64 `json:"version,omitempty"` } -func (o *GetMediaMetaDataAttributes) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataAttributes) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataAttributes) GetVersion() *int64 { - if o == nil { +func (g *GetMediaMetaDataAttributes) GetVersion() *int64 { + if g == nil { return nil } - return o.Version + return g.Version } // GetMediaMetaDataMarker - The final status of the marker @@ -1689,46 +1689,46 @@ type GetMediaMetaDataMarker struct { Attributes *GetMediaMetaDataAttributes `json:"Attributes,omitempty"` } -func (o *GetMediaMetaDataMarker) GetID() int64 { - if o == nil { +func (g *GetMediaMetaDataMarker) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetMediaMetaDataMarker) GetType() string { - if o == nil { +func (g *GetMediaMetaDataMarker) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetMediaMetaDataMarker) GetStartTimeOffset() int64 { - if o == nil { +func (g *GetMediaMetaDataMarker) GetStartTimeOffset() int64 { + if g == nil { return 0 } - return o.StartTimeOffset + return g.StartTimeOffset } -func (o *GetMediaMetaDataMarker) GetEndTimeOffset() int64 { - if o == nil { +func (g *GetMediaMetaDataMarker) GetEndTimeOffset() int64 { + if g == nil { return 0 } - return o.EndTimeOffset + return g.EndTimeOffset } -func (o *GetMediaMetaDataMarker) GetFinal() *bool { - if o == nil { +func (g *GetMediaMetaDataMarker) GetFinal() *bool { + if g == nil { return nil } - return o.Final + return g.Final } -func (o *GetMediaMetaDataMarker) GetAttributes() *GetMediaMetaDataAttributes { - if o == nil { +func (g *GetMediaMetaDataMarker) GetAttributes() *GetMediaMetaDataAttributes { + if g == nil { return nil } - return o.Attributes + return g.Attributes } type GetMediaMetaDataExtras struct { @@ -1736,11 +1736,11 @@ type GetMediaMetaDataExtras struct { Size *int64 `json:"size,omitempty"` } -func (o *GetMediaMetaDataExtras) GetSize() *int64 { - if o == nil { +func (g *GetMediaMetaDataExtras) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } // GetMediaMetaDataMetadata - Unknown @@ -1886,515 +1886,515 @@ func (g *GetMediaMetaDataMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetMediaMetaDataMetadata) GetRatingKey() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetMediaMetaDataMetadata) GetKey() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetMediaMetaDataMetadata) GetGUID() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGUID() string { + if g == nil { return "" } - return o.GUID + return g.GUID } -func (o *GetMediaMetaDataMetadata) GetSlug() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetMediaMetaDataMetadata) GetStudio() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetMediaMetaDataMetadata) GetType() GetMediaMetaDataType { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetType() GetMediaMetaDataType { + if g == nil { return GetMediaMetaDataType("") } - return o.Type + return g.Type } -func (o *GetMediaMetaDataMetadata) GetTitle() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetMediaMetaDataMetadata) GetTitleSort() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetTitleSort() string { + if g == nil { return "" } - return o.TitleSort + return g.TitleSort } -func (o *GetMediaMetaDataMetadata) GetContentRating() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetMediaMetaDataMetadata) GetSummary() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetSummary() string { + if g == nil { return "" } - return o.Summary + return g.Summary } -func (o *GetMediaMetaDataMetadata) GetRating() float32 { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetRating() float32 { + if g == nil { return 0.0 } - return o.Rating + return g.Rating } -func (o *GetMediaMetaDataMetadata) GetAudienceRating() float64 { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetAudienceRating() float64 { + if g == nil { return 0.0 } - return o.AudienceRating + return g.AudienceRating } -func (o *GetMediaMetaDataMetadata) GetYear() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetMediaMetaDataMetadata) GetTagline() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetTagline() string { + if g == nil { return "" } - return o.Tagline + return g.Tagline } -func (o *GetMediaMetaDataMetadata) GetThumb() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetMediaMetaDataMetadata) GetArt() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetMediaMetaDataMetadata) GetTheme() string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetTheme() string { + if g == nil { return "" } - return o.Theme + return g.Theme } -func (o *GetMediaMetaDataMetadata) GetIndex() int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetIndex() int { + if g == nil { return 0 } - return o.Index + return g.Index } -func (o *GetMediaMetaDataMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetMediaMetaDataMetadata) GetViewedLeafCount() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetViewedLeafCount() *int { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetMediaMetaDataMetadata) GetChildCount() int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetChildCount() int { + if g == nil { return 0 } - return o.ChildCount + return g.ChildCount } -func (o *GetMediaMetaDataMetadata) GetSeasonCount() int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetSeasonCount() int { + if g == nil { return 0 } - return o.SeasonCount + return g.SeasonCount } -func (o *GetMediaMetaDataMetadata) GetDuration() int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetDuration() int { + if g == nil { return 0 } - return o.Duration + return g.Duration } -func (o *GetMediaMetaDataMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetMediaMetaDataMetadata) GetAddedAt() int64 { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetAddedAt() int64 { + if g == nil { return 0 } - return o.AddedAt + return g.AddedAt } -func (o *GetMediaMetaDataMetadata) GetUpdatedAt() *int64 { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetUpdatedAt() *int64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetMediaMetaDataMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetMediaMetaDataMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } -func (o *GetMediaMetaDataMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetMediaMetaDataMetadata) GetOriginalTitle() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetOriginalTitle() *string { + if g == nil { return nil } - return o.OriginalTitle + return g.OriginalTitle } -func (o *GetMediaMetaDataMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetMediaMetaDataMetadata) GetGrandparentRatingKey() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentRatingKey() *string { + if g == nil { return nil } - return o.GrandparentRatingKey + return g.GrandparentRatingKey } -func (o *GetMediaMetaDataMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetMediaMetaDataMetadata) GetGrandparentGUID() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentGUID() *string { + if g == nil { return nil } - return o.GrandparentGUID + return g.GrandparentGUID } -func (o *GetMediaMetaDataMetadata) GetGrandparentSlug() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentSlug() *string { + if g == nil { return nil } - return o.GrandparentSlug + return g.GrandparentSlug } -func (o *GetMediaMetaDataMetadata) GetGrandparentKey() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentKey() *string { + if g == nil { return nil } - return o.GrandparentKey + return g.GrandparentKey } -func (o *GetMediaMetaDataMetadata) GetParentKey() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetMediaMetaDataMetadata) GetGrandparentTitle() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentTitle() *string { + if g == nil { return nil } - return o.GrandparentTitle + return g.GrandparentTitle } -func (o *GetMediaMetaDataMetadata) GetGrandparentThumb() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentThumb() *string { + if g == nil { return nil } - return o.GrandparentThumb + return g.GrandparentThumb } -func (o *GetMediaMetaDataMetadata) GetGrandparentTheme() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentTheme() *string { + if g == nil { return nil } - return o.GrandparentTheme + return g.GrandparentTheme } -func (o *GetMediaMetaDataMetadata) GetGrandparentArt() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGrandparentArt() *string { + if g == nil { return nil } - return o.GrandparentArt + return g.GrandparentArt } -func (o *GetMediaMetaDataMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetMediaMetaDataMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetMediaMetaDataMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetMediaMetaDataMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetMediaMetaDataMetadata) GetViewCount() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetMediaMetaDataMetadata) GetViewOffset() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetViewOffset() *int { + if g == nil { return nil } - return o.ViewOffset + return g.ViewOffset } -func (o *GetMediaMetaDataMetadata) GetSkipCount() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetSkipCount() *int { + if g == nil { return nil } - return o.SkipCount + return g.SkipCount } -func (o *GetMediaMetaDataMetadata) GetSubtype() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetMediaMetaDataMetadata) GetLastRatedAt() *int64 { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetLastRatedAt() *int64 { + if g == nil { return nil } - return o.LastRatedAt + return g.LastRatedAt } -func (o *GetMediaMetaDataMetadata) GetCreatedAtAccuracy() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetCreatedAtAccuracy() *string { + if g == nil { return nil } - return o.CreatedAtAccuracy + return g.CreatedAtAccuracy } -func (o *GetMediaMetaDataMetadata) GetCreatedAtTZOffset() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetCreatedAtTZOffset() *string { + if g == nil { return nil } - return o.CreatedAtTZOffset + return g.CreatedAtTZOffset } -func (o *GetMediaMetaDataMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetMediaMetaDataMetadata) GetUserRating() *float32 { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetUserRating() *float32 { + if g == nil { return nil } - return o.UserRating + return g.UserRating } -func (o *GetMediaMetaDataMetadata) GetImage() []GetMediaMetaDataImage { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetImage() []GetMediaMetaDataImage { + if g == nil { return nil } - return o.Image + return g.Image } -func (o *GetMediaMetaDataMetadata) GetUltraBlurColors() *GetMediaMetaDataUltraBlurColors { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetUltraBlurColors() *GetMediaMetaDataUltraBlurColors { + if g == nil { return nil } - return o.UltraBlurColors + return g.UltraBlurColors } -func (o *GetMediaMetaDataMetadata) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetMediaMetaDataMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetMediaMetaDataMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetMediaMetaDataMetadata) GetGuids() []GetMediaMetaDataGuids { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGuids() []GetMediaMetaDataGuids { + if g == nil { return nil } - return o.Guids + return g.Guids } -func (o *GetMediaMetaDataMetadata) GetMedia() []GetMediaMetaDataMedia { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetMedia() []GetMediaMetaDataMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetMediaMetaDataMetadata) GetGenre() []GetMediaMetaDataGenre { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetGenre() []GetMediaMetaDataGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetMediaMetaDataMetadata) GetCountry() []GetMediaMetaDataCountry { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetCountry() []GetMediaMetaDataCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetMediaMetaDataMetadata) GetDirector() []GetMediaMetaDataDirector { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetDirector() []GetMediaMetaDataDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetMediaMetaDataMetadata) GetWriter() []GetMediaMetaDataWriter { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetWriter() []GetMediaMetaDataWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetMediaMetaDataMetadata) GetProducer() []GetMediaMetaDataProducer { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetProducer() []GetMediaMetaDataProducer { + if g == nil { return nil } - return o.Producer + return g.Producer } -func (o *GetMediaMetaDataMetadata) GetRole() []GetMediaMetaDataRole { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetRole() []GetMediaMetaDataRole { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetMediaMetaDataMetadata) GetRatings() []GetMediaMetaDataRatings { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetRatings() []GetMediaMetaDataRatings { + if g == nil { return nil } - return o.Ratings + return g.Ratings } -func (o *GetMediaMetaDataMetadata) GetSimilar() []GetMediaMetaDataSimilar { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetSimilar() []GetMediaMetaDataSimilar { + if g == nil { return nil } - return o.Similar + return g.Similar } -func (o *GetMediaMetaDataMetadata) GetLocation() []GetMediaMetaDataLocation { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetLocation() []GetMediaMetaDataLocation { + if g == nil { return nil } - return o.Location + return g.Location } -func (o *GetMediaMetaDataMetadata) GetChapter() []GetMediaMetaDataChapter { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetChapter() []GetMediaMetaDataChapter { + if g == nil { return nil } - return o.Chapter + return g.Chapter } -func (o *GetMediaMetaDataMetadata) GetMarker() []GetMediaMetaDataMarker { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetMarker() []GetMediaMetaDataMarker { + if g == nil { return nil } - return o.Marker + return g.Marker } -func (o *GetMediaMetaDataMetadata) GetExtras() *GetMediaMetaDataExtras { - if o == nil { +func (g *GetMediaMetaDataMetadata) GetExtras() *GetMediaMetaDataExtras { + if g == nil { return nil } - return o.Extras + return g.Extras } type GetMediaMetaDataMediaContainer struct { @@ -2418,67 +2418,67 @@ type GetMediaMetaDataMediaContainer struct { Metadata []GetMediaMetaDataMetadata `json:"Metadata"` } -func (o *GetMediaMetaDataMediaContainer) GetSize() int { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetMediaMetaDataMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetMediaMetaDataMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetMediaMetaDataMediaContainer) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetMediaMetaDataMediaContainer) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetMediaMetaDataMediaContainer) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetMediaMetaDataMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetMediaMetaDataMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetMediaMetaDataMediaContainer) GetMetadata() []GetMediaMetaDataMetadata { - if o == nil { +func (g *GetMediaMetaDataMediaContainer) GetMetadata() []GetMediaMetaDataMetadata { + if g == nil { return []GetMediaMetaDataMetadata{} } - return o.Metadata + return g.Metadata } // GetMediaMetaDataResponseBody - The metadata of the library item. @@ -2486,11 +2486,11 @@ type GetMediaMetaDataResponseBody struct { MediaContainer *GetMediaMetaDataMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetMediaMetaDataResponseBody) GetMediaContainer() *GetMediaMetaDataMediaContainer { - if o == nil { +func (g *GetMediaMetaDataResponseBody) GetMediaContainer() *GetMediaMetaDataMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetMediaMetaDataResponse struct { @@ -2504,30 +2504,30 @@ type GetMediaMetaDataResponse struct { Object *GetMediaMetaDataResponseBody } -func (o *GetMediaMetaDataResponse) GetContentType() string { - if o == nil { +func (g *GetMediaMetaDataResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetMediaMetaDataResponse) GetStatusCode() int { - if o == nil { +func (g *GetMediaMetaDataResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetMediaMetaDataResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetMediaMetaDataResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetMediaMetaDataResponse) GetObject() *GetMediaMetaDataResponseBody { - if o == nil { +func (g *GetMediaMetaDataResponse) GetObject() *GetMediaMetaDataResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getmediaposters.go b/models/operations/getmediaposters.go index 950e5db..fb41a6f 100644 --- a/models/operations/getmediaposters.go +++ b/models/operations/getmediaposters.go @@ -11,11 +11,11 @@ type GetMediaPostersRequest struct { RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"` } -func (o *GetMediaPostersRequest) GetRatingKey() int64 { - if o == nil { +func (g *GetMediaPostersRequest) GetRatingKey() int64 { + if g == nil { return 0 } - return o.RatingKey + return g.RatingKey } type GetMediaPostersMetadata struct { @@ -31,39 +31,39 @@ type GetMediaPostersMetadata struct { Thumb string `json:"thumb"` } -func (o *GetMediaPostersMetadata) GetKey() string { - if o == nil { +func (g *GetMediaPostersMetadata) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetMediaPostersMetadata) GetProvider() *string { - if o == nil { +func (g *GetMediaPostersMetadata) GetProvider() *string { + if g == nil { return nil } - return o.Provider + return g.Provider } -func (o *GetMediaPostersMetadata) GetRatingKey() string { - if o == nil { +func (g *GetMediaPostersMetadata) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetMediaPostersMetadata) GetSelected() bool { - if o == nil { +func (g *GetMediaPostersMetadata) GetSelected() bool { + if g == nil { return false } - return o.Selected + return g.Selected } -func (o *GetMediaPostersMetadata) GetThumb() string { - if o == nil { +func (g *GetMediaPostersMetadata) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } type GetMediaPostersMediaContainer struct { @@ -78,39 +78,39 @@ type GetMediaPostersMediaContainer struct { Metadata []GetMediaPostersMetadata `json:"Metadata"` } -func (o *GetMediaPostersMediaContainer) GetSize() int { - if o == nil { +func (g *GetMediaPostersMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetMediaPostersMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetMediaPostersMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetMediaPostersMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetMediaPostersMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetMediaPostersMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetMediaPostersMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetMediaPostersMediaContainer) GetMetadata() []GetMediaPostersMetadata { - if o == nil { +func (g *GetMediaPostersMediaContainer) GetMetadata() []GetMediaPostersMetadata { + if g == nil { return []GetMediaPostersMetadata{} } - return o.Metadata + return g.Metadata } // GetMediaPostersResponseBody - The available posters for the library item. @@ -118,11 +118,11 @@ type GetMediaPostersResponseBody struct { MediaContainer *GetMediaPostersMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetMediaPostersResponseBody) GetMediaContainer() *GetMediaPostersMediaContainer { - if o == nil { +func (g *GetMediaPostersResponseBody) GetMediaContainer() *GetMediaPostersMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetMediaPostersResponse struct { @@ -136,30 +136,30 @@ type GetMediaPostersResponse struct { Object *GetMediaPostersResponseBody } -func (o *GetMediaPostersResponse) GetContentType() string { - if o == nil { +func (g *GetMediaPostersResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetMediaPostersResponse) GetStatusCode() int { - if o == nil { +func (g *GetMediaPostersResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetMediaPostersResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetMediaPostersResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetMediaPostersResponse) GetObject() *GetMediaPostersResponseBody { - if o == nil { +func (g *GetMediaPostersResponse) GetObject() *GetMediaPostersResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getmediaproviders.go b/models/operations/getmediaproviders.go index 6ca14ff..4ac9968 100644 --- a/models/operations/getmediaproviders.go +++ b/models/operations/getmediaproviders.go @@ -11,11 +11,11 @@ type GetMediaProvidersRequest struct { XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` } -func (o *GetMediaProvidersRequest) GetXPlexToken() string { - if o == nil { +func (g *GetMediaProvidersRequest) GetXPlexToken() string { + if g == nil { return "" } - return o.XPlexToken + return g.XPlexToken } type Pivot struct { @@ -27,46 +27,46 @@ type Pivot struct { Symbol *string `json:"symbol,omitempty"` } -func (o *Pivot) GetID() *string { - if o == nil { +func (p *Pivot) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *Pivot) GetKey() *string { - if o == nil { +func (p *Pivot) GetKey() *string { + if p == nil { return nil } - return o.Key + return p.Key } -func (o *Pivot) GetType() *string { - if o == nil { +func (p *Pivot) GetType() *string { + if p == nil { return nil } - return o.Type + return p.Type } -func (o *Pivot) GetTitle() *string { - if o == nil { +func (p *Pivot) GetTitle() *string { + if p == nil { return nil } - return o.Title + return p.Title } -func (o *Pivot) GetContext() *string { - if o == nil { +func (p *Pivot) GetContext() *string { + if p == nil { return nil } - return o.Context + return p.Context } -func (o *Pivot) GetSymbol() *string { - if o == nil { +func (p *Pivot) GetSymbol() *string { + if p == nil { return nil } - return o.Symbol + return p.Symbol } type GetMediaProvidersDirectory struct { @@ -86,102 +86,102 @@ type GetMediaProvidersDirectory struct { Pivot []Pivot `json:"Pivot,omitempty"` } -func (o *GetMediaProvidersDirectory) GetHubKey() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetHubKey() *string { + if g == nil { return nil } - return o.HubKey + return g.HubKey } -func (o *GetMediaProvidersDirectory) GetTitle() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetMediaProvidersDirectory) GetAgent() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetAgent() *string { + if g == nil { return nil } - return o.Agent + return g.Agent } -func (o *GetMediaProvidersDirectory) GetLanguage() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetLanguage() *string { + if g == nil { return nil } - return o.Language + return g.Language } -func (o *GetMediaProvidersDirectory) GetRefreshing() *bool { - if o == nil { +func (g *GetMediaProvidersDirectory) GetRefreshing() *bool { + if g == nil { return nil } - return o.Refreshing + return g.Refreshing } -func (o *GetMediaProvidersDirectory) GetScanner() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetScanner() *string { + if g == nil { return nil } - return o.Scanner + return g.Scanner } -func (o *GetMediaProvidersDirectory) GetUUID() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetUUID() *string { + if g == nil { return nil } - return o.UUID + return g.UUID } -func (o *GetMediaProvidersDirectory) GetID() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetMediaProvidersDirectory) GetKey() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetMediaProvidersDirectory) GetType() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetMediaProvidersDirectory) GetSubtype() *string { - if o == nil { +func (g *GetMediaProvidersDirectory) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetMediaProvidersDirectory) GetUpdatedAt() *int64 { - if o == nil { +func (g *GetMediaProvidersDirectory) GetUpdatedAt() *int64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetMediaProvidersDirectory) GetScannedAt() *int64 { - if o == nil { +func (g *GetMediaProvidersDirectory) GetScannedAt() *int64 { + if g == nil { return nil } - return o.ScannedAt + return g.ScannedAt } -func (o *GetMediaProvidersDirectory) GetPivot() []Pivot { - if o == nil { +func (g *GetMediaProvidersDirectory) GetPivot() []Pivot { + if g == nil { return nil } - return o.Pivot + return g.Pivot } type Action struct { @@ -189,18 +189,18 @@ type Action struct { Key string `json:"key"` } -func (o *Action) GetID() string { - if o == nil { +func (a *Action) GetID() string { + if a == nil { return "" } - return o.ID + return a.ID } -func (o *Action) GetKey() string { - if o == nil { +func (a *Action) GetKey() string { + if a == nil { return "" } - return o.Key + return a.Key } type Feature struct { @@ -213,53 +213,53 @@ type Feature struct { Action []Action `json:"Action,omitempty"` } -func (o *Feature) GetKey() *string { - if o == nil { +func (f *Feature) GetKey() *string { + if f == nil { return nil } - return o.Key + return f.Key } -func (o *Feature) GetType() string { - if o == nil { +func (f *Feature) GetType() string { + if f == nil { return "" } - return o.Type + return f.Type } -func (o *Feature) GetFlavor() *string { - if o == nil { +func (f *Feature) GetFlavor() *string { + if f == nil { return nil } - return o.Flavor + return f.Flavor } -func (o *Feature) GetScrobbleKey() *string { - if o == nil { +func (f *Feature) GetScrobbleKey() *string { + if f == nil { return nil } - return o.ScrobbleKey + return f.ScrobbleKey } -func (o *Feature) GetUnscrobbleKey() *string { - if o == nil { +func (f *Feature) GetUnscrobbleKey() *string { + if f == nil { return nil } - return o.UnscrobbleKey + return f.UnscrobbleKey } -func (o *Feature) GetDirectory() []GetMediaProvidersDirectory { - if o == nil { +func (f *Feature) GetDirectory() []GetMediaProvidersDirectory { + if f == nil { return nil } - return o.Directory + return f.Directory } -func (o *Feature) GetAction() []Action { - if o == nil { +func (f *Feature) GetAction() []Action { + if f == nil { return nil } - return o.Action + return f.Action } type MediaProvider struct { @@ -270,39 +270,39 @@ type MediaProvider struct { Feature []Feature `json:"Feature,omitempty"` } -func (o *MediaProvider) GetIdentifier() *string { - if o == nil { +func (m *MediaProvider) GetIdentifier() *string { + if m == nil { return nil } - return o.Identifier + return m.Identifier } -func (o *MediaProvider) GetTitle() *string { - if o == nil { +func (m *MediaProvider) GetTitle() *string { + if m == nil { return nil } - return o.Title + return m.Title } -func (o *MediaProvider) GetTypes() *string { - if o == nil { +func (m *MediaProvider) GetTypes() *string { + if m == nil { return nil } - return o.Types + return m.Types } -func (o *MediaProvider) GetProtocols() *string { - if o == nil { +func (m *MediaProvider) GetProtocols() *string { + if m == nil { return nil } - return o.Protocols + return m.Protocols } -func (o *MediaProvider) GetFeature() []Feature { - if o == nil { +func (m *MediaProvider) GetFeature() []Feature { + if m == nil { return nil } - return o.Feature + return m.Feature } type GetMediaProvidersMediaContainer struct { @@ -352,312 +352,312 @@ type GetMediaProvidersMediaContainer struct { MediaProvider []MediaProvider `json:"MediaProvider,omitempty"` } -func (o *GetMediaProvidersMediaContainer) GetSize() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetMediaProvidersMediaContainer) GetAllowCameraUpload() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetAllowCameraUpload() *bool { + if g == nil { return nil } - return o.AllowCameraUpload + return g.AllowCameraUpload } -func (o *GetMediaProvidersMediaContainer) GetAllowChannelAccess() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetAllowChannelAccess() *bool { + if g == nil { return nil } - return o.AllowChannelAccess + return g.AllowChannelAccess } -func (o *GetMediaProvidersMediaContainer) GetAllowSharing() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetAllowSharing() *bool { + if g == nil { return nil } - return o.AllowSharing + return g.AllowSharing } -func (o *GetMediaProvidersMediaContainer) GetAllowSync() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetMediaProvidersMediaContainer) GetAllowTuners() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetAllowTuners() *bool { + if g == nil { return nil } - return o.AllowTuners + return g.AllowTuners } -func (o *GetMediaProvidersMediaContainer) GetBackgroundProcessing() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetBackgroundProcessing() *bool { + if g == nil { return nil } - return o.BackgroundProcessing + return g.BackgroundProcessing } -func (o *GetMediaProvidersMediaContainer) GetCertificate() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetCertificate() *bool { + if g == nil { return nil } - return o.Certificate + return g.Certificate } -func (o *GetMediaProvidersMediaContainer) GetCompanionProxy() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetCompanionProxy() *bool { + if g == nil { return nil } - return o.CompanionProxy + return g.CompanionProxy } -func (o *GetMediaProvidersMediaContainer) GetCountryCode() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetCountryCode() *string { + if g == nil { return nil } - return o.CountryCode + return g.CountryCode } -func (o *GetMediaProvidersMediaContainer) GetDiagnostics() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetDiagnostics() *string { + if g == nil { return nil } - return o.Diagnostics + return g.Diagnostics } -func (o *GetMediaProvidersMediaContainer) GetEventStream() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetEventStream() *bool { + if g == nil { return nil } - return o.EventStream + return g.EventStream } -func (o *GetMediaProvidersMediaContainer) GetFriendlyName() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetFriendlyName() *string { + if g == nil { return nil } - return o.FriendlyName + return g.FriendlyName } -func (o *GetMediaProvidersMediaContainer) GetLivetv() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetLivetv() *int64 { + if g == nil { return nil } - return o.Livetv + return g.Livetv } -func (o *GetMediaProvidersMediaContainer) GetMachineIdentifier() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMachineIdentifier() *string { + if g == nil { return nil } - return o.MachineIdentifier + return g.MachineIdentifier } -func (o *GetMediaProvidersMediaContainer) GetMusicAnalysis() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMusicAnalysis() *int64 { + if g == nil { return nil } - return o.MusicAnalysis + return g.MusicAnalysis } -func (o *GetMediaProvidersMediaContainer) GetMyPlex() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMyPlex() *bool { + if g == nil { return nil } - return o.MyPlex + return g.MyPlex } -func (o *GetMediaProvidersMediaContainer) GetMyPlexMappingState() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMyPlexMappingState() *string { + if g == nil { return nil } - return o.MyPlexMappingState + return g.MyPlexMappingState } -func (o *GetMediaProvidersMediaContainer) GetMyPlexSigninState() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMyPlexSigninState() *string { + if g == nil { return nil } - return o.MyPlexSigninState + return g.MyPlexSigninState } -func (o *GetMediaProvidersMediaContainer) GetMyPlexSubscription() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMyPlexSubscription() *bool { + if g == nil { return nil } - return o.MyPlexSubscription + return g.MyPlexSubscription } -func (o *GetMediaProvidersMediaContainer) GetMyPlexUsername() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMyPlexUsername() *string { + if g == nil { return nil } - return o.MyPlexUsername + return g.MyPlexUsername } -func (o *GetMediaProvidersMediaContainer) GetOfflineTranscode() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetOfflineTranscode() *int64 { + if g == nil { return nil } - return o.OfflineTranscode + return g.OfflineTranscode } -func (o *GetMediaProvidersMediaContainer) GetOwnerFeatures() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetOwnerFeatures() *string { + if g == nil { return nil } - return o.OwnerFeatures + return g.OwnerFeatures } -func (o *GetMediaProvidersMediaContainer) GetPlatform() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetPlatform() *string { + if g == nil { return nil } - return o.Platform + return g.Platform } -func (o *GetMediaProvidersMediaContainer) GetPlatformVersion() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetPlatformVersion() *string { + if g == nil { return nil } - return o.PlatformVersion + return g.PlatformVersion } -func (o *GetMediaProvidersMediaContainer) GetPluginHost() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetPluginHost() *bool { + if g == nil { return nil } - return o.PluginHost + return g.PluginHost } -func (o *GetMediaProvidersMediaContainer) GetPushNotifications() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetPushNotifications() *bool { + if g == nil { return nil } - return o.PushNotifications + return g.PushNotifications } -func (o *GetMediaProvidersMediaContainer) GetReadOnlyLibraries() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetReadOnlyLibraries() *bool { + if g == nil { return nil } - return o.ReadOnlyLibraries + return g.ReadOnlyLibraries } -func (o *GetMediaProvidersMediaContainer) GetStreamingBrainABRVersion() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetStreamingBrainABRVersion() *int64 { + if g == nil { return nil } - return o.StreamingBrainABRVersion + return g.StreamingBrainABRVersion } -func (o *GetMediaProvidersMediaContainer) GetStreamingBrainVersion() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetStreamingBrainVersion() *int64 { + if g == nil { return nil } - return o.StreamingBrainVersion + return g.StreamingBrainVersion } -func (o *GetMediaProvidersMediaContainer) GetSync() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetSync() *bool { + if g == nil { return nil } - return o.Sync + return g.Sync } -func (o *GetMediaProvidersMediaContainer) GetTranscoderActiveVideoSessions() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderActiveVideoSessions() *int64 { + if g == nil { return nil } - return o.TranscoderActiveVideoSessions + return g.TranscoderActiveVideoSessions } -func (o *GetMediaProvidersMediaContainer) GetTranscoderAudio() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderAudio() *bool { + if g == nil { return nil } - return o.TranscoderAudio + return g.TranscoderAudio } -func (o *GetMediaProvidersMediaContainer) GetTranscoderLyrics() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderLyrics() *bool { + if g == nil { return nil } - return o.TranscoderLyrics + return g.TranscoderLyrics } -func (o *GetMediaProvidersMediaContainer) GetTranscoderSubtitles() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderSubtitles() *bool { + if g == nil { return nil } - return o.TranscoderSubtitles + return g.TranscoderSubtitles } -func (o *GetMediaProvidersMediaContainer) GetTranscoderVideo() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderVideo() *bool { + if g == nil { return nil } - return o.TranscoderVideo + return g.TranscoderVideo } -func (o *GetMediaProvidersMediaContainer) GetTranscoderVideoBitrates() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoBitrates() *string { + if g == nil { return nil } - return o.TranscoderVideoBitrates + return g.TranscoderVideoBitrates } -func (o *GetMediaProvidersMediaContainer) GetTranscoderVideoQualities() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoQualities() *string { + if g == nil { return nil } - return o.TranscoderVideoQualities + return g.TranscoderVideoQualities } -func (o *GetMediaProvidersMediaContainer) GetTranscoderVideoResolutions() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoResolutions() *string { + if g == nil { return nil } - return o.TranscoderVideoResolutions + return g.TranscoderVideoResolutions } -func (o *GetMediaProvidersMediaContainer) GetUpdatedAt() *int64 { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetUpdatedAt() *int64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetMediaProvidersMediaContainer) GetUpdater() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetUpdater() *bool { + if g == nil { return nil } - return o.Updater + return g.Updater } -func (o *GetMediaProvidersMediaContainer) GetVersion() *string { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetVersion() *string { + if g == nil { return nil } - return o.Version + return g.Version } -func (o *GetMediaProvidersMediaContainer) GetVoiceSearch() *bool { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetVoiceSearch() *bool { + if g == nil { return nil } - return o.VoiceSearch + return g.VoiceSearch } -func (o *GetMediaProvidersMediaContainer) GetMediaProvider() []MediaProvider { - if o == nil { +func (g *GetMediaProvidersMediaContainer) GetMediaProvider() []MediaProvider { + if g == nil { return nil } - return o.MediaProvider + return g.MediaProvider } // GetMediaProvidersResponseBody - Media providers and their features @@ -665,11 +665,11 @@ type GetMediaProvidersResponseBody struct { MediaContainer *GetMediaProvidersMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetMediaProvidersResponseBody) GetMediaContainer() *GetMediaProvidersMediaContainer { - if o == nil { +func (g *GetMediaProvidersResponseBody) GetMediaContainer() *GetMediaProvidersMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetMediaProvidersResponse struct { @@ -683,30 +683,30 @@ type GetMediaProvidersResponse struct { Object *GetMediaProvidersResponseBody } -func (o *GetMediaProvidersResponse) GetContentType() string { - if o == nil { +func (g *GetMediaProvidersResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetMediaProvidersResponse) GetStatusCode() int { - if o == nil { +func (g *GetMediaProvidersResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetMediaProvidersResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetMediaProvidersResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetMediaProvidersResponse) GetObject() *GetMediaProvidersResponseBody { - if o == nil { +func (g *GetMediaProvidersResponse) GetObject() *GetMediaProvidersResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getmetadatachildren.go b/models/operations/getmetadatachildren.go index 632c0c9..1e007c8 100644 --- a/models/operations/getmetadatachildren.go +++ b/models/operations/getmetadatachildren.go @@ -14,18 +14,18 @@ type GetMetadataChildrenRequest struct { IncludeElements *string `queryParam:"style=form,explode=true,name=includeElements"` } -func (o *GetMetadataChildrenRequest) GetRatingKey() float64 { - if o == nil { +func (g *GetMetadataChildrenRequest) GetRatingKey() float64 { + if g == nil { return 0.0 } - return o.RatingKey + return g.RatingKey } -func (o *GetMetadataChildrenRequest) GetIncludeElements() *string { - if o == nil { +func (g *GetMetadataChildrenRequest) GetIncludeElements() *string { + if g == nil { return nil } - return o.IncludeElements + return g.IncludeElements } type GetMetadataChildrenDirectory struct { @@ -36,39 +36,39 @@ type GetMetadataChildrenDirectory struct { Title *string `json:"title,omitempty"` } -func (o *GetMetadataChildrenDirectory) GetLeafCount() *int { - if o == nil { +func (g *GetMetadataChildrenDirectory) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetMetadataChildrenDirectory) GetThumb() *string { - if o == nil { +func (g *GetMetadataChildrenDirectory) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetMetadataChildrenDirectory) GetViewedLeafCount() *int { - if o == nil { +func (g *GetMetadataChildrenDirectory) GetViewedLeafCount() *int { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetMetadataChildrenDirectory) GetKey() *string { - if o == nil { +func (g *GetMetadataChildrenDirectory) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetMetadataChildrenDirectory) GetTitle() *string { - if o == nil { +func (g *GetMetadataChildrenDirectory) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } type GetMetadataChildrenMetadata struct { @@ -101,193 +101,193 @@ type GetMetadataChildrenMetadata struct { LastRatedAt *int `json:"lastRatedAt,omitempty"` } -func (o *GetMetadataChildrenMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetMetadataChildrenMetadata) GetKey() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetMetadataChildrenMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetMetadataChildrenMetadata) GetGUID() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetMetadataChildrenMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetMetadataChildrenMetadata) GetParentStudio() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentStudio() *string { + if g == nil { return nil } - return o.ParentStudio + return g.ParentStudio } -func (o *GetMetadataChildrenMetadata) GetType() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetMetadataChildrenMetadata) GetTitle() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetMetadataChildrenMetadata) GetParentKey() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetMetadataChildrenMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetMetadataChildrenMetadata) GetSummary() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetMetadataChildrenMetadata) GetIndex() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetIndex() *int { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetMetadataChildrenMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetMetadataChildrenMetadata) GetViewCount() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetMetadataChildrenMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetMetadataChildrenMetadata) GetParentYear() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentYear() *int { + if g == nil { return nil } - return o.ParentYear + return g.ParentYear } -func (o *GetMetadataChildrenMetadata) GetThumb() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetMetadataChildrenMetadata) GetArt() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetMetadataChildrenMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetMetadataChildrenMetadata) GetParentTheme() *string { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetParentTheme() *string { + if g == nil { return nil } - return o.ParentTheme + return g.ParentTheme } -func (o *GetMetadataChildrenMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetMetadataChildrenMetadata) GetViewedLeafCount() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetViewedLeafCount() *int { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetMetadataChildrenMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetMetadataChildrenMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetMetadataChildrenMetadata) GetUserRating() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetUserRating() *int { + if g == nil { return nil } - return o.UserRating + return g.UserRating } -func (o *GetMetadataChildrenMetadata) GetSkipCount() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetSkipCount() *int { + if g == nil { return nil } - return o.SkipCount + return g.SkipCount } -func (o *GetMetadataChildrenMetadata) GetLastRatedAt() *int { - if o == nil { +func (g *GetMetadataChildrenMetadata) GetLastRatedAt() *int { + if g == nil { return nil } - return o.LastRatedAt + return g.LastRatedAt } type GetMetadataChildrenMediaContainer struct { @@ -316,165 +316,165 @@ type GetMetadataChildrenMediaContainer struct { Metadata []GetMetadataChildrenMetadata `json:"Metadata,omitempty"` } -func (o *GetMetadataChildrenMediaContainer) GetSize() *int { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetMetadataChildrenMediaContainer) GetAllowSync() *bool { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetMetadataChildrenMediaContainer) GetArt() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetMetadataChildrenMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetMetadataChildrenMediaContainer) GetKey() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionID() *int { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionID() *int { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetMetadataChildrenMediaContainer) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetMetadataChildrenMediaContainer) GetMediaTagPrefix() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetMediaTagPrefix() *string { + if g == nil { return nil } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetMetadataChildrenMediaContainer) GetMediaTagVersion() *int { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetMediaTagVersion() *int { + if g == nil { return nil } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetMetadataChildrenMediaContainer) GetNocache() *bool { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetNocache() *bool { + if g == nil { return nil } - return o.Nocache + return g.Nocache } -func (o *GetMetadataChildrenMediaContainer) GetParentIndex() *int { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetMetadataChildrenMediaContainer) GetParentTitle() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetMetadataChildrenMediaContainer) GetParentYear() *int { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetParentYear() *int { + if g == nil { return nil } - return o.ParentYear + return g.ParentYear } -func (o *GetMetadataChildrenMediaContainer) GetSummary() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetMetadataChildrenMediaContainer) GetTheme() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetTheme() *string { + if g == nil { return nil } - return o.Theme + return g.Theme } -func (o *GetMetadataChildrenMediaContainer) GetThumb() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetMetadataChildrenMediaContainer) GetTitle1() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetTitle1() *string { + if g == nil { return nil } - return o.Title1 + return g.Title1 } -func (o *GetMetadataChildrenMediaContainer) GetTitle2() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetTitle2() *string { + if g == nil { return nil } - return o.Title2 + return g.Title2 } -func (o *GetMetadataChildrenMediaContainer) GetViewGroup() *string { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetViewGroup() *string { + if g == nil { return nil } - return o.ViewGroup + return g.ViewGroup } -func (o *GetMetadataChildrenMediaContainer) GetViewMode() *int { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetViewMode() *int { + if g == nil { return nil } - return o.ViewMode + return g.ViewMode } -func (o *GetMetadataChildrenMediaContainer) GetDirectory() []GetMetadataChildrenDirectory { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetDirectory() []GetMetadataChildrenDirectory { + if g == nil { return nil } - return o.Directory + return g.Directory } -func (o *GetMetadataChildrenMediaContainer) GetMetadata() []GetMetadataChildrenMetadata { - if o == nil { +func (g *GetMetadataChildrenMediaContainer) GetMetadata() []GetMetadataChildrenMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetMetadataChildrenResponseBody - The children of the library item. @@ -482,11 +482,11 @@ type GetMetadataChildrenResponseBody struct { MediaContainer *GetMetadataChildrenMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetMetadataChildrenResponseBody) GetMediaContainer() *GetMetadataChildrenMediaContainer { - if o == nil { +func (g *GetMetadataChildrenResponseBody) GetMediaContainer() *GetMetadataChildrenMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetMetadataChildrenResponse struct { @@ -500,30 +500,30 @@ type GetMetadataChildrenResponse struct { Object *GetMetadataChildrenResponseBody } -func (o *GetMetadataChildrenResponse) GetContentType() string { - if o == nil { +func (g *GetMetadataChildrenResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetMetadataChildrenResponse) GetStatusCode() int { - if o == nil { +func (g *GetMetadataChildrenResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetMetadataChildrenResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetMetadataChildrenResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetMetadataChildrenResponse) GetObject() *GetMetadataChildrenResponseBody { - if o == nil { +func (g *GetMetadataChildrenResponse) GetObject() *GetMetadataChildrenResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getmyplexaccount.go b/models/operations/getmyplexaccount.go index 095d131..918f779 100644 --- a/models/operations/getmyplexaccount.go +++ b/models/operations/getmyplexaccount.go @@ -21,88 +21,88 @@ type MyPlex struct { SubscriptionState *string `json:"subscriptionState,omitempty"` } -func (o *MyPlex) GetAuthToken() *string { - if o == nil { +func (m *MyPlex) GetAuthToken() *string { + if m == nil { return nil } - return o.AuthToken + return m.AuthToken } -func (o *MyPlex) GetUsername() *string { - if o == nil { +func (m *MyPlex) GetUsername() *string { + if m == nil { return nil } - return o.Username + return m.Username } -func (o *MyPlex) GetMappingState() *string { - if o == nil { +func (m *MyPlex) GetMappingState() *string { + if m == nil { return nil } - return o.MappingState + return m.MappingState } -func (o *MyPlex) GetMappingError() *string { - if o == nil { +func (m *MyPlex) GetMappingError() *string { + if m == nil { return nil } - return o.MappingError + return m.MappingError } -func (o *MyPlex) GetSignInState() *string { - if o == nil { +func (m *MyPlex) GetSignInState() *string { + if m == nil { return nil } - return o.SignInState + return m.SignInState } -func (o *MyPlex) GetPublicAddress() *string { - if o == nil { +func (m *MyPlex) GetPublicAddress() *string { + if m == nil { return nil } - return o.PublicAddress + return m.PublicAddress } -func (o *MyPlex) GetPublicPort() *float64 { - if o == nil { +func (m *MyPlex) GetPublicPort() *float64 { + if m == nil { return nil } - return o.PublicPort + return m.PublicPort } -func (o *MyPlex) GetPrivateAddress() *string { - if o == nil { +func (m *MyPlex) GetPrivateAddress() *string { + if m == nil { return nil } - return o.PrivateAddress + return m.PrivateAddress } -func (o *MyPlex) GetPrivatePort() *float64 { - if o == nil { +func (m *MyPlex) GetPrivatePort() *float64 { + if m == nil { return nil } - return o.PrivatePort + return m.PrivatePort } -func (o *MyPlex) GetSubscriptionFeatures() *string { - if o == nil { +func (m *MyPlex) GetSubscriptionFeatures() *string { + if m == nil { return nil } - return o.SubscriptionFeatures + return m.SubscriptionFeatures } -func (o *MyPlex) GetSubscriptionActive() *bool { - if o == nil { +func (m *MyPlex) GetSubscriptionActive() *bool { + if m == nil { return nil } - return o.SubscriptionActive + return m.SubscriptionActive } -func (o *MyPlex) GetSubscriptionState() *string { - if o == nil { +func (m *MyPlex) GetSubscriptionState() *string { + if m == nil { return nil } - return o.SubscriptionState + return m.SubscriptionState } // GetMyPlexAccountResponseBody - MyPlex Account @@ -110,11 +110,11 @@ type GetMyPlexAccountResponseBody struct { MyPlex *MyPlex `json:"MyPlex,omitempty"` } -func (o *GetMyPlexAccountResponseBody) GetMyPlex() *MyPlex { - if o == nil { +func (g *GetMyPlexAccountResponseBody) GetMyPlex() *MyPlex { + if g == nil { return nil } - return o.MyPlex + return g.MyPlex } type GetMyPlexAccountResponse struct { @@ -128,30 +128,30 @@ type GetMyPlexAccountResponse struct { Object *GetMyPlexAccountResponseBody } -func (o *GetMyPlexAccountResponse) GetContentType() string { - if o == nil { +func (g *GetMyPlexAccountResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetMyPlexAccountResponse) GetStatusCode() int { - if o == nil { +func (g *GetMyPlexAccountResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetMyPlexAccountResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetMyPlexAccountResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetMyPlexAccountResponse) GetObject() *GetMyPlexAccountResponseBody { - if o == nil { +func (g *GetMyPlexAccountResponse) GetObject() *GetMyPlexAccountResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getpin.go b/models/operations/getpin.go index 5a2b64d..78daf6c 100644 --- a/models/operations/getpin.go +++ b/models/operations/getpin.go @@ -41,46 +41,46 @@ func (g *GetPinRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetPinRequest) GetStrong() *bool { - if o == nil { +func (g *GetPinRequest) GetStrong() *bool { + if g == nil { return nil } - return o.Strong + return g.Strong } -func (o *GetPinRequest) GetClientID() string { - if o == nil { +func (g *GetPinRequest) GetClientID() string { + if g == nil { return "" } - return o.ClientID + return g.ClientID } -func (o *GetPinRequest) GetClientName() *string { - if o == nil { +func (g *GetPinRequest) GetClientName() *string { + if g == nil { return nil } - return o.ClientName + return g.ClientName } -func (o *GetPinRequest) GetDeviceNickname() *string { - if o == nil { +func (g *GetPinRequest) GetDeviceNickname() *string { + if g == nil { return nil } - return o.DeviceNickname + return g.DeviceNickname } -func (o *GetPinRequest) GetClientVersion() *string { - if o == nil { +func (g *GetPinRequest) GetClientVersion() *string { + if g == nil { return nil } - return o.ClientVersion + return g.ClientVersion } -func (o *GetPinRequest) GetPlatform() *string { - if o == nil { +func (g *GetPinRequest) GetPlatform() *string { + if g == nil { return nil } - return o.Platform + return g.Platform } // GeoData - Geo location data @@ -120,81 +120,81 @@ func (g *GeoData) UnmarshalJSON(data []byte) error { return nil } -func (o *GeoData) GetCode() string { - if o == nil { +func (g *GeoData) GetCode() string { + if g == nil { return "" } - return o.Code + return g.Code } -func (o *GeoData) GetContinentCode() string { - if o == nil { +func (g *GeoData) GetContinentCode() string { + if g == nil { return "" } - return o.ContinentCode + return g.ContinentCode } -func (o *GeoData) GetCountry() string { - if o == nil { +func (g *GeoData) GetCountry() string { + if g == nil { return "" } - return o.Country + return g.Country } -func (o *GeoData) GetCity() string { - if o == nil { +func (g *GeoData) GetCity() string { + if g == nil { return "" } - return o.City + return g.City } -func (o *GeoData) GetEuropeanUnionMember() *bool { - if o == nil { +func (g *GeoData) GetEuropeanUnionMember() *bool { + if g == nil { return nil } - return o.EuropeanUnionMember + return g.EuropeanUnionMember } -func (o *GeoData) GetTimeZone() string { - if o == nil { +func (g *GeoData) GetTimeZone() string { + if g == nil { return "" } - return o.TimeZone + return g.TimeZone } -func (o *GeoData) GetPostalCode() string { - if o == nil { +func (g *GeoData) GetPostalCode() string { + if g == nil { return "" } - return o.PostalCode + return g.PostalCode } -func (o *GeoData) GetInPrivacyRestrictedCountry() *bool { - if o == nil { +func (g *GeoData) GetInPrivacyRestrictedCountry() *bool { + if g == nil { return nil } - return o.InPrivacyRestrictedCountry + return g.InPrivacyRestrictedCountry } -func (o *GeoData) GetInPrivacyRestrictedRegion() *bool { - if o == nil { +func (g *GeoData) GetInPrivacyRestrictedRegion() *bool { + if g == nil { return nil } - return o.InPrivacyRestrictedRegion + return g.InPrivacyRestrictedRegion } -func (o *GeoData) GetSubdivisions() string { - if o == nil { +func (g *GeoData) GetSubdivisions() string { + if g == nil { return "" } - return o.Subdivisions + return g.Subdivisions } -func (o *GeoData) GetCoordinates() string { - if o == nil { +func (g *GeoData) GetCoordinates() string { + if g == nil { return "" } - return o.Coordinates + return g.Coordinates } // GetPinAuthPinContainer - Requests a new pin id used in the authentication flow @@ -227,88 +227,88 @@ func (g *GetPinAuthPinContainer) UnmarshalJSON(data []byte) error { return nil } -func (o *GetPinAuthPinContainer) GetID() int64 { - if o == nil { +func (g *GetPinAuthPinContainer) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetPinAuthPinContainer) GetCode() string { - if o == nil { +func (g *GetPinAuthPinContainer) GetCode() string { + if g == nil { return "" } - return o.Code + return g.Code } -func (o *GetPinAuthPinContainer) GetProduct() string { - if o == nil { +func (g *GetPinAuthPinContainer) GetProduct() string { + if g == nil { return "" } - return o.Product + return g.Product } -func (o *GetPinAuthPinContainer) GetTrusted() *bool { - if o == nil { +func (g *GetPinAuthPinContainer) GetTrusted() *bool { + if g == nil { return nil } - return o.Trusted + return g.Trusted } -func (o *GetPinAuthPinContainer) GetQr() string { - if o == nil { +func (g *GetPinAuthPinContainer) GetQr() string { + if g == nil { return "" } - return o.Qr + return g.Qr } -func (o *GetPinAuthPinContainer) GetClientIdentifier() string { - if o == nil { +func (g *GetPinAuthPinContainer) GetClientIdentifier() string { + if g == nil { return "" } - return o.ClientIdentifier + return g.ClientIdentifier } -func (o *GetPinAuthPinContainer) GetLocation() GeoData { - if o == nil { +func (g *GetPinAuthPinContainer) GetLocation() GeoData { + if g == nil { return GeoData{} } - return o.Location + return g.Location } -func (o *GetPinAuthPinContainer) GetExpiresIn() *int64 { - if o == nil { +func (g *GetPinAuthPinContainer) GetExpiresIn() *int64 { + if g == nil { return nil } - return o.ExpiresIn + return g.ExpiresIn } -func (o *GetPinAuthPinContainer) GetCreatedAt() time.Time { - if o == nil { +func (g *GetPinAuthPinContainer) GetCreatedAt() time.Time { + if g == nil { return time.Time{} } - return o.CreatedAt + return g.CreatedAt } -func (o *GetPinAuthPinContainer) GetExpiresAt() time.Time { - if o == nil { +func (g *GetPinAuthPinContainer) GetExpiresAt() time.Time { + if g == nil { return time.Time{} } - return o.ExpiresAt + return g.ExpiresAt } -func (o *GetPinAuthPinContainer) GetAuthToken() *string { - if o == nil { +func (g *GetPinAuthPinContainer) GetAuthToken() *string { + if g == nil { return nil } - return o.AuthToken + return g.AuthToken } -func (o *GetPinAuthPinContainer) GetNewRegistration() any { - if o == nil { +func (g *GetPinAuthPinContainer) GetNewRegistration() any { + if g == nil { return nil } - return o.NewRegistration + return g.NewRegistration } type GetPinResponse struct { @@ -322,30 +322,30 @@ type GetPinResponse struct { AuthPinContainer *GetPinAuthPinContainer } -func (o *GetPinResponse) GetContentType() string { - if o == nil { +func (g *GetPinResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetPinResponse) GetStatusCode() int { - if o == nil { +func (g *GetPinResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetPinResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetPinResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetPinResponse) GetAuthPinContainer() *GetPinAuthPinContainer { - if o == nil { +func (g *GetPinResponse) GetAuthPinContainer() *GetPinAuthPinContainer { + if g == nil { return nil } - return o.AuthPinContainer + return g.AuthPinContainer } diff --git a/models/operations/getplaylist.go b/models/operations/getplaylist.go index 6983f43..869b034 100644 --- a/models/operations/getplaylist.go +++ b/models/operations/getplaylist.go @@ -11,11 +11,11 @@ type GetPlaylistRequest struct { PlaylistID float64 `pathParam:"style=simple,explode=false,name=playlistID"` } -func (o *GetPlaylistRequest) GetPlaylistID() float64 { - if o == nil { +func (g *GetPlaylistRequest) GetPlaylistID() float64 { + if g == nil { return 0.0 } - return o.PlaylistID + return g.PlaylistID } type GetPlaylistMetadata struct { @@ -36,109 +36,109 @@ type GetPlaylistMetadata struct { UpdatedAt *int `json:"updatedAt,omitempty"` } -func (o *GetPlaylistMetadata) GetContent() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetContent() *string { + if g == nil { return nil } - return o.Content + return g.Content } -func (o *GetPlaylistMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetPlaylistMetadata) GetKey() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetPlaylistMetadata) GetGUID() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetPlaylistMetadata) GetType() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetPlaylistMetadata) GetTitle() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetPlaylistMetadata) GetSummary() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetPlaylistMetadata) GetSmart() *bool { - if o == nil { +func (g *GetPlaylistMetadata) GetSmart() *bool { + if g == nil { return nil } - return o.Smart + return g.Smart } -func (o *GetPlaylistMetadata) GetPlaylistType() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetPlaylistType() *string { + if g == nil { return nil } - return o.PlaylistType + return g.PlaylistType } -func (o *GetPlaylistMetadata) GetComposite() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetComposite() *string { + if g == nil { return nil } - return o.Composite + return g.Composite } -func (o *GetPlaylistMetadata) GetIcon() *string { - if o == nil { +func (g *GetPlaylistMetadata) GetIcon() *string { + if g == nil { return nil } - return o.Icon + return g.Icon } -func (o *GetPlaylistMetadata) GetDuration() *int { - if o == nil { +func (g *GetPlaylistMetadata) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetPlaylistMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetPlaylistMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetPlaylistMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetPlaylistMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetPlaylistMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetPlaylistMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } type GetPlaylistMediaContainer struct { @@ -146,18 +146,18 @@ type GetPlaylistMediaContainer struct { Metadata []GetPlaylistMetadata `json:"Metadata,omitempty"` } -func (o *GetPlaylistMediaContainer) GetSize() *int { - if o == nil { +func (g *GetPlaylistMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetPlaylistMediaContainer) GetMetadata() []GetPlaylistMetadata { - if o == nil { +func (g *GetPlaylistMediaContainer) GetMetadata() []GetPlaylistMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetPlaylistResponseBody - The playlist @@ -165,11 +165,11 @@ type GetPlaylistResponseBody struct { MediaContainer *GetPlaylistMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetPlaylistResponseBody) GetMediaContainer() *GetPlaylistMediaContainer { - if o == nil { +func (g *GetPlaylistResponseBody) GetMediaContainer() *GetPlaylistMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetPlaylistResponse struct { @@ -183,30 +183,30 @@ type GetPlaylistResponse struct { Object *GetPlaylistResponseBody } -func (o *GetPlaylistResponse) GetContentType() string { - if o == nil { +func (g *GetPlaylistResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetPlaylistResponse) GetStatusCode() int { - if o == nil { +func (g *GetPlaylistResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetPlaylistResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetPlaylistResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetPlaylistResponse) GetObject() *GetPlaylistResponseBody { - if o == nil { +func (g *GetPlaylistResponse) GetObject() *GetPlaylistResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getplaylistcontents.go b/models/operations/getplaylistcontents.go index acbc9b3..c991f8f 100644 --- a/models/operations/getplaylistcontents.go +++ b/models/operations/getplaylistcontents.go @@ -45,18 +45,18 @@ type GetPlaylistContentsRequest struct { Type GetPlaylistContentsQueryParamType `queryParam:"style=form,explode=true,name=type"` } -func (o *GetPlaylistContentsRequest) GetPlaylistID() float64 { - if o == nil { +func (g *GetPlaylistContentsRequest) GetPlaylistID() float64 { + if g == nil { return 0.0 } - return o.PlaylistID + return g.PlaylistID } -func (o *GetPlaylistContentsRequest) GetType() GetPlaylistContentsQueryParamType { - if o == nil { +func (g *GetPlaylistContentsRequest) GetType() GetPlaylistContentsQueryParamType { + if g == nil { return GetPlaylistContentsQueryParamType(0) } - return o.Type + return g.Type } type GetPlaylistContentsPart struct { @@ -72,74 +72,74 @@ type GetPlaylistContentsPart struct { VideoProfile *string `json:"videoProfile,omitempty"` } -func (o *GetPlaylistContentsPart) GetID() *int { - if o == nil { +func (g *GetPlaylistContentsPart) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetPlaylistContentsPart) GetKey() *string { - if o == nil { +func (g *GetPlaylistContentsPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetPlaylistContentsPart) GetDuration() *int { - if o == nil { +func (g *GetPlaylistContentsPart) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetPlaylistContentsPart) GetFile() *string { - if o == nil { +func (g *GetPlaylistContentsPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetPlaylistContentsPart) GetSize() *int { - if o == nil { +func (g *GetPlaylistContentsPart) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetPlaylistContentsPart) GetAudioProfile() *string { - if o == nil { +func (g *GetPlaylistContentsPart) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetPlaylistContentsPart) GetContainer() *string { - if o == nil { +func (g *GetPlaylistContentsPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetPlaylistContentsPart) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetPlaylistContentsPart) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetPlaylistContentsPart) GetOptimizedForStreaming() *bool { - if o == nil { +func (g *GetPlaylistContentsPart) GetOptimizedForStreaming() *bool { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetPlaylistContentsPart) GetVideoProfile() *string { - if o == nil { +func (g *GetPlaylistContentsPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } type GetPlaylistContentsMedia struct { @@ -162,178 +162,178 @@ type GetPlaylistContentsMedia struct { Part []GetPlaylistContentsPart `json:"Part,omitempty"` } -func (o *GetPlaylistContentsMedia) GetID() *int { - if o == nil { +func (g *GetPlaylistContentsMedia) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetPlaylistContentsMedia) GetDuration() *int { - if o == nil { +func (g *GetPlaylistContentsMedia) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetPlaylistContentsMedia) GetBitrate() *int { - if o == nil { +func (g *GetPlaylistContentsMedia) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetPlaylistContentsMedia) GetWidth() *int { - if o == nil { +func (g *GetPlaylistContentsMedia) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetPlaylistContentsMedia) GetHeight() *int { - if o == nil { +func (g *GetPlaylistContentsMedia) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetPlaylistContentsMedia) GetAspectRatio() *float64 { - if o == nil { +func (g *GetPlaylistContentsMedia) GetAspectRatio() *float64 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetPlaylistContentsMedia) GetAudioChannels() *int { - if o == nil { +func (g *GetPlaylistContentsMedia) GetAudioChannels() *int { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetPlaylistContentsMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetPlaylistContentsMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetPlaylistContentsMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetPlaylistContentsMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetPlaylistContentsMedia) GetVideoResolution() *string { - if o == nil { +func (g *GetPlaylistContentsMedia) GetVideoResolution() *string { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetPlaylistContentsMedia) GetContainer() *string { - if o == nil { +func (g *GetPlaylistContentsMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetPlaylistContentsMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetPlaylistContentsMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetPlaylistContentsMedia) GetOptimizedForStreaming() *int { - if o == nil { +func (g *GetPlaylistContentsMedia) GetOptimizedForStreaming() *int { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetPlaylistContentsMedia) GetAudioProfile() *string { - if o == nil { +func (g *GetPlaylistContentsMedia) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetPlaylistContentsMedia) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetPlaylistContentsMedia) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetPlaylistContentsMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetPlaylistContentsMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetPlaylistContentsMedia) GetPart() []GetPlaylistContentsPart { - if o == nil { +func (g *GetPlaylistContentsMedia) GetPart() []GetPlaylistContentsPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetPlaylistContentsGenre struct { Tag *string `json:"tag,omitempty"` } -func (o *GetPlaylistContentsGenre) GetTag() *string { - if o == nil { +func (g *GetPlaylistContentsGenre) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetPlaylistContentsCountry struct { Tag *string `json:"tag,omitempty"` } -func (o *GetPlaylistContentsCountry) GetTag() *string { - if o == nil { +func (g *GetPlaylistContentsCountry) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetPlaylistContentsDirector struct { Tag *string `json:"tag,omitempty"` } -func (o *GetPlaylistContentsDirector) GetTag() *string { - if o == nil { +func (g *GetPlaylistContentsDirector) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetPlaylistContentsWriter struct { Tag *string `json:"tag,omitempty"` } -func (o *GetPlaylistContentsWriter) GetTag() *string { - if o == nil { +func (g *GetPlaylistContentsWriter) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetPlaylistContentsRole struct { Tag *string `json:"tag,omitempty"` } -func (o *GetPlaylistContentsRole) GetTag() *string { - if o == nil { +func (g *GetPlaylistContentsRole) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetPlaylistContentsMetadata struct { @@ -382,228 +382,228 @@ func (g *GetPlaylistContentsMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetPlaylistContentsMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetPlaylistContentsMetadata) GetKey() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetPlaylistContentsMetadata) GetGUID() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetPlaylistContentsMetadata) GetStudio() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetPlaylistContentsMetadata) GetType() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetPlaylistContentsMetadata) GetTitle() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetPlaylistContentsMetadata) GetTitleSort() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetTitleSort() *string { + if g == nil { return nil } - return o.TitleSort + return g.TitleSort } -func (o *GetPlaylistContentsMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetPlaylistContentsMetadata) GetLibrarySectionID() *int { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetLibrarySectionID() *int { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetPlaylistContentsMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetPlaylistContentsMetadata) GetContentRating() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetPlaylistContentsMetadata) GetSummary() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetPlaylistContentsMetadata) GetRating() *float64 { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetRating() *float64 { + if g == nil { return nil } - return o.Rating + return g.Rating } -func (o *GetPlaylistContentsMetadata) GetAudienceRating() *float64 { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetAudienceRating() *float64 { + if g == nil { return nil } - return o.AudienceRating + return g.AudienceRating } -func (o *GetPlaylistContentsMetadata) GetYear() *int { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetPlaylistContentsMetadata) GetTagline() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetTagline() *string { + if g == nil { return nil } - return o.Tagline + return g.Tagline } -func (o *GetPlaylistContentsMetadata) GetThumb() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetPlaylistContentsMetadata) GetArt() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetPlaylistContentsMetadata) GetDuration() *int { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetPlaylistContentsMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetPlaylistContentsMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetPlaylistContentsMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetPlaylistContentsMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetPlaylistContentsMetadata) GetHasPremiumExtras() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetHasPremiumExtras() *string { + if g == nil { return nil } - return o.HasPremiumExtras + return g.HasPremiumExtras } -func (o *GetPlaylistContentsMetadata) GetHasPremiumPrimaryExtra() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetHasPremiumPrimaryExtra() *string { + if g == nil { return nil } - return o.HasPremiumPrimaryExtra + return g.HasPremiumPrimaryExtra } -func (o *GetPlaylistContentsMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetPlaylistContentsMetadata) GetMedia() []GetPlaylistContentsMedia { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetMedia() []GetPlaylistContentsMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetPlaylistContentsMetadata) GetGenre() []GetPlaylistContentsGenre { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetGenre() []GetPlaylistContentsGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetPlaylistContentsMetadata) GetCountry() []GetPlaylistContentsCountry { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetCountry() []GetPlaylistContentsCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetPlaylistContentsMetadata) GetDirector() []GetPlaylistContentsDirector { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetDirector() []GetPlaylistContentsDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetPlaylistContentsMetadata) GetWriter() []GetPlaylistContentsWriter { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetWriter() []GetPlaylistContentsWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetPlaylistContentsMetadata) GetRole() []GetPlaylistContentsRole { - if o == nil { +func (g *GetPlaylistContentsMetadata) GetRole() []GetPlaylistContentsRole { + if g == nil { return nil } - return o.Role + return g.Role } type GetPlaylistContentsMediaContainer struct { @@ -618,67 +618,67 @@ type GetPlaylistContentsMediaContainer struct { Metadata []GetPlaylistContentsMetadata `json:"Metadata,omitempty"` } -func (o *GetPlaylistContentsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetPlaylistContentsMediaContainer) GetComposite() *string { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetComposite() *string { + if g == nil { return nil } - return o.Composite + return g.Composite } -func (o *GetPlaylistContentsMediaContainer) GetDuration() *int { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetPlaylistContentsMediaContainer) GetLeafCount() *int { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetPlaylistContentsMediaContainer) GetPlaylistType() *string { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetPlaylistType() *string { + if g == nil { return nil } - return o.PlaylistType + return g.PlaylistType } -func (o *GetPlaylistContentsMediaContainer) GetRatingKey() *string { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetPlaylistContentsMediaContainer) GetSmart() *bool { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetSmart() *bool { + if g == nil { return nil } - return o.Smart + return g.Smart } -func (o *GetPlaylistContentsMediaContainer) GetTitle() *string { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetPlaylistContentsMediaContainer) GetMetadata() []GetPlaylistContentsMetadata { - if o == nil { +func (g *GetPlaylistContentsMediaContainer) GetMetadata() []GetPlaylistContentsMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetPlaylistContentsResponseBody - The playlist contents @@ -686,11 +686,11 @@ type GetPlaylistContentsResponseBody struct { MediaContainer *GetPlaylistContentsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetPlaylistContentsResponseBody) GetMediaContainer() *GetPlaylistContentsMediaContainer { - if o == nil { +func (g *GetPlaylistContentsResponseBody) GetMediaContainer() *GetPlaylistContentsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetPlaylistContentsResponse struct { @@ -704,30 +704,30 @@ type GetPlaylistContentsResponse struct { Object *GetPlaylistContentsResponseBody } -func (o *GetPlaylistContentsResponse) GetContentType() string { - if o == nil { +func (g *GetPlaylistContentsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetPlaylistContentsResponse) GetStatusCode() int { - if o == nil { +func (g *GetPlaylistContentsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetPlaylistContentsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetPlaylistContentsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetPlaylistContentsResponse) GetObject() *GetPlaylistContentsResponseBody { - if o == nil { +func (g *GetPlaylistContentsResponse) GetObject() *GetPlaylistContentsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getplaylists.go b/models/operations/getplaylists.go index 0bfe28f..0973163 100644 --- a/models/operations/getplaylists.go +++ b/models/operations/getplaylists.go @@ -38,18 +38,18 @@ type GetPlaylistsRequest struct { Smart *QueryParamSmart `queryParam:"style=form,explode=true,name=smart"` } -func (o *GetPlaylistsRequest) GetPlaylistType() *PlaylistType { - if o == nil { +func (g *GetPlaylistsRequest) GetPlaylistType() *PlaylistType { + if g == nil { return nil } - return o.PlaylistType + return g.PlaylistType } -func (o *GetPlaylistsRequest) GetSmart() *QueryParamSmart { - if o == nil { +func (g *GetPlaylistsRequest) GetSmart() *QueryParamSmart { + if g == nil { return nil } - return o.Smart + return g.Smart } type GetPlaylistsMetadata struct { @@ -71,116 +71,116 @@ type GetPlaylistsMetadata struct { UpdatedAt *int `json:"updatedAt,omitempty"` } -func (o *GetPlaylistsMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetPlaylistsMetadata) GetKey() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetPlaylistsMetadata) GetGUID() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetPlaylistsMetadata) GetType() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetPlaylistsMetadata) GetTitle() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetPlaylistsMetadata) GetSummary() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetPlaylistsMetadata) GetSmart() *bool { - if o == nil { +func (g *GetPlaylistsMetadata) GetSmart() *bool { + if g == nil { return nil } - return o.Smart + return g.Smart } -func (o *GetPlaylistsMetadata) GetPlaylistType() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetPlaylistType() *string { + if g == nil { return nil } - return o.PlaylistType + return g.PlaylistType } -func (o *GetPlaylistsMetadata) GetComposite() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetComposite() *string { + if g == nil { return nil } - return o.Composite + return g.Composite } -func (o *GetPlaylistsMetadata) GetIcon() *string { - if o == nil { +func (g *GetPlaylistsMetadata) GetIcon() *string { + if g == nil { return nil } - return o.Icon + return g.Icon } -func (o *GetPlaylistsMetadata) GetViewCount() *int { - if o == nil { +func (g *GetPlaylistsMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetPlaylistsMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetPlaylistsMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetPlaylistsMetadata) GetDuration() *int { - if o == nil { +func (g *GetPlaylistsMetadata) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetPlaylistsMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetPlaylistsMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetPlaylistsMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetPlaylistsMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetPlaylistsMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetPlaylistsMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } type GetPlaylistsMediaContainer struct { @@ -188,18 +188,18 @@ type GetPlaylistsMediaContainer struct { Metadata []GetPlaylistsMetadata `json:"Metadata,omitempty"` } -func (o *GetPlaylistsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetPlaylistsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetPlaylistsMediaContainer) GetMetadata() []GetPlaylistsMetadata { - if o == nil { +func (g *GetPlaylistsMediaContainer) GetMetadata() []GetPlaylistsMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetPlaylistsResponseBody - returns all playlists @@ -207,11 +207,11 @@ type GetPlaylistsResponseBody struct { MediaContainer *GetPlaylistsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetPlaylistsResponseBody) GetMediaContainer() *GetPlaylistsMediaContainer { - if o == nil { +func (g *GetPlaylistsResponseBody) GetMediaContainer() *GetPlaylistsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetPlaylistsResponse struct { @@ -225,30 +225,30 @@ type GetPlaylistsResponse struct { Object *GetPlaylistsResponseBody } -func (o *GetPlaylistsResponse) GetContentType() string { - if o == nil { +func (g *GetPlaylistsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetPlaylistsResponse) GetStatusCode() int { - if o == nil { +func (g *GetPlaylistsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetPlaylistsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetPlaylistsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetPlaylistsResponse) GetObject() *GetPlaylistsResponseBody { - if o == nil { +func (g *GetPlaylistsResponse) GetObject() *GetPlaylistsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getrecentlyadded.go b/models/operations/getrecentlyadded.go index 416afc5..8535df9 100644 --- a/models/operations/getrecentlyadded.go +++ b/models/operations/getrecentlyadded.go @@ -103,53 +103,53 @@ func (g *GetRecentlyAddedRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRecentlyAddedRequest) GetContentDirectoryID() int64 { - if o == nil { +func (g *GetRecentlyAddedRequest) GetContentDirectoryID() int64 { + if g == nil { return 0 } - return o.ContentDirectoryID + return g.ContentDirectoryID } -func (o *GetRecentlyAddedRequest) GetPinnedContentDirectoryID() *string { - if o == nil { +func (g *GetRecentlyAddedRequest) GetPinnedContentDirectoryID() *string { + if g == nil { return nil } - return o.PinnedContentDirectoryID + return g.PinnedContentDirectoryID } -func (o *GetRecentlyAddedRequest) GetSectionID() *int64 { - if o == nil { +func (g *GetRecentlyAddedRequest) GetSectionID() *int64 { + if g == nil { return nil } - return o.SectionID + return g.SectionID } -func (o *GetRecentlyAddedRequest) GetType() Type { - if o == nil { +func (g *GetRecentlyAddedRequest) GetType() Type { + if g == nil { return Type(0) } - return o.Type + return g.Type } -func (o *GetRecentlyAddedRequest) GetIncludeMeta() *IncludeMeta { - if o == nil { +func (g *GetRecentlyAddedRequest) GetIncludeMeta() *IncludeMeta { + if g == nil { return nil } - return o.IncludeMeta + return g.IncludeMeta } -func (o *GetRecentlyAddedRequest) GetXPlexContainerStart() *int { - if o == nil { +func (g *GetRecentlyAddedRequest) GetXPlexContainerStart() *int { + if g == nil { return nil } - return o.XPlexContainerStart + return g.XPlexContainerStart } -func (o *GetRecentlyAddedRequest) GetXPlexContainerSize() *int { - if o == nil { +func (g *GetRecentlyAddedRequest) GetXPlexContainerSize() *int { + if g == nil { return nil } - return o.XPlexContainerSize + return g.XPlexContainerSize } type GetRecentlyAddedFilter struct { @@ -161,46 +161,46 @@ type GetRecentlyAddedFilter struct { Advanced *bool `json:"advanced,omitempty"` } -func (o *GetRecentlyAddedFilter) GetFilter() string { - if o == nil { +func (g *GetRecentlyAddedFilter) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetRecentlyAddedFilter) GetFilterType() string { - if o == nil { +func (g *GetRecentlyAddedFilter) GetFilterType() string { + if g == nil { return "" } - return o.FilterType + return g.FilterType } -func (o *GetRecentlyAddedFilter) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedFilter) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedFilter) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedFilter) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetRecentlyAddedFilter) GetType() string { - if o == nil { +func (g *GetRecentlyAddedFilter) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetRecentlyAddedFilter) GetAdvanced() *bool { - if o == nil { +func (g *GetRecentlyAddedFilter) GetAdvanced() *bool { + if g == nil { return nil } - return o.Advanced + return g.Advanced } // GetRecentlyAddedActiveDirection - The direction of the sort. Can be either `asc` or `desc`. @@ -283,60 +283,60 @@ func (g *GetRecentlyAddedSort) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRecentlyAddedSort) GetDefault() *string { - if o == nil { +func (g *GetRecentlyAddedSort) GetDefault() *string { + if g == nil { return nil } - return o.Default + return g.Default } -func (o *GetRecentlyAddedSort) GetActive() *bool { - if o == nil { +func (g *GetRecentlyAddedSort) GetActive() *bool { + if g == nil { return nil } - return o.Active + return g.Active } -func (o *GetRecentlyAddedSort) GetActiveDirection() *GetRecentlyAddedActiveDirection { - if o == nil { +func (g *GetRecentlyAddedSort) GetActiveDirection() *GetRecentlyAddedActiveDirection { + if g == nil { return nil } - return o.ActiveDirection + return g.ActiveDirection } -func (o *GetRecentlyAddedSort) GetDefaultDirection() *GetRecentlyAddedDefaultDirection { - if o == nil { +func (g *GetRecentlyAddedSort) GetDefaultDirection() *GetRecentlyAddedDefaultDirection { + if g == nil { return nil } - return o.DefaultDirection + return g.DefaultDirection } -func (o *GetRecentlyAddedSort) GetDescKey() *string { - if o == nil { +func (g *GetRecentlyAddedSort) GetDescKey() *string { + if g == nil { return nil } - return o.DescKey + return g.DescKey } -func (o *GetRecentlyAddedSort) GetFirstCharacterKey() *string { - if o == nil { +func (g *GetRecentlyAddedSort) GetFirstCharacterKey() *string { + if g == nil { return nil } - return o.FirstCharacterKey + return g.FirstCharacterKey } -func (o *GetRecentlyAddedSort) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedSort) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedSort) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedSort) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetRecentlyAddedField struct { @@ -346,32 +346,32 @@ type GetRecentlyAddedField struct { SubType *string `json:"subType,omitempty"` } -func (o *GetRecentlyAddedField) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedField) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedField) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedField) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetRecentlyAddedField) GetType() string { - if o == nil { +func (g *GetRecentlyAddedField) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetRecentlyAddedField) GetSubType() *string { - if o == nil { +func (g *GetRecentlyAddedField) GetSubType() *string { + if g == nil { return nil } - return o.SubType + return g.SubType } type GetRecentlyAddedType struct { @@ -385,60 +385,60 @@ type GetRecentlyAddedType struct { Field []GetRecentlyAddedField `json:"Field,omitempty"` } -func (o *GetRecentlyAddedType) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedType) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedType) GetType() string { - if o == nil { +func (g *GetRecentlyAddedType) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetRecentlyAddedType) GetSubtype() *string { - if o == nil { +func (g *GetRecentlyAddedType) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetRecentlyAddedType) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedType) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetRecentlyAddedType) GetActive() bool { - if o == nil { +func (g *GetRecentlyAddedType) GetActive() bool { + if g == nil { return false } - return o.Active + return g.Active } -func (o *GetRecentlyAddedType) GetFilter() []GetRecentlyAddedFilter { - if o == nil { +func (g *GetRecentlyAddedType) GetFilter() []GetRecentlyAddedFilter { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetRecentlyAddedType) GetSort() []GetRecentlyAddedSort { - if o == nil { +func (g *GetRecentlyAddedType) GetSort() []GetRecentlyAddedSort { + if g == nil { return nil } - return o.Sort + return g.Sort } -func (o *GetRecentlyAddedType) GetField() []GetRecentlyAddedField { - if o == nil { +func (g *GetRecentlyAddedType) GetField() []GetRecentlyAddedField { + if g == nil { return nil } - return o.Field + return g.Field } type GetRecentlyAddedOperator struct { @@ -446,18 +446,18 @@ type GetRecentlyAddedOperator struct { Title string `json:"title"` } -func (o *GetRecentlyAddedOperator) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedOperator) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedOperator) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedOperator) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } type GetRecentlyAddedFieldType struct { @@ -465,18 +465,18 @@ type GetRecentlyAddedFieldType struct { Operator []GetRecentlyAddedOperator `json:"Operator"` } -func (o *GetRecentlyAddedFieldType) GetType() string { - if o == nil { +func (g *GetRecentlyAddedFieldType) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetRecentlyAddedFieldType) GetOperator() []GetRecentlyAddedOperator { - if o == nil { +func (g *GetRecentlyAddedFieldType) GetOperator() []GetRecentlyAddedOperator { + if g == nil { return []GetRecentlyAddedOperator{} } - return o.Operator + return g.Operator } // The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. @@ -485,18 +485,18 @@ type Meta struct { FieldType []GetRecentlyAddedFieldType `json:"FieldType,omitempty"` } -func (o *Meta) GetType() []GetRecentlyAddedType { - if o == nil { +func (m *Meta) GetType() []GetRecentlyAddedType { + if m == nil { return nil } - return o.Type + return m.Type } -func (o *Meta) GetFieldType() []GetRecentlyAddedFieldType { - if o == nil { +func (m *Meta) GetFieldType() []GetRecentlyAddedFieldType { + if m == nil { return nil } - return o.FieldType + return m.FieldType } // GetRecentlyAddedHubsType - The type of media content in the Plex library. This can represent videos, music, or photos. @@ -538,25 +538,25 @@ type GetRecentlyAddedImage struct { URL string `json:"url"` } -func (o *GetRecentlyAddedImage) GetAlt() string { - if o == nil { +func (g *GetRecentlyAddedImage) GetAlt() string { + if g == nil { return "" } - return o.Alt + return g.Alt } -func (o *GetRecentlyAddedImage) GetType() GetRecentlyAddedHubsResponseType { - if o == nil { +func (g *GetRecentlyAddedImage) GetType() GetRecentlyAddedHubsResponseType { + if g == nil { return GetRecentlyAddedHubsResponseType("") } - return o.Type + return g.Type } -func (o *GetRecentlyAddedImage) GetURL() string { - if o == nil { +func (g *GetRecentlyAddedImage) GetURL() string { + if g == nil { return "" } - return o.URL + return g.URL } type UltraBlurColors struct { @@ -566,32 +566,32 @@ type UltraBlurColors struct { BottomLeft string `json:"bottomLeft"` } -func (o *UltraBlurColors) GetTopLeft() string { - if o == nil { +func (u *UltraBlurColors) GetTopLeft() string { + if u == nil { return "" } - return o.TopLeft + return u.TopLeft } -func (o *UltraBlurColors) GetTopRight() string { - if o == nil { +func (u *UltraBlurColors) GetTopRight() string { + if u == nil { return "" } - return o.TopRight + return u.TopRight } -func (o *UltraBlurColors) GetBottomRight() string { - if o == nil { +func (u *UltraBlurColors) GetBottomRight() string { + if u == nil { return "" } - return o.BottomRight + return u.BottomRight } -func (o *UltraBlurColors) GetBottomLeft() string { - if o == nil { +func (u *UltraBlurColors) GetBottomLeft() string { + if u == nil { return "" } - return o.BottomLeft + return u.BottomLeft } type Guids struct { @@ -600,11 +600,11 @@ type Guids struct { ID string `json:"id"` } -func (o *Guids) GetID() string { - if o == nil { +func (g *Guids) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } type One int @@ -642,8 +642,8 @@ const ( // OptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type OptimizedForStreaming struct { - One *One `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + One *One `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type OptimizedForStreamingType } @@ -732,8 +732,8 @@ const ( // GetRecentlyAddedOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetRecentlyAddedOptimizedForStreaming struct { - GetRecentlyAddedOptimizedForStreaming1 *GetRecentlyAddedOptimizedForStreaming1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetRecentlyAddedOptimizedForStreaming1 *GetRecentlyAddedOptimizedForStreaming1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetRecentlyAddedOptimizedForStreamingType } @@ -929,358 +929,358 @@ func (s *Stream) UnmarshalJSON(data []byte) error { return nil } -func (o *Stream) GetID() int64 { - if o == nil { +func (s *Stream) GetID() int64 { + if s == nil { return 0 } - return o.ID + return s.ID } -func (o *Stream) GetStreamType() int64 { +func (s *Stream) GetStreamType() int64 { return 1 } -func (o *Stream) GetFormat() *string { - if o == nil { +func (s *Stream) GetFormat() *string { + if s == nil { return nil } - return o.Format + return s.Format } -func (o *Stream) GetDefault() *bool { - if o == nil { +func (s *Stream) GetDefault() *bool { + if s == nil { return nil } - return o.Default + return s.Default } -func (o *Stream) GetCodec() string { - if o == nil { +func (s *Stream) GetCodec() string { + if s == nil { return "" } - return o.Codec + return s.Codec } -func (o *Stream) GetIndex() *int { - if o == nil { +func (s *Stream) GetIndex() *int { + if s == nil { return nil } - return o.Index + return s.Index } -func (o *Stream) GetBitrate() *int { - if o == nil { +func (s *Stream) GetBitrate() *int { + if s == nil { return nil } - return o.Bitrate + return s.Bitrate } -func (o *Stream) GetLanguage() *string { - if o == nil { +func (s *Stream) GetLanguage() *string { + if s == nil { return nil } - return o.Language + return s.Language } -func (o *Stream) GetLanguageTag() *string { - if o == nil { +func (s *Stream) GetLanguageTag() *string { + if s == nil { return nil } - return o.LanguageTag + return s.LanguageTag } -func (o *Stream) GetLanguageCode() *string { - if o == nil { +func (s *Stream) GetLanguageCode() *string { + if s == nil { return nil } - return o.LanguageCode + return s.LanguageCode } -func (o *Stream) GetHeaderCompression() *bool { - if o == nil { +func (s *Stream) GetHeaderCompression() *bool { + if s == nil { return nil } - return o.HeaderCompression + return s.HeaderCompression } -func (o *Stream) GetDOVIBLCompatID() *int { - if o == nil { +func (s *Stream) GetDOVIBLCompatID() *int { + if s == nil { return nil } - return o.DOVIBLCompatID + return s.DOVIBLCompatID } -func (o *Stream) GetDOVIBLPresent() *bool { - if o == nil { +func (s *Stream) GetDOVIBLPresent() *bool { + if s == nil { return nil } - return o.DOVIBLPresent + return s.DOVIBLPresent } -func (o *Stream) GetDOVIELPresent() *bool { - if o == nil { +func (s *Stream) GetDOVIELPresent() *bool { + if s == nil { return nil } - return o.DOVIELPresent + return s.DOVIELPresent } -func (o *Stream) GetDOVILevel() *int { - if o == nil { +func (s *Stream) GetDOVILevel() *int { + if s == nil { return nil } - return o.DOVILevel + return s.DOVILevel } -func (o *Stream) GetDOVIPresent() *bool { - if o == nil { +func (s *Stream) GetDOVIPresent() *bool { + if s == nil { return nil } - return o.DOVIPresent + return s.DOVIPresent } -func (o *Stream) GetDOVIProfile() *int { - if o == nil { +func (s *Stream) GetDOVIProfile() *int { + if s == nil { return nil } - return o.DOVIProfile + return s.DOVIProfile } -func (o *Stream) GetDOVIRPUPresent() *bool { - if o == nil { +func (s *Stream) GetDOVIRPUPresent() *bool { + if s == nil { return nil } - return o.DOVIRPUPresent + return s.DOVIRPUPresent } -func (o *Stream) GetDOVIVersion() *string { - if o == nil { +func (s *Stream) GetDOVIVersion() *string { + if s == nil { return nil } - return o.DOVIVersion + return s.DOVIVersion } -func (o *Stream) GetBitDepth() *int { - if o == nil { +func (s *Stream) GetBitDepth() *int { + if s == nil { return nil } - return o.BitDepth + return s.BitDepth } -func (o *Stream) GetChromaLocation() *string { - if o == nil { +func (s *Stream) GetChromaLocation() *string { + if s == nil { return nil } - return o.ChromaLocation + return s.ChromaLocation } -func (o *Stream) GetChromaSubsampling() *string { - if o == nil { +func (s *Stream) GetChromaSubsampling() *string { + if s == nil { return nil } - return o.ChromaSubsampling + return s.ChromaSubsampling } -func (o *Stream) GetCodedHeight() *int { - if o == nil { +func (s *Stream) GetCodedHeight() *int { + if s == nil { return nil } - return o.CodedHeight + return s.CodedHeight } -func (o *Stream) GetCodedWidth() *int { - if o == nil { +func (s *Stream) GetCodedWidth() *int { + if s == nil { return nil } - return o.CodedWidth + return s.CodedWidth } -func (o *Stream) GetClosedCaptions() *bool { - if o == nil { +func (s *Stream) GetClosedCaptions() *bool { + if s == nil { return nil } - return o.ClosedCaptions + return s.ClosedCaptions } -func (o *Stream) GetColorPrimaries() *string { - if o == nil { +func (s *Stream) GetColorPrimaries() *string { + if s == nil { return nil } - return o.ColorPrimaries + return s.ColorPrimaries } -func (o *Stream) GetColorRange() *string { - if o == nil { +func (s *Stream) GetColorRange() *string { + if s == nil { return nil } - return o.ColorRange + return s.ColorRange } -func (o *Stream) GetColorSpace() *string { - if o == nil { +func (s *Stream) GetColorSpace() *string { + if s == nil { return nil } - return o.ColorSpace + return s.ColorSpace } -func (o *Stream) GetColorTrc() *string { - if o == nil { +func (s *Stream) GetColorTrc() *string { + if s == nil { return nil } - return o.ColorTrc + return s.ColorTrc } -func (o *Stream) GetFrameRate() *float32 { - if o == nil { +func (s *Stream) GetFrameRate() *float32 { + if s == nil { return nil } - return o.FrameRate + return s.FrameRate } -func (o *Stream) GetKey() *string { - if o == nil { +func (s *Stream) GetKey() *string { + if s == nil { return nil } - return o.Key + return s.Key } -func (o *Stream) GetHeight() *int { - if o == nil { +func (s *Stream) GetHeight() *int { + if s == nil { return nil } - return o.Height + return s.Height } -func (o *Stream) GetLevel() *int { - if o == nil { +func (s *Stream) GetLevel() *int { + if s == nil { return nil } - return o.Level + return s.Level } -func (o *Stream) GetOriginal() *bool { - if o == nil { +func (s *Stream) GetOriginal() *bool { + if s == nil { return nil } - return o.Original + return s.Original } -func (o *Stream) GetHasScalingMatrix() *bool { - if o == nil { +func (s *Stream) GetHasScalingMatrix() *bool { + if s == nil { return nil } - return o.HasScalingMatrix + return s.HasScalingMatrix } -func (o *Stream) GetProfile() *string { - if o == nil { +func (s *Stream) GetProfile() *string { + if s == nil { return nil } - return o.Profile + return s.Profile } -func (o *Stream) GetScanType() *string { - if o == nil { +func (s *Stream) GetScanType() *string { + if s == nil { return nil } - return o.ScanType + return s.ScanType } -func (o *Stream) GetEmbeddedInVideo() *string { - if o == nil { +func (s *Stream) GetEmbeddedInVideo() *string { + if s == nil { return nil } - return o.EmbeddedInVideo + return s.EmbeddedInVideo } -func (o *Stream) GetRefFrames() *int { - if o == nil { +func (s *Stream) GetRefFrames() *int { + if s == nil { return nil } - return o.RefFrames + return s.RefFrames } -func (o *Stream) GetWidth() *int { - if o == nil { +func (s *Stream) GetWidth() *int { + if s == nil { return nil } - return o.Width + return s.Width } -func (o *Stream) GetDisplayTitle() string { - if o == nil { +func (s *Stream) GetDisplayTitle() string { + if s == nil { return "" } - return o.DisplayTitle + return s.DisplayTitle } -func (o *Stream) GetExtendedDisplayTitle() string { - if o == nil { +func (s *Stream) GetExtendedDisplayTitle() string { + if s == nil { return "" } - return o.ExtendedDisplayTitle + return s.ExtendedDisplayTitle } -func (o *Stream) GetSelected() *bool { - if o == nil { +func (s *Stream) GetSelected() *bool { + if s == nil { return nil } - return o.Selected + return s.Selected } -func (o *Stream) GetForced() *bool { - if o == nil { +func (s *Stream) GetForced() *bool { + if s == nil { return nil } - return o.Forced + return s.Forced } -func (o *Stream) GetChannels() *int { - if o == nil { +func (s *Stream) GetChannels() *int { + if s == nil { return nil } - return o.Channels + return s.Channels } -func (o *Stream) GetAudioChannelLayout() *string { - if o == nil { +func (s *Stream) GetAudioChannelLayout() *string { + if s == nil { return nil } - return o.AudioChannelLayout + return s.AudioChannelLayout } -func (o *Stream) GetSamplingRate() *int { - if o == nil { +func (s *Stream) GetSamplingRate() *int { + if s == nil { return nil } - return o.SamplingRate + return s.SamplingRate } -func (o *Stream) GetCanAutoSync() *bool { - if o == nil { +func (s *Stream) GetCanAutoSync() *bool { + if s == nil { return nil } - return o.CanAutoSync + return s.CanAutoSync } -func (o *Stream) GetHearingImpaired() *bool { - if o == nil { +func (s *Stream) GetHearingImpaired() *bool { + if s == nil { return nil } - return o.HearingImpaired + return s.HearingImpaired } -func (o *Stream) GetDub() *bool { - if o == nil { +func (s *Stream) GetDub() *bool { + if s == nil { return nil } - return o.Dub + return s.Dub } -func (o *Stream) GetTitle() *string { - if o == nil { +func (s *Stream) GetTitle() *string { + if s == nil { return nil } - return o.Title + return s.Title } type Part struct { @@ -1325,116 +1325,116 @@ func (p *Part) UnmarshalJSON(data []byte) error { return nil } -func (o *Part) GetAccessible() *bool { - if o == nil { +func (p *Part) GetAccessible() *bool { + if p == nil { return nil } - return o.Accessible + return p.Accessible } -func (o *Part) GetExists() *bool { - if o == nil { +func (p *Part) GetExists() *bool { + if p == nil { return nil } - return o.Exists + return p.Exists } -func (o *Part) GetID() int64 { - if o == nil { +func (p *Part) GetID() int64 { + if p == nil { return 0 } - return o.ID + return p.ID } -func (o *Part) GetKey() string { - if o == nil { +func (p *Part) GetKey() string { + if p == nil { return "" } - return o.Key + return p.Key } -func (o *Part) GetIndexes() *string { - if o == nil { +func (p *Part) GetIndexes() *string { + if p == nil { return nil } - return o.Indexes + return p.Indexes } -func (o *Part) GetDuration() *int { - if o == nil { +func (p *Part) GetDuration() *int { + if p == nil { return nil } - return o.Duration + return p.Duration } -func (o *Part) GetFile() string { - if o == nil { +func (p *Part) GetFile() string { + if p == nil { return "" } - return o.File + return p.File } -func (o *Part) GetSize() int64 { - if o == nil { +func (p *Part) GetSize() int64 { + if p == nil { return 0 } - return o.Size + return p.Size } -func (o *Part) GetPacketLength() *int { - if o == nil { +func (p *Part) GetPacketLength() *int { + if p == nil { return nil } - return o.PacketLength + return p.PacketLength } -func (o *Part) GetContainer() *string { - if o == nil { +func (p *Part) GetContainer() *string { + if p == nil { return nil } - return o.Container + return p.Container } -func (o *Part) GetVideoProfile() *string { - if o == nil { +func (p *Part) GetVideoProfile() *string { + if p == nil { return nil } - return o.VideoProfile + return p.VideoProfile } -func (o *Part) GetAudioProfile() *string { - if o == nil { +func (p *Part) GetAudioProfile() *string { + if p == nil { return nil } - return o.AudioProfile + return p.AudioProfile } -func (o *Part) GetHas64bitOffsets() *bool { - if o == nil { +func (p *Part) GetHas64bitOffsets() *bool { + if p == nil { return nil } - return o.Has64bitOffsets + return p.Has64bitOffsets } -func (o *Part) GetOptimizedForStreaming() *GetRecentlyAddedOptimizedForStreaming { - if o == nil { +func (p *Part) GetOptimizedForStreaming() *GetRecentlyAddedOptimizedForStreaming { + if p == nil { return nil } - return o.OptimizedForStreaming + return p.OptimizedForStreaming } -func (o *Part) GetHasThumbnail() *HasThumbnail { - if o == nil { +func (p *Part) GetHasThumbnail() *HasThumbnail { + if p == nil { return nil } - return o.HasThumbnail + return p.HasThumbnail } -func (o *Part) GetStream() []Stream { - if o == nil { +func (p *Part) GetStream() []Stream { + if p == nil { return nil } - return o.Stream + return p.Stream } type Media struct { @@ -1477,137 +1477,137 @@ type Media struct { Part []Part `json:"Part,omitempty"` } -func (o *Media) GetID() int64 { - if o == nil { +func (m *Media) GetID() int64 { + if m == nil { return 0 } - return o.ID + return m.ID } -func (o *Media) GetDuration() *int { - if o == nil { +func (m *Media) GetDuration() *int { + if m == nil { return nil } - return o.Duration + return m.Duration } -func (o *Media) GetBitrate() *int { - if o == nil { +func (m *Media) GetBitrate() *int { + if m == nil { return nil } - return o.Bitrate + return m.Bitrate } -func (o *Media) GetWidth() *int { - if o == nil { +func (m *Media) GetWidth() *int { + if m == nil { return nil } - return o.Width + return m.Width } -func (o *Media) GetHeight() *int { - if o == nil { +func (m *Media) GetHeight() *int { + if m == nil { return nil } - return o.Height + return m.Height } -func (o *Media) GetAspectRatio() *float32 { - if o == nil { +func (m *Media) GetAspectRatio() *float32 { + if m == nil { return nil } - return o.AspectRatio + return m.AspectRatio } -func (o *Media) GetAudioChannels() *int { - if o == nil { +func (m *Media) GetAudioChannels() *int { + if m == nil { return nil } - return o.AudioChannels + return m.AudioChannels } -func (o *Media) GetDisplayOffset() *int { - if o == nil { +func (m *Media) GetDisplayOffset() *int { + if m == nil { return nil } - return o.DisplayOffset + return m.DisplayOffset } -func (o *Media) GetAudioCodec() *string { - if o == nil { +func (m *Media) GetAudioCodec() *string { + if m == nil { return nil } - return o.AudioCodec + return m.AudioCodec } -func (o *Media) GetVideoCodec() *string { - if o == nil { +func (m *Media) GetVideoCodec() *string { + if m == nil { return nil } - return o.VideoCodec + return m.VideoCodec } -func (o *Media) GetVideoResolution() *string { - if o == nil { +func (m *Media) GetVideoResolution() *string { + if m == nil { return nil } - return o.VideoResolution + return m.VideoResolution } -func (o *Media) GetContainer() *string { - if o == nil { +func (m *Media) GetContainer() *string { + if m == nil { return nil } - return o.Container + return m.Container } -func (o *Media) GetVideoFrameRate() *string { - if o == nil { +func (m *Media) GetVideoFrameRate() *string { + if m == nil { return nil } - return o.VideoFrameRate + return m.VideoFrameRate } -func (o *Media) GetVideoProfile() *string { - if o == nil { +func (m *Media) GetVideoProfile() *string { + if m == nil { return nil } - return o.VideoProfile + return m.VideoProfile } -func (o *Media) GetHasVoiceActivity() *bool { - if o == nil { +func (m *Media) GetHasVoiceActivity() *bool { + if m == nil { return nil } - return o.HasVoiceActivity + return m.HasVoiceActivity } -func (o *Media) GetAudioProfile() *string { - if o == nil { +func (m *Media) GetAudioProfile() *string { + if m == nil { return nil } - return o.AudioProfile + return m.AudioProfile } -func (o *Media) GetOptimizedForStreaming() *OptimizedForStreaming { - if o == nil { +func (m *Media) GetOptimizedForStreaming() *OptimizedForStreaming { + if m == nil { return nil } - return o.OptimizedForStreaming + return m.OptimizedForStreaming } -func (o *Media) GetHas64bitOffsets() *bool { - if o == nil { +func (m *Media) GetHas64bitOffsets() *bool { + if m == nil { return nil } - return o.Has64bitOffsets + return m.Has64bitOffsets } -func (o *Media) GetPart() []Part { - if o == nil { +func (m *Media) GetPart() []Part { + if m == nil { return nil } - return o.Part + return m.Part } // Genre - The filter query string for similar items. @@ -1622,25 +1622,25 @@ type Genre struct { Tag string `json:"tag"` } -func (o *Genre) GetID() int { - if o == nil { +func (g *Genre) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *Genre) GetFilter() string { - if o == nil { +func (g *Genre) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *Genre) GetTag() string { - if o == nil { +func (g *Genre) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } // Country - The filter query string for country media items. @@ -1654,25 +1654,25 @@ type Country struct { Filter string `json:"filter"` } -func (o *Country) GetID() int { - if o == nil { +func (c *Country) GetID() int { + if c == nil { return 0 } - return o.ID + return c.ID } -func (o *Country) GetTag() string { - if o == nil { +func (c *Country) GetTag() string { + if c == nil { return "" } - return o.Tag + return c.Tag } -func (o *Country) GetFilter() string { - if o == nil { +func (c *Country) GetFilter() string { + if c == nil { return "" } - return o.Filter + return c.Filter } type Director struct { @@ -1688,39 +1688,39 @@ type Director struct { Thumb *string `json:"thumb,omitempty"` } -func (o *Director) GetID() int { - if o == nil { +func (d *Director) GetID() int { + if d == nil { return 0 } - return o.ID + return d.ID } -func (o *Director) GetFilter() string { - if o == nil { +func (d *Director) GetFilter() string { + if d == nil { return "" } - return o.Filter + return d.Filter } -func (o *Director) GetTag() string { - if o == nil { +func (d *Director) GetTag() string { + if d == nil { return "" } - return o.Tag + return d.Tag } -func (o *Director) GetTagKey() string { - if o == nil { +func (d *Director) GetTagKey() string { + if d == nil { return "" } - return o.TagKey + return d.TagKey } -func (o *Director) GetThumb() *string { - if o == nil { +func (d *Director) GetThumb() *string { + if d == nil { return nil } - return o.Thumb + return d.Thumb } type Writer struct { @@ -1736,39 +1736,39 @@ type Writer struct { Thumb *string `json:"thumb,omitempty"` } -func (o *Writer) GetID() int { - if o == nil { +func (w *Writer) GetID() int { + if w == nil { return 0 } - return o.ID + return w.ID } -func (o *Writer) GetFilter() string { - if o == nil { +func (w *Writer) GetFilter() string { + if w == nil { return "" } - return o.Filter + return w.Filter } -func (o *Writer) GetTag() string { - if o == nil { +func (w *Writer) GetTag() string { + if w == nil { return "" } - return o.Tag + return w.Tag } -func (o *Writer) GetTagKey() *string { - if o == nil { +func (w *Writer) GetTagKey() *string { + if w == nil { return nil } - return o.TagKey + return w.TagKey } -func (o *Writer) GetThumb() *string { - if o == nil { +func (w *Writer) GetThumb() *string { + if w == nil { return nil } - return o.Thumb + return w.Thumb } type Role struct { @@ -1790,46 +1790,46 @@ type Role struct { Thumb *string `json:"thumb,omitempty"` } -func (o *Role) GetID() int { - if o == nil { +func (r *Role) GetID() int { + if r == nil { return 0 } - return o.ID + return r.ID } -func (o *Role) GetFilter() string { - if o == nil { +func (r *Role) GetFilter() string { + if r == nil { return "" } - return o.Filter + return r.Filter } -func (o *Role) GetTag() string { - if o == nil { +func (r *Role) GetTag() string { + if r == nil { return "" } - return o.Tag + return r.Tag } -func (o *Role) GetTagKey() string { - if o == nil { +func (r *Role) GetTagKey() string { + if r == nil { return "" } - return o.TagKey + return r.TagKey } -func (o *Role) GetRole() *string { - if o == nil { +func (r *Role) GetRole() *string { + if r == nil { return nil } - return o.Role + return r.Role } -func (o *Role) GetThumb() *string { - if o == nil { +func (r *Role) GetThumb() *string { + if r == nil { return nil } - return o.Thumb + return r.Thumb } type Producer struct { @@ -1846,39 +1846,39 @@ type Producer struct { Thumb *string `json:"thumb,omitempty"` } -func (o *Producer) GetID() int { - if o == nil { +func (p *Producer) GetID() int { + if p == nil { return 0 } - return o.ID + return p.ID } -func (o *Producer) GetFilter() string { - if o == nil { +func (p *Producer) GetFilter() string { + if p == nil { return "" } - return o.Filter + return p.Filter } -func (o *Producer) GetTag() string { - if o == nil { +func (p *Producer) GetTag() string { + if p == nil { return "" } - return o.Tag + return p.Tag } -func (o *Producer) GetTagKey() string { - if o == nil { +func (p *Producer) GetTagKey() string { + if p == nil { return "" } - return o.TagKey + return p.TagKey } -func (o *Producer) GetThumb() *string { - if o == nil { +func (p *Producer) GetThumb() *string { + if p == nil { return nil } - return o.Thumb + return p.Thumb } // Rating - The type of rating, for example 'audience' or 'critic'. @@ -1889,25 +1889,25 @@ type Rating struct { Type string `json:"type"` } -func (o *Rating) GetImage() string { - if o == nil { +func (r *Rating) GetImage() string { + if r == nil { return "" } - return o.Image + return r.Image } -func (o *Rating) GetValue() float32 { - if o == nil { +func (r *Rating) GetValue() float32 { + if r == nil { return 0.0 } - return o.Value + return r.Value } -func (o *Rating) GetType() string { - if o == nil { +func (r *Rating) GetType() string { + if r == nil { return "" } - return o.Type + return r.Type } // Similar - The display tag for the similar item, typically the title. @@ -1917,25 +1917,25 @@ type Similar struct { Tag string `json:"tag"` } -func (o *Similar) GetID() int { - if o == nil { +func (s *Similar) GetID() int { + if s == nil { return 0 } - return o.ID + return s.ID } -func (o *Similar) GetFilter() string { - if o == nil { +func (s *Similar) GetFilter() string { + if s == nil { return "" } - return o.Filter + return s.Filter } -func (o *Similar) GetTag() string { - if o == nil { +func (s *Similar) GetTag() string { + if s == nil { return "" } - return o.Tag + return s.Tag } // Location - The folder path for the media item. @@ -1943,11 +1943,11 @@ type Location struct { Path string `json:"path"` } -func (o *Location) GetPath() string { - if o == nil { +func (l *Location) GetPath() string { + if l == nil { return "" } - return o.Path + return l.Path } type Collection struct { @@ -1955,11 +1955,11 @@ type Collection struct { Tag string `json:"tag"` } -func (o *Collection) GetTag() string { - if o == nil { +func (c *Collection) GetTag() string { + if c == nil { return "" } - return o.Tag + return c.Tag } // GetRecentlyAddedMetadata - Unknown @@ -2111,529 +2111,529 @@ func (g *GetRecentlyAddedMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRecentlyAddedMetadata) GetAddedAt() int64 { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetAddedAt() int64 { + if g == nil { return 0 } - return o.AddedAt + return g.AddedAt } -func (o *GetRecentlyAddedMetadata) GetArt() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetRecentlyAddedMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetRecentlyAddedMetadata) GetAudienceRating() float64 { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetAudienceRating() float64 { + if g == nil { return 0.0 } - return o.AudienceRating + return g.AudienceRating } -func (o *GetRecentlyAddedMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } -func (o *GetRecentlyAddedMetadata) GetChildCount() int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetChildCount() int { + if g == nil { return 0 } - return o.ChildCount + return g.ChildCount } -func (o *GetRecentlyAddedMetadata) GetContentRating() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetRecentlyAddedMetadata) GetCreatedAtAccuracy() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetCreatedAtAccuracy() *string { + if g == nil { return nil } - return o.CreatedAtAccuracy + return g.CreatedAtAccuracy } -func (o *GetRecentlyAddedMetadata) GetCreatedAtTZOffset() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetCreatedAtTZOffset() *string { + if g == nil { return nil } - return o.CreatedAtTZOffset + return g.CreatedAtTZOffset } -func (o *GetRecentlyAddedMetadata) GetDuration() int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetDuration() int { + if g == nil { return 0 } - return o.Duration + return g.Duration } -func (o *GetRecentlyAddedMetadata) GetGrandparentArt() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentArt() *string { + if g == nil { return nil } - return o.GrandparentArt + return g.GrandparentArt } -func (o *GetRecentlyAddedMetadata) GetGrandparentGUID() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentGUID() *string { + if g == nil { return nil } - return o.GrandparentGUID + return g.GrandparentGUID } -func (o *GetRecentlyAddedMetadata) GetGrandparentKey() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentKey() *string { + if g == nil { return nil } - return o.GrandparentKey + return g.GrandparentKey } -func (o *GetRecentlyAddedMetadata) GetGrandparentRatingKey() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentRatingKey() *string { + if g == nil { return nil } - return o.GrandparentRatingKey + return g.GrandparentRatingKey } -func (o *GetRecentlyAddedMetadata) GetGrandparentSlug() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentSlug() *string { + if g == nil { return nil } - return o.GrandparentSlug + return g.GrandparentSlug } -func (o *GetRecentlyAddedMetadata) GetGrandparentTheme() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentTheme() *string { + if g == nil { return nil } - return o.GrandparentTheme + return g.GrandparentTheme } -func (o *GetRecentlyAddedMetadata) GetGrandparentThumb() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentThumb() *string { + if g == nil { return nil } - return o.GrandparentThumb + return g.GrandparentThumb } -func (o *GetRecentlyAddedMetadata) GetGrandparentTitle() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGrandparentTitle() *string { + if g == nil { return nil } - return o.GrandparentTitle + return g.GrandparentTitle } -func (o *GetRecentlyAddedMetadata) GetGUID() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGUID() string { + if g == nil { return "" } - return o.GUID + return g.GUID } -func (o *GetRecentlyAddedMetadata) GetIndex() int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetIndex() int { + if g == nil { return 0 } - return o.Index + return g.Index } -func (o *GetRecentlyAddedMetadata) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedMetadata) GetLastRatedAt() *int64 { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetLastRatedAt() *int64 { + if g == nil { return nil } - return o.LastRatedAt + return g.LastRatedAt } -func (o *GetRecentlyAddedMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetRecentlyAddedMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetRecentlyAddedMetadata) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetRecentlyAddedMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetRecentlyAddedMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetRecentlyAddedMetadata) GetOriginalTitle() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetOriginalTitle() *string { + if g == nil { return nil } - return o.OriginalTitle + return g.OriginalTitle } -func (o *GetRecentlyAddedMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetRecentlyAddedMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetRecentlyAddedMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetRecentlyAddedMetadata) GetParentKey() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetRecentlyAddedMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetRecentlyAddedMetadata) GetParentSlug() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentSlug() *string { + if g == nil { return nil } - return o.ParentSlug + return g.ParentSlug } -func (o *GetRecentlyAddedMetadata) GetParentStudio() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentStudio() string { + if g == nil { return "" } - return o.ParentStudio + return g.ParentStudio } -func (o *GetRecentlyAddedMetadata) GetParentTheme() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentTheme() string { + if g == nil { return "" } - return o.ParentTheme + return g.ParentTheme } -func (o *GetRecentlyAddedMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetRecentlyAddedMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetRecentlyAddedMetadata) GetParentYear() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetParentYear() *int { + if g == nil { return nil } - return o.ParentYear + return g.ParentYear } -func (o *GetRecentlyAddedMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetRecentlyAddedMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetRecentlyAddedMetadata) GetRatingKey() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetRecentlyAddedMetadata) GetRating() float32 { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetRating() float32 { + if g == nil { return 0.0 } - return o.Rating + return g.Rating } -func (o *GetRecentlyAddedMetadata) GetSeasonCount() int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetSeasonCount() int { + if g == nil { return 0 } - return o.SeasonCount + return g.SeasonCount } -func (o *GetRecentlyAddedMetadata) GetSkipCount() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetSkipCount() *int { + if g == nil { return nil } - return o.SkipCount + return g.SkipCount } -func (o *GetRecentlyAddedMetadata) GetSlug() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetRecentlyAddedMetadata) GetStudio() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetRecentlyAddedMetadata) GetSubtype() *string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetRecentlyAddedMetadata) GetSummary() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetSummary() string { + if g == nil { return "" } - return o.Summary + return g.Summary } -func (o *GetRecentlyAddedMetadata) GetTagline() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetTagline() string { + if g == nil { return "" } - return o.Tagline + return g.Tagline } -func (o *GetRecentlyAddedMetadata) GetTheme() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetTheme() string { + if g == nil { return "" } - return o.Theme + return g.Theme } -func (o *GetRecentlyAddedMetadata) GetThumb() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetRecentlyAddedMetadata) GetTitleSort() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetTitleSort() string { + if g == nil { return "" } - return o.TitleSort + return g.TitleSort } -func (o *GetRecentlyAddedMetadata) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetRecentlyAddedMetadata) GetType() GetRecentlyAddedHubsType { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetType() GetRecentlyAddedHubsType { + if g == nil { return GetRecentlyAddedHubsType("") } - return o.Type + return g.Type } -func (o *GetRecentlyAddedMetadata) GetUpdatedAt() *int64 { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetUpdatedAt() *int64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetRecentlyAddedMetadata) GetUserRating() *float32 { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetUserRating() *float32 { + if g == nil { return nil } - return o.UserRating + return g.UserRating } -func (o *GetRecentlyAddedMetadata) GetViewCount() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetRecentlyAddedMetadata) GetViewOffset() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetViewOffset() *int { + if g == nil { return nil } - return o.ViewOffset + return g.ViewOffset } -func (o *GetRecentlyAddedMetadata) GetViewedLeafCount() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetViewedLeafCount() *int { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetRecentlyAddedMetadata) GetYear() *int { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetRecentlyAddedMetadata) GetImage() []GetRecentlyAddedImage { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetImage() []GetRecentlyAddedImage { + if g == nil { return nil } - return o.Image + return g.Image } -func (o *GetRecentlyAddedMetadata) GetUltraBlurColors() *UltraBlurColors { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetUltraBlurColors() *UltraBlurColors { + if g == nil { return nil } - return o.UltraBlurColors + return g.UltraBlurColors } -func (o *GetRecentlyAddedMetadata) GetGuids() []Guids { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGuids() []Guids { + if g == nil { return nil } - return o.Guids + return g.Guids } -func (o *GetRecentlyAddedMetadata) GetMedia() []Media { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetMedia() []Media { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetRecentlyAddedMetadata) GetGenre() []Genre { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetGenre() []Genre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetRecentlyAddedMetadata) GetCountry() []Country { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetCountry() []Country { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetRecentlyAddedMetadata) GetDirector() []Director { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetDirector() []Director { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetRecentlyAddedMetadata) GetWriter() []Writer { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetWriter() []Writer { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetRecentlyAddedMetadata) GetRole() []Role { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetRole() []Role { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetRecentlyAddedMetadata) GetProducer() []Producer { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetProducer() []Producer { + if g == nil { return nil } - return o.Producer + return g.Producer } -func (o *GetRecentlyAddedMetadata) GetRating1() []Rating { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetRating1() []Rating { + if g == nil { return nil } - return o.Rating1 + return g.Rating1 } -func (o *GetRecentlyAddedMetadata) GetSimilar() []Similar { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetSimilar() []Similar { + if g == nil { return nil } - return o.Similar + return g.Similar } -func (o *GetRecentlyAddedMetadata) GetLocation() []Location { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetLocation() []Location { + if g == nil { return nil } - return o.Location + return g.Location } -func (o *GetRecentlyAddedMetadata) GetCollection() []Collection { - if o == nil { +func (g *GetRecentlyAddedMetadata) GetCollection() []Collection { + if g == nil { return nil } - return o.Collection + return g.Collection } type GetRecentlyAddedMediaContainer struct { @@ -2654,53 +2654,53 @@ type GetRecentlyAddedMediaContainer struct { Metadata []GetRecentlyAddedMetadata `json:"Metadata,omitempty"` } -func (o *GetRecentlyAddedMediaContainer) GetSize() int { - if o == nil { +func (g *GetRecentlyAddedMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetRecentlyAddedMediaContainer) GetTotalSize() int { - if o == nil { +func (g *GetRecentlyAddedMediaContainer) GetTotalSize() int { + if g == nil { return 0 } - return o.TotalSize + return g.TotalSize } -func (o *GetRecentlyAddedMediaContainer) GetOffset() int64 { - if o == nil { +func (g *GetRecentlyAddedMediaContainer) GetOffset() int64 { + if g == nil { return 0 } - return o.Offset + return g.Offset } -func (o *GetRecentlyAddedMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetRecentlyAddedMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetRecentlyAddedMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetRecentlyAddedMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetRecentlyAddedMediaContainer) GetMeta() *Meta { - if o == nil { +func (g *GetRecentlyAddedMediaContainer) GetMeta() *Meta { + if g == nil { return nil } - return o.Meta + return g.Meta } -func (o *GetRecentlyAddedMediaContainer) GetMetadata() []GetRecentlyAddedMetadata { - if o == nil { +func (g *GetRecentlyAddedMediaContainer) GetMetadata() []GetRecentlyAddedMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetRecentlyAddedResponseBody - A successful response with recently added content. @@ -2708,11 +2708,11 @@ type GetRecentlyAddedResponseBody struct { MediaContainer *GetRecentlyAddedMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetRecentlyAddedResponseBody) GetMediaContainer() *GetRecentlyAddedMediaContainer { - if o == nil { +func (g *GetRecentlyAddedResponseBody) GetMediaContainer() *GetRecentlyAddedMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetRecentlyAddedResponse struct { @@ -2726,30 +2726,30 @@ type GetRecentlyAddedResponse struct { Object *GetRecentlyAddedResponseBody } -func (o *GetRecentlyAddedResponse) GetContentType() string { - if o == nil { +func (g *GetRecentlyAddedResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetRecentlyAddedResponse) GetStatusCode() int { - if o == nil { +func (g *GetRecentlyAddedResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetRecentlyAddedResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetRecentlyAddedResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetRecentlyAddedResponse) GetObject() *GetRecentlyAddedResponseBody { - if o == nil { +func (g *GetRecentlyAddedResponse) GetObject() *GetRecentlyAddedResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getrecentlyaddedlibrary.go b/models/operations/getrecentlyaddedlibrary.go index 9dea51b..f24434f 100644 --- a/models/operations/getrecentlyaddedlibrary.go +++ b/models/operations/getrecentlyaddedlibrary.go @@ -100,53 +100,53 @@ func (g *GetRecentlyAddedLibraryRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRecentlyAddedLibraryRequest) GetContentDirectoryID() *int64 { - if o == nil { +func (g *GetRecentlyAddedLibraryRequest) GetContentDirectoryID() *int64 { + if g == nil { return nil } - return o.ContentDirectoryID + return g.ContentDirectoryID } -func (o *GetRecentlyAddedLibraryRequest) GetPinnedContentDirectoryID() []int64 { - if o == nil { +func (g *GetRecentlyAddedLibraryRequest) GetPinnedContentDirectoryID() []int64 { + if g == nil { return nil } - return o.PinnedContentDirectoryID + return g.PinnedContentDirectoryID } -func (o *GetRecentlyAddedLibraryRequest) GetSectionID() *int64 { - if o == nil { +func (g *GetRecentlyAddedLibraryRequest) GetSectionID() *int64 { + if g == nil { return nil } - return o.SectionID + return g.SectionID } -func (o *GetRecentlyAddedLibraryRequest) GetType() QueryParamType { - if o == nil { +func (g *GetRecentlyAddedLibraryRequest) GetType() QueryParamType { + if g == nil { return QueryParamType(0) } - return o.Type + return g.Type } -func (o *GetRecentlyAddedLibraryRequest) GetIncludeMeta() *QueryParamIncludeMeta { - if o == nil { +func (g *GetRecentlyAddedLibraryRequest) GetIncludeMeta() *QueryParamIncludeMeta { + if g == nil { return nil } - return o.IncludeMeta + return g.IncludeMeta } -func (o *GetRecentlyAddedLibraryRequest) GetXPlexContainerStart() *int { - if o == nil { +func (g *GetRecentlyAddedLibraryRequest) GetXPlexContainerStart() *int { + if g == nil { return nil } - return o.XPlexContainerStart + return g.XPlexContainerStart } -func (o *GetRecentlyAddedLibraryRequest) GetXPlexContainerSize() *int { - if o == nil { +func (g *GetRecentlyAddedLibraryRequest) GetXPlexContainerSize() *int { + if g == nil { return nil } - return o.XPlexContainerSize + return g.XPlexContainerSize } type GetRecentlyAddedLibraryFilter struct { @@ -158,46 +158,46 @@ type GetRecentlyAddedLibraryFilter struct { Advanced *bool `json:"advanced,omitempty"` } -func (o *GetRecentlyAddedLibraryFilter) GetFilter() string { - if o == nil { +func (g *GetRecentlyAddedLibraryFilter) GetFilter() string { + if g == nil { return "" } - return o.Filter + return g.Filter } -func (o *GetRecentlyAddedLibraryFilter) GetFilterType() string { - if o == nil { +func (g *GetRecentlyAddedLibraryFilter) GetFilterType() string { + if g == nil { return "" } - return o.FilterType + return g.FilterType } -func (o *GetRecentlyAddedLibraryFilter) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedLibraryFilter) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedLibraryFilter) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedLibraryFilter) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetRecentlyAddedLibraryFilter) GetType() string { - if o == nil { +func (g *GetRecentlyAddedLibraryFilter) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetRecentlyAddedLibraryFilter) GetAdvanced() *bool { - if o == nil { +func (g *GetRecentlyAddedLibraryFilter) GetAdvanced() *bool { + if g == nil { return nil } - return o.Advanced + return g.Advanced } // ActiveDirection - The direction of the sort. Can be either `asc` or `desc`. @@ -280,60 +280,60 @@ func (s *Sort) UnmarshalJSON(data []byte) error { return nil } -func (o *Sort) GetDefault() *string { - if o == nil { +func (s *Sort) GetDefault() *string { + if s == nil { return nil } - return o.Default + return s.Default } -func (o *Sort) GetActive() *bool { - if o == nil { +func (s *Sort) GetActive() *bool { + if s == nil { return nil } - return o.Active + return s.Active } -func (o *Sort) GetActiveDirection() *ActiveDirection { - if o == nil { +func (s *Sort) GetActiveDirection() *ActiveDirection { + if s == nil { return nil } - return o.ActiveDirection + return s.ActiveDirection } -func (o *Sort) GetDefaultDirection() *DefaultDirection { - if o == nil { +func (s *Sort) GetDefaultDirection() *DefaultDirection { + if s == nil { return nil } - return o.DefaultDirection + return s.DefaultDirection } -func (o *Sort) GetDescKey() *string { - if o == nil { +func (s *Sort) GetDescKey() *string { + if s == nil { return nil } - return o.DescKey + return s.DescKey } -func (o *Sort) GetFirstCharacterKey() *string { - if o == nil { +func (s *Sort) GetFirstCharacterKey() *string { + if s == nil { return nil } - return o.FirstCharacterKey + return s.FirstCharacterKey } -func (o *Sort) GetKey() string { - if o == nil { +func (s *Sort) GetKey() string { + if s == nil { return "" } - return o.Key + return s.Key } -func (o *Sort) GetTitle() string { - if o == nil { +func (s *Sort) GetTitle() string { + if s == nil { return "" } - return o.Title + return s.Title } type Field struct { @@ -343,32 +343,32 @@ type Field struct { SubType *string `json:"subType,omitempty"` } -func (o *Field) GetKey() string { - if o == nil { +func (f *Field) GetKey() string { + if f == nil { return "" } - return o.Key + return f.Key } -func (o *Field) GetTitle() string { - if o == nil { +func (f *Field) GetTitle() string { + if f == nil { return "" } - return o.Title + return f.Title } -func (o *Field) GetType() string { - if o == nil { +func (f *Field) GetType() string { + if f == nil { return "" } - return o.Type + return f.Type } -func (o *Field) GetSubType() *string { - if o == nil { +func (f *Field) GetSubType() *string { + if f == nil { return nil } - return o.SubType + return f.SubType } type GetRecentlyAddedLibraryType struct { @@ -382,60 +382,60 @@ type GetRecentlyAddedLibraryType struct { Field []Field `json:"Field,omitempty"` } -func (o *GetRecentlyAddedLibraryType) GetKey() string { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetRecentlyAddedLibraryType) GetType() string { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetRecentlyAddedLibraryType) GetSubtype() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetRecentlyAddedLibraryType) GetTitle() string { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetRecentlyAddedLibraryType) GetActive() bool { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetActive() bool { + if g == nil { return false } - return o.Active + return g.Active } -func (o *GetRecentlyAddedLibraryType) GetFilter() []GetRecentlyAddedLibraryFilter { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetFilter() []GetRecentlyAddedLibraryFilter { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetRecentlyAddedLibraryType) GetSort() []Sort { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetSort() []Sort { + if g == nil { return nil } - return o.Sort + return g.Sort } -func (o *GetRecentlyAddedLibraryType) GetField() []Field { - if o == nil { +func (g *GetRecentlyAddedLibraryType) GetField() []Field { + if g == nil { return nil } - return o.Field + return g.Field } type Operator struct { @@ -462,18 +462,18 @@ type FieldType struct { Operator []Operator `json:"Operator"` } -func (o *FieldType) GetType() string { - if o == nil { +func (f *FieldType) GetType() string { + if f == nil { return "" } - return o.Type + return f.Type } -func (o *FieldType) GetOperator() []Operator { - if o == nil { +func (f *FieldType) GetOperator() []Operator { + if f == nil { return []Operator{} } - return o.Operator + return f.Operator } type GetRecentlyAddedLibraryPart struct { @@ -489,74 +489,74 @@ type GetRecentlyAddedLibraryPart struct { VideoProfile *string `json:"videoProfile,omitempty"` } -func (o *GetRecentlyAddedLibraryPart) GetID() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetID() *float64 { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetRecentlyAddedLibraryPart) GetKey() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetRecentlyAddedLibraryPart) GetDuration() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetDuration() *float64 { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetRecentlyAddedLibraryPart) GetFile() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetRecentlyAddedLibraryPart) GetSize() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetRecentlyAddedLibraryPart) GetContainer() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetRecentlyAddedLibraryPart) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetRecentlyAddedLibraryPart) GetHasThumbnail() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetHasThumbnail() *float64 { + if g == nil { return nil } - return o.HasThumbnail + return g.HasThumbnail } -func (o *GetRecentlyAddedLibraryPart) GetOptimizedForStreaming() *bool { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetOptimizedForStreaming() *bool { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetRecentlyAddedLibraryPart) GetVideoProfile() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } type GetRecentlyAddedLibraryMedia struct { @@ -578,171 +578,171 @@ type GetRecentlyAddedLibraryMedia struct { Part []GetRecentlyAddedLibraryPart `json:"Part,omitempty"` } -func (o *GetRecentlyAddedLibraryMedia) GetID() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetID() *float64 { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetRecentlyAddedLibraryMedia) GetDuration() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetDuration() *float64 { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetRecentlyAddedLibraryMedia) GetBitrate() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetBitrate() *float64 { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetRecentlyAddedLibraryMedia) GetWidth() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetWidth() *float64 { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetRecentlyAddedLibraryMedia) GetHeight() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetHeight() *float64 { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetRecentlyAddedLibraryMedia) GetAspectRatio() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetAspectRatio() *float64 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetRecentlyAddedLibraryMedia) GetAudioChannels() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetAudioChannels() *float64 { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetRecentlyAddedLibraryMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetRecentlyAddedLibraryMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetRecentlyAddedLibraryMedia) GetVideoResolution() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetVideoResolution() *float64 { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetRecentlyAddedLibraryMedia) GetContainer() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetRecentlyAddedLibraryMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetRecentlyAddedLibraryMedia) GetOptimizedForStreaming() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetOptimizedForStreaming() *float64 { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetRecentlyAddedLibraryMedia) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetRecentlyAddedLibraryMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetRecentlyAddedLibraryMedia) GetPart() []GetRecentlyAddedLibraryPart { - if o == nil { +func (g *GetRecentlyAddedLibraryMedia) GetPart() []GetRecentlyAddedLibraryPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetRecentlyAddedLibraryGenre struct { Tag *string `json:"tag,omitempty"` } -func (o *GetRecentlyAddedLibraryGenre) GetTag() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryGenre) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetRecentlyAddedLibraryDirector struct { Tag *string `json:"tag,omitempty"` } -func (o *GetRecentlyAddedLibraryDirector) GetTag() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryDirector) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetRecentlyAddedLibraryWriter struct { Tag *string `json:"tag,omitempty"` } -func (o *GetRecentlyAddedLibraryWriter) GetTag() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryWriter) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetRecentlyAddedLibraryCountry struct { Tag *string `json:"tag,omitempty"` } -func (o *GetRecentlyAddedLibraryCountry) GetTag() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryCountry) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetRecentlyAddedLibraryRole struct { Tag *string `json:"tag,omitempty"` } -func (o *GetRecentlyAddedLibraryRole) GetTag() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryRole) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetRecentlyAddedLibraryMetadata struct { @@ -791,228 +791,228 @@ func (g *GetRecentlyAddedLibraryMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRecentlyAddedLibraryMetadata) GetAllowSync() *bool { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetRecentlyAddedLibraryMetadata) GetLibrarySectionID() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetLibrarySectionID() *float64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetRecentlyAddedLibraryMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetRecentlyAddedLibraryMetadata) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetRecentlyAddedLibraryMetadata) GetRatingKey() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetRatingKey() *float64 { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetRecentlyAddedLibraryMetadata) GetKey() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetRecentlyAddedLibraryMetadata) GetGUID() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetRecentlyAddedLibraryMetadata) GetStudio() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetRecentlyAddedLibraryMetadata) GetType() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetRecentlyAddedLibraryMetadata) GetTitle() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetRecentlyAddedLibraryMetadata) GetContentRating() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetRecentlyAddedLibraryMetadata) GetSummary() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetRecentlyAddedLibraryMetadata) GetRating() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetRating() *float64 { + if g == nil { return nil } - return o.Rating + return g.Rating } -func (o *GetRecentlyAddedLibraryMetadata) GetAudienceRating() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetAudienceRating() *float64 { + if g == nil { return nil } - return o.AudienceRating + return g.AudienceRating } -func (o *GetRecentlyAddedLibraryMetadata) GetYear() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetYear() *float64 { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetRecentlyAddedLibraryMetadata) GetTagline() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetTagline() *string { + if g == nil { return nil } - return o.Tagline + return g.Tagline } -func (o *GetRecentlyAddedLibraryMetadata) GetThumb() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetRecentlyAddedLibraryMetadata) GetArt() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetRecentlyAddedLibraryMetadata) GetDuration() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetDuration() *float64 { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetRecentlyAddedLibraryMetadata) GetOriginallyAvailableAt() *time.Time { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetOriginallyAvailableAt() *time.Time { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetRecentlyAddedLibraryMetadata) GetAddedAt() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetAddedAt() *float64 { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetRecentlyAddedLibraryMetadata) GetUpdatedAt() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetUpdatedAt() *float64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetRecentlyAddedLibraryMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetRecentlyAddedLibraryMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } -func (o *GetRecentlyAddedLibraryMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetRecentlyAddedLibraryMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetRecentlyAddedLibraryMetadata) GetMedia() []GetRecentlyAddedLibraryMedia { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetMedia() []GetRecentlyAddedLibraryMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetRecentlyAddedLibraryMetadata) GetGenre() []GetRecentlyAddedLibraryGenre { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetGenre() []GetRecentlyAddedLibraryGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetRecentlyAddedLibraryMetadata) GetDirector() []GetRecentlyAddedLibraryDirector { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetDirector() []GetRecentlyAddedLibraryDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetRecentlyAddedLibraryMetadata) GetWriter() []GetRecentlyAddedLibraryWriter { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetWriter() []GetRecentlyAddedLibraryWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetRecentlyAddedLibraryMetadata) GetCountry() []GetRecentlyAddedLibraryCountry { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetCountry() []GetRecentlyAddedLibraryCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetRecentlyAddedLibraryMetadata) GetRole() []GetRecentlyAddedLibraryRole { - if o == nil { +func (g *GetRecentlyAddedLibraryMetadata) GetRole() []GetRecentlyAddedLibraryRole { + if g == nil { return nil } - return o.Role + return g.Role } // GetRecentlyAddedLibraryMediaContainer - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`. @@ -1028,67 +1028,67 @@ type GetRecentlyAddedLibraryMediaContainer struct { Metadata []GetRecentlyAddedLibraryMetadata `json:"Metadata,omitempty"` } -func (o *GetRecentlyAddedLibraryMediaContainer) GetType() []GetRecentlyAddedLibraryType { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetType() []GetRecentlyAddedLibraryType { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetRecentlyAddedLibraryMediaContainer) GetFieldType() []FieldType { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetFieldType() []FieldType { + if g == nil { return nil } - return o.FieldType + return g.FieldType } -func (o *GetRecentlyAddedLibraryMediaContainer) GetSize() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetRecentlyAddedLibraryMediaContainer) GetAllowSync() *bool { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetRecentlyAddedLibraryMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetRecentlyAddedLibraryMediaContainer) GetMediaTagPrefix() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetMediaTagPrefix() *string { + if g == nil { return nil } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetRecentlyAddedLibraryMediaContainer) GetMediaTagVersion() *float64 { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetMediaTagVersion() *float64 { + if g == nil { return nil } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetRecentlyAddedLibraryMediaContainer) GetMixedParents() *bool { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetMixedParents() *bool { + if g == nil { return nil } - return o.MixedParents + return g.MixedParents } -func (o *GetRecentlyAddedLibraryMediaContainer) GetMetadata() []GetRecentlyAddedLibraryMetadata { - if o == nil { +func (g *GetRecentlyAddedLibraryMediaContainer) GetMetadata() []GetRecentlyAddedLibraryMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetRecentlyAddedLibraryResponseBody - The recently added content @@ -1096,11 +1096,11 @@ type GetRecentlyAddedLibraryResponseBody struct { MediaContainer *GetRecentlyAddedLibraryMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetRecentlyAddedLibraryResponseBody) GetMediaContainer() *GetRecentlyAddedLibraryMediaContainer { - if o == nil { +func (g *GetRecentlyAddedLibraryResponseBody) GetMediaContainer() *GetRecentlyAddedLibraryMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetRecentlyAddedLibraryResponse struct { @@ -1114,30 +1114,30 @@ type GetRecentlyAddedLibraryResponse struct { Object *GetRecentlyAddedLibraryResponseBody } -func (o *GetRecentlyAddedLibraryResponse) GetContentType() string { - if o == nil { +func (g *GetRecentlyAddedLibraryResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetRecentlyAddedLibraryResponse) GetStatusCode() int { - if o == nil { +func (g *GetRecentlyAddedLibraryResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetRecentlyAddedLibraryResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetRecentlyAddedLibraryResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetRecentlyAddedLibraryResponse) GetObject() *GetRecentlyAddedLibraryResponseBody { - if o == nil { +func (g *GetRecentlyAddedLibraryResponse) GetObject() *GetRecentlyAddedLibraryResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getrefreshlibrarymetadata.go b/models/operations/getrefreshlibrarymetadata.go index 9687f20..8e94ba6 100644 --- a/models/operations/getrefreshlibrarymetadata.go +++ b/models/operations/getrefreshlibrarymetadata.go @@ -44,18 +44,18 @@ type GetRefreshLibraryMetadataRequest struct { SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"` } -func (o *GetRefreshLibraryMetadataRequest) GetForce() *Force { - if o == nil { +func (g *GetRefreshLibraryMetadataRequest) GetForce() *Force { + if g == nil { return nil } - return o.Force + return g.Force } -func (o *GetRefreshLibraryMetadataRequest) GetSectionKey() int { - if o == nil { +func (g *GetRefreshLibraryMetadataRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } type GetRefreshLibraryMetadataResponse struct { @@ -67,23 +67,23 @@ type GetRefreshLibraryMetadataResponse struct { RawResponse *http.Response } -func (o *GetRefreshLibraryMetadataResponse) GetContentType() string { - if o == nil { +func (g *GetRefreshLibraryMetadataResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetRefreshLibraryMetadataResponse) GetStatusCode() int { - if o == nil { +func (g *GetRefreshLibraryMetadataResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetRefreshLibraryMetadataResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetRefreshLibraryMetadataResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } diff --git a/models/operations/getresizedphoto.go b/models/operations/getresizedphoto.go index 9f385ec..f66be39 100644 --- a/models/operations/getresizedphoto.go +++ b/models/operations/getresizedphoto.go @@ -91,53 +91,53 @@ func (g *GetResizedPhotoRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetResizedPhotoRequest) GetWidth() float64 { - if o == nil { +func (g *GetResizedPhotoRequest) GetWidth() float64 { + if g == nil { return 0.0 } - return o.Width + return g.Width } -func (o *GetResizedPhotoRequest) GetHeight() float64 { - if o == nil { +func (g *GetResizedPhotoRequest) GetHeight() float64 { + if g == nil { return 0.0 } - return o.Height + return g.Height } -func (o *GetResizedPhotoRequest) GetOpacity() int64 { - if o == nil { +func (g *GetResizedPhotoRequest) GetOpacity() int64 { + if g == nil { return 0 } - return o.Opacity + return g.Opacity } -func (o *GetResizedPhotoRequest) GetBlur() float64 { - if o == nil { +func (g *GetResizedPhotoRequest) GetBlur() float64 { + if g == nil { return 0.0 } - return o.Blur + return g.Blur } -func (o *GetResizedPhotoRequest) GetMinSize() MinSize { - if o == nil { +func (g *GetResizedPhotoRequest) GetMinSize() MinSize { + if g == nil { return MinSize(0) } - return o.MinSize + return g.MinSize } -func (o *GetResizedPhotoRequest) GetUpscale() Upscale { - if o == nil { +func (g *GetResizedPhotoRequest) GetUpscale() Upscale { + if g == nil { return Upscale(0) } - return o.Upscale + return g.Upscale } -func (o *GetResizedPhotoRequest) GetURL() string { - if o == nil { +func (g *GetResizedPhotoRequest) GetURL() string { + if g == nil { return "" } - return o.URL + return g.URL } type GetResizedPhotoResponse struct { @@ -149,23 +149,23 @@ type GetResizedPhotoResponse struct { RawResponse *http.Response } -func (o *GetResizedPhotoResponse) GetContentType() string { - if o == nil { +func (g *GetResizedPhotoResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetResizedPhotoResponse) GetStatusCode() int { - if o == nil { +func (g *GetResizedPhotoResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetResizedPhotoResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetResizedPhotoResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } diff --git a/models/operations/getresourcesstatistics.go b/models/operations/getresourcesstatistics.go index e1b37f3..8372de3 100644 --- a/models/operations/getresourcesstatistics.go +++ b/models/operations/getresourcesstatistics.go @@ -13,11 +13,11 @@ type GetResourcesStatisticsRequest struct { Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"` } -func (o *GetResourcesStatisticsRequest) GetTimespan() *int64 { - if o == nil { +func (g *GetResourcesStatisticsRequest) GetTimespan() *int64 { + if g == nil { return nil } - return o.Timespan + return g.Timespan } type StatisticsResources struct { @@ -29,46 +29,46 @@ type StatisticsResources struct { ProcessMemoryUtilization *float32 `json:"processMemoryUtilization,omitempty"` } -func (o *StatisticsResources) GetTimespan() *int64 { - if o == nil { +func (s *StatisticsResources) GetTimespan() *int64 { + if s == nil { return nil } - return o.Timespan + return s.Timespan } -func (o *StatisticsResources) GetAt() *int64 { - if o == nil { +func (s *StatisticsResources) GetAt() *int64 { + if s == nil { return nil } - return o.At + return s.At } -func (o *StatisticsResources) GetHostCPUUtilization() *float32 { - if o == nil { +func (s *StatisticsResources) GetHostCPUUtilization() *float32 { + if s == nil { return nil } - return o.HostCPUUtilization + return s.HostCPUUtilization } -func (o *StatisticsResources) GetProcessCPUUtilization() *float32 { - if o == nil { +func (s *StatisticsResources) GetProcessCPUUtilization() *float32 { + if s == nil { return nil } - return o.ProcessCPUUtilization + return s.ProcessCPUUtilization } -func (o *StatisticsResources) GetHostMemoryUtilization() *float32 { - if o == nil { +func (s *StatisticsResources) GetHostMemoryUtilization() *float32 { + if s == nil { return nil } - return o.HostMemoryUtilization + return s.HostMemoryUtilization } -func (o *StatisticsResources) GetProcessMemoryUtilization() *float32 { - if o == nil { +func (s *StatisticsResources) GetProcessMemoryUtilization() *float32 { + if s == nil { return nil } - return o.ProcessMemoryUtilization + return s.ProcessMemoryUtilization } type GetResourcesStatisticsMediaContainer struct { @@ -76,18 +76,18 @@ type GetResourcesStatisticsMediaContainer struct { StatisticsResources []StatisticsResources `json:"StatisticsResources,omitempty"` } -func (o *GetResourcesStatisticsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetResourcesStatisticsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetResourcesStatisticsMediaContainer) GetStatisticsResources() []StatisticsResources { - if o == nil { +func (g *GetResourcesStatisticsMediaContainer) GetStatisticsResources() []StatisticsResources { + if g == nil { return nil } - return o.StatisticsResources + return g.StatisticsResources } // GetResourcesStatisticsResponseBody - Resource Statistics @@ -95,11 +95,11 @@ type GetResourcesStatisticsResponseBody struct { MediaContainer *GetResourcesStatisticsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetResourcesStatisticsResponseBody) GetMediaContainer() *GetResourcesStatisticsMediaContainer { - if o == nil { +func (g *GetResourcesStatisticsResponseBody) GetMediaContainer() *GetResourcesStatisticsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetResourcesStatisticsResponse struct { @@ -113,30 +113,30 @@ type GetResourcesStatisticsResponse struct { Object *GetResourcesStatisticsResponseBody } -func (o *GetResourcesStatisticsResponse) GetContentType() string { - if o == nil { +func (g *GetResourcesStatisticsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetResourcesStatisticsResponse) GetStatusCode() int { - if o == nil { +func (g *GetResourcesStatisticsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetResourcesStatisticsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetResourcesStatisticsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetResourcesStatisticsResponse) GetObject() *GetResourcesStatisticsResponseBody { - if o == nil { +func (g *GetResourcesStatisticsResponse) GetObject() *GetResourcesStatisticsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getsearchalllibraries.go b/models/operations/getsearchalllibraries.go index fde92c8..7edb20d 100644 --- a/models/operations/getsearchalllibraries.go +++ b/models/operations/getsearchalllibraries.go @@ -106,46 +106,46 @@ func (g *GetSearchAllLibrariesRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetSearchAllLibrariesRequest) GetQuery() string { - if o == nil { +func (g *GetSearchAllLibrariesRequest) GetQuery() string { + if g == nil { return "" } - return o.Query + return g.Query } -func (o *GetSearchAllLibrariesRequest) GetClientID() string { - if o == nil { +func (g *GetSearchAllLibrariesRequest) GetClientID() string { + if g == nil { return "" } - return o.ClientID + return g.ClientID } -func (o *GetSearchAllLibrariesRequest) GetLimit() *int64 { - if o == nil { +func (g *GetSearchAllLibrariesRequest) GetLimit() *int64 { + if g == nil { return nil } - return o.Limit + return g.Limit } -func (o *GetSearchAllLibrariesRequest) GetSearchTypes() []SearchTypes { - if o == nil { +func (g *GetSearchAllLibrariesRequest) GetSearchTypes() []SearchTypes { + if g == nil { return nil } - return o.SearchTypes + return g.SearchTypes } -func (o *GetSearchAllLibrariesRequest) GetIncludeCollections() *GetSearchAllLibrariesQueryParamIncludeCollections { - if o == nil { +func (g *GetSearchAllLibrariesRequest) GetIncludeCollections() *GetSearchAllLibrariesQueryParamIncludeCollections { + if g == nil { return nil } - return o.IncludeCollections + return g.IncludeCollections } -func (o *GetSearchAllLibrariesRequest) GetIncludeExternalMedia() *GetSearchAllLibrariesQueryParamIncludeExternalMedia { - if o == nil { +func (g *GetSearchAllLibrariesRequest) GetIncludeExternalMedia() *GetSearchAllLibrariesQueryParamIncludeExternalMedia { + if g == nil { return nil } - return o.IncludeExternalMedia + return g.IncludeExternalMedia } type GetSearchAllLibrariesDirectory struct { @@ -185,89 +185,89 @@ func (g *GetSearchAllLibrariesDirectory) UnmarshalJSON(data []byte) error { return nil } -func (o *GetSearchAllLibrariesDirectory) GetKey() string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetSearchAllLibrariesDirectory) GetLibrarySectionID() int64 { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetLibrarySectionID() int64 { + if g == nil { return 0 } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetSearchAllLibrariesDirectory) GetLibrarySectionKey() string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetLibrarySectionKey() string { + if g == nil { return "" } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetSearchAllLibrariesDirectory) GetLibrarySectionTitle() string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetLibrarySectionTitle() string { + if g == nil { return "" } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetSearchAllLibrariesDirectory) GetLibrarySectionType() *int64 { - return types.Int64(1) +func (g *GetSearchAllLibrariesDirectory) GetLibrarySectionType() *int64 { + return types.Pointer[int64](1) } -func (o *GetSearchAllLibrariesDirectory) GetType() string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetType() string { + if g == nil { return "" } - return o.Type + return g.Type } -func (o *GetSearchAllLibrariesDirectory) GetID() int64 { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesDirectory) GetFilter() *string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetFilter() *string { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetSearchAllLibrariesDirectory) GetTag() string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetSearchAllLibrariesDirectory) GetTagType() *int64 { - return types.Int64(4) +func (g *GetSearchAllLibrariesDirectory) GetTagType() *int64 { + return types.Pointer[int64](4) } -func (o *GetSearchAllLibrariesDirectory) GetTagKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetTagKey() *string { + if g == nil { return nil } - return o.TagKey + return g.TagKey } -func (o *GetSearchAllLibrariesDirectory) GetThumb() *string { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetSearchAllLibrariesDirectory) GetCount() *int64 { - if o == nil { +func (g *GetSearchAllLibrariesDirectory) GetCount() *int64 { + if g == nil { return nil } - return o.Count + return g.Count } // GetSearchAllLibrariesType - The type of media content in the Plex library. This can represent videos, music, or photos. @@ -309,25 +309,25 @@ type GetSearchAllLibrariesImage struct { URL string `json:"url"` } -func (o *GetSearchAllLibrariesImage) GetAlt() string { - if o == nil { +func (g *GetSearchAllLibrariesImage) GetAlt() string { + if g == nil { return "" } - return o.Alt + return g.Alt } -func (o *GetSearchAllLibrariesImage) GetType() GetSearchAllLibrariesLibraryType { - if o == nil { +func (g *GetSearchAllLibrariesImage) GetType() GetSearchAllLibrariesLibraryType { + if g == nil { return GetSearchAllLibrariesLibraryType("") } - return o.Type + return g.Type } -func (o *GetSearchAllLibrariesImage) GetURL() string { - if o == nil { +func (g *GetSearchAllLibrariesImage) GetURL() string { + if g == nil { return "" } - return o.URL + return g.URL } type GetSearchAllLibrariesUltraBlurColors struct { @@ -337,32 +337,32 @@ type GetSearchAllLibrariesUltraBlurColors struct { BottomLeft string `json:"bottomLeft"` } -func (o *GetSearchAllLibrariesUltraBlurColors) GetTopLeft() string { - if o == nil { +func (g *GetSearchAllLibrariesUltraBlurColors) GetTopLeft() string { + if g == nil { return "" } - return o.TopLeft + return g.TopLeft } -func (o *GetSearchAllLibrariesUltraBlurColors) GetTopRight() string { - if o == nil { +func (g *GetSearchAllLibrariesUltraBlurColors) GetTopRight() string { + if g == nil { return "" } - return o.TopRight + return g.TopRight } -func (o *GetSearchAllLibrariesUltraBlurColors) GetBottomRight() string { - if o == nil { +func (g *GetSearchAllLibrariesUltraBlurColors) GetBottomRight() string { + if g == nil { return "" } - return o.BottomRight + return g.BottomRight } -func (o *GetSearchAllLibrariesUltraBlurColors) GetBottomLeft() string { - if o == nil { +func (g *GetSearchAllLibrariesUltraBlurColors) GetBottomLeft() string { + if g == nil { return "" } - return o.BottomLeft + return g.BottomLeft } type GetSearchAllLibrariesGuids struct { @@ -371,11 +371,11 @@ type GetSearchAllLibrariesGuids struct { ID string `json:"id"` } -func (o *GetSearchAllLibrariesGuids) GetID() string { - if o == nil { +func (g *GetSearchAllLibrariesGuids) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } // GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show. @@ -447,8 +447,8 @@ const ( // GetSearchAllLibrariesOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetSearchAllLibrariesOptimizedForStreaming struct { - GetSearchAllLibrariesOptimizedForStreaming1 *GetSearchAllLibrariesOptimizedForStreaming1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetSearchAllLibrariesOptimizedForStreaming1 *GetSearchAllLibrariesOptimizedForStreaming1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetSearchAllLibrariesOptimizedForStreamingType } @@ -537,8 +537,8 @@ const ( // GetSearchAllLibrariesLibraryOptimizedForStreaming - Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true type GetSearchAllLibrariesLibraryOptimizedForStreaming struct { - GetSearchAllLibrariesOptimizedForStreamingLibrary1 *GetSearchAllLibrariesOptimizedForStreamingLibrary1 `queryParam:"inline" name:"optimizedForStreaming"` - Boolean *bool `queryParam:"inline" name:"optimizedForStreaming"` + GetSearchAllLibrariesOptimizedForStreamingLibrary1 *GetSearchAllLibrariesOptimizedForStreamingLibrary1 `queryParam:"inline,name=optimizedForStreaming"` + Boolean *bool `queryParam:"inline,name=optimizedForStreaming"` Type GetSearchAllLibrariesLibraryOptimizedForStreamingType } @@ -660,109 +660,109 @@ func (g *GetSearchAllLibrariesPart) UnmarshalJSON(data []byte) error { return nil } -func (o *GetSearchAllLibrariesPart) GetAccessible() *bool { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetAccessible() *bool { + if g == nil { return nil } - return o.Accessible + return g.Accessible } -func (o *GetSearchAllLibrariesPart) GetExists() *bool { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetExists() *bool { + if g == nil { return nil } - return o.Exists + return g.Exists } -func (o *GetSearchAllLibrariesPart) GetID() int64 { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesPart) GetKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetSearchAllLibrariesPart) GetIndexes() *string { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetIndexes() *string { + if g == nil { return nil } - return o.Indexes + return g.Indexes } -func (o *GetSearchAllLibrariesPart) GetDuration() *int { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSearchAllLibrariesPart) GetFile() *string { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetSearchAllLibrariesPart) GetSize() *int64 { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetSearchAllLibrariesPart) GetPacketLength() *int { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetPacketLength() *int { + if g == nil { return nil } - return o.PacketLength + return g.PacketLength } -func (o *GetSearchAllLibrariesPart) GetContainer() *string { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetSearchAllLibrariesPart) GetVideoProfile() *string { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetSearchAllLibrariesPart) GetAudioProfile() *string { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetSearchAllLibrariesPart) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetSearchAllLibrariesPart) GetOptimizedForStreaming() *GetSearchAllLibrariesLibraryOptimizedForStreaming { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetOptimizedForStreaming() *GetSearchAllLibrariesLibraryOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetSearchAllLibrariesPart) GetHasThumbnail() *GetSearchAllLibrariesHasThumbnail { - if o == nil { +func (g *GetSearchAllLibrariesPart) GetHasThumbnail() *GetSearchAllLibrariesHasThumbnail { + if g == nil { return nil } - return o.HasThumbnail + return g.HasThumbnail } type GetSearchAllLibrariesMedia struct { @@ -807,137 +807,137 @@ type GetSearchAllLibrariesMedia struct { Part []GetSearchAllLibrariesPart `json:"Part,omitempty"` } -func (o *GetSearchAllLibrariesMedia) GetID() int64 { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesMedia) GetDuration() *int { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSearchAllLibrariesMedia) GetBitrate() *int { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetSearchAllLibrariesMedia) GetWidth() *int { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetWidth() *int { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetSearchAllLibrariesMedia) GetHeight() *int { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetHeight() *int { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetSearchAllLibrariesMedia) GetAspectRatio() *float32 { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetAspectRatio() *float32 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetSearchAllLibrariesMedia) GetAudioChannels() *int { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetAudioChannels() *int { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetSearchAllLibrariesMedia) GetDisplayOffset() *int { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetDisplayOffset() *int { + if g == nil { return nil } - return o.DisplayOffset + return g.DisplayOffset } -func (o *GetSearchAllLibrariesMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetSearchAllLibrariesMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetSearchAllLibrariesMedia) GetVideoResolution() *string { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetVideoResolution() *string { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetSearchAllLibrariesMedia) GetContainer() *string { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetSearchAllLibrariesMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetSearchAllLibrariesMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetSearchAllLibrariesMedia) GetHasVoiceActivity() *bool { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetHasVoiceActivity() *bool { + if g == nil { return nil } - return o.HasVoiceActivity + return g.HasVoiceActivity } -func (o *GetSearchAllLibrariesMedia) GetAudioProfile() *string { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetSearchAllLibrariesMedia) GetOptimizedForStreaming() *GetSearchAllLibrariesOptimizedForStreaming { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetOptimizedForStreaming() *GetSearchAllLibrariesOptimizedForStreaming { + if g == nil { return nil } - return o.OptimizedForStreaming + return g.OptimizedForStreaming } -func (o *GetSearchAllLibrariesMedia) GetHas64bitOffsets() *bool { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetHas64bitOffsets() *bool { + if g == nil { return nil } - return o.Has64bitOffsets + return g.Has64bitOffsets } -func (o *GetSearchAllLibrariesMedia) GetPart() []GetSearchAllLibrariesPart { - if o == nil { +func (g *GetSearchAllLibrariesMedia) GetPart() []GetSearchAllLibrariesPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetSearchAllLibrariesGenre struct { @@ -950,18 +950,18 @@ type GetSearchAllLibrariesGenre struct { Tag string `json:"tag"` } -func (o *GetSearchAllLibrariesGenre) GetID() int { - if o == nil { +func (g *GetSearchAllLibrariesGenre) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesGenre) GetTag() string { - if o == nil { +func (g *GetSearchAllLibrariesGenre) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetSearchAllLibrariesCountry struct { @@ -973,18 +973,18 @@ type GetSearchAllLibrariesCountry struct { Tag string `json:"tag"` } -func (o *GetSearchAllLibrariesCountry) GetID() int { - if o == nil { +func (g *GetSearchAllLibrariesCountry) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesCountry) GetTag() string { - if o == nil { +func (g *GetSearchAllLibrariesCountry) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } type GetSearchAllLibrariesDirector struct { @@ -996,25 +996,25 @@ type GetSearchAllLibrariesDirector struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetSearchAllLibrariesDirector) GetID() int { - if o == nil { +func (g *GetSearchAllLibrariesDirector) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesDirector) GetTag() string { - if o == nil { +func (g *GetSearchAllLibrariesDirector) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetSearchAllLibrariesDirector) GetThumb() *string { - if o == nil { +func (g *GetSearchAllLibrariesDirector) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetSearchAllLibrariesWriter struct { @@ -1026,25 +1026,25 @@ type GetSearchAllLibrariesWriter struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetSearchAllLibrariesWriter) GetID() int { - if o == nil { +func (g *GetSearchAllLibrariesWriter) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesWriter) GetTag() string { - if o == nil { +func (g *GetSearchAllLibrariesWriter) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetSearchAllLibrariesWriter) GetThumb() *string { - if o == nil { +func (g *GetSearchAllLibrariesWriter) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetSearchAllLibrariesRole struct { @@ -1060,32 +1060,32 @@ type GetSearchAllLibrariesRole struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetSearchAllLibrariesRole) GetID() int { - if o == nil { +func (g *GetSearchAllLibrariesRole) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetSearchAllLibrariesRole) GetTag() string { - if o == nil { +func (g *GetSearchAllLibrariesRole) GetTag() string { + if g == nil { return "" } - return o.Tag + return g.Tag } -func (o *GetSearchAllLibrariesRole) GetRole() *string { - if o == nil { +func (g *GetSearchAllLibrariesRole) GetRole() *string { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetSearchAllLibrariesRole) GetThumb() *string { - if o == nil { +func (g *GetSearchAllLibrariesRole) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } // GetSearchAllLibrariesLocation - The folder path for the media item. @@ -1093,11 +1093,11 @@ type GetSearchAllLibrariesLocation struct { Path string `json:"path"` } -func (o *GetSearchAllLibrariesLocation) GetPath() string { - if o == nil { +func (g *GetSearchAllLibrariesLocation) GetPath() string { + if g == nil { return "" } - return o.Path + return g.Path } // GetSearchAllLibrariesMetadata - Unknown @@ -1255,508 +1255,508 @@ func (g *GetSearchAllLibrariesMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetSearchAllLibrariesMetadata) GetRatingKey() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetRatingKey() string { + if g == nil { return "" } - return o.RatingKey + return g.RatingKey } -func (o *GetSearchAllLibrariesMetadata) GetKey() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetSearchAllLibrariesMetadata) GetGUID() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGUID() string { + if g == nil { return "" } - return o.GUID + return g.GUID } -func (o *GetSearchAllLibrariesMetadata) GetSlug() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetSearchAllLibrariesMetadata) GetStudio() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetSearchAllLibrariesMetadata) GetType() GetSearchAllLibrariesType { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetType() GetSearchAllLibrariesType { + if g == nil { return GetSearchAllLibrariesType("") } - return o.Type + return g.Type } -func (o *GetSearchAllLibrariesMetadata) GetTitle() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetSearchAllLibrariesMetadata) GetBanner() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetBanner() string { + if g == nil { return "" } - return o.Banner + return g.Banner } -func (o *GetSearchAllLibrariesMetadata) GetTitleSort() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetTitleSort() string { + if g == nil { return "" } - return o.TitleSort + return g.TitleSort } -func (o *GetSearchAllLibrariesMetadata) GetContentRating() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetSearchAllLibrariesMetadata) GetSummary() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetSummary() string { + if g == nil { return "" } - return o.Summary + return g.Summary } -func (o *GetSearchAllLibrariesMetadata) GetRating() float32 { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetRating() float32 { + if g == nil { return 0.0 } - return o.Rating + return g.Rating } -func (o *GetSearchAllLibrariesMetadata) GetAudienceRating() float64 { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetAudienceRating() float64 { + if g == nil { return 0.0 } - return o.AudienceRating + return g.AudienceRating } -func (o *GetSearchAllLibrariesMetadata) GetYear() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetSearchAllLibrariesMetadata) GetTagline() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetTagline() string { + if g == nil { return "" } - return o.Tagline + return g.Tagline } -func (o *GetSearchAllLibrariesMetadata) GetThumb() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetSearchAllLibrariesMetadata) GetArt() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetArt() string { + if g == nil { return "" } - return o.Art + return g.Art } -func (o *GetSearchAllLibrariesMetadata) GetTheme() string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetTheme() string { + if g == nil { return "" } - return o.Theme + return g.Theme } -func (o *GetSearchAllLibrariesMetadata) GetIndex() int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetIndex() int { + if g == nil { return 0 } - return o.Index + return g.Index } -func (o *GetSearchAllLibrariesMetadata) GetLeafCount() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetLeafCount() *int { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetSearchAllLibrariesMetadata) GetViewedLeafCount() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetViewedLeafCount() *int { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetSearchAllLibrariesMetadata) GetChildCount() int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetChildCount() int { + if g == nil { return 0 } - return o.ChildCount + return g.ChildCount } -func (o *GetSearchAllLibrariesMetadata) GetSeasonCount() int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetSeasonCount() int { + if g == nil { return 0 } - return o.SeasonCount + return g.SeasonCount } -func (o *GetSearchAllLibrariesMetadata) GetDuration() int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetDuration() int { + if g == nil { return 0 } - return o.Duration + return g.Duration } -func (o *GetSearchAllLibrariesMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetSearchAllLibrariesMetadata) GetAddedAt() int64 { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetAddedAt() int64 { + if g == nil { return 0 } - return o.AddedAt + return g.AddedAt } -func (o *GetSearchAllLibrariesMetadata) GetUpdatedAt() *int64 { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetUpdatedAt() *int64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetSearchAllLibrariesMetadata) GetParentYear() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetParentYear() *int { + if g == nil { return nil } - return o.ParentYear + return g.ParentYear } -func (o *GetSearchAllLibrariesMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetSearchAllLibrariesMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } -func (o *GetSearchAllLibrariesMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetSearchAllLibrariesMetadata) GetOriginalTitle() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetOriginalTitle() *string { + if g == nil { return nil } - return o.OriginalTitle + return g.OriginalTitle } -func (o *GetSearchAllLibrariesMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentRatingKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentRatingKey() *string { + if g == nil { return nil } - return o.GrandparentRatingKey + return g.GrandparentRatingKey } -func (o *GetSearchAllLibrariesMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentGUID() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentGUID() *string { + if g == nil { return nil } - return o.GrandparentGUID + return g.GrandparentGUID } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentSlug() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentSlug() *string { + if g == nil { return nil } - return o.GrandparentSlug + return g.GrandparentSlug } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentKey() *string { + if g == nil { return nil } - return o.GrandparentKey + return g.GrandparentKey } -func (o *GetSearchAllLibrariesMetadata) GetParentKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentTitle() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentTitle() *string { + if g == nil { return nil } - return o.GrandparentTitle + return g.GrandparentTitle } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentThumb() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentThumb() *string { + if g == nil { return nil } - return o.GrandparentThumb + return g.GrandparentThumb } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentTheme() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentTheme() *string { + if g == nil { return nil } - return o.GrandparentTheme + return g.GrandparentTheme } -func (o *GetSearchAllLibrariesMetadata) GetGrandparentArt() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGrandparentArt() *string { + if g == nil { return nil } - return o.GrandparentArt + return g.GrandparentArt } -func (o *GetSearchAllLibrariesMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetSearchAllLibrariesMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetSearchAllLibrariesMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetSearchAllLibrariesMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetSearchAllLibrariesMetadata) GetViewCount() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetViewCount() *int { + if g == nil { return nil } - return o.ViewCount + return g.ViewCount } -func (o *GetSearchAllLibrariesMetadata) GetViewOffset() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetViewOffset() *int { + if g == nil { return nil } - return o.ViewOffset + return g.ViewOffset } -func (o *GetSearchAllLibrariesMetadata) GetSkipCount() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetSkipCount() *int { + if g == nil { return nil } - return o.SkipCount + return g.SkipCount } -func (o *GetSearchAllLibrariesMetadata) GetSubtype() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetSubtype() *string { + if g == nil { return nil } - return o.Subtype + return g.Subtype } -func (o *GetSearchAllLibrariesMetadata) GetLastRatedAt() *int64 { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetLastRatedAt() *int64 { + if g == nil { return nil } - return o.LastRatedAt + return g.LastRatedAt } -func (o *GetSearchAllLibrariesMetadata) GetCreatedAtAccuracy() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetCreatedAtAccuracy() *string { + if g == nil { return nil } - return o.CreatedAtAccuracy + return g.CreatedAtAccuracy } -func (o *GetSearchAllLibrariesMetadata) GetCreatedAtTZOffset() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetCreatedAtTZOffset() *string { + if g == nil { return nil } - return o.CreatedAtTZOffset + return g.CreatedAtTZOffset } -func (o *GetSearchAllLibrariesMetadata) GetLastViewedAt() *int { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetLastViewedAt() *int { + if g == nil { return nil } - return o.LastViewedAt + return g.LastViewedAt } -func (o *GetSearchAllLibrariesMetadata) GetUserRating() *float32 { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetUserRating() *float32 { + if g == nil { return nil } - return o.UserRating + return g.UserRating } -func (o *GetSearchAllLibrariesMetadata) GetImage() []GetSearchAllLibrariesImage { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetImage() []GetSearchAllLibrariesImage { + if g == nil { return nil } - return o.Image + return g.Image } -func (o *GetSearchAllLibrariesMetadata) GetUltraBlurColors() *GetSearchAllLibrariesUltraBlurColors { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetUltraBlurColors() *GetSearchAllLibrariesUltraBlurColors { + if g == nil { return nil } - return o.UltraBlurColors + return g.UltraBlurColors } -func (o *GetSearchAllLibrariesMetadata) GetGuids() []GetSearchAllLibrariesGuids { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGuids() []GetSearchAllLibrariesGuids { + if g == nil { return nil } - return o.Guids + return g.Guids } -func (o *GetSearchAllLibrariesMetadata) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetSearchAllLibrariesMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetSearchAllLibrariesMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetSearchAllLibrariesMetadata) GetShowOrdering() *GetSearchAllLibrariesShowOrdering { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetShowOrdering() *GetSearchAllLibrariesShowOrdering { + if g == nil { return nil } - return o.ShowOrdering + return g.ShowOrdering } -func (o *GetSearchAllLibrariesMetadata) GetFlattenSeasons() *GetSearchAllLibrariesFlattenSeasons { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetFlattenSeasons() *GetSearchAllLibrariesFlattenSeasons { + if g == nil { return nil } - return o.FlattenSeasons + return g.FlattenSeasons } -func (o *GetSearchAllLibrariesMetadata) GetSkipChildren() *bool { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetSkipChildren() *bool { + if g == nil { return nil } - return o.SkipChildren + return g.SkipChildren } -func (o *GetSearchAllLibrariesMetadata) GetMedia() []GetSearchAllLibrariesMedia { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetMedia() []GetSearchAllLibrariesMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetSearchAllLibrariesMetadata) GetGenre() []GetSearchAllLibrariesGenre { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetGenre() []GetSearchAllLibrariesGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetSearchAllLibrariesMetadata) GetCountry() []GetSearchAllLibrariesCountry { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetCountry() []GetSearchAllLibrariesCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetSearchAllLibrariesMetadata) GetDirector() []GetSearchAllLibrariesDirector { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetDirector() []GetSearchAllLibrariesDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetSearchAllLibrariesMetadata) GetWriter() []GetSearchAllLibrariesWriter { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetWriter() []GetSearchAllLibrariesWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetSearchAllLibrariesMetadata) GetRole() []GetSearchAllLibrariesRole { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetRole() []GetSearchAllLibrariesRole { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetSearchAllLibrariesMetadata) GetLocation() []GetSearchAllLibrariesLocation { - if o == nil { +func (g *GetSearchAllLibrariesMetadata) GetLocation() []GetSearchAllLibrariesLocation { + if g == nil { return nil } - return o.Location + return g.Location } type SearchResult struct { @@ -1766,25 +1766,25 @@ type SearchResult struct { Metadata *GetSearchAllLibrariesMetadata `json:"Metadata,omitempty"` } -func (o *SearchResult) GetScore() float32 { - if o == nil { +func (s *SearchResult) GetScore() float32 { + if s == nil { return 0.0 } - return o.Score + return s.Score } -func (o *SearchResult) GetDirectory() *GetSearchAllLibrariesDirectory { - if o == nil { +func (s *SearchResult) GetDirectory() *GetSearchAllLibrariesDirectory { + if s == nil { return nil } - return o.Directory + return s.Directory } -func (o *SearchResult) GetMetadata() *GetSearchAllLibrariesMetadata { - if o == nil { +func (s *SearchResult) GetMetadata() *GetSearchAllLibrariesMetadata { + if s == nil { return nil } - return o.Metadata + return s.Metadata } type GetSearchAllLibrariesMediaContainer struct { @@ -1807,67 +1807,67 @@ type GetSearchAllLibrariesMediaContainer struct { SearchResult []SearchResult `json:"SearchResult"` } -func (o *GetSearchAllLibrariesMediaContainer) GetSize() int { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetSearchAllLibrariesMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetSearchAllLibrariesMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetSearchAllLibrariesMediaContainer) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetSearchAllLibrariesMediaContainer) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetSearchAllLibrariesMediaContainer) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetSearchAllLibrariesMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetSearchAllLibrariesMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetSearchAllLibrariesMediaContainer) GetSearchResult() []SearchResult { - if o == nil { +func (g *GetSearchAllLibrariesMediaContainer) GetSearchResult() []SearchResult { + if g == nil { return []SearchResult{} } - return o.SearchResult + return g.SearchResult } // GetSearchAllLibrariesResponseBody - The libraries available on the Server @@ -1875,11 +1875,11 @@ type GetSearchAllLibrariesResponseBody struct { MediaContainer GetSearchAllLibrariesMediaContainer `json:"MediaContainer"` } -func (o *GetSearchAllLibrariesResponseBody) GetMediaContainer() GetSearchAllLibrariesMediaContainer { - if o == nil { +func (g *GetSearchAllLibrariesResponseBody) GetMediaContainer() GetSearchAllLibrariesMediaContainer { + if g == nil { return GetSearchAllLibrariesMediaContainer{} } - return o.MediaContainer + return g.MediaContainer } type GetSearchAllLibrariesResponse struct { @@ -1893,30 +1893,30 @@ type GetSearchAllLibrariesResponse struct { Object *GetSearchAllLibrariesResponseBody } -func (o *GetSearchAllLibrariesResponse) GetContentType() string { - if o == nil { +func (g *GetSearchAllLibrariesResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSearchAllLibrariesResponse) GetStatusCode() int { - if o == nil { +func (g *GetSearchAllLibrariesResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSearchAllLibrariesResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSearchAllLibrariesResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSearchAllLibrariesResponse) GetObject() *GetSearchAllLibrariesResponseBody { - if o == nil { +func (g *GetSearchAllLibrariesResponse) GetObject() *GetSearchAllLibrariesResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getsearchlibrary.go b/models/operations/getsearchlibrary.go index 9f96777..888d324 100644 --- a/models/operations/getsearchlibrary.go +++ b/models/operations/getsearchlibrary.go @@ -45,18 +45,18 @@ type GetSearchLibraryRequest struct { Type GetSearchLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` } -func (o *GetSearchLibraryRequest) GetSectionKey() int { - if o == nil { +func (g *GetSearchLibraryRequest) GetSectionKey() int { + if g == nil { return 0 } - return o.SectionKey + return g.SectionKey } -func (o *GetSearchLibraryRequest) GetType() GetSearchLibraryQueryParamType { - if o == nil { +func (g *GetSearchLibraryRequest) GetType() GetSearchLibraryQueryParamType { + if g == nil { return GetSearchLibraryQueryParamType(0) } - return o.Type + return g.Type } type GetSearchLibraryMetadata struct { @@ -82,144 +82,144 @@ type GetSearchLibraryMetadata struct { UpdatedAt *int `json:"updatedAt,omitempty"` } -func (o *GetSearchLibraryMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetSearchLibraryMetadata) GetKey() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetSearchLibraryMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetSearchLibraryMetadata) GetGUID() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetSearchLibraryMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetSearchLibraryMetadata) GetParentStudio() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentStudio() *string { + if g == nil { return nil } - return o.ParentStudio + return g.ParentStudio } -func (o *GetSearchLibraryMetadata) GetType() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetSearchLibraryMetadata) GetTitle() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetSearchLibraryMetadata) GetParentKey() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetSearchLibraryMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetSearchLibraryMetadata) GetSummary() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetSearchLibraryMetadata) GetIndex() *int { - if o == nil { +func (g *GetSearchLibraryMetadata) GetIndex() *int { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetSearchLibraryMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetSearchLibraryMetadata) GetParentYear() *int { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentYear() *int { + if g == nil { return nil } - return o.ParentYear + return g.ParentYear } -func (o *GetSearchLibraryMetadata) GetThumb() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetSearchLibraryMetadata) GetArt() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetSearchLibraryMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetSearchLibraryMetadata) GetParentTheme() *string { - if o == nil { +func (g *GetSearchLibraryMetadata) GetParentTheme() *string { + if g == nil { return nil } - return o.ParentTheme + return g.ParentTheme } -func (o *GetSearchLibraryMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetSearchLibraryMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetSearchLibraryMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetSearchLibraryMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } type GetSearchLibraryMediaContainer struct { @@ -238,95 +238,95 @@ type GetSearchLibraryMediaContainer struct { Metadata []GetSearchLibraryMetadata `json:"Metadata,omitempty"` } -func (o *GetSearchLibraryMediaContainer) GetSize() *int { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetSearchLibraryMediaContainer) GetAllowSync() *bool { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetSearchLibraryMediaContainer) GetArt() *string { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetSearchLibraryMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetSearchLibraryMediaContainer) GetMediaTagPrefix() *string { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetMediaTagPrefix() *string { + if g == nil { return nil } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetSearchLibraryMediaContainer) GetMediaTagVersion() *int { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetMediaTagVersion() *int { + if g == nil { return nil } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetSearchLibraryMediaContainer) GetNocache() *bool { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetNocache() *bool { + if g == nil { return nil } - return o.Nocache + return g.Nocache } -func (o *GetSearchLibraryMediaContainer) GetThumb() *string { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetSearchLibraryMediaContainer) GetTitle1() *string { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetTitle1() *string { + if g == nil { return nil } - return o.Title1 + return g.Title1 } -func (o *GetSearchLibraryMediaContainer) GetTitle2() *string { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetTitle2() *string { + if g == nil { return nil } - return o.Title2 + return g.Title2 } -func (o *GetSearchLibraryMediaContainer) GetViewGroup() *string { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetViewGroup() *string { + if g == nil { return nil } - return o.ViewGroup + return g.ViewGroup } -func (o *GetSearchLibraryMediaContainer) GetViewMode() *int { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetViewMode() *int { + if g == nil { return nil } - return o.ViewMode + return g.ViewMode } -func (o *GetSearchLibraryMediaContainer) GetMetadata() []GetSearchLibraryMetadata { - if o == nil { +func (g *GetSearchLibraryMediaContainer) GetMetadata() []GetSearchLibraryMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetSearchLibraryResponseBody - The contents of the library by section and type @@ -334,11 +334,11 @@ type GetSearchLibraryResponseBody struct { MediaContainer *GetSearchLibraryMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetSearchLibraryResponseBody) GetMediaContainer() *GetSearchLibraryMediaContainer { - if o == nil { +func (g *GetSearchLibraryResponseBody) GetMediaContainer() *GetSearchLibraryMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetSearchLibraryResponse struct { @@ -352,30 +352,30 @@ type GetSearchLibraryResponse struct { Object *GetSearchLibraryResponseBody } -func (o *GetSearchLibraryResponse) GetContentType() string { - if o == nil { +func (g *GetSearchLibraryResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSearchLibraryResponse) GetStatusCode() int { - if o == nil { +func (g *GetSearchLibraryResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSearchLibraryResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSearchLibraryResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSearchLibraryResponse) GetObject() *GetSearchLibraryResponseBody { - if o == nil { +func (g *GetSearchLibraryResponse) GetObject() *GetSearchLibraryResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getsearchresults.go b/models/operations/getsearchresults.go index e68bf59..1f9209c 100644 --- a/models/operations/getsearchresults.go +++ b/models/operations/getsearchresults.go @@ -13,11 +13,11 @@ type GetSearchResultsRequest struct { Query string `queryParam:"style=form,explode=true,name=query"` } -func (o *GetSearchResultsRequest) GetQuery() string { - if o == nil { +func (g *GetSearchResultsRequest) GetQuery() string { + if g == nil { return "" } - return o.Query + return g.Query } type GetSearchResultsPart struct { @@ -31,60 +31,60 @@ type GetSearchResultsPart struct { VideoProfile *string `json:"videoProfile,omitempty"` } -func (o *GetSearchResultsPart) GetID() *float64 { - if o == nil { +func (g *GetSearchResultsPart) GetID() *float64 { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetSearchResultsPart) GetKey() *string { - if o == nil { +func (g *GetSearchResultsPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetSearchResultsPart) GetDuration() *float64 { - if o == nil { +func (g *GetSearchResultsPart) GetDuration() *float64 { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSearchResultsPart) GetFile() *string { - if o == nil { +func (g *GetSearchResultsPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetSearchResultsPart) GetSize() *float64 { - if o == nil { +func (g *GetSearchResultsPart) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetSearchResultsPart) GetAudioProfile() *string { - if o == nil { +func (g *GetSearchResultsPart) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetSearchResultsPart) GetContainer() *string { - if o == nil { +func (g *GetSearchResultsPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetSearchResultsPart) GetVideoProfile() *string { - if o == nil { +func (g *GetSearchResultsPart) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } type GetSearchResultsMedia struct { @@ -105,164 +105,164 @@ type GetSearchResultsMedia struct { Part []GetSearchResultsPart `json:"Part,omitempty"` } -func (o *GetSearchResultsMedia) GetID() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetID() *float64 { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetSearchResultsMedia) GetDuration() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetDuration() *float64 { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSearchResultsMedia) GetBitrate() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetBitrate() *float64 { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetSearchResultsMedia) GetWidth() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetWidth() *float64 { + if g == nil { return nil } - return o.Width + return g.Width } -func (o *GetSearchResultsMedia) GetHeight() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetHeight() *float64 { + if g == nil { return nil } - return o.Height + return g.Height } -func (o *GetSearchResultsMedia) GetAspectRatio() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetAspectRatio() *float64 { + if g == nil { return nil } - return o.AspectRatio + return g.AspectRatio } -func (o *GetSearchResultsMedia) GetAudioChannels() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetAudioChannels() *float64 { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetSearchResultsMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetSearchResultsMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetSearchResultsMedia) GetVideoCodec() *string { - if o == nil { +func (g *GetSearchResultsMedia) GetVideoCodec() *string { + if g == nil { return nil } - return o.VideoCodec + return g.VideoCodec } -func (o *GetSearchResultsMedia) GetVideoResolution() *float64 { - if o == nil { +func (g *GetSearchResultsMedia) GetVideoResolution() *float64 { + if g == nil { return nil } - return o.VideoResolution + return g.VideoResolution } -func (o *GetSearchResultsMedia) GetContainer() *string { - if o == nil { +func (g *GetSearchResultsMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetSearchResultsMedia) GetVideoFrameRate() *string { - if o == nil { +func (g *GetSearchResultsMedia) GetVideoFrameRate() *string { + if g == nil { return nil } - return o.VideoFrameRate + return g.VideoFrameRate } -func (o *GetSearchResultsMedia) GetAudioProfile() *string { - if o == nil { +func (g *GetSearchResultsMedia) GetAudioProfile() *string { + if g == nil { return nil } - return o.AudioProfile + return g.AudioProfile } -func (o *GetSearchResultsMedia) GetVideoProfile() *string { - if o == nil { +func (g *GetSearchResultsMedia) GetVideoProfile() *string { + if g == nil { return nil } - return o.VideoProfile + return g.VideoProfile } -func (o *GetSearchResultsMedia) GetPart() []GetSearchResultsPart { - if o == nil { +func (g *GetSearchResultsMedia) GetPart() []GetSearchResultsPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetSearchResultsGenre struct { Tag *string `json:"tag,omitempty"` } -func (o *GetSearchResultsGenre) GetTag() *string { - if o == nil { +func (g *GetSearchResultsGenre) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetSearchResultsDirector struct { Tag *string `json:"tag,omitempty"` } -func (o *GetSearchResultsDirector) GetTag() *string { - if o == nil { +func (g *GetSearchResultsDirector) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetSearchResultsWriter struct { Tag *string `json:"tag,omitempty"` } -func (o *GetSearchResultsWriter) GetTag() *string { - if o == nil { +func (g *GetSearchResultsWriter) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetSearchResultsCountry struct { Tag *string `json:"tag,omitempty"` } -func (o *GetSearchResultsCountry) GetTag() *string { - if o == nil { +func (g *GetSearchResultsCountry) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetSearchResultsRole struct { Tag *string `json:"tag,omitempty"` } -func (o *GetSearchResultsRole) GetTag() *string { - if o == nil { +func (g *GetSearchResultsRole) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetSearchResultsMetadata struct { @@ -313,242 +313,242 @@ func (g *GetSearchResultsMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetSearchResultsMetadata) GetAllowSync() *bool { - if o == nil { +func (g *GetSearchResultsMetadata) GetAllowSync() *bool { + if g == nil { return nil } - return o.AllowSync + return g.AllowSync } -func (o *GetSearchResultsMetadata) GetLibrarySectionID() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetLibrarySectionID() *float64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetSearchResultsMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetSearchResultsMetadata) GetLibrarySectionUUID() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetLibrarySectionUUID() *string { + if g == nil { return nil } - return o.LibrarySectionUUID + return g.LibrarySectionUUID } -func (o *GetSearchResultsMetadata) GetPersonal() *bool { - if o == nil { +func (g *GetSearchResultsMetadata) GetPersonal() *bool { + if g == nil { return nil } - return o.Personal + return g.Personal } -func (o *GetSearchResultsMetadata) GetSourceTitle() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetSourceTitle() *string { + if g == nil { return nil } - return o.SourceTitle + return g.SourceTitle } -func (o *GetSearchResultsMetadata) GetRatingKey() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetRatingKey() *float64 { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetSearchResultsMetadata) GetKey() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetSearchResultsMetadata) GetGUID() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetSearchResultsMetadata) GetStudio() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetSearchResultsMetadata) GetType() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetSearchResultsMetadata) GetTitle() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetSearchResultsMetadata) GetContentRating() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetSearchResultsMetadata) GetSummary() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetSearchResultsMetadata) GetRating() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetRating() *float64 { + if g == nil { return nil } - return o.Rating + return g.Rating } -func (o *GetSearchResultsMetadata) GetAudienceRating() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetAudienceRating() *float64 { + if g == nil { return nil } - return o.AudienceRating + return g.AudienceRating } -func (o *GetSearchResultsMetadata) GetYear() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetYear() *float64 { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetSearchResultsMetadata) GetTagline() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetTagline() *string { + if g == nil { return nil } - return o.Tagline + return g.Tagline } -func (o *GetSearchResultsMetadata) GetThumb() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetSearchResultsMetadata) GetArt() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetSearchResultsMetadata) GetDuration() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetDuration() *float64 { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSearchResultsMetadata) GetOriginallyAvailableAt() *time.Time { - if o == nil { +func (g *GetSearchResultsMetadata) GetOriginallyAvailableAt() *time.Time { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetSearchResultsMetadata) GetAddedAt() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetAddedAt() *float64 { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetSearchResultsMetadata) GetUpdatedAt() *float64 { - if o == nil { +func (g *GetSearchResultsMetadata) GetUpdatedAt() *float64 { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetSearchResultsMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetSearchResultsMetadata) GetChapterSource() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetChapterSource() *string { + if g == nil { return nil } - return o.ChapterSource + return g.ChapterSource } -func (o *GetSearchResultsMetadata) GetPrimaryExtraKey() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetPrimaryExtraKey() *string { + if g == nil { return nil } - return o.PrimaryExtraKey + return g.PrimaryExtraKey } -func (o *GetSearchResultsMetadata) GetRatingImage() *string { - if o == nil { +func (g *GetSearchResultsMetadata) GetRatingImage() *string { + if g == nil { return nil } - return o.RatingImage + return g.RatingImage } -func (o *GetSearchResultsMetadata) GetMedia() []GetSearchResultsMedia { - if o == nil { +func (g *GetSearchResultsMetadata) GetMedia() []GetSearchResultsMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetSearchResultsMetadata) GetGenre() []GetSearchResultsGenre { - if o == nil { +func (g *GetSearchResultsMetadata) GetGenre() []GetSearchResultsGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetSearchResultsMetadata) GetDirector() []GetSearchResultsDirector { - if o == nil { +func (g *GetSearchResultsMetadata) GetDirector() []GetSearchResultsDirector { + if g == nil { return nil } - return o.Director + return g.Director } -func (o *GetSearchResultsMetadata) GetWriter() []GetSearchResultsWriter { - if o == nil { +func (g *GetSearchResultsMetadata) GetWriter() []GetSearchResultsWriter { + if g == nil { return nil } - return o.Writer + return g.Writer } -func (o *GetSearchResultsMetadata) GetCountry() []GetSearchResultsCountry { - if o == nil { +func (g *GetSearchResultsMetadata) GetCountry() []GetSearchResultsCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetSearchResultsMetadata) GetRole() []GetSearchResultsRole { - if o == nil { +func (g *GetSearchResultsMetadata) GetRole() []GetSearchResultsRole { + if g == nil { return nil } - return o.Role + return g.Role } type Provider struct { @@ -557,25 +557,25 @@ type Provider struct { Type *string `json:"type,omitempty"` } -func (o *Provider) GetKey() *string { - if o == nil { +func (p *Provider) GetKey() *string { + if p == nil { return nil } - return o.Key + return p.Key } -func (o *Provider) GetTitle() *string { - if o == nil { +func (p *Provider) GetTitle() *string { + if p == nil { return nil } - return o.Title + return p.Title } -func (o *Provider) GetType() *string { - if o == nil { +func (p *Provider) GetType() *string { + if p == nil { return nil } - return o.Type + return p.Type } type GetSearchResultsMediaContainer struct { @@ -587,46 +587,46 @@ type GetSearchResultsMediaContainer struct { Provider []Provider `json:"Provider,omitempty"` } -func (o *GetSearchResultsMediaContainer) GetSize() *float64 { - if o == nil { +func (g *GetSearchResultsMediaContainer) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetSearchResultsMediaContainer) GetIdentifier() *string { - if o == nil { +func (g *GetSearchResultsMediaContainer) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetSearchResultsMediaContainer) GetMediaTagPrefix() *string { - if o == nil { +func (g *GetSearchResultsMediaContainer) GetMediaTagPrefix() *string { + if g == nil { return nil } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetSearchResultsMediaContainer) GetMediaTagVersion() *float64 { - if o == nil { +func (g *GetSearchResultsMediaContainer) GetMediaTagVersion() *float64 { + if g == nil { return nil } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetSearchResultsMediaContainer) GetMetadata() []GetSearchResultsMetadata { - if o == nil { +func (g *GetSearchResultsMediaContainer) GetMetadata() []GetSearchResultsMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } -func (o *GetSearchResultsMediaContainer) GetProvider() []Provider { - if o == nil { +func (g *GetSearchResultsMediaContainer) GetProvider() []Provider { + if g == nil { return nil } - return o.Provider + return g.Provider } // GetSearchResultsResponseBody - Search Results @@ -634,11 +634,11 @@ type GetSearchResultsResponseBody struct { MediaContainer *GetSearchResultsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetSearchResultsResponseBody) GetMediaContainer() *GetSearchResultsMediaContainer { - if o == nil { +func (g *GetSearchResultsResponseBody) GetMediaContainer() *GetSearchResultsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetSearchResultsResponse struct { @@ -652,30 +652,30 @@ type GetSearchResultsResponse struct { Object *GetSearchResultsResponseBody } -func (o *GetSearchResultsResponse) GetContentType() string { - if o == nil { +func (g *GetSearchResultsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSearchResultsResponse) GetStatusCode() int { - if o == nil { +func (g *GetSearchResultsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSearchResultsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSearchResultsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSearchResultsResponse) GetObject() *GetSearchResultsResponseBody { - if o == nil { +func (g *GetSearchResultsResponse) GetObject() *GetSearchResultsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getserveractivities.go b/models/operations/getserveractivities.go index 9682e61..eaf81ff 100644 --- a/models/operations/getserveractivities.go +++ b/models/operations/getserveractivities.go @@ -10,11 +10,11 @@ type Context struct { LibrarySectionID *string `json:"librarySectionID,omitempty"` } -func (o *Context) GetLibrarySectionID() *string { - if o == nil { +func (c *Context) GetLibrarySectionID() *string { + if c == nil { return nil } - return o.LibrarySectionID + return c.LibrarySectionID } type Activity struct { @@ -28,60 +28,60 @@ type Activity struct { Context *Context `json:"Context,omitempty"` } -func (o *Activity) GetUUID() *string { - if o == nil { +func (a *Activity) GetUUID() *string { + if a == nil { return nil } - return o.UUID + return a.UUID } -func (o *Activity) GetType() *string { - if o == nil { +func (a *Activity) GetType() *string { + if a == nil { return nil } - return o.Type + return a.Type } -func (o *Activity) GetCancellable() *bool { - if o == nil { +func (a *Activity) GetCancellable() *bool { + if a == nil { return nil } - return o.Cancellable + return a.Cancellable } -func (o *Activity) GetUserID() *float64 { - if o == nil { +func (a *Activity) GetUserID() *float64 { + if a == nil { return nil } - return o.UserID + return a.UserID } -func (o *Activity) GetTitle() *string { - if o == nil { +func (a *Activity) GetTitle() *string { + if a == nil { return nil } - return o.Title + return a.Title } -func (o *Activity) GetSubtitle() *string { - if o == nil { +func (a *Activity) GetSubtitle() *string { + if a == nil { return nil } - return o.Subtitle + return a.Subtitle } -func (o *Activity) GetProgress() *float64 { - if o == nil { +func (a *Activity) GetProgress() *float64 { + if a == nil { return nil } - return o.Progress + return a.Progress } -func (o *Activity) GetContext() *Context { - if o == nil { +func (a *Activity) GetContext() *Context { + if a == nil { return nil } - return o.Context + return a.Context } type GetServerActivitiesMediaContainer struct { @@ -89,18 +89,18 @@ type GetServerActivitiesMediaContainer struct { Activity []Activity `json:"Activity,omitempty"` } -func (o *GetServerActivitiesMediaContainer) GetSize() *float64 { - if o == nil { +func (g *GetServerActivitiesMediaContainer) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetServerActivitiesMediaContainer) GetActivity() []Activity { - if o == nil { +func (g *GetServerActivitiesMediaContainer) GetActivity() []Activity { + if g == nil { return nil } - return o.Activity + return g.Activity } // GetServerActivitiesResponseBody - The Server Activities @@ -108,11 +108,11 @@ type GetServerActivitiesResponseBody struct { MediaContainer *GetServerActivitiesMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetServerActivitiesResponseBody) GetMediaContainer() *GetServerActivitiesMediaContainer { - if o == nil { +func (g *GetServerActivitiesResponseBody) GetMediaContainer() *GetServerActivitiesMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetServerActivitiesResponse struct { @@ -126,30 +126,30 @@ type GetServerActivitiesResponse struct { Object *GetServerActivitiesResponseBody } -func (o *GetServerActivitiesResponse) GetContentType() string { - if o == nil { +func (g *GetServerActivitiesResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetServerActivitiesResponse) GetStatusCode() int { - if o == nil { +func (g *GetServerActivitiesResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetServerActivitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetServerActivitiesResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetServerActivitiesResponse) GetObject() *GetServerActivitiesResponseBody { - if o == nil { +func (g *GetServerActivitiesResponse) GetObject() *GetServerActivitiesResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getservercapabilities.go b/models/operations/getservercapabilities.go index 6a9a058..0a1f178 100644 --- a/models/operations/getservercapabilities.go +++ b/models/operations/getservercapabilities.go @@ -12,25 +12,25 @@ type Directory struct { Title *string `json:"title,omitempty"` } -func (o *Directory) GetCount() *float64 { - if o == nil { +func (d *Directory) GetCount() *float64 { + if d == nil { return nil } - return o.Count + return d.Count } -func (o *Directory) GetKey() *string { - if o == nil { +func (d *Directory) GetKey() *string { + if d == nil { return nil } - return o.Key + return d.Key } -func (o *Directory) GetTitle() *string { - if o == nil { +func (d *Directory) GetTitle() *string { + if d == nil { return nil } - return o.Title + return d.Title } type MediaContainer struct { @@ -87,361 +87,361 @@ type MediaContainer struct { Directory []Directory `json:"Directory,omitempty"` } -func (o *MediaContainer) GetSize() *float64 { - if o == nil { +func (m *MediaContainer) GetSize() *float64 { + if m == nil { return nil } - return o.Size + return m.Size } -func (o *MediaContainer) GetAllowCameraUpload() *bool { - if o == nil { +func (m *MediaContainer) GetAllowCameraUpload() *bool { + if m == nil { return nil } - return o.AllowCameraUpload + return m.AllowCameraUpload } -func (o *MediaContainer) GetAllowChannelAccess() *bool { - if o == nil { +func (m *MediaContainer) GetAllowChannelAccess() *bool { + if m == nil { return nil } - return o.AllowChannelAccess + return m.AllowChannelAccess } -func (o *MediaContainer) GetAllowMediaDeletion() *bool { - if o == nil { +func (m *MediaContainer) GetAllowMediaDeletion() *bool { + if m == nil { return nil } - return o.AllowMediaDeletion + return m.AllowMediaDeletion } -func (o *MediaContainer) GetAllowSharing() *bool { - if o == nil { +func (m *MediaContainer) GetAllowSharing() *bool { + if m == nil { return nil } - return o.AllowSharing + return m.AllowSharing } -func (o *MediaContainer) GetAllowSync() *bool { - if o == nil { +func (m *MediaContainer) GetAllowSync() *bool { + if m == nil { return nil } - return o.AllowSync + return m.AllowSync } -func (o *MediaContainer) GetAllowTuners() *bool { - if o == nil { +func (m *MediaContainer) GetAllowTuners() *bool { + if m == nil { return nil } - return o.AllowTuners + return m.AllowTuners } -func (o *MediaContainer) GetBackgroundProcessing() *bool { - if o == nil { +func (m *MediaContainer) GetBackgroundProcessing() *bool { + if m == nil { return nil } - return o.BackgroundProcessing + return m.BackgroundProcessing } -func (o *MediaContainer) GetCertificate() *bool { - if o == nil { +func (m *MediaContainer) GetCertificate() *bool { + if m == nil { return nil } - return o.Certificate + return m.Certificate } -func (o *MediaContainer) GetCompanionProxy() *bool { - if o == nil { +func (m *MediaContainer) GetCompanionProxy() *bool { + if m == nil { return nil } - return o.CompanionProxy + return m.CompanionProxy } -func (o *MediaContainer) GetCountryCode() *string { - if o == nil { +func (m *MediaContainer) GetCountryCode() *string { + if m == nil { return nil } - return o.CountryCode + return m.CountryCode } -func (o *MediaContainer) GetDiagnostics() *string { - if o == nil { +func (m *MediaContainer) GetDiagnostics() *string { + if m == nil { return nil } - return o.Diagnostics + return m.Diagnostics } -func (o *MediaContainer) GetEventStream() *bool { - if o == nil { +func (m *MediaContainer) GetEventStream() *bool { + if m == nil { return nil } - return o.EventStream + return m.EventStream } -func (o *MediaContainer) GetFriendlyName() *string { - if o == nil { +func (m *MediaContainer) GetFriendlyName() *string { + if m == nil { return nil } - return o.FriendlyName + return m.FriendlyName } -func (o *MediaContainer) GetHubSearch() *bool { - if o == nil { +func (m *MediaContainer) GetHubSearch() *bool { + if m == nil { return nil } - return o.HubSearch + return m.HubSearch } -func (o *MediaContainer) GetItemClusters() *bool { - if o == nil { +func (m *MediaContainer) GetItemClusters() *bool { + if m == nil { return nil } - return o.ItemClusters + return m.ItemClusters } -func (o *MediaContainer) GetLivetv() *float64 { - if o == nil { +func (m *MediaContainer) GetLivetv() *float64 { + if m == nil { return nil } - return o.Livetv + return m.Livetv } -func (o *MediaContainer) GetMachineIdentifier() *string { - if o == nil { +func (m *MediaContainer) GetMachineIdentifier() *string { + if m == nil { return nil } - return o.MachineIdentifier + return m.MachineIdentifier } -func (o *MediaContainer) GetMediaProviders() *bool { - if o == nil { +func (m *MediaContainer) GetMediaProviders() *bool { + if m == nil { return nil } - return o.MediaProviders + return m.MediaProviders } -func (o *MediaContainer) GetMultiuser() *bool { - if o == nil { +func (m *MediaContainer) GetMultiuser() *bool { + if m == nil { return nil } - return o.Multiuser + return m.Multiuser } -func (o *MediaContainer) GetMusicAnalysis() *float64 { - if o == nil { +func (m *MediaContainer) GetMusicAnalysis() *float64 { + if m == nil { return nil } - return o.MusicAnalysis + return m.MusicAnalysis } -func (o *MediaContainer) GetMyPlex() *bool { - if o == nil { +func (m *MediaContainer) GetMyPlex() *bool { + if m == nil { return nil } - return o.MyPlex + return m.MyPlex } -func (o *MediaContainer) GetMyPlexMappingState() *string { - if o == nil { +func (m *MediaContainer) GetMyPlexMappingState() *string { + if m == nil { return nil } - return o.MyPlexMappingState + return m.MyPlexMappingState } -func (o *MediaContainer) GetMyPlexSigninState() *string { - if o == nil { +func (m *MediaContainer) GetMyPlexSigninState() *string { + if m == nil { return nil } - return o.MyPlexSigninState + return m.MyPlexSigninState } -func (o *MediaContainer) GetMyPlexSubscription() *bool { - if o == nil { +func (m *MediaContainer) GetMyPlexSubscription() *bool { + if m == nil { return nil } - return o.MyPlexSubscription + return m.MyPlexSubscription } -func (o *MediaContainer) GetMyPlexUsername() *string { - if o == nil { +func (m *MediaContainer) GetMyPlexUsername() *string { + if m == nil { return nil } - return o.MyPlexUsername + return m.MyPlexUsername } -func (o *MediaContainer) GetOfflineTranscode() *float64 { - if o == nil { +func (m *MediaContainer) GetOfflineTranscode() *float64 { + if m == nil { return nil } - return o.OfflineTranscode + return m.OfflineTranscode } -func (o *MediaContainer) GetOwnerFeatures() *string { - if o == nil { +func (m *MediaContainer) GetOwnerFeatures() *string { + if m == nil { return nil } - return o.OwnerFeatures + return m.OwnerFeatures } -func (o *MediaContainer) GetPhotoAutoTag() *bool { - if o == nil { +func (m *MediaContainer) GetPhotoAutoTag() *bool { + if m == nil { return nil } - return o.PhotoAutoTag + return m.PhotoAutoTag } -func (o *MediaContainer) GetPlatform() *string { - if o == nil { +func (m *MediaContainer) GetPlatform() *string { + if m == nil { return nil } - return o.Platform + return m.Platform } -func (o *MediaContainer) GetPlatformVersion() *string { - if o == nil { +func (m *MediaContainer) GetPlatformVersion() *string { + if m == nil { return nil } - return o.PlatformVersion + return m.PlatformVersion } -func (o *MediaContainer) GetPluginHost() *bool { - if o == nil { +func (m *MediaContainer) GetPluginHost() *bool { + if m == nil { return nil } - return o.PluginHost + return m.PluginHost } -func (o *MediaContainer) GetPushNotifications() *bool { - if o == nil { +func (m *MediaContainer) GetPushNotifications() *bool { + if m == nil { return nil } - return o.PushNotifications + return m.PushNotifications } -func (o *MediaContainer) GetReadOnlyLibraries() *bool { - if o == nil { +func (m *MediaContainer) GetReadOnlyLibraries() *bool { + if m == nil { return nil } - return o.ReadOnlyLibraries + return m.ReadOnlyLibraries } -func (o *MediaContainer) GetStreamingBrainABRVersion() *float64 { - if o == nil { +func (m *MediaContainer) GetStreamingBrainABRVersion() *float64 { + if m == nil { return nil } - return o.StreamingBrainABRVersion + return m.StreamingBrainABRVersion } -func (o *MediaContainer) GetStreamingBrainVersion() *float64 { - if o == nil { +func (m *MediaContainer) GetStreamingBrainVersion() *float64 { + if m == nil { return nil } - return o.StreamingBrainVersion + return m.StreamingBrainVersion } -func (o *MediaContainer) GetSync() *bool { - if o == nil { +func (m *MediaContainer) GetSync() *bool { + if m == nil { return nil } - return o.Sync + return m.Sync } -func (o *MediaContainer) GetTranscoderActiveVideoSessions() *float64 { - if o == nil { +func (m *MediaContainer) GetTranscoderActiveVideoSessions() *float64 { + if m == nil { return nil } - return o.TranscoderActiveVideoSessions + return m.TranscoderActiveVideoSessions } -func (o *MediaContainer) GetTranscoderAudio() *bool { - if o == nil { +func (m *MediaContainer) GetTranscoderAudio() *bool { + if m == nil { return nil } - return o.TranscoderAudio + return m.TranscoderAudio } -func (o *MediaContainer) GetTranscoderLyrics() *bool { - if o == nil { +func (m *MediaContainer) GetTranscoderLyrics() *bool { + if m == nil { return nil } - return o.TranscoderLyrics + return m.TranscoderLyrics } -func (o *MediaContainer) GetTranscoderPhoto() *bool { - if o == nil { +func (m *MediaContainer) GetTranscoderPhoto() *bool { + if m == nil { return nil } - return o.TranscoderPhoto + return m.TranscoderPhoto } -func (o *MediaContainer) GetTranscoderSubtitles() *bool { - if o == nil { +func (m *MediaContainer) GetTranscoderSubtitles() *bool { + if m == nil { return nil } - return o.TranscoderSubtitles + return m.TranscoderSubtitles } -func (o *MediaContainer) GetTranscoderVideo() *bool { - if o == nil { +func (m *MediaContainer) GetTranscoderVideo() *bool { + if m == nil { return nil } - return o.TranscoderVideo + return m.TranscoderVideo } -func (o *MediaContainer) GetTranscoderVideoBitrates() *string { - if o == nil { +func (m *MediaContainer) GetTranscoderVideoBitrates() *string { + if m == nil { return nil } - return o.TranscoderVideoBitrates + return m.TranscoderVideoBitrates } -func (o *MediaContainer) GetTranscoderVideoQualities() *string { - if o == nil { +func (m *MediaContainer) GetTranscoderVideoQualities() *string { + if m == nil { return nil } - return o.TranscoderVideoQualities + return m.TranscoderVideoQualities } -func (o *MediaContainer) GetTranscoderVideoResolutions() *string { - if o == nil { +func (m *MediaContainer) GetTranscoderVideoResolutions() *string { + if m == nil { return nil } - return o.TranscoderVideoResolutions + return m.TranscoderVideoResolutions } -func (o *MediaContainer) GetUpdatedAt() *float64 { - if o == nil { +func (m *MediaContainer) GetUpdatedAt() *float64 { + if m == nil { return nil } - return o.UpdatedAt + return m.UpdatedAt } -func (o *MediaContainer) GetUpdater() *bool { - if o == nil { +func (m *MediaContainer) GetUpdater() *bool { + if m == nil { return nil } - return o.Updater + return m.Updater } -func (o *MediaContainer) GetVersion() *string { - if o == nil { +func (m *MediaContainer) GetVersion() *string { + if m == nil { return nil } - return o.Version + return m.Version } -func (o *MediaContainer) GetVoiceSearch() *bool { - if o == nil { +func (m *MediaContainer) GetVoiceSearch() *bool { + if m == nil { return nil } - return o.VoiceSearch + return m.VoiceSearch } -func (o *MediaContainer) GetDirectory() []Directory { - if o == nil { +func (m *MediaContainer) GetDirectory() []Directory { + if m == nil { return nil } - return o.Directory + return m.Directory } // GetServerCapabilitiesResponseBody - The Server Capabilities @@ -449,11 +449,11 @@ type GetServerCapabilitiesResponseBody struct { MediaContainer *MediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetServerCapabilitiesResponseBody) GetMediaContainer() *MediaContainer { - if o == nil { +func (g *GetServerCapabilitiesResponseBody) GetMediaContainer() *MediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetServerCapabilitiesResponse struct { @@ -467,30 +467,30 @@ type GetServerCapabilitiesResponse struct { Object *GetServerCapabilitiesResponseBody } -func (o *GetServerCapabilitiesResponse) GetContentType() string { - if o == nil { +func (g *GetServerCapabilitiesResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetServerCapabilitiesResponse) GetStatusCode() int { - if o == nil { +func (g *GetServerCapabilitiesResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetServerCapabilitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetServerCapabilitiesResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetServerCapabilitiesResponse) GetObject() *GetServerCapabilitiesResponseBody { - if o == nil { +func (g *GetServerCapabilitiesResponse) GetObject() *GetServerCapabilitiesResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getserveridentity.go b/models/operations/getserveridentity.go index 7842023..0326c24 100644 --- a/models/operations/getserveridentity.go +++ b/models/operations/getserveridentity.go @@ -13,32 +13,32 @@ type GetServerIdentityMediaContainer struct { Version *string `json:"version,omitempty"` } -func (o *GetServerIdentityMediaContainer) GetSize() *float64 { - if o == nil { +func (g *GetServerIdentityMediaContainer) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetServerIdentityMediaContainer) GetClaimed() *bool { - if o == nil { +func (g *GetServerIdentityMediaContainer) GetClaimed() *bool { + if g == nil { return nil } - return o.Claimed + return g.Claimed } -func (o *GetServerIdentityMediaContainer) GetMachineIdentifier() *string { - if o == nil { +func (g *GetServerIdentityMediaContainer) GetMachineIdentifier() *string { + if g == nil { return nil } - return o.MachineIdentifier + return g.MachineIdentifier } -func (o *GetServerIdentityMediaContainer) GetVersion() *string { - if o == nil { +func (g *GetServerIdentityMediaContainer) GetVersion() *string { + if g == nil { return nil } - return o.Version + return g.Version } // GetServerIdentityResponseBody - The Server Identity information @@ -46,11 +46,11 @@ type GetServerIdentityResponseBody struct { MediaContainer *GetServerIdentityMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetServerIdentityResponseBody) GetMediaContainer() *GetServerIdentityMediaContainer { - if o == nil { +func (g *GetServerIdentityResponseBody) GetMediaContainer() *GetServerIdentityMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetServerIdentityResponse struct { @@ -64,30 +64,30 @@ type GetServerIdentityResponse struct { Object *GetServerIdentityResponseBody } -func (o *GetServerIdentityResponse) GetContentType() string { - if o == nil { +func (g *GetServerIdentityResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetServerIdentityResponse) GetStatusCode() int { - if o == nil { +func (g *GetServerIdentityResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetServerIdentityResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetServerIdentityResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetServerIdentityResponse) GetObject() *GetServerIdentityResponseBody { - if o == nil { +func (g *GetServerIdentityResponse) GetObject() *GetServerIdentityResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getserverlist.go b/models/operations/getserverlist.go index 2268ffb..e49d153 100644 --- a/models/operations/getserverlist.go +++ b/models/operations/getserverlist.go @@ -15,46 +15,46 @@ type GetServerListServer struct { Version *string `json:"version,omitempty"` } -func (o *GetServerListServer) GetName() *string { - if o == nil { +func (g *GetServerListServer) GetName() *string { + if g == nil { return nil } - return o.Name + return g.Name } -func (o *GetServerListServer) GetHost() *string { - if o == nil { +func (g *GetServerListServer) GetHost() *string { + if g == nil { return nil } - return o.Host + return g.Host } -func (o *GetServerListServer) GetAddress() *string { - if o == nil { +func (g *GetServerListServer) GetAddress() *string { + if g == nil { return nil } - return o.Address + return g.Address } -func (o *GetServerListServer) GetPort() *float64 { - if o == nil { +func (g *GetServerListServer) GetPort() *float64 { + if g == nil { return nil } - return o.Port + return g.Port } -func (o *GetServerListServer) GetMachineIdentifier() *string { - if o == nil { +func (g *GetServerListServer) GetMachineIdentifier() *string { + if g == nil { return nil } - return o.MachineIdentifier + return g.MachineIdentifier } -func (o *GetServerListServer) GetVersion() *string { - if o == nil { +func (g *GetServerListServer) GetVersion() *string { + if g == nil { return nil } - return o.Version + return g.Version } type GetServerListMediaContainer struct { @@ -62,18 +62,18 @@ type GetServerListMediaContainer struct { Server []GetServerListServer `json:"Server,omitempty"` } -func (o *GetServerListMediaContainer) GetSize() *float64 { - if o == nil { +func (g *GetServerListMediaContainer) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetServerListMediaContainer) GetServer() []GetServerListServer { - if o == nil { +func (g *GetServerListMediaContainer) GetServer() []GetServerListServer { + if g == nil { return nil } - return o.Server + return g.Server } // GetServerListResponseBody - List of Servers @@ -81,11 +81,11 @@ type GetServerListResponseBody struct { MediaContainer *GetServerListMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetServerListResponseBody) GetMediaContainer() *GetServerListMediaContainer { - if o == nil { +func (g *GetServerListResponseBody) GetMediaContainer() *GetServerListMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetServerListResponse struct { @@ -99,30 +99,30 @@ type GetServerListResponse struct { Object *GetServerListResponseBody } -func (o *GetServerListResponse) GetContentType() string { - if o == nil { +func (g *GetServerListResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetServerListResponse) GetStatusCode() int { - if o == nil { +func (g *GetServerListResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetServerListResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetServerListResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetServerListResponse) GetObject() *GetServerListResponseBody { - if o == nil { +func (g *GetServerListResponse) GetObject() *GetServerListResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getserverpreferences.go b/models/operations/getserverpreferences.go index b8d00cf..9bde4d7 100644 --- a/models/operations/getserverpreferences.go +++ b/models/operations/getserverpreferences.go @@ -19,74 +19,74 @@ type Setting struct { EnumValues *string `json:"enumValues,omitempty"` } -func (o *Setting) GetID() *string { - if o == nil { +func (s *Setting) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } -func (o *Setting) GetLabel() *string { - if o == nil { +func (s *Setting) GetLabel() *string { + if s == nil { return nil } - return o.Label + return s.Label } -func (o *Setting) GetSummary() *string { - if o == nil { +func (s *Setting) GetSummary() *string { + if s == nil { return nil } - return o.Summary + return s.Summary } -func (o *Setting) GetType() *string { - if o == nil { +func (s *Setting) GetType() *string { + if s == nil { return nil } - return o.Type + return s.Type } -func (o *Setting) GetDefault() *bool { - if o == nil { +func (s *Setting) GetDefault() *bool { + if s == nil { return nil } - return o.Default + return s.Default } -func (o *Setting) GetValue() *bool { - if o == nil { +func (s *Setting) GetValue() *bool { + if s == nil { return nil } - return o.Value + return s.Value } -func (o *Setting) GetHidden() *bool { - if o == nil { +func (s *Setting) GetHidden() *bool { + if s == nil { return nil } - return o.Hidden + return s.Hidden } -func (o *Setting) GetAdvanced() *bool { - if o == nil { +func (s *Setting) GetAdvanced() *bool { + if s == nil { return nil } - return o.Advanced + return s.Advanced } -func (o *Setting) GetGroup() *string { - if o == nil { +func (s *Setting) GetGroup() *string { + if s == nil { return nil } - return o.Group + return s.Group } -func (o *Setting) GetEnumValues() *string { - if o == nil { +func (s *Setting) GetEnumValues() *string { + if s == nil { return nil } - return o.EnumValues + return s.EnumValues } type GetServerPreferencesMediaContainer struct { @@ -94,18 +94,18 @@ type GetServerPreferencesMediaContainer struct { Setting []Setting `json:"Setting,omitempty"` } -func (o *GetServerPreferencesMediaContainer) GetSize() *int { - if o == nil { +func (g *GetServerPreferencesMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetServerPreferencesMediaContainer) GetSetting() []Setting { - if o == nil { +func (g *GetServerPreferencesMediaContainer) GetSetting() []Setting { + if g == nil { return nil } - return o.Setting + return g.Setting } // GetServerPreferencesResponseBody - Server Preferences @@ -113,11 +113,11 @@ type GetServerPreferencesResponseBody struct { MediaContainer *GetServerPreferencesMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetServerPreferencesResponseBody) GetMediaContainer() *GetServerPreferencesMediaContainer { - if o == nil { +func (g *GetServerPreferencesResponseBody) GetMediaContainer() *GetServerPreferencesMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetServerPreferencesResponse struct { @@ -131,30 +131,30 @@ type GetServerPreferencesResponse struct { Object *GetServerPreferencesResponseBody } -func (o *GetServerPreferencesResponse) GetContentType() string { - if o == nil { +func (g *GetServerPreferencesResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetServerPreferencesResponse) GetStatusCode() int { - if o == nil { +func (g *GetServerPreferencesResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetServerPreferencesResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetServerPreferencesResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetServerPreferencesResponse) GetObject() *GetServerPreferencesResponseBody { - if o == nil { +func (g *GetServerPreferencesResponse) GetObject() *GetServerPreferencesResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getserverresources.go b/models/operations/getserverresources.go index 0ab978f..bb7ffef 100644 --- a/models/operations/getserverresources.go +++ b/models/operations/getserverresources.go @@ -120,32 +120,32 @@ func (g *GetServerResourcesRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS { - if o == nil { +func (g *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS { + if g == nil { return nil } - return o.IncludeHTTPS + return g.IncludeHTTPS } -func (o *GetServerResourcesRequest) GetIncludeRelay() *IncludeRelay { - if o == nil { +func (g *GetServerResourcesRequest) GetIncludeRelay() *IncludeRelay { + if g == nil { return nil } - return o.IncludeRelay + return g.IncludeRelay } -func (o *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 { - if o == nil { +func (g *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 { + if g == nil { return nil } - return o.IncludeIPv6 + return g.IncludeIPv6 } -func (o *GetServerResourcesRequest) GetClientID() string { - if o == nil { +func (g *GetServerResourcesRequest) GetClientID() string { + if g == nil { return "" } - return o.ClientID + return g.ClientID } // Protocol - The protocol used for the connection (http, https, etc) @@ -192,53 +192,53 @@ type Connections struct { IPv6 bool `json:"IPv6"` } -func (o *Connections) GetProtocol() Protocol { - if o == nil { +func (c *Connections) GetProtocol() Protocol { + if c == nil { return Protocol("") } - return o.Protocol + return c.Protocol } -func (o *Connections) GetAddress() string { - if o == nil { +func (c *Connections) GetAddress() string { + if c == nil { return "" } - return o.Address + return c.Address } -func (o *Connections) GetPort() int { - if o == nil { +func (c *Connections) GetPort() int { + if c == nil { return 0 } - return o.Port + return c.Port } -func (o *Connections) GetURI() string { - if o == nil { +func (c *Connections) GetURI() string { + if c == nil { return "" } - return o.URI + return c.URI } -func (o *Connections) GetLocal() bool { - if o == nil { +func (c *Connections) GetLocal() bool { + if c == nil { return false } - return o.Local + return c.Local } -func (o *Connections) GetRelay() bool { - if o == nil { +func (c *Connections) GetRelay() bool { + if c == nil { return false } - return o.Relay + return c.Relay } -func (o *Connections) GetIPv6() bool { - if o == nil { +func (c *Connections) GetIPv6() bool { + if c == nil { return false } - return o.IPv6 + return c.IPv6 } type PlexDevice struct { @@ -274,178 +274,178 @@ func (p PlexDevice) MarshalJSON() ([]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 nil } -func (o *PlexDevice) GetName() string { - if o == nil { +func (p *PlexDevice) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PlexDevice) GetProduct() string { - if o == nil { +func (p *PlexDevice) GetProduct() string { + if p == nil { return "" } - return o.Product + return p.Product } -func (o *PlexDevice) GetProductVersion() string { - if o == nil { +func (p *PlexDevice) GetProductVersion() string { + if p == nil { return "" } - return o.ProductVersion + return p.ProductVersion } -func (o *PlexDevice) GetPlatform() *string { - if o == nil { +func (p *PlexDevice) GetPlatform() *string { + if p == nil { return nil } - return o.Platform + return p.Platform } -func (o *PlexDevice) GetPlatformVersion() *string { - if o == nil { +func (p *PlexDevice) GetPlatformVersion() *string { + if p == nil { return nil } - return o.PlatformVersion + return p.PlatformVersion } -func (o *PlexDevice) GetDevice() *string { - if o == nil { +func (p *PlexDevice) GetDevice() *string { + if p == nil { return nil } - return o.Device + return p.Device } -func (o *PlexDevice) GetClientIdentifier() string { - if o == nil { +func (p *PlexDevice) GetClientIdentifier() string { + if p == nil { return "" } - return o.ClientIdentifier + return p.ClientIdentifier } -func (o *PlexDevice) GetCreatedAt() time.Time { - if o == nil { +func (p *PlexDevice) GetCreatedAt() time.Time { + if p == nil { return time.Time{} } - return o.CreatedAt + return p.CreatedAt } -func (o *PlexDevice) GetLastSeenAt() time.Time { - if o == nil { +func (p *PlexDevice) GetLastSeenAt() time.Time { + if p == nil { return time.Time{} } - return o.LastSeenAt + return p.LastSeenAt } -func (o *PlexDevice) GetProvides() string { - if o == nil { +func (p *PlexDevice) GetProvides() string { + if p == nil { return "" } - return o.Provides + return p.Provides } -func (o *PlexDevice) GetOwnerID() *int64 { - if o == nil { +func (p *PlexDevice) GetOwnerID() *int64 { + if p == nil { return nil } - return o.OwnerID + return p.OwnerID } -func (o *PlexDevice) GetSourceTitle() *string { - if o == nil { +func (p *PlexDevice) GetSourceTitle() *string { + if p == nil { return nil } - return o.SourceTitle + return p.SourceTitle } -func (o *PlexDevice) GetPublicAddress() string { - if o == nil { +func (p *PlexDevice) GetPublicAddress() string { + if p == nil { return "" } - return o.PublicAddress + return p.PublicAddress } -func (o *PlexDevice) GetAccessToken() string { - if o == nil { +func (p *PlexDevice) GetAccessToken() string { + if p == nil { return "" } - return o.AccessToken + return p.AccessToken } -func (o *PlexDevice) GetOwned() bool { - if o == nil { +func (p *PlexDevice) GetOwned() bool { + if p == nil { return false } - return o.Owned + return p.Owned } -func (o *PlexDevice) GetHome() bool { - if o == nil { +func (p *PlexDevice) GetHome() bool { + if p == nil { return false } - return o.Home + return p.Home } -func (o *PlexDevice) GetSynced() bool { - if o == nil { +func (p *PlexDevice) GetSynced() bool { + if p == nil { return false } - return o.Synced + return p.Synced } -func (o *PlexDevice) GetRelay() bool { - if o == nil { +func (p *PlexDevice) GetRelay() bool { + if p == nil { return false } - return o.Relay + return p.Relay } -func (o *PlexDevice) GetPresence() bool { - if o == nil { +func (p *PlexDevice) GetPresence() bool { + if p == nil { return false } - return o.Presence + return p.Presence } -func (o *PlexDevice) GetHTTPSRequired() bool { - if o == nil { +func (p *PlexDevice) GetHTTPSRequired() bool { + if p == nil { return false } - return o.HTTPSRequired + return p.HTTPSRequired } -func (o *PlexDevice) GetPublicAddressMatches() bool { - if o == nil { +func (p *PlexDevice) GetPublicAddressMatches() bool { + if p == nil { return false } - return o.PublicAddressMatches + return p.PublicAddressMatches } -func (o *PlexDevice) GetDNSRebindingProtection() bool { - if o == nil { +func (p *PlexDevice) GetDNSRebindingProtection() bool { + if p == nil { return false } - return o.DNSRebindingProtection + return p.DNSRebindingProtection } -func (o *PlexDevice) GetNatLoopbackSupported() bool { - if o == nil { +func (p *PlexDevice) GetNatLoopbackSupported() bool { + if p == nil { return false } - return o.NatLoopbackSupported + return p.NatLoopbackSupported } -func (o *PlexDevice) GetConnections() []Connections { - if o == nil { +func (p *PlexDevice) GetConnections() []Connections { + if p == nil { return []Connections{} } - return o.Connections + return p.Connections } type GetServerResourcesResponse struct { @@ -459,30 +459,30 @@ type GetServerResourcesResponse struct { PlexDevices []PlexDevice } -func (o *GetServerResourcesResponse) GetContentType() string { - if o == nil { +func (g *GetServerResourcesResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetServerResourcesResponse) GetStatusCode() int { - if o == nil { +func (g *GetServerResourcesResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetServerResourcesResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetServerResourcesResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetServerResourcesResponse) GetPlexDevices() []PlexDevice { - if o == nil { +func (g *GetServerResourcesResponse) GetPlexDevices() []PlexDevice { + if g == nil { return nil } - return o.PlexDevices + return g.PlexDevices } diff --git a/models/operations/getsessionhistory.go b/models/operations/getsessionhistory.go index b48f4a9..6617223 100644 --- a/models/operations/getsessionhistory.go +++ b/models/operations/getsessionhistory.go @@ -29,32 +29,32 @@ type GetSessionHistoryRequest struct { LibrarySectionID *int64 `queryParam:"style=form,explode=true,name=librarySectionID"` } -func (o *GetSessionHistoryRequest) GetSort() *string { - if o == nil { +func (g *GetSessionHistoryRequest) GetSort() *string { + if g == nil { return nil } - return o.Sort + return g.Sort } -func (o *GetSessionHistoryRequest) GetAccountID() *int64 { - if o == nil { +func (g *GetSessionHistoryRequest) GetAccountID() *int64 { + if g == nil { return nil } - return o.AccountID + return g.AccountID } -func (o *GetSessionHistoryRequest) GetFilter() *QueryParamFilter { - if o == nil { +func (g *GetSessionHistoryRequest) GetFilter() *QueryParamFilter { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetSessionHistoryRequest) GetLibrarySectionID() *int64 { - if o == nil { +func (g *GetSessionHistoryRequest) GetLibrarySectionID() *int64 { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } type GetSessionHistoryMetadata struct { @@ -90,137 +90,137 @@ func (g *GetSessionHistoryMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetSessionHistoryMetadata) GetHistoryKey() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetHistoryKey() *string { + if g == nil { return nil } - return o.HistoryKey + return g.HistoryKey } -func (o *GetSessionHistoryMetadata) GetKey() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetSessionHistoryMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetSessionHistoryMetadata) GetLibrarySectionID() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetLibrarySectionID() *string { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetSessionHistoryMetadata) GetParentKey() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetSessionHistoryMetadata) GetGrandparentKey() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetGrandparentKey() *string { + if g == nil { return nil } - return o.GrandparentKey + return g.GrandparentKey } -func (o *GetSessionHistoryMetadata) GetTitle() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetSessionHistoryMetadata) GetGrandparentTitle() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetGrandparentTitle() *string { + if g == nil { return nil } - return o.GrandparentTitle + return g.GrandparentTitle } -func (o *GetSessionHistoryMetadata) GetType() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetSessionHistoryMetadata) GetThumb() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetSessionHistoryMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetSessionHistoryMetadata) GetGrandparentThumb() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetGrandparentThumb() *string { + if g == nil { return nil } - return o.GrandparentThumb + return g.GrandparentThumb } -func (o *GetSessionHistoryMetadata) GetGrandparentArt() *string { - if o == nil { +func (g *GetSessionHistoryMetadata) GetGrandparentArt() *string { + if g == nil { return nil } - return o.GrandparentArt + return g.GrandparentArt } -func (o *GetSessionHistoryMetadata) GetIndex() *int { - if o == nil { +func (g *GetSessionHistoryMetadata) GetIndex() *int { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetSessionHistoryMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetSessionHistoryMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetSessionHistoryMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetSessionHistoryMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetSessionHistoryMetadata) GetViewedAt() *int { - if o == nil { +func (g *GetSessionHistoryMetadata) GetViewedAt() *int { + if g == nil { return nil } - return o.ViewedAt + return g.ViewedAt } -func (o *GetSessionHistoryMetadata) GetAccountID() *int { - if o == nil { +func (g *GetSessionHistoryMetadata) GetAccountID() *int { + if g == nil { return nil } - return o.AccountID + return g.AccountID } -func (o *GetSessionHistoryMetadata) GetDeviceID() *int { - if o == nil { +func (g *GetSessionHistoryMetadata) GetDeviceID() *int { + if g == nil { return nil } - return o.DeviceID + return g.DeviceID } type GetSessionHistoryMediaContainer struct { @@ -228,18 +228,18 @@ type GetSessionHistoryMediaContainer struct { Metadata []GetSessionHistoryMetadata `json:"Metadata,omitempty"` } -func (o *GetSessionHistoryMediaContainer) GetSize() *int { - if o == nil { +func (g *GetSessionHistoryMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetSessionHistoryMediaContainer) GetMetadata() []GetSessionHistoryMetadata { - if o == nil { +func (g *GetSessionHistoryMediaContainer) GetMetadata() []GetSessionHistoryMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetSessionHistoryResponseBody - List of Plex Sessions @@ -247,11 +247,11 @@ type GetSessionHistoryResponseBody struct { MediaContainer *GetSessionHistoryMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetSessionHistoryResponseBody) GetMediaContainer() *GetSessionHistoryMediaContainer { - if o == nil { +func (g *GetSessionHistoryResponseBody) GetMediaContainer() *GetSessionHistoryMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetSessionHistoryResponse struct { @@ -265,30 +265,30 @@ type GetSessionHistoryResponse struct { Object *GetSessionHistoryResponseBody } -func (o *GetSessionHistoryResponse) GetContentType() string { - if o == nil { +func (g *GetSessionHistoryResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSessionHistoryResponse) GetStatusCode() int { - if o == nil { +func (g *GetSessionHistoryResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSessionHistoryResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSessionHistoryResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSessionHistoryResponse) GetObject() *GetSessionHistoryResponseBody { - if o == nil { +func (g *GetSessionHistoryResponse) GetObject() *GetSessionHistoryResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getsessions.go b/models/operations/getsessions.go index 5846c6e..4a08e1d 100644 --- a/models/operations/getsessions.go +++ b/models/operations/getsessions.go @@ -29,144 +29,144 @@ type GetSessionsStream struct { Location *string `json:"location,omitempty"` } -func (o *GetSessionsStream) GetAlbumGain() *string { - if o == nil { +func (g *GetSessionsStream) GetAlbumGain() *string { + if g == nil { return nil } - return o.AlbumGain + return g.AlbumGain } -func (o *GetSessionsStream) GetAlbumPeak() *string { - if o == nil { +func (g *GetSessionsStream) GetAlbumPeak() *string { + if g == nil { return nil } - return o.AlbumPeak + return g.AlbumPeak } -func (o *GetSessionsStream) GetAlbumRange() *string { - if o == nil { +func (g *GetSessionsStream) GetAlbumRange() *string { + if g == nil { return nil } - return o.AlbumRange + return g.AlbumRange } -func (o *GetSessionsStream) GetAudioChannelLayout() *string { - if o == nil { +func (g *GetSessionsStream) GetAudioChannelLayout() *string { + if g == nil { return nil } - return o.AudioChannelLayout + return g.AudioChannelLayout } -func (o *GetSessionsStream) GetBitDepth() *int { - if o == nil { +func (g *GetSessionsStream) GetBitDepth() *int { + if g == nil { return nil } - return o.BitDepth + return g.BitDepth } -func (o *GetSessionsStream) GetBitrate() *int { - if o == nil { +func (g *GetSessionsStream) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetSessionsStream) GetChannels() *int { - if o == nil { +func (g *GetSessionsStream) GetChannels() *int { + if g == nil { return nil } - return o.Channels + return g.Channels } -func (o *GetSessionsStream) GetCodec() *string { - if o == nil { +func (g *GetSessionsStream) GetCodec() *string { + if g == nil { return nil } - return o.Codec + return g.Codec } -func (o *GetSessionsStream) GetDisplayTitle() *string { - if o == nil { +func (g *GetSessionsStream) GetDisplayTitle() *string { + if g == nil { return nil } - return o.DisplayTitle + return g.DisplayTitle } -func (o *GetSessionsStream) GetExtendedDisplayTitle() *string { - if o == nil { +func (g *GetSessionsStream) GetExtendedDisplayTitle() *string { + if g == nil { return nil } - return o.ExtendedDisplayTitle + return g.ExtendedDisplayTitle } -func (o *GetSessionsStream) GetGain() *string { - if o == nil { +func (g *GetSessionsStream) GetGain() *string { + if g == nil { return nil } - return o.Gain + return g.Gain } -func (o *GetSessionsStream) GetID() *string { - if o == nil { +func (g *GetSessionsStream) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetSessionsStream) GetIndex() *int { - if o == nil { +func (g *GetSessionsStream) GetIndex() *int { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetSessionsStream) GetLoudness() *string { - if o == nil { +func (g *GetSessionsStream) GetLoudness() *string { + if g == nil { return nil } - return o.Loudness + return g.Loudness } -func (o *GetSessionsStream) GetLra() *string { - if o == nil { +func (g *GetSessionsStream) GetLra() *string { + if g == nil { return nil } - return o.Lra + return g.Lra } -func (o *GetSessionsStream) GetPeak() *string { - if o == nil { +func (g *GetSessionsStream) GetPeak() *string { + if g == nil { return nil } - return o.Peak + return g.Peak } -func (o *GetSessionsStream) GetSamplingRate() *int { - if o == nil { +func (g *GetSessionsStream) GetSamplingRate() *int { + if g == nil { return nil } - return o.SamplingRate + return g.SamplingRate } -func (o *GetSessionsStream) GetSelected() *bool { - if o == nil { +func (g *GetSessionsStream) GetSelected() *bool { + if g == nil { return nil } - return o.Selected + return g.Selected } -func (o *GetSessionsStream) GetStreamType() *int { - if o == nil { +func (g *GetSessionsStream) GetStreamType() *int { + if g == nil { return nil } - return o.StreamType + return g.StreamType } -func (o *GetSessionsStream) GetLocation() *string { - if o == nil { +func (g *GetSessionsStream) GetLocation() *string { + if g == nil { return nil } - return o.Location + return g.Location } type GetSessionsPart struct { @@ -182,74 +182,74 @@ type GetSessionsPart struct { Stream []GetSessionsStream `json:"Stream,omitempty"` } -func (o *GetSessionsPart) GetContainer() *string { - if o == nil { +func (g *GetSessionsPart) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetSessionsPart) GetDuration() *int { - if o == nil { +func (g *GetSessionsPart) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSessionsPart) GetFile() *string { - if o == nil { +func (g *GetSessionsPart) GetFile() *string { + if g == nil { return nil } - return o.File + return g.File } -func (o *GetSessionsPart) GetHasThumbnail() *string { - if o == nil { +func (g *GetSessionsPart) GetHasThumbnail() *string { + if g == nil { return nil } - return o.HasThumbnail + return g.HasThumbnail } -func (o *GetSessionsPart) GetID() *string { - if o == nil { +func (g *GetSessionsPart) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetSessionsPart) GetKey() *string { - if o == nil { +func (g *GetSessionsPart) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetSessionsPart) GetSize() *int { - if o == nil { +func (g *GetSessionsPart) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetSessionsPart) GetDecision() *string { - if o == nil { +func (g *GetSessionsPart) GetDecision() *string { + if g == nil { return nil } - return o.Decision + return g.Decision } -func (o *GetSessionsPart) GetSelected() *bool { - if o == nil { +func (g *GetSessionsPart) GetSelected() *bool { + if g == nil { return nil } - return o.Selected + return g.Selected } -func (o *GetSessionsPart) GetStream() []GetSessionsStream { - if o == nil { +func (g *GetSessionsPart) GetStream() []GetSessionsStream { + if g == nil { return nil } - return o.Stream + return g.Stream } type GetSessionsMedia struct { @@ -263,60 +263,60 @@ type GetSessionsMedia struct { Part []GetSessionsPart `json:"Part,omitempty"` } -func (o *GetSessionsMedia) GetAudioChannels() *int { - if o == nil { +func (g *GetSessionsMedia) GetAudioChannels() *int { + if g == nil { return nil } - return o.AudioChannels + return g.AudioChannels } -func (o *GetSessionsMedia) GetAudioCodec() *string { - if o == nil { +func (g *GetSessionsMedia) GetAudioCodec() *string { + if g == nil { return nil } - return o.AudioCodec + return g.AudioCodec } -func (o *GetSessionsMedia) GetBitrate() *int { - if o == nil { +func (g *GetSessionsMedia) GetBitrate() *int { + if g == nil { return nil } - return o.Bitrate + return g.Bitrate } -func (o *GetSessionsMedia) GetContainer() *string { - if o == nil { +func (g *GetSessionsMedia) GetContainer() *string { + if g == nil { return nil } - return o.Container + return g.Container } -func (o *GetSessionsMedia) GetDuration() *int { - if o == nil { +func (g *GetSessionsMedia) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSessionsMedia) GetID() *string { - if o == nil { +func (g *GetSessionsMedia) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetSessionsMedia) GetSelected() *bool { - if o == nil { +func (g *GetSessionsMedia) GetSelected() *bool { + if g == nil { return nil } - return o.Selected + return g.Selected } -func (o *GetSessionsMedia) GetPart() []GetSessionsPart { - if o == nil { +func (g *GetSessionsMedia) GetPart() []GetSessionsPart { + if g == nil { return nil } - return o.Part + return g.Part } type GetSessionsUser struct { @@ -325,25 +325,25 @@ type GetSessionsUser struct { Title *string `json:"title,omitempty"` } -func (o *GetSessionsUser) GetID() *string { - if o == nil { +func (g *GetSessionsUser) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetSessionsUser) GetThumb() *string { - if o == nil { +func (g *GetSessionsUser) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetSessionsUser) GetTitle() *string { - if o == nil { +func (g *GetSessionsUser) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } type Player struct { @@ -364,109 +364,109 @@ type Player struct { UserID *int `json:"userID,omitempty"` } -func (o *Player) GetAddress() *string { - if o == nil { +func (p *Player) GetAddress() *string { + if p == nil { return nil } - return o.Address + return p.Address } -func (o *Player) GetMachineIdentifier() *string { - if o == nil { +func (p *Player) GetMachineIdentifier() *string { + if p == nil { return nil } - return o.MachineIdentifier + return p.MachineIdentifier } -func (o *Player) GetModel() *string { - if o == nil { +func (p *Player) GetModel() *string { + if p == nil { return nil } - return o.Model + return p.Model } -func (o *Player) GetPlatform() *string { - if o == nil { +func (p *Player) GetPlatform() *string { + if p == nil { return nil } - return o.Platform + return p.Platform } -func (o *Player) GetPlatformVersion() *string { - if o == nil { +func (p *Player) GetPlatformVersion() *string { + if p == nil { return nil } - return o.PlatformVersion + return p.PlatformVersion } -func (o *Player) GetProduct() *string { - if o == nil { +func (p *Player) GetProduct() *string { + if p == nil { return nil } - return o.Product + return p.Product } -func (o *Player) GetProfile() *string { - if o == nil { +func (p *Player) GetProfile() *string { + if p == nil { return nil } - return o.Profile + return p.Profile } -func (o *Player) GetRemotePublicAddress() *string { - if o == nil { +func (p *Player) GetRemotePublicAddress() *string { + if p == nil { return nil } - return o.RemotePublicAddress + return p.RemotePublicAddress } -func (o *Player) GetState() *string { - if o == nil { +func (p *Player) GetState() *string { + if p == nil { return nil } - return o.State + return p.State } -func (o *Player) GetTitle() *string { - if o == nil { +func (p *Player) GetTitle() *string { + if p == nil { return nil } - return o.Title + return p.Title } -func (o *Player) GetVersion() *string { - if o == nil { +func (p *Player) GetVersion() *string { + if p == nil { return nil } - return o.Version + return p.Version } -func (o *Player) GetLocal() *bool { - if o == nil { +func (p *Player) GetLocal() *bool { + if p == nil { return nil } - return o.Local + return p.Local } -func (o *Player) GetRelayed() *bool { - if o == nil { +func (p *Player) GetRelayed() *bool { + if p == nil { return nil } - return o.Relayed + return p.Relayed } -func (o *Player) GetSecure() *bool { - if o == nil { +func (p *Player) GetSecure() *bool { + if p == nil { return nil } - return o.Secure + return p.Secure } -func (o *Player) GetUserID() *int { - if o == nil { +func (p *Player) GetUserID() *int { + if p == nil { return nil } - return o.UserID + return p.UserID } type Session struct { @@ -475,25 +475,25 @@ type Session struct { Location *string `json:"location,omitempty"` } -func (o *Session) GetID() *string { - if o == nil { +func (s *Session) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } -func (o *Session) GetBandwidth() *int { - if o == nil { +func (s *Session) GetBandwidth() *int { + if s == nil { return nil } - return o.Bandwidth + return s.Bandwidth } -func (o *Session) GetLocation() *string { - if o == nil { +func (s *Session) GetLocation() *string { + if s == nil { return nil } - return o.Location + return s.Location } type GetSessionsMetadata struct { @@ -538,270 +538,270 @@ type GetSessionsMetadata struct { Session *Session `json:"Session,omitempty"` } -func (o *GetSessionsMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetSessionsMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetSessionsMetadata) GetArt() *string { - if o == nil { +func (g *GetSessionsMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetSessionsMetadata) GetDuration() *int { - if o == nil { +func (g *GetSessionsMetadata) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetSessionsMetadata) GetGrandparentArt() *string { - if o == nil { +func (g *GetSessionsMetadata) GetGrandparentArt() *string { + if g == nil { return nil } - return o.GrandparentArt + return g.GrandparentArt } -func (o *GetSessionsMetadata) GetGrandparentGUID() *string { - if o == nil { +func (g *GetSessionsMetadata) GetGrandparentGUID() *string { + if g == nil { return nil } - return o.GrandparentGUID + return g.GrandparentGUID } -func (o *GetSessionsMetadata) GetGrandparentKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetGrandparentKey() *string { + if g == nil { return nil } - return o.GrandparentKey + return g.GrandparentKey } -func (o *GetSessionsMetadata) GetGrandparentRatingKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetGrandparentRatingKey() *string { + if g == nil { return nil } - return o.GrandparentRatingKey + return g.GrandparentRatingKey } -func (o *GetSessionsMetadata) GetGrandparentThumb() *string { - if o == nil { +func (g *GetSessionsMetadata) GetGrandparentThumb() *string { + if g == nil { return nil } - return o.GrandparentThumb + return g.GrandparentThumb } -func (o *GetSessionsMetadata) GetGrandparentTitle() *string { - if o == nil { +func (g *GetSessionsMetadata) GetGrandparentTitle() *string { + if g == nil { return nil } - return o.GrandparentTitle + return g.GrandparentTitle } -func (o *GetSessionsMetadata) GetGUID() *string { - if o == nil { +func (g *GetSessionsMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetSessionsMetadata) GetIndex() *int { - if o == nil { +func (g *GetSessionsMetadata) GetIndex() *int { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetSessionsMetadata) GetKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetSessionsMetadata) GetLibrarySectionID() *string { - if o == nil { +func (g *GetSessionsMetadata) GetLibrarySectionID() *string { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetSessionsMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetSessionsMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetSessionsMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetSessionsMetadata) GetMusicAnalysisVersion() *string { - if o == nil { +func (g *GetSessionsMetadata) GetMusicAnalysisVersion() *string { + if g == nil { return nil } - return o.MusicAnalysisVersion + return g.MusicAnalysisVersion } -func (o *GetSessionsMetadata) GetOriginalTitle() *string { - if o == nil { +func (g *GetSessionsMetadata) GetOriginalTitle() *string { + if g == nil { return nil } - return o.OriginalTitle + return g.OriginalTitle } -func (o *GetSessionsMetadata) GetParentGUID() *string { - if o == nil { +func (g *GetSessionsMetadata) GetParentGUID() *string { + if g == nil { return nil } - return o.ParentGUID + return g.ParentGUID } -func (o *GetSessionsMetadata) GetParentIndex() *int { - if o == nil { +func (g *GetSessionsMetadata) GetParentIndex() *int { + if g == nil { return nil } - return o.ParentIndex + return g.ParentIndex } -func (o *GetSessionsMetadata) GetParentKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetParentKey() *string { + if g == nil { return nil } - return o.ParentKey + return g.ParentKey } -func (o *GetSessionsMetadata) GetParentRatingKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetParentRatingKey() *string { + if g == nil { return nil } - return o.ParentRatingKey + return g.ParentRatingKey } -func (o *GetSessionsMetadata) GetParentStudio() *string { - if o == nil { +func (g *GetSessionsMetadata) GetParentStudio() *string { + if g == nil { return nil } - return o.ParentStudio + return g.ParentStudio } -func (o *GetSessionsMetadata) GetParentThumb() *string { - if o == nil { +func (g *GetSessionsMetadata) GetParentThumb() *string { + if g == nil { return nil } - return o.ParentThumb + return g.ParentThumb } -func (o *GetSessionsMetadata) GetParentTitle() *string { - if o == nil { +func (g *GetSessionsMetadata) GetParentTitle() *string { + if g == nil { return nil } - return o.ParentTitle + return g.ParentTitle } -func (o *GetSessionsMetadata) GetParentYear() *int { - if o == nil { +func (g *GetSessionsMetadata) GetParentYear() *int { + if g == nil { return nil } - return o.ParentYear + return g.ParentYear } -func (o *GetSessionsMetadata) GetRatingCount() *int { - if o == nil { +func (g *GetSessionsMetadata) GetRatingCount() *int { + if g == nil { return nil } - return o.RatingCount + return g.RatingCount } -func (o *GetSessionsMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetSessionsMetadata) GetSessionKey() *string { - if o == nil { +func (g *GetSessionsMetadata) GetSessionKey() *string { + if g == nil { return nil } - return o.SessionKey + return g.SessionKey } -func (o *GetSessionsMetadata) GetThumb() *string { - if o == nil { +func (g *GetSessionsMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetSessionsMetadata) GetTitle() *string { - if o == nil { +func (g *GetSessionsMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetSessionsMetadata) GetTitleSort() *string { - if o == nil { +func (g *GetSessionsMetadata) GetTitleSort() *string { + if g == nil { return nil } - return o.TitleSort + return g.TitleSort } -func (o *GetSessionsMetadata) GetType() *string { - if o == nil { +func (g *GetSessionsMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetSessionsMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetSessionsMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetSessionsMetadata) GetViewOffset() *int { - if o == nil { +func (g *GetSessionsMetadata) GetViewOffset() *int { + if g == nil { return nil } - return o.ViewOffset + return g.ViewOffset } -func (o *GetSessionsMetadata) GetMedia() []GetSessionsMedia { - if o == nil { +func (g *GetSessionsMetadata) GetMedia() []GetSessionsMedia { + if g == nil { return nil } - return o.Media + return g.Media } -func (o *GetSessionsMetadata) GetUser() *GetSessionsUser { - if o == nil { +func (g *GetSessionsMetadata) GetUser() *GetSessionsUser { + if g == nil { return nil } - return o.User + return g.User } -func (o *GetSessionsMetadata) GetPlayer() *Player { - if o == nil { +func (g *GetSessionsMetadata) GetPlayer() *Player { + if g == nil { return nil } - return o.Player + return g.Player } -func (o *GetSessionsMetadata) GetSession() *Session { - if o == nil { +func (g *GetSessionsMetadata) GetSession() *Session { + if g == nil { return nil } - return o.Session + return g.Session } type GetSessionsMediaContainer struct { @@ -809,18 +809,18 @@ type GetSessionsMediaContainer struct { Metadata []GetSessionsMetadata `json:"Metadata,omitempty"` } -func (o *GetSessionsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetSessionsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetSessionsMediaContainer) GetMetadata() []GetSessionsMetadata { - if o == nil { +func (g *GetSessionsMediaContainer) GetMetadata() []GetSessionsMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetSessionsResponseBody - List of Active Plex Sessions @@ -828,11 +828,11 @@ type GetSessionsResponseBody struct { MediaContainer *GetSessionsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetSessionsResponseBody) GetMediaContainer() *GetSessionsMediaContainer { - if o == nil { +func (g *GetSessionsResponseBody) GetMediaContainer() *GetSessionsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetSessionsResponse struct { @@ -846,30 +846,30 @@ type GetSessionsResponse struct { Object *GetSessionsResponseBody } -func (o *GetSessionsResponse) GetContentType() string { - if o == nil { +func (g *GetSessionsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSessionsResponse) GetStatusCode() int { - if o == nil { +func (g *GetSessionsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSessionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSessionsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSessionsResponse) GetObject() *GetSessionsResponseBody { - if o == nil { +func (g *GetSessionsResponse) GetObject() *GetSessionsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getsourceconnectioninformation.go b/models/operations/getsourceconnectioninformation.go index 2e7a3ae..34856e1 100644 --- a/models/operations/getsourceconnectioninformation.go +++ b/models/operations/getsourceconnectioninformation.go @@ -11,11 +11,11 @@ type GetSourceConnectionInformationRequest struct { Source string `queryParam:"style=form,explode=true,name=source"` } -func (o *GetSourceConnectionInformationRequest) GetSource() string { - if o == nil { +func (g *GetSourceConnectionInformationRequest) GetSource() string { + if g == nil { return "" } - return o.Source + return g.Source } type GetSourceConnectionInformationResponse struct { @@ -27,23 +27,23 @@ type GetSourceConnectionInformationResponse struct { RawResponse *http.Response } -func (o *GetSourceConnectionInformationResponse) GetContentType() string { - if o == nil { +func (g *GetSourceConnectionInformationResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSourceConnectionInformationResponse) GetStatusCode() int { - if o == nil { +func (g *GetSourceConnectionInformationResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSourceConnectionInformationResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSourceConnectionInformationResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } diff --git a/models/operations/getstatistics.go b/models/operations/getstatistics.go index 0c4b930..5270c4b 100644 --- a/models/operations/getstatistics.go +++ b/models/operations/getstatistics.go @@ -13,11 +13,11 @@ type GetStatisticsRequest struct { Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"` } -func (o *GetStatisticsRequest) GetTimespan() *int64 { - if o == nil { +func (g *GetStatisticsRequest) GetTimespan() *int64 { + if g == nil { return nil } - return o.Timespan + return g.Timespan } type GetStatisticsDevice struct { @@ -28,39 +28,39 @@ type GetStatisticsDevice struct { CreatedAt *int `json:"createdAt,omitempty"` } -func (o *GetStatisticsDevice) GetID() *int { - if o == nil { +func (g *GetStatisticsDevice) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetStatisticsDevice) GetName() *string { - if o == nil { +func (g *GetStatisticsDevice) GetName() *string { + if g == nil { return nil } - return o.Name + return g.Name } -func (o *GetStatisticsDevice) GetPlatform() *string { - if o == nil { +func (g *GetStatisticsDevice) GetPlatform() *string { + if g == nil { return nil } - return o.Platform + return g.Platform } -func (o *GetStatisticsDevice) GetClientIdentifier() *string { - if o == nil { +func (g *GetStatisticsDevice) GetClientIdentifier() *string { + if g == nil { return nil } - return o.ClientIdentifier + return g.ClientIdentifier } -func (o *GetStatisticsDevice) GetCreatedAt() *int { - if o == nil { +func (g *GetStatisticsDevice) GetCreatedAt() *int { + if g == nil { return nil } - return o.CreatedAt + return g.CreatedAt } type Account struct { @@ -74,60 +74,60 @@ type Account struct { Thumb *string `json:"thumb,omitempty"` } -func (o *Account) GetID() *int { - if o == nil { +func (a *Account) GetID() *int { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *Account) GetKey() *string { - if o == nil { +func (a *Account) GetKey() *string { + if a == nil { return nil } - return o.Key + return a.Key } -func (o *Account) GetName() *string { - if o == nil { +func (a *Account) GetName() *string { + if a == nil { return nil } - return o.Name + return a.Name } -func (o *Account) GetDefaultAudioLanguage() *string { - if o == nil { +func (a *Account) GetDefaultAudioLanguage() *string { + if a == nil { return nil } - return o.DefaultAudioLanguage + return a.DefaultAudioLanguage } -func (o *Account) GetAutoSelectAudio() *bool { - if o == nil { +func (a *Account) GetAutoSelectAudio() *bool { + if a == nil { return nil } - return o.AutoSelectAudio + return a.AutoSelectAudio } -func (o *Account) GetDefaultSubtitleLanguage() *string { - if o == nil { +func (a *Account) GetDefaultSubtitleLanguage() *string { + if a == nil { return nil } - return o.DefaultSubtitleLanguage + return a.DefaultSubtitleLanguage } -func (o *Account) GetSubtitleMode() *int { - if o == nil { +func (a *Account) GetSubtitleMode() *int { + if a == nil { return nil } - return o.SubtitleMode + return a.SubtitleMode } -func (o *Account) GetThumb() *string { - if o == nil { +func (a *Account) GetThumb() *string { + if a == nil { return nil } - return o.Thumb + return a.Thumb } type StatisticsMedia struct { @@ -140,53 +140,53 @@ type StatisticsMedia struct { Duration *int `json:"duration,omitempty"` } -func (o *StatisticsMedia) GetAccountID() *int { - if o == nil { +func (s *StatisticsMedia) GetAccountID() *int { + if s == nil { return nil } - return o.AccountID + return s.AccountID } -func (o *StatisticsMedia) GetDeviceID() *int { - if o == nil { +func (s *StatisticsMedia) GetDeviceID() *int { + if s == nil { return nil } - return o.DeviceID + return s.DeviceID } -func (o *StatisticsMedia) GetTimespan() *int { - if o == nil { +func (s *StatisticsMedia) GetTimespan() *int { + if s == nil { return nil } - return o.Timespan + return s.Timespan } -func (o *StatisticsMedia) GetAt() *int { - if o == nil { +func (s *StatisticsMedia) GetAt() *int { + if s == nil { return nil } - return o.At + return s.At } -func (o *StatisticsMedia) GetMetadataType() *int { - if o == nil { +func (s *StatisticsMedia) GetMetadataType() *int { + if s == nil { return nil } - return o.MetadataType + return s.MetadataType } -func (o *StatisticsMedia) GetCount() *int { - if o == nil { +func (s *StatisticsMedia) GetCount() *int { + if s == nil { return nil } - return o.Count + return s.Count } -func (o *StatisticsMedia) GetDuration() *int { - if o == nil { +func (s *StatisticsMedia) GetDuration() *int { + if s == nil { return nil } - return o.Duration + return s.Duration } type GetStatisticsMediaContainer struct { @@ -196,32 +196,32 @@ type GetStatisticsMediaContainer struct { StatisticsMedia []StatisticsMedia `json:"StatisticsMedia,omitempty"` } -func (o *GetStatisticsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetStatisticsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetStatisticsMediaContainer) GetDevice() []GetStatisticsDevice { - if o == nil { +func (g *GetStatisticsMediaContainer) GetDevice() []GetStatisticsDevice { + if g == nil { return nil } - return o.Device + return g.Device } -func (o *GetStatisticsMediaContainer) GetAccount() []Account { - if o == nil { +func (g *GetStatisticsMediaContainer) GetAccount() []Account { + if g == nil { return nil } - return o.Account + return g.Account } -func (o *GetStatisticsMediaContainer) GetStatisticsMedia() []StatisticsMedia { - if o == nil { +func (g *GetStatisticsMediaContainer) GetStatisticsMedia() []StatisticsMedia { + if g == nil { return nil } - return o.StatisticsMedia + return g.StatisticsMedia } // GetStatisticsResponseBody - Media Statistics @@ -229,11 +229,11 @@ type GetStatisticsResponseBody struct { MediaContainer *GetStatisticsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetStatisticsResponseBody) GetMediaContainer() *GetStatisticsMediaContainer { - if o == nil { +func (g *GetStatisticsResponseBody) GetMediaContainer() *GetStatisticsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetStatisticsResponse struct { @@ -247,30 +247,30 @@ type GetStatisticsResponse struct { Object *GetStatisticsResponseBody } -func (o *GetStatisticsResponse) GetContentType() string { - if o == nil { +func (g *GetStatisticsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetStatisticsResponse) GetStatusCode() int { - if o == nil { +func (g *GetStatisticsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetStatisticsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetStatisticsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetStatisticsResponse) GetObject() *GetStatisticsResponseBody { - if o == nil { +func (g *GetStatisticsResponse) GetObject() *GetStatisticsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getthumbimage.go b/models/operations/getthumbimage.go index 5eef232..a08ab3f 100644 --- a/models/operations/getthumbimage.go +++ b/models/operations/getthumbimage.go @@ -18,46 +18,46 @@ type GetThumbImageRequest struct { XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` } -func (o *GetThumbImageRequest) GetRatingKey() int64 { - if o == nil { +func (g *GetThumbImageRequest) GetRatingKey() int64 { + if g == nil { return 0 } - return o.RatingKey + return g.RatingKey } -func (o *GetThumbImageRequest) GetWidth() int64 { - if o == nil { +func (g *GetThumbImageRequest) GetWidth() int64 { + if g == nil { return 0 } - return o.Width + return g.Width } -func (o *GetThumbImageRequest) GetHeight() int64 { - if o == nil { +func (g *GetThumbImageRequest) GetHeight() int64 { + if g == nil { return 0 } - return o.Height + return g.Height } -func (o *GetThumbImageRequest) GetMinSize() int64 { - if o == nil { +func (g *GetThumbImageRequest) GetMinSize() int64 { + if g == nil { return 0 } - return o.MinSize + return g.MinSize } -func (o *GetThumbImageRequest) GetUpscale() int64 { - if o == nil { +func (g *GetThumbImageRequest) GetUpscale() int64 { + if g == nil { return 0 } - return o.Upscale + return g.Upscale } -func (o *GetThumbImageRequest) GetXPlexToken() string { - if o == nil { +func (g *GetThumbImageRequest) GetXPlexToken() string { + if g == nil { return "" } - return o.XPlexToken + return g.XPlexToken } type GetThumbImageResponse struct { @@ -73,37 +73,37 @@ type GetThumbImageResponse struct { Headers map[string][]string } -func (o *GetThumbImageResponse) GetContentType() string { - if o == nil { +func (g *GetThumbImageResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetThumbImageResponse) GetStatusCode() int { - if o == nil { +func (g *GetThumbImageResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetThumbImageResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetThumbImageResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetThumbImageResponse) GetResponseStream() io.ReadCloser { - if o == nil { +func (g *GetThumbImageResponse) GetResponseStream() io.ReadCloser { + if g == nil { return nil } - return o.ResponseStream + return g.ResponseStream } -func (o *GetThumbImageResponse) GetHeaders() map[string][]string { - if o == nil { +func (g *GetThumbImageResponse) GetHeaders() map[string][]string { + if g == nil { return map[string][]string{} } - return o.Headers + return g.Headers } diff --git a/models/operations/gettimeline.go b/models/operations/gettimeline.go index a19c3e1..c9116f7 100644 --- a/models/operations/gettimeline.go +++ b/models/operations/gettimeline.go @@ -42,74 +42,74 @@ type GetTimelineRequest struct { Row float64 `queryParam:"style=form,explode=true,name=row"` } -func (o *GetTimelineRequest) GetRatingKey() float64 { - if o == nil { +func (g *GetTimelineRequest) GetRatingKey() float64 { + if g == nil { return 0.0 } - return o.RatingKey + return g.RatingKey } -func (o *GetTimelineRequest) GetKey() string { - if o == nil { +func (g *GetTimelineRequest) GetKey() string { + if g == nil { return "" } - return o.Key + return g.Key } -func (o *GetTimelineRequest) GetState() State { - if o == nil { +func (g *GetTimelineRequest) GetState() State { + if g == nil { return State("") } - return o.State + return g.State } -func (o *GetTimelineRequest) GetHasMDE() float64 { - if o == nil { +func (g *GetTimelineRequest) GetHasMDE() float64 { + if g == nil { return 0.0 } - return o.HasMDE + return g.HasMDE } -func (o *GetTimelineRequest) GetTime() float64 { - if o == nil { +func (g *GetTimelineRequest) GetTime() float64 { + if g == nil { return 0.0 } - return o.Time + return g.Time } -func (o *GetTimelineRequest) GetDuration() float64 { - if o == nil { +func (g *GetTimelineRequest) GetDuration() float64 { + if g == nil { return 0.0 } - return o.Duration + return g.Duration } -func (o *GetTimelineRequest) GetContext() string { - if o == nil { +func (g *GetTimelineRequest) GetContext() string { + if g == nil { return "" } - return o.Context + return g.Context } -func (o *GetTimelineRequest) GetPlayQueueItemID() float64 { - if o == nil { +func (g *GetTimelineRequest) GetPlayQueueItemID() float64 { + if g == nil { return 0.0 } - return o.PlayQueueItemID + return g.PlayQueueItemID } -func (o *GetTimelineRequest) GetPlayBackTime() float64 { - if o == nil { +func (g *GetTimelineRequest) GetPlayBackTime() float64 { + if g == nil { return 0.0 } - return o.PlayBackTime + return g.PlayBackTime } -func (o *GetTimelineRequest) GetRow() float64 { - if o == nil { +func (g *GetTimelineRequest) GetRow() float64 { + if g == nil { return 0.0 } - return o.Row + return g.Row } type GetTimelineResponse struct { @@ -121,23 +121,23 @@ type GetTimelineResponse struct { RawResponse *http.Response } -func (o *GetTimelineResponse) GetContentType() string { - if o == nil { +func (g *GetTimelineResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTimelineResponse) GetStatusCode() int { - if o == nil { +func (g *GetTimelineResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTimelineResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTimelineResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } diff --git a/models/operations/gettokenbypinid.go b/models/operations/gettokenbypinid.go index a68c404..0529a29 100644 --- a/models/operations/gettokenbypinid.go +++ b/models/operations/gettokenbypinid.go @@ -27,46 +27,46 @@ type GetTokenByPinIDRequest struct { Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"` } -func (o *GetTokenByPinIDRequest) GetPinID() int64 { - if o == nil { +func (g *GetTokenByPinIDRequest) GetPinID() int64 { + if g == nil { return 0 } - return o.PinID + return g.PinID } -func (o *GetTokenByPinIDRequest) GetClientID() string { - if o == nil { +func (g *GetTokenByPinIDRequest) GetClientID() string { + if g == nil { return "" } - return o.ClientID + return g.ClientID } -func (o *GetTokenByPinIDRequest) GetClientName() *string { - if o == nil { +func (g *GetTokenByPinIDRequest) GetClientName() *string { + if g == nil { return nil } - return o.ClientName + return g.ClientName } -func (o *GetTokenByPinIDRequest) GetDeviceNickname() *string { - if o == nil { +func (g *GetTokenByPinIDRequest) GetDeviceNickname() *string { + if g == nil { return nil } - return o.DeviceNickname + return g.DeviceNickname } -func (o *GetTokenByPinIDRequest) GetClientVersion() *string { - if o == nil { +func (g *GetTokenByPinIDRequest) GetClientVersion() *string { + if g == nil { return nil } - return o.ClientVersion + return g.ClientVersion } -func (o *GetTokenByPinIDRequest) GetPlatform() *string { - if o == nil { +func (g *GetTokenByPinIDRequest) GetPlatform() *string { + if g == nil { return nil } - return o.Platform + return g.Platform } // GetTokenByPinIDGeoData - Geo location data @@ -106,81 +106,81 @@ func (g *GetTokenByPinIDGeoData) UnmarshalJSON(data []byte) error { return nil } -func (o *GetTokenByPinIDGeoData) GetCode() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetCode() string { + if g == nil { return "" } - return o.Code + return g.Code } -func (o *GetTokenByPinIDGeoData) GetContinentCode() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetContinentCode() string { + if g == nil { return "" } - return o.ContinentCode + return g.ContinentCode } -func (o *GetTokenByPinIDGeoData) GetCountry() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetCountry() string { + if g == nil { return "" } - return o.Country + return g.Country } -func (o *GetTokenByPinIDGeoData) GetCity() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetCity() string { + if g == nil { return "" } - return o.City + return g.City } -func (o *GetTokenByPinIDGeoData) GetEuropeanUnionMember() *bool { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetEuropeanUnionMember() *bool { + if g == nil { return nil } - return o.EuropeanUnionMember + return g.EuropeanUnionMember } -func (o *GetTokenByPinIDGeoData) GetTimeZone() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetTimeZone() string { + if g == nil { return "" } - return o.TimeZone + return g.TimeZone } -func (o *GetTokenByPinIDGeoData) GetPostalCode() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetPostalCode() string { + if g == nil { return "" } - return o.PostalCode + return g.PostalCode } -func (o *GetTokenByPinIDGeoData) GetInPrivacyRestrictedCountry() *bool { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetInPrivacyRestrictedCountry() *bool { + if g == nil { return nil } - return o.InPrivacyRestrictedCountry + return g.InPrivacyRestrictedCountry } -func (o *GetTokenByPinIDGeoData) GetInPrivacyRestrictedRegion() *bool { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetInPrivacyRestrictedRegion() *bool { + if g == nil { return nil } - return o.InPrivacyRestrictedRegion + return g.InPrivacyRestrictedRegion } -func (o *GetTokenByPinIDGeoData) GetSubdivisions() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetSubdivisions() string { + if g == nil { return "" } - return o.Subdivisions + return g.Subdivisions } -func (o *GetTokenByPinIDGeoData) GetCoordinates() string { - if o == nil { +func (g *GetTokenByPinIDGeoData) GetCoordinates() string { + if g == nil { return "" } - return o.Coordinates + return g.Coordinates } // 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 } -func (o *GetTokenByPinIDAuthPinContainer) GetID() int64 { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetTokenByPinIDAuthPinContainer) GetCode() string { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetCode() string { + if g == nil { return "" } - return o.Code + return g.Code } -func (o *GetTokenByPinIDAuthPinContainer) GetProduct() string { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetProduct() string { + if g == nil { return "" } - return o.Product + return g.Product } -func (o *GetTokenByPinIDAuthPinContainer) GetTrusted() *bool { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetTrusted() *bool { + if g == nil { return nil } - return o.Trusted + return g.Trusted } -func (o *GetTokenByPinIDAuthPinContainer) GetQr() string { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetQr() string { + if g == nil { return "" } - return o.Qr + return g.Qr } -func (o *GetTokenByPinIDAuthPinContainer) GetClientIdentifier() string { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetClientIdentifier() string { + if g == nil { return "" } - return o.ClientIdentifier + return g.ClientIdentifier } -func (o *GetTokenByPinIDAuthPinContainer) GetLocation() GetTokenByPinIDGeoData { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetLocation() GetTokenByPinIDGeoData { + if g == nil { return GetTokenByPinIDGeoData{} } - return o.Location + return g.Location } -func (o *GetTokenByPinIDAuthPinContainer) GetExpiresIn() *int64 { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetExpiresIn() *int64 { + if g == nil { return nil } - return o.ExpiresIn + return g.ExpiresIn } -func (o *GetTokenByPinIDAuthPinContainer) GetCreatedAt() time.Time { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetCreatedAt() time.Time { + if g == nil { return time.Time{} } - return o.CreatedAt + return g.CreatedAt } -func (o *GetTokenByPinIDAuthPinContainer) GetExpiresAt() time.Time { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetExpiresAt() time.Time { + if g == nil { return time.Time{} } - return o.ExpiresAt + return g.ExpiresAt } -func (o *GetTokenByPinIDAuthPinContainer) GetAuthToken() *string { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetAuthToken() *string { + if g == nil { return nil } - return o.AuthToken + return g.AuthToken } -func (o *GetTokenByPinIDAuthPinContainer) GetNewRegistration() any { - if o == nil { +func (g *GetTokenByPinIDAuthPinContainer) GetNewRegistration() any { + if g == nil { return nil } - return o.NewRegistration + return g.NewRegistration } type GetTokenByPinIDResponse struct { @@ -308,30 +308,30 @@ type GetTokenByPinIDResponse struct { AuthPinContainer *GetTokenByPinIDAuthPinContainer } -func (o *GetTokenByPinIDResponse) GetContentType() string { - if o == nil { +func (g *GetTokenByPinIDResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTokenByPinIDResponse) GetStatusCode() int { - if o == nil { +func (g *GetTokenByPinIDResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTokenByPinIDResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTokenByPinIDResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTokenByPinIDResponse) GetAuthPinContainer() *GetTokenByPinIDAuthPinContainer { - if o == nil { +func (g *GetTokenByPinIDResponse) GetAuthPinContainer() *GetTokenByPinIDAuthPinContainer { + if g == nil { return nil } - return o.AuthPinContainer + return g.AuthPinContainer } diff --git a/models/operations/gettokendetails.go b/models/operations/gettokendetails.go index 5448c02..3a68faf 100644 --- a/models/operations/gettokendetails.go +++ b/models/operations/gettokendetails.go @@ -179,66 +179,66 @@ func (u UserProfile) MarshalJSON() ([]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 nil } -func (o *UserProfile) GetAutoSelectAudio() *bool { - if o == nil { +func (u *UserProfile) GetAutoSelectAudio() *bool { + if u == nil { return nil } - return o.AutoSelectAudio + return u.AutoSelectAudio } -func (o *UserProfile) GetDefaultAudioLanguage() *string { - if o == nil { +func (u *UserProfile) GetDefaultAudioLanguage() *string { + if u == nil { return nil } - return o.DefaultAudioLanguage + return u.DefaultAudioLanguage } -func (o *UserProfile) GetDefaultSubtitleLanguage() *string { - if o == nil { +func (u *UserProfile) GetDefaultSubtitleLanguage() *string { + if u == nil { return nil } - return o.DefaultSubtitleLanguage + return u.DefaultSubtitleLanguage } -func (o *UserProfile) GetAutoSelectSubtitle() *AutoSelectSubtitle { - if o == nil { +func (u *UserProfile) GetAutoSelectSubtitle() *AutoSelectSubtitle { + if u == nil { return nil } - return o.AutoSelectSubtitle + return u.AutoSelectSubtitle } -func (o *UserProfile) GetDefaultSubtitleAccessibility() *DefaultSubtitleAccessibility { - if o == nil { +func (u *UserProfile) GetDefaultSubtitleAccessibility() *DefaultSubtitleAccessibility { + if u == nil { return nil } - return o.DefaultSubtitleAccessibility + return u.DefaultSubtitleAccessibility } -func (o *UserProfile) GetDefaultSubtitleForced() *DefaultSubtitleForced { - if o == nil { +func (u *UserProfile) GetDefaultSubtitleForced() *DefaultSubtitleForced { + if u == nil { return nil } - return o.DefaultSubtitleForced + return u.DefaultSubtitleForced } -func (o *UserProfile) GetWatchedIndicator() *WatchedIndicator { - if o == nil { +func (u *UserProfile) GetWatchedIndicator() *WatchedIndicator { + if u == nil { return nil } - return o.WatchedIndicator + return u.WatchedIndicator } -func (o *UserProfile) GetMediaReviewsVisibility() *MediaReviewsVisibility { - if o == nil { +func (u *UserProfile) GetMediaReviewsVisibility() *MediaReviewsVisibility { + if u == nil { return nil } - return o.MediaReviewsVisibility + return u.MediaReviewsVisibility } type GetTokenDetailsStatus string @@ -260,39 +260,39 @@ type Services struct { Status GetTokenDetailsStatus `json:"status"` } -func (o *Services) GetIdentifier() string { - if o == nil { +func (s *Services) GetIdentifier() string { + if s == nil { return "" } - return o.Identifier + return s.Identifier } -func (o *Services) GetEndpoint() string { - if o == nil { +func (s *Services) GetEndpoint() string { + if s == nil { return "" } - return o.Endpoint + return s.Endpoint } -func (o *Services) GetToken() *string { - if o == nil { +func (s *Services) GetToken() *string { + if s == nil { return nil } - return o.Token + return s.Token } -func (o *Services) GetSecret() *string { - if o == nil { +func (s *Services) GetSecret() *string { + if s == nil { return nil } - return o.Secret + return s.Secret } -func (o *Services) GetStatus() GetTokenDetailsStatus { - if o == nil { +func (s *Services) GetStatus() GetTokenDetailsStatus { + if s == nil { return GetTokenDetailsStatus("") } - return o.Status + return s.Status } // GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive @@ -323,46 +323,46 @@ type Subscription struct { Plan *string `json:"plan,omitempty"` } -func (o *Subscription) GetFeatures() []string { - if o == nil { +func (s *Subscription) GetFeatures() []string { + if s == nil { return nil } - return o.Features + return s.Features } -func (o *Subscription) GetActive() *bool { - if o == nil { +func (s *Subscription) GetActive() *bool { + if s == nil { return nil } - return o.Active + return s.Active } -func (o *Subscription) GetSubscribedAt() *string { - if o == nil { +func (s *Subscription) GetSubscribedAt() *string { + if s == nil { return nil } - return o.SubscribedAt + return s.SubscribedAt } -func (o *Subscription) GetStatus() *GetTokenDetailsAuthenticationStatus { - if o == nil { +func (s *Subscription) GetStatus() *GetTokenDetailsAuthenticationStatus { + if s == nil { return nil } - return o.Status + return s.Status } -func (o *Subscription) GetPaymentService() *string { - if o == nil { +func (s *Subscription) GetPaymentService() *string { + if s == nil { return nil } - return o.PaymentService + return s.PaymentService } -func (o *Subscription) GetPlan() *string { - if o == nil { +func (s *Subscription) GetPlan() *string { + if s == nil { return nil } - return o.Plan + return s.Plan } // GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive @@ -392,46 +392,46 @@ type GetTokenDetailsSubscription struct { Plan *string `json:"plan,omitempty"` } -func (o *GetTokenDetailsSubscription) GetFeatures() []string { - if o == nil { +func (g *GetTokenDetailsSubscription) GetFeatures() []string { + if g == nil { return nil } - return o.Features + return g.Features } -func (o *GetTokenDetailsSubscription) GetActive() *bool { - if o == nil { +func (g *GetTokenDetailsSubscription) GetActive() *bool { + if g == nil { return nil } - return o.Active + return g.Active } -func (o *GetTokenDetailsSubscription) GetSubscribedAt() *string { - if o == nil { +func (g *GetTokenDetailsSubscription) GetSubscribedAt() *string { + if g == nil { return nil } - return o.SubscribedAt + return g.SubscribedAt } -func (o *GetTokenDetailsSubscription) GetStatus() *GetTokenDetailsAuthenticationResponseStatus { - if o == nil { +func (g *GetTokenDetailsSubscription) GetStatus() *GetTokenDetailsAuthenticationResponseStatus { + if g == nil { return nil } - return o.Status + return g.Status } -func (o *GetTokenDetailsSubscription) GetPaymentService() *string { - if o == nil { +func (g *GetTokenDetailsSubscription) GetPaymentService() *string { + if g == nil { return nil } - return o.PaymentService + return g.PaymentService } -func (o *GetTokenDetailsSubscription) GetPlan() *string { - if o == nil { +func (g *GetTokenDetailsSubscription) GetPlan() *string { + if g == nil { return nil } - return o.Plan + return g.Plan } // GetTokenDetailsUserPlexAccount - Logged in user details @@ -521,297 +521,297 @@ func (g GetTokenDetailsUserPlexAccount) MarshalJSON() ([]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 nil } -func (o *GetTokenDetailsUserPlexAccount) GetAdsConsent() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetAdsConsent() *bool { + if g == nil { return nil } - return o.AdsConsent + return g.AdsConsent } -func (o *GetTokenDetailsUserPlexAccount) GetAdsConsentReminderAt() *int64 { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetAdsConsentReminderAt() *int64 { + if g == nil { return nil } - return o.AdsConsentReminderAt + return g.AdsConsentReminderAt } -func (o *GetTokenDetailsUserPlexAccount) GetAdsConsentSetAt() *int64 { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetAdsConsentSetAt() *int64 { + if g == nil { return nil } - return o.AdsConsentSetAt + return g.AdsConsentSetAt } -func (o *GetTokenDetailsUserPlexAccount) GetAnonymous() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetAnonymous() *bool { + if g == nil { return nil } - return o.Anonymous + return g.Anonymous } -func (o *GetTokenDetailsUserPlexAccount) GetAuthToken() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetAuthToken() string { + if g == nil { return "" } - return o.AuthToken + return g.AuthToken } -func (o *GetTokenDetailsUserPlexAccount) GetBackupCodesCreated() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetBackupCodesCreated() *bool { + if g == nil { return nil } - return o.BackupCodesCreated + return g.BackupCodesCreated } -func (o *GetTokenDetailsUserPlexAccount) GetConfirmed() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetConfirmed() *bool { + if g == nil { return nil } - return o.Confirmed + return g.Confirmed } -func (o *GetTokenDetailsUserPlexAccount) GetCountry() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetCountry() string { + if g == nil { return "" } - return o.Country + return g.Country } -func (o *GetTokenDetailsUserPlexAccount) GetEmail() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetEmail() string { + if g == nil { return "" } - return o.Email + return g.Email } -func (o *GetTokenDetailsUserPlexAccount) GetEmailOnlyAuth() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetEmailOnlyAuth() *bool { + if g == nil { return nil } - return o.EmailOnlyAuth + return g.EmailOnlyAuth } -func (o *GetTokenDetailsUserPlexAccount) GetExperimentalFeatures() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetExperimentalFeatures() *bool { + if g == nil { return nil } - return o.ExperimentalFeatures + return g.ExperimentalFeatures } -func (o *GetTokenDetailsUserPlexAccount) GetFriendlyName() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetFriendlyName() string { + if g == nil { return "" } - return o.FriendlyName + return g.FriendlyName } -func (o *GetTokenDetailsUserPlexAccount) GetEntitlements() []string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetEntitlements() []string { + if g == nil { return []string{} } - return o.Entitlements + return g.Entitlements } -func (o *GetTokenDetailsUserPlexAccount) GetGuest() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetGuest() *bool { + if g == nil { return nil } - return o.Guest + return g.Guest } -func (o *GetTokenDetailsUserPlexAccount) GetHasPassword() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetHasPassword() *bool { + if g == nil { return nil } - return o.HasPassword + return g.HasPassword } -func (o *GetTokenDetailsUserPlexAccount) GetHome() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetHome() *bool { + if g == nil { return nil } - return o.Home + return g.Home } -func (o *GetTokenDetailsUserPlexAccount) GetHomeAdmin() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetHomeAdmin() *bool { + if g == nil { return nil } - return o.HomeAdmin + return g.HomeAdmin } -func (o *GetTokenDetailsUserPlexAccount) GetHomeSize() int { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetHomeSize() int { + if g == nil { return 0 } - return o.HomeSize + return g.HomeSize } -func (o *GetTokenDetailsUserPlexAccount) GetID() int { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetID() int { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetTokenDetailsUserPlexAccount) GetJoinedAt() int64 { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetJoinedAt() int64 { + if g == nil { return 0 } - return o.JoinedAt + return g.JoinedAt } -func (o *GetTokenDetailsUserPlexAccount) GetLocale() *string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetLocale() *string { + if g == nil { return nil } - return o.Locale + return g.Locale } -func (o *GetTokenDetailsUserPlexAccount) GetMailingListActive() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetMailingListActive() *bool { + if g == nil { return nil } - return o.MailingListActive + return g.MailingListActive } -func (o *GetTokenDetailsUserPlexAccount) GetMailingListStatus() MailingListStatus { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetMailingListStatus() MailingListStatus { + if g == nil { return MailingListStatus("") } - return o.MailingListStatus + return g.MailingListStatus } -func (o *GetTokenDetailsUserPlexAccount) GetMaxHomeSize() int { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetMaxHomeSize() int { + if g == nil { return 0 } - return o.MaxHomeSize + return g.MaxHomeSize } -func (o *GetTokenDetailsUserPlexAccount) GetPin() *string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetPin() *string { + if g == nil { return nil } - return o.Pin + return g.Pin } -func (o *GetTokenDetailsUserPlexAccount) GetProfile() UserProfile { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetProfile() UserProfile { + if g == nil { return UserProfile{} } - return o.Profile + return g.Profile } -func (o *GetTokenDetailsUserPlexAccount) GetProtected() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetProtected() *bool { + if g == nil { return nil } - return o.Protected + return g.Protected } -func (o *GetTokenDetailsUserPlexAccount) GetRememberExpiresAt() int64 { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetRememberExpiresAt() int64 { + if g == nil { return 0 } - return o.RememberExpiresAt + return g.RememberExpiresAt } -func (o *GetTokenDetailsUserPlexAccount) GetRestricted() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetRestricted() *bool { + if g == nil { return nil } - return o.Restricted + return g.Restricted } -func (o *GetTokenDetailsUserPlexAccount) GetRoles() []string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetRoles() []string { + if g == nil { return nil } - return o.Roles + return g.Roles } -func (o *GetTokenDetailsUserPlexAccount) GetScrobbleTypes() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetScrobbleTypes() string { + if g == nil { return "" } - return o.ScrobbleTypes + return g.ScrobbleTypes } -func (o *GetTokenDetailsUserPlexAccount) GetServices() []Services { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetServices() []Services { + if g == nil { return []Services{} } - return o.Services + return g.Services } -func (o *GetTokenDetailsUserPlexAccount) GetSubscription() Subscription { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetSubscription() Subscription { + if g == nil { return Subscription{} } - return o.Subscription + return g.Subscription } -func (o *GetTokenDetailsUserPlexAccount) GetSubscriptionDescription() *string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetSubscriptionDescription() *string { + if g == nil { return nil } - return o.SubscriptionDescription + return g.SubscriptionDescription } -func (o *GetTokenDetailsUserPlexAccount) GetSubscriptions() []GetTokenDetailsSubscription { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetSubscriptions() []GetTokenDetailsSubscription { + if g == nil { return nil } - return o.Subscriptions + return g.Subscriptions } -func (o *GetTokenDetailsUserPlexAccount) GetThumb() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetThumb() string { + if g == nil { return "" } - return o.Thumb + return g.Thumb } -func (o *GetTokenDetailsUserPlexAccount) GetTitle() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetTitle() string { + if g == nil { return "" } - return o.Title + return g.Title } -func (o *GetTokenDetailsUserPlexAccount) GetTwoFactorEnabled() *bool { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetTwoFactorEnabled() *bool { + if g == nil { return nil } - return o.TwoFactorEnabled + return g.TwoFactorEnabled } -func (o *GetTokenDetailsUserPlexAccount) GetUsername() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetUsername() string { + if g == nil { return "" } - return o.Username + return g.Username } -func (o *GetTokenDetailsUserPlexAccount) GetUUID() string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetUUID() string { + if g == nil { return "" } - return o.UUID + return g.UUID } -func (o *GetTokenDetailsUserPlexAccount) GetAttributionPartner() *string { - if o == nil { +func (g *GetTokenDetailsUserPlexAccount) GetAttributionPartner() *string { + if g == nil { return nil } - return o.AttributionPartner + return g.AttributionPartner } type GetTokenDetailsResponse struct { @@ -825,30 +825,30 @@ type GetTokenDetailsResponse struct { UserPlexAccount *GetTokenDetailsUserPlexAccount } -func (o *GetTokenDetailsResponse) GetContentType() string { - if o == nil { +func (g *GetTokenDetailsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTokenDetailsResponse) GetStatusCode() int { - if o == nil { +func (g *GetTokenDetailsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTokenDetailsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTokenDetailsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTokenDetailsResponse) GetUserPlexAccount() *GetTokenDetailsUserPlexAccount { - if o == nil { +func (g *GetTokenDetailsResponse) GetUserPlexAccount() *GetTokenDetailsUserPlexAccount { + if g == nil { return nil } - return o.UserPlexAccount + return g.UserPlexAccount } diff --git a/models/operations/gettopwatchedcontent.go b/models/operations/gettopwatchedcontent.go index fa864df..4e3011b 100644 --- a/models/operations/gettopwatchedcontent.go +++ b/models/operations/gettopwatchedcontent.go @@ -86,18 +86,18 @@ func (g *GetTopWatchedContentRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetTopWatchedContentRequest) GetType() GetTopWatchedContentQueryParamType { - if o == nil { +func (g *GetTopWatchedContentRequest) GetType() GetTopWatchedContentQueryParamType { + if g == nil { return GetTopWatchedContentQueryParamType(0) } - return o.Type + return g.Type } -func (o *GetTopWatchedContentRequest) GetIncludeGuids() *GetTopWatchedContentQueryParamIncludeGuids { - if o == nil { +func (g *GetTopWatchedContentRequest) GetIncludeGuids() *GetTopWatchedContentQueryParamIncludeGuids { + if g == nil { return nil } - return o.IncludeGuids + return g.IncludeGuids } type GetTopWatchedContentGenre struct { @@ -106,25 +106,25 @@ type GetTopWatchedContentGenre struct { Tag *string `json:"tag,omitempty"` } -func (o *GetTopWatchedContentGenre) GetID() *int { - if o == nil { +func (g *GetTopWatchedContentGenre) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetTopWatchedContentGenre) GetFilter() *string { - if o == nil { +func (g *GetTopWatchedContentGenre) GetFilter() *string { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetTopWatchedContentGenre) GetTag() *string { - if o == nil { +func (g *GetTopWatchedContentGenre) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetTopWatchedContentCountry struct { @@ -133,36 +133,36 @@ type GetTopWatchedContentCountry struct { Tag *string `json:"tag,omitempty"` } -func (o *GetTopWatchedContentCountry) GetID() *int { - if o == nil { +func (g *GetTopWatchedContentCountry) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetTopWatchedContentCountry) GetFilter() *string { - if o == nil { +func (g *GetTopWatchedContentCountry) GetFilter() *string { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetTopWatchedContentCountry) GetTag() *string { - if o == nil { +func (g *GetTopWatchedContentCountry) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } type GetTopWatchedContentGuids struct { ID *string `json:"id,omitempty"` } -func (o *GetTopWatchedContentGuids) GetID() *string { - if o == nil { +func (g *GetTopWatchedContentGuids) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } type GetTopWatchedContentRole struct { @@ -174,57 +174,57 @@ type GetTopWatchedContentRole struct { Thumb *string `json:"thumb,omitempty"` } -func (o *GetTopWatchedContentRole) GetID() *int { - if o == nil { +func (g *GetTopWatchedContentRole) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetTopWatchedContentRole) GetFilter() *string { - if o == nil { +func (g *GetTopWatchedContentRole) GetFilter() *string { + if g == nil { return nil } - return o.Filter + return g.Filter } -func (o *GetTopWatchedContentRole) GetTag() *string { - if o == nil { +func (g *GetTopWatchedContentRole) GetTag() *string { + if g == nil { return nil } - return o.Tag + return g.Tag } -func (o *GetTopWatchedContentRole) GetTagKey() *string { - if o == nil { +func (g *GetTopWatchedContentRole) GetTagKey() *string { + if g == nil { return nil } - return o.TagKey + return g.TagKey } -func (o *GetTopWatchedContentRole) GetRole() *string { - if o == nil { +func (g *GetTopWatchedContentRole) GetRole() *string { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetTopWatchedContentRole) GetThumb() *string { - if o == nil { +func (g *GetTopWatchedContentRole) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } type GetTopWatchedContentUser struct { ID *int `json:"id,omitempty"` } -func (o *GetTopWatchedContentUser) GetID() *int { - if o == nil { +func (g *GetTopWatchedContentUser) GetID() *int { + if g == nil { return nil } - return o.ID + return g.ID } type GetTopWatchedContentMetadata struct { @@ -273,228 +273,228 @@ func (g *GetTopWatchedContentMetadata) UnmarshalJSON(data []byte) error { return nil } -func (o *GetTopWatchedContentMetadata) GetRatingKey() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetRatingKey() *string { + if g == nil { return nil } - return o.RatingKey + return g.RatingKey } -func (o *GetTopWatchedContentMetadata) GetKey() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetKey() *string { + if g == nil { return nil } - return o.Key + return g.Key } -func (o *GetTopWatchedContentMetadata) GetGUID() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetGUID() *string { + if g == nil { return nil } - return o.GUID + return g.GUID } -func (o *GetTopWatchedContentMetadata) GetSlug() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetSlug() *string { + if g == nil { return nil } - return o.Slug + return g.Slug } -func (o *GetTopWatchedContentMetadata) GetStudio() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetStudio() *string { + if g == nil { return nil } - return o.Studio + return g.Studio } -func (o *GetTopWatchedContentMetadata) GetType() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetTopWatchedContentMetadata) GetTitle() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetTitle() *string { + if g == nil { return nil } - return o.Title + return g.Title } -func (o *GetTopWatchedContentMetadata) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetTopWatchedContentMetadata) GetLibrarySectionID() *int { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetLibrarySectionID() *int { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetTopWatchedContentMetadata) GetLibrarySectionKey() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetLibrarySectionKey() *string { + if g == nil { return nil } - return o.LibrarySectionKey + return g.LibrarySectionKey } -func (o *GetTopWatchedContentMetadata) GetContentRating() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetContentRating() *string { + if g == nil { return nil } - return o.ContentRating + return g.ContentRating } -func (o *GetTopWatchedContentMetadata) GetSummary() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetSummary() *string { + if g == nil { return nil } - return o.Summary + return g.Summary } -func (o *GetTopWatchedContentMetadata) GetIndex() *int64 { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetIndex() *int64 { + if g == nil { return nil } - return o.Index + return g.Index } -func (o *GetTopWatchedContentMetadata) GetAudienceRating() *float64 { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetAudienceRating() *float64 { + if g == nil { return nil } - return o.AudienceRating + return g.AudienceRating } -func (o *GetTopWatchedContentMetadata) GetYear() *int { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetYear() *int { + if g == nil { return nil } - return o.Year + return g.Year } -func (o *GetTopWatchedContentMetadata) GetTagline() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetTagline() *string { + if g == nil { return nil } - return o.Tagline + return g.Tagline } -func (o *GetTopWatchedContentMetadata) GetThumb() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetThumb() *string { + if g == nil { return nil } - return o.Thumb + return g.Thumb } -func (o *GetTopWatchedContentMetadata) GetArt() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetArt() *string { + if g == nil { return nil } - return o.Art + return g.Art } -func (o *GetTopWatchedContentMetadata) GetDuration() *int { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetDuration() *int { + if g == nil { return nil } - return o.Duration + return g.Duration } -func (o *GetTopWatchedContentMetadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetOriginallyAvailableAt() *types.Date { + if g == nil { return nil } - return o.OriginallyAvailableAt + return g.OriginallyAvailableAt } -func (o *GetTopWatchedContentMetadata) GetLeafCount() *int64 { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetLeafCount() *int64 { + if g == nil { return nil } - return o.LeafCount + return g.LeafCount } -func (o *GetTopWatchedContentMetadata) GetViewedLeafCount() *int64 { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetViewedLeafCount() *int64 { + if g == nil { return nil } - return o.ViewedLeafCount + return g.ViewedLeafCount } -func (o *GetTopWatchedContentMetadata) GetChildCount() *int64 { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetChildCount() *int64 { + if g == nil { return nil } - return o.ChildCount + return g.ChildCount } -func (o *GetTopWatchedContentMetadata) GetAddedAt() *int { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetAddedAt() *int { + if g == nil { return nil } - return o.AddedAt + return g.AddedAt } -func (o *GetTopWatchedContentMetadata) GetUpdatedAt() *int { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetUpdatedAt() *int { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } -func (o *GetTopWatchedContentMetadata) GetGlobalViewCount() *int64 { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetGlobalViewCount() *int64 { + if g == nil { return nil } - return o.GlobalViewCount + return g.GlobalViewCount } -func (o *GetTopWatchedContentMetadata) GetAudienceRatingImage() *string { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetAudienceRatingImage() *string { + if g == nil { return nil } - return o.AudienceRatingImage + return g.AudienceRatingImage } -func (o *GetTopWatchedContentMetadata) GetGenre() []GetTopWatchedContentGenre { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetGenre() []GetTopWatchedContentGenre { + if g == nil { return nil } - return o.Genre + return g.Genre } -func (o *GetTopWatchedContentMetadata) GetCountry() []GetTopWatchedContentCountry { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetCountry() []GetTopWatchedContentCountry { + if g == nil { return nil } - return o.Country + return g.Country } -func (o *GetTopWatchedContentMetadata) GetGuids() []GetTopWatchedContentGuids { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetGuids() []GetTopWatchedContentGuids { + if g == nil { return nil } - return o.Guids + return g.Guids } -func (o *GetTopWatchedContentMetadata) GetRole() []GetTopWatchedContentRole { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetRole() []GetTopWatchedContentRole { + if g == nil { return nil } - return o.Role + return g.Role } -func (o *GetTopWatchedContentMetadata) GetUser() []GetTopWatchedContentUser { - if o == nil { +func (g *GetTopWatchedContentMetadata) GetUser() []GetTopWatchedContentUser { + if g == nil { return nil } - return o.User + return g.User } type GetTopWatchedContentMediaContainer struct { @@ -511,46 +511,46 @@ type GetTopWatchedContentMediaContainer struct { Metadata []GetTopWatchedContentMetadata `json:"Metadata,omitempty"` } -func (o *GetTopWatchedContentMediaContainer) GetSize() int { - if o == nil { +func (g *GetTopWatchedContentMediaContainer) GetSize() int { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetTopWatchedContentMediaContainer) GetAllowSync() bool { - if o == nil { +func (g *GetTopWatchedContentMediaContainer) GetAllowSync() bool { + if g == nil { return false } - return o.AllowSync + return g.AllowSync } -func (o *GetTopWatchedContentMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetTopWatchedContentMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetTopWatchedContentMediaContainer) GetMediaTagPrefix() string { - if o == nil { +func (g *GetTopWatchedContentMediaContainer) GetMediaTagPrefix() string { + if g == nil { return "" } - return o.MediaTagPrefix + return g.MediaTagPrefix } -func (o *GetTopWatchedContentMediaContainer) GetMediaTagVersion() int64 { - if o == nil { +func (g *GetTopWatchedContentMediaContainer) GetMediaTagVersion() int64 { + if g == nil { return 0 } - return o.MediaTagVersion + return g.MediaTagVersion } -func (o *GetTopWatchedContentMediaContainer) GetMetadata() []GetTopWatchedContentMetadata { - if o == nil { +func (g *GetTopWatchedContentMediaContainer) GetMetadata() []GetTopWatchedContentMetadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } // GetTopWatchedContentResponseBody - The metadata of the library item. @@ -558,11 +558,11 @@ type GetTopWatchedContentResponseBody struct { MediaContainer *GetTopWatchedContentMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetTopWatchedContentResponseBody) GetMediaContainer() *GetTopWatchedContentMediaContainer { - if o == nil { +func (g *GetTopWatchedContentResponseBody) GetMediaContainer() *GetTopWatchedContentMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetTopWatchedContentResponse struct { @@ -576,30 +576,30 @@ type GetTopWatchedContentResponse struct { Object *GetTopWatchedContentResponseBody } -func (o *GetTopWatchedContentResponse) GetContentType() string { - if o == nil { +func (g *GetTopWatchedContentResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTopWatchedContentResponse) GetStatusCode() int { - if o == nil { +func (g *GetTopWatchedContentResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTopWatchedContentResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTopWatchedContentResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTopWatchedContentResponse) GetObject() *GetTopWatchedContentResponseBody { - if o == nil { +func (g *GetTopWatchedContentResponse) GetObject() *GetTopWatchedContentResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/gettranscodesessions.go b/models/operations/gettranscodesessions.go index 8c6477d..bd6c01a 100644 --- a/models/operations/gettranscodesessions.go +++ b/models/operations/gettranscodesessions.go @@ -33,172 +33,172 @@ type TranscodeSession struct { MinOffsetAvailable *float64 `json:"minOffsetAvailable,omitempty"` } -func (o *TranscodeSession) GetKey() *string { - if o == nil { +func (t *TranscodeSession) GetKey() *string { + if t == nil { return nil } - return o.Key + return t.Key } -func (o *TranscodeSession) GetThrottled() *bool { - if o == nil { +func (t *TranscodeSession) GetThrottled() *bool { + if t == nil { return nil } - return o.Throttled + return t.Throttled } -func (o *TranscodeSession) GetComplete() *bool { - if o == nil { +func (t *TranscodeSession) GetComplete() *bool { + if t == nil { return nil } - return o.Complete + return t.Complete } -func (o *TranscodeSession) GetProgress() *float64 { - if o == nil { +func (t *TranscodeSession) GetProgress() *float64 { + if t == nil { return nil } - return o.Progress + return t.Progress } -func (o *TranscodeSession) GetSize() *int { - if o == nil { +func (t *TranscodeSession) GetSize() *int { + if t == nil { return nil } - return o.Size + return t.Size } -func (o *TranscodeSession) GetSpeed() *float64 { - if o == nil { +func (t *TranscodeSession) GetSpeed() *float64 { + if t == nil { return nil } - return o.Speed + return t.Speed } -func (o *TranscodeSession) GetError() *bool { - if o == nil { +func (t *TranscodeSession) GetError() *bool { + if t == nil { return nil } - return o.Error + return t.Error } -func (o *TranscodeSession) GetDuration() *int { - if o == nil { +func (t *TranscodeSession) GetDuration() *int { + if t == nil { return nil } - return o.Duration + return t.Duration } -func (o *TranscodeSession) GetRemaining() *int { - if o == nil { +func (t *TranscodeSession) GetRemaining() *int { + if t == nil { return nil } - return o.Remaining + return t.Remaining } -func (o *TranscodeSession) GetContext() *string { - if o == nil { +func (t *TranscodeSession) GetContext() *string { + if t == nil { return nil } - return o.Context + return t.Context } -func (o *TranscodeSession) GetSourceVideoCodec() *string { - if o == nil { +func (t *TranscodeSession) GetSourceVideoCodec() *string { + if t == nil { return nil } - return o.SourceVideoCodec + return t.SourceVideoCodec } -func (o *TranscodeSession) GetSourceAudioCodec() *string { - if o == nil { +func (t *TranscodeSession) GetSourceAudioCodec() *string { + if t == nil { return nil } - return o.SourceAudioCodec + return t.SourceAudioCodec } -func (o *TranscodeSession) GetVideoDecision() *string { - if o == nil { +func (t *TranscodeSession) GetVideoDecision() *string { + if t == nil { return nil } - return o.VideoDecision + return t.VideoDecision } -func (o *TranscodeSession) GetAudioDecision() *string { - if o == nil { +func (t *TranscodeSession) GetAudioDecision() *string { + if t == nil { return nil } - return o.AudioDecision + return t.AudioDecision } -func (o *TranscodeSession) GetSubtitleDecision() *string { - if o == nil { +func (t *TranscodeSession) GetSubtitleDecision() *string { + if t == nil { return nil } - return o.SubtitleDecision + return t.SubtitleDecision } -func (o *TranscodeSession) GetProtocol() *string { - if o == nil { +func (t *TranscodeSession) GetProtocol() *string { + if t == nil { return nil } - return o.Protocol + return t.Protocol } -func (o *TranscodeSession) GetContainer() *string { - if o == nil { +func (t *TranscodeSession) GetContainer() *string { + if t == nil { return nil } - return o.Container + return t.Container } -func (o *TranscodeSession) GetVideoCodec() *string { - if o == nil { +func (t *TranscodeSession) GetVideoCodec() *string { + if t == nil { return nil } - return o.VideoCodec + return t.VideoCodec } -func (o *TranscodeSession) GetAudioCodec() *string { - if o == nil { +func (t *TranscodeSession) GetAudioCodec() *string { + if t == nil { return nil } - return o.AudioCodec + return t.AudioCodec } -func (o *TranscodeSession) GetAudioChannels() *int { - if o == nil { +func (t *TranscodeSession) GetAudioChannels() *int { + if t == nil { return nil } - return o.AudioChannels + return t.AudioChannels } -func (o *TranscodeSession) GetTranscodeHwRequested() *bool { - if o == nil { +func (t *TranscodeSession) GetTranscodeHwRequested() *bool { + if t == nil { return nil } - return o.TranscodeHwRequested + return t.TranscodeHwRequested } -func (o *TranscodeSession) GetTimeStamp() *float64 { - if o == nil { +func (t *TranscodeSession) GetTimeStamp() *float64 { + if t == nil { return nil } - return o.TimeStamp + return t.TimeStamp } -func (o *TranscodeSession) GetMaxOffsetAvailable() *float64 { - if o == nil { +func (t *TranscodeSession) GetMaxOffsetAvailable() *float64 { + if t == nil { return nil } - return o.MaxOffsetAvailable + return t.MaxOffsetAvailable } -func (o *TranscodeSession) GetMinOffsetAvailable() *float64 { - if o == nil { +func (t *TranscodeSession) GetMinOffsetAvailable() *float64 { + if t == nil { return nil } - return o.MinOffsetAvailable + return t.MinOffsetAvailable } type GetTranscodeSessionsMediaContainer struct { @@ -206,18 +206,18 @@ type GetTranscodeSessionsMediaContainer struct { TranscodeSession []TranscodeSession `json:"TranscodeSession,omitempty"` } -func (o *GetTranscodeSessionsMediaContainer) GetSize() *int { - if o == nil { +func (g *GetTranscodeSessionsMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetTranscodeSessionsMediaContainer) GetTranscodeSession() []TranscodeSession { - if o == nil { +func (g *GetTranscodeSessionsMediaContainer) GetTranscodeSession() []TranscodeSession { + if g == nil { return nil } - return o.TranscodeSession + return g.TranscodeSession } // GetTranscodeSessionsResponseBody - The Transcode Sessions @@ -225,11 +225,11 @@ type GetTranscodeSessionsResponseBody struct { MediaContainer *GetTranscodeSessionsMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetTranscodeSessionsResponseBody) GetMediaContainer() *GetTranscodeSessionsMediaContainer { - if o == nil { +func (g *GetTranscodeSessionsResponseBody) GetMediaContainer() *GetTranscodeSessionsMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetTranscodeSessionsResponse struct { @@ -243,30 +243,30 @@ type GetTranscodeSessionsResponse struct { Object *GetTranscodeSessionsResponseBody } -func (o *GetTranscodeSessionsResponse) GetContentType() string { - if o == nil { +func (g *GetTranscodeSessionsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTranscodeSessionsResponse) GetStatusCode() int { - if o == nil { +func (g *GetTranscodeSessionsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTranscodeSessionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTranscodeSessionsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTranscodeSessionsResponse) GetObject() *GetTranscodeSessionsResponseBody { - if o == nil { +func (g *GetTranscodeSessionsResponse) GetObject() *GetTranscodeSessionsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/gettransienttoken.go b/models/operations/gettransienttoken.go index b13137f..9cf0775 100644 --- a/models/operations/gettransienttoken.go +++ b/models/operations/gettransienttoken.go @@ -63,18 +63,18 @@ type GetTransientTokenRequest struct { Scope Scope `queryParam:"style=form,explode=true,name=scope"` } -func (o *GetTransientTokenRequest) GetType() GetTransientTokenQueryParamType { - if o == nil { +func (g *GetTransientTokenRequest) GetType() GetTransientTokenQueryParamType { + if g == nil { return GetTransientTokenQueryParamType("") } - return o.Type + return g.Type } -func (o *GetTransientTokenRequest) GetScope() Scope { - if o == nil { +func (g *GetTransientTokenRequest) GetScope() Scope { + if g == nil { return Scope("") } - return o.Scope + return g.Scope } type GetTransientTokenResponse struct { @@ -86,23 +86,23 @@ type GetTransientTokenResponse struct { RawResponse *http.Response } -func (o *GetTransientTokenResponse) GetContentType() string { - if o == nil { +func (g *GetTransientTokenResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTransientTokenResponse) GetStatusCode() int { - if o == nil { +func (g *GetTransientTokenResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTransientTokenResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTransientTokenResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } diff --git a/models/operations/getupdatestatus.go b/models/operations/getupdatestatus.go index ffe6a07..57b0b77 100644 --- a/models/operations/getupdatestatus.go +++ b/models/operations/getupdatestatus.go @@ -15,46 +15,46 @@ type Release struct { State *string `json:"state,omitempty"` } -func (o *Release) GetKey() *string { - if o == nil { +func (r *Release) GetKey() *string { + if r == nil { return nil } - return o.Key + return r.Key } -func (o *Release) GetVersion() *string { - if o == nil { +func (r *Release) GetVersion() *string { + if r == nil { return nil } - return o.Version + return r.Version } -func (o *Release) GetAdded() *string { - if o == nil { +func (r *Release) GetAdded() *string { + if r == nil { return nil } - return o.Added + return r.Added } -func (o *Release) GetFixed() *string { - if o == nil { +func (r *Release) GetFixed() *string { + if r == nil { return nil } - return o.Fixed + return r.Fixed } -func (o *Release) GetDownloadURL() *string { - if o == nil { +func (r *Release) GetDownloadURL() *string { + if r == nil { return nil } - return o.DownloadURL + return r.DownloadURL } -func (o *Release) GetState() *string { - if o == nil { +func (r *Release) GetState() *string { + if r == nil { return nil } - return o.State + return r.State } type GetUpdateStatusMediaContainer struct { @@ -66,46 +66,46 @@ type GetUpdateStatusMediaContainer struct { Release []Release `json:"Release,omitempty"` } -func (o *GetUpdateStatusMediaContainer) GetSize() *int { - if o == nil { +func (g *GetUpdateStatusMediaContainer) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetUpdateStatusMediaContainer) GetCanInstall() *bool { - if o == nil { +func (g *GetUpdateStatusMediaContainer) GetCanInstall() *bool { + if g == nil { return nil } - return o.CanInstall + return g.CanInstall } -func (o *GetUpdateStatusMediaContainer) GetCheckedAt() *int { - if o == nil { +func (g *GetUpdateStatusMediaContainer) GetCheckedAt() *int { + if g == nil { return nil } - return o.CheckedAt + return g.CheckedAt } -func (o *GetUpdateStatusMediaContainer) GetDownloadURL() *string { - if o == nil { +func (g *GetUpdateStatusMediaContainer) GetDownloadURL() *string { + if g == nil { return nil } - return o.DownloadURL + return g.DownloadURL } -func (o *GetUpdateStatusMediaContainer) GetStatus() *int { - if o == nil { +func (g *GetUpdateStatusMediaContainer) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } -func (o *GetUpdateStatusMediaContainer) GetRelease() []Release { - if o == nil { +func (g *GetUpdateStatusMediaContainer) GetRelease() []Release { + if g == nil { return nil } - return o.Release + return g.Release } // GetUpdateStatusResponseBody - The Server Updates @@ -113,11 +113,11 @@ type GetUpdateStatusResponseBody struct { MediaContainer *GetUpdateStatusMediaContainer `json:"MediaContainer,omitempty"` } -func (o *GetUpdateStatusResponseBody) GetMediaContainer() *GetUpdateStatusMediaContainer { - if o == nil { +func (g *GetUpdateStatusResponseBody) GetMediaContainer() *GetUpdateStatusMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetUpdateStatusResponse struct { @@ -131,30 +131,30 @@ type GetUpdateStatusResponse struct { Object *GetUpdateStatusResponseBody } -func (o *GetUpdateStatusResponse) GetContentType() string { - if o == nil { +func (g *GetUpdateStatusResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetUpdateStatusResponse) GetStatusCode() int { - if o == nil { +func (g *GetUpdateStatusResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetUpdateStatusResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetUpdateStatusResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetUpdateStatusResponse) GetObject() *GetUpdateStatusResponseBody { - if o == nil { +func (g *GetUpdateStatusResponse) GetObject() *GetUpdateStatusResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/getuserfriends.go b/models/operations/getuserfriends.go index 00eac1d..42b1b7d 100644 --- a/models/operations/getuserfriends.go +++ b/models/operations/getuserfriends.go @@ -58,94 +58,94 @@ func (f Friend) MarshalJSON() ([]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 nil } -func (o *Friend) GetEmail() string { - if o == nil { +func (f *Friend) GetEmail() string { + if f == nil { return "" } - return o.Email + return f.Email } -func (o *Friend) GetFriendlyName() *string { - if o == nil { +func (f *Friend) GetFriendlyName() *string { + if f == nil { return nil } - return o.FriendlyName + return f.FriendlyName } -func (o *Friend) GetHome() bool { - if o == nil { +func (f *Friend) GetHome() bool { + if f == nil { return false } - return o.Home + return f.Home } -func (o *Friend) GetID() int { - if o == nil { +func (f *Friend) GetID() int { + if f == nil { return 0 } - return o.ID + return f.ID } -func (o *Friend) GetRestricted() *bool { - if o == nil { +func (f *Friend) GetRestricted() *bool { + if f == nil { return nil } - return o.Restricted + return f.Restricted } -func (o *Friend) GetSharedServers() []SharedServers { - if o == nil { +func (f *Friend) GetSharedServers() []SharedServers { + if f == nil { return []SharedServers{} } - return o.SharedServers + return f.SharedServers } -func (o *Friend) GetSharedSources() []SharedSources { - if o == nil { +func (f *Friend) GetSharedSources() []SharedSources { + if f == nil { return []SharedSources{} } - return o.SharedSources + return f.SharedSources } -func (o *Friend) GetStatus() Status { - if o == nil { +func (f *Friend) GetStatus() Status { + if f == nil { return Status("") } - return o.Status + return f.Status } -func (o *Friend) GetThumb() string { - if o == nil { +func (f *Friend) GetThumb() string { + if f == nil { return "" } - return o.Thumb + return f.Thumb } -func (o *Friend) GetTitle() string { - if o == nil { +func (f *Friend) GetTitle() string { + if f == nil { return "" } - return o.Title + return f.Title } -func (o *Friend) GetUsername() string { - if o == nil { +func (f *Friend) GetUsername() string { + if f == nil { return "" } - return o.Username + return f.Username } -func (o *Friend) GetUUID() string { - if o == nil { +func (f *Friend) GetUUID() string { + if f == nil { return "" } - return o.UUID + return f.UUID } type GetUserFriendsResponse struct { @@ -159,30 +159,30 @@ type GetUserFriendsResponse struct { Friends []Friend } -func (o *GetUserFriendsResponse) GetContentType() string { - if o == nil { +func (g *GetUserFriendsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetUserFriendsResponse) GetStatusCode() int { - if o == nil { +func (g *GetUserFriendsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetUserFriendsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetUserFriendsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetUserFriendsResponse) GetFriends() []Friend { - if o == nil { +func (g *GetUserFriendsResponse) GetFriends() []Friend { + if g == nil { return nil } - return o.Friends + return g.Friends } diff --git a/models/operations/getusers.go b/models/operations/getusers.go index 62da8b7..948ed33 100644 --- a/models/operations/getusers.go +++ b/models/operations/getusers.go @@ -42,95 +42,95 @@ type GetUsersRequest struct { XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` } -func (o *GetUsersRequest) GetClientID() string { - if o == nil { +func (g *GetUsersRequest) GetClientID() string { + if g == nil { return "" } - return o.ClientID + return g.ClientID } -func (o *GetUsersRequest) GetClientName() *string { - if o == nil { +func (g *GetUsersRequest) GetClientName() *string { + if g == nil { return nil } - return o.ClientName + return g.ClientName } -func (o *GetUsersRequest) GetDeviceNickname() *string { - if o == nil { +func (g *GetUsersRequest) GetDeviceNickname() *string { + if g == nil { return nil } - return o.DeviceNickname + return g.DeviceNickname } -func (o *GetUsersRequest) GetDeviceName() *string { - if o == nil { +func (g *GetUsersRequest) GetDeviceName() *string { + if g == nil { return nil } - return o.DeviceName + return g.DeviceName } -func (o *GetUsersRequest) GetDeviceScreenResolution() *string { - if o == nil { +func (g *GetUsersRequest) GetDeviceScreenResolution() *string { + if g == nil { return nil } - return o.DeviceScreenResolution + return g.DeviceScreenResolution } -func (o *GetUsersRequest) GetClientVersion() *string { - if o == nil { +func (g *GetUsersRequest) GetClientVersion() *string { + if g == nil { return nil } - return o.ClientVersion + return g.ClientVersion } -func (o *GetUsersRequest) GetPlatform() *string { - if o == nil { +func (g *GetUsersRequest) GetPlatform() *string { + if g == nil { return nil } - return o.Platform + return g.Platform } -func (o *GetUsersRequest) GetClientFeatures() *string { - if o == nil { +func (g *GetUsersRequest) GetClientFeatures() *string { + if g == nil { return nil } - return o.ClientFeatures + return g.ClientFeatures } -func (o *GetUsersRequest) GetModel() *string { - if o == nil { +func (g *GetUsersRequest) GetModel() *string { + if g == nil { return nil } - return o.Model + return g.Model } -func (o *GetUsersRequest) GetXPlexSessionID() *string { - if o == nil { +func (g *GetUsersRequest) GetXPlexSessionID() *string { + if g == nil { return nil } - return o.XPlexSessionID + return g.XPlexSessionID } -func (o *GetUsersRequest) GetXPlexLanguage() *string { - if o == nil { +func (g *GetUsersRequest) GetXPlexLanguage() *string { + if g == nil { return nil } - return o.XPlexLanguage + return g.XPlexLanguage } -func (o *GetUsersRequest) GetPlatformVersion() *string { - if o == nil { +func (g *GetUsersRequest) GetPlatformVersion() *string { + if g == nil { return nil } - return o.PlatformVersion + return g.PlatformVersion } -func (o *GetUsersRequest) GetXPlexToken() string { - if o == nil { +func (g *GetUsersRequest) GetXPlexToken() string { + if g == nil { return "" } - return o.XPlexToken + return g.XPlexToken } // Protected - Indicates whether the account is protected. @@ -458,67 +458,67 @@ func (g *GetUsersServer) UnmarshalJSON(data []byte) error { return nil } -func (o *GetUsersServer) GetID() int64 { - if o == nil { +func (g *GetUsersServer) GetID() int64 { + if g == nil { return 0 } - return o.ID + return g.ID } -func (o *GetUsersServer) GetServerID() int64 { - if o == nil { +func (g *GetUsersServer) GetServerID() int64 { + if g == nil { return 0 } - return o.ServerID + return g.ServerID } -func (o *GetUsersServer) GetMachineIdentifier() string { - if o == nil { +func (g *GetUsersServer) GetMachineIdentifier() string { + if g == nil { return "" } - return o.MachineIdentifier + return g.MachineIdentifier } -func (o *GetUsersServer) GetName() string { - if o == nil { +func (g *GetUsersServer) GetName() string { + if g == nil { return "" } - return o.Name + return g.Name } -func (o *GetUsersServer) GetLastSeenAt() int64 { - if o == nil { +func (g *GetUsersServer) GetLastSeenAt() int64 { + if g == nil { return 0 } - return o.LastSeenAt + return g.LastSeenAt } -func (o *GetUsersServer) GetNumLibraries() int64 { - if o == nil { +func (g *GetUsersServer) GetNumLibraries() int64 { + if g == nil { return 0 } - return o.NumLibraries + return g.NumLibraries } -func (o *GetUsersServer) GetAllLibraries() *AllLibraries { - if o == nil { +func (g *GetUsersServer) GetAllLibraries() *AllLibraries { + if g == nil { return nil } - return o.AllLibraries + return g.AllLibraries } -func (o *GetUsersServer) GetOwned() *Owned { - if o == nil { +func (g *GetUsersServer) GetOwned() *Owned { + if g == nil { return nil } - return o.Owned + return g.Owned } -func (o *GetUsersServer) GetPending() *Pending { - if o == nil { +func (g *GetUsersServer) GetPending() *Pending { + if g == nil { return nil } - return o.Pending + return g.Pending } type User struct { @@ -567,144 +567,144 @@ func (u *User) UnmarshalJSON(data []byte) error { return nil } -func (o *User) GetID() int64 { - if o == nil { +func (u *User) GetID() int64 { + if u == nil { return 0 } - return o.ID + return u.ID } -func (o *User) GetTitle() string { - if o == nil { +func (u *User) GetTitle() string { + if u == nil { return "" } - return o.Title + return u.Title } -func (o *User) GetUsername() string { - if o == nil { +func (u *User) GetUsername() string { + if u == nil { return "" } - return o.Username + return u.Username } -func (o *User) GetEmail() string { - if o == nil { +func (u *User) GetEmail() string { + if u == nil { return "" } - return o.Email + return u.Email } -func (o *User) GetRecommendationsPlaylistID() *string { - if o == nil { +func (u *User) GetRecommendationsPlaylistID() *string { + if u == nil { return nil } - return o.RecommendationsPlaylistID + return u.RecommendationsPlaylistID } -func (o *User) GetThumb() string { - if o == nil { +func (u *User) GetThumb() string { + if u == nil { return "" } - return o.Thumb + return u.Thumb } -func (o *User) GetProtected() *Protected { - if o == nil { +func (u *User) GetProtected() *Protected { + if u == nil { return nil } - return o.Protected + return u.Protected } -func (o *User) GetHome() *Home { - if o == nil { +func (u *User) GetHome() *Home { + if u == nil { return nil } - return o.Home + return u.Home } -func (o *User) GetAllowTuners() *AllowTuners { - if o == nil { +func (u *User) GetAllowTuners() *AllowTuners { + if u == nil { return nil } - return o.AllowTuners + return u.AllowTuners } -func (o *User) GetAllowSync() *AllowSync { - if o == nil { +func (u *User) GetAllowSync() *AllowSync { + if u == nil { return nil } - return o.AllowSync + return u.AllowSync } -func (o *User) GetAllowCameraUpload() *AllowCameraUpload { - if o == nil { +func (u *User) GetAllowCameraUpload() *AllowCameraUpload { + if u == nil { return nil } - return o.AllowCameraUpload + return u.AllowCameraUpload } -func (o *User) GetAllowChannels() *AllowChannels { - if o == nil { +func (u *User) GetAllowChannels() *AllowChannels { + if u == nil { return nil } - return o.AllowChannels + return u.AllowChannels } -func (o *User) GetAllowSubtitleAdmin() *AllowSubtitleAdmin { - if o == nil { +func (u *User) GetAllowSubtitleAdmin() *AllowSubtitleAdmin { + if u == nil { return nil } - return o.AllowSubtitleAdmin + return u.AllowSubtitleAdmin } -func (o *User) GetFilterAll() *string { - if o == nil { +func (u *User) GetFilterAll() *string { + if u == nil { return nil } - return o.FilterAll + return u.FilterAll } -func (o *User) GetFilterMovies() *string { - if o == nil { +func (u *User) GetFilterMovies() *string { + if u == nil { return nil } - return o.FilterMovies + return u.FilterMovies } -func (o *User) GetFilterMusic() *string { - if o == nil { +func (u *User) GetFilterMusic() *string { + if u == nil { return nil } - return o.FilterMusic + return u.FilterMusic } -func (o *User) GetFilterPhotos() *string { - if o == nil { +func (u *User) GetFilterPhotos() *string { + if u == nil { return nil } - return o.FilterPhotos + return u.FilterPhotos } -func (o *User) GetFilterTelevision() *string { - if o == nil { +func (u *User) GetFilterTelevision() *string { + if u == nil { return nil } - return o.FilterTelevision + return u.FilterTelevision } -func (o *User) GetRestricted() *Restricted { - if o == nil { +func (u *User) GetRestricted() *Restricted { + if u == nil { return nil } - return o.Restricted + return u.Restricted } -func (o *User) GetServer() []GetUsersServer { - if o == nil { +func (u *User) GetServer() []GetUsersServer { + if u == nil { return []GetUsersServer{} } - return o.Server + return u.Server } // GetUsersMediaContainer - Container holding user and server details. @@ -722,46 +722,46 @@ type GetUsersMediaContainer struct { User []User } -func (o *GetUsersMediaContainer) GetFriendlyName() string { - if o == nil { +func (g *GetUsersMediaContainer) GetFriendlyName() string { + if g == nil { return "" } - return o.FriendlyName + return g.FriendlyName } -func (o *GetUsersMediaContainer) GetIdentifier() string { - if o == nil { +func (g *GetUsersMediaContainer) GetIdentifier() string { + if g == nil { return "" } - return o.Identifier + return g.Identifier } -func (o *GetUsersMediaContainer) GetMachineIdentifier() string { - if o == nil { +func (g *GetUsersMediaContainer) GetMachineIdentifier() string { + if g == nil { return "" } - return o.MachineIdentifier + return g.MachineIdentifier } -func (o *GetUsersMediaContainer) GetTotalSize() int64 { - if o == nil { +func (g *GetUsersMediaContainer) GetTotalSize() int64 { + if g == nil { return 0 } - return o.TotalSize + return g.TotalSize } -func (o *GetUsersMediaContainer) GetSize() int64 { - if o == nil { +func (g *GetUsersMediaContainer) GetSize() int64 { + if g == nil { return 0 } - return o.Size + return g.Size } -func (o *GetUsersMediaContainer) GetUser() []User { - if o == nil { +func (g *GetUsersMediaContainer) GetUser() []User { + if g == nil { return []User{} } - return o.User + return g.User } // GetUsersResponseBody - Successful response with media container data in XML @@ -770,11 +770,11 @@ type GetUsersResponseBody struct { MediaContainer *GetUsersMediaContainer } -func (o *GetUsersResponseBody) GetMediaContainer() *GetUsersMediaContainer { - if o == nil { +func (g *GetUsersResponseBody) GetMediaContainer() *GetUsersMediaContainer { + if g == nil { return nil } - return o.MediaContainer + return g.MediaContainer } type GetUsersResponse struct { @@ -787,30 +787,30 @@ type GetUsersResponse struct { Body []byte } -func (o *GetUsersResponse) GetContentType() string { - if o == nil { +func (g *GetUsersResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetUsersResponse) GetStatusCode() int { - if o == nil { +func (g *GetUsersResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetUsersResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetUsersResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetUsersResponse) GetBody() []byte { - if o == nil { +func (g *GetUsersResponse) GetBody() []byte { + if g == nil { return nil } - return o.Body + return g.Body } diff --git a/models/operations/getwatchlist.go b/models/operations/getwatchlist.go index 9c504ab..dcf258f 100644 --- a/models/operations/getwatchlist.go +++ b/models/operations/getwatchlist.go @@ -139,67 +139,67 @@ func (g *GetWatchListRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetWatchListRequest) GetFilter() Filter { - if o == nil { +func (g *GetWatchListRequest) GetFilter() Filter { + if g == nil { return Filter("") } - return o.Filter + return g.Filter } -func (o *GetWatchListRequest) GetSort() *string { - if o == nil { +func (g *GetWatchListRequest) GetSort() *string { + if g == nil { return nil } - return o.Sort + return g.Sort } -func (o *GetWatchListRequest) GetLibtype() *Libtype { - if o == nil { +func (g *GetWatchListRequest) GetLibtype() *Libtype { + if g == nil { return nil } - return o.Libtype + return g.Libtype } -func (o *GetWatchListRequest) GetMaxresults() *int { - if o == nil { +func (g *GetWatchListRequest) GetMaxresults() *int { + if g == nil { return nil } - return o.Maxresults + return g.Maxresults } -func (o *GetWatchListRequest) GetIncludeCollections() *IncludeCollections { - if o == nil { +func (g *GetWatchListRequest) GetIncludeCollections() *IncludeCollections { + if g == nil { return nil } - return o.IncludeCollections + return g.IncludeCollections } -func (o *GetWatchListRequest) GetIncludeExternalMedia() *IncludeExternalMedia { - if o == nil { +func (g *GetWatchListRequest) GetIncludeExternalMedia() *IncludeExternalMedia { + if g == nil { return nil } - return o.IncludeExternalMedia + return g.IncludeExternalMedia } -func (o *GetWatchListRequest) GetXPlexContainerStart() *int { - if o == nil { +func (g *GetWatchListRequest) GetXPlexContainerStart() *int { + if g == nil { return nil } - return o.XPlexContainerStart + return g.XPlexContainerStart } -func (o *GetWatchListRequest) GetXPlexContainerSize() *int { - if o == nil { +func (g *GetWatchListRequest) GetXPlexContainerSize() *int { + if g == nil { return nil } - return o.XPlexContainerSize + return g.XPlexContainerSize } -func (o *GetWatchListRequest) GetXPlexToken() string { - if o == nil { +func (g *GetWatchListRequest) GetXPlexToken() string { + if g == nil { return "" } - return o.XPlexToken + return g.XPlexToken } type Image struct { @@ -208,25 +208,25 @@ type Image struct { URL *string `json:"url,omitempty"` } -func (o *Image) GetAlt() *string { - if o == nil { +func (i *Image) GetAlt() *string { + if i == nil { return nil } - return o.Alt + return i.Alt } -func (o *Image) GetType() *string { - if o == nil { +func (i *Image) GetType() *string { + if i == nil { return nil } - return o.Type + return i.Type } -func (o *Image) GetURL() *string { - if o == nil { +func (i *Image) GetURL() *string { + if i == nil { return nil } - return o.URL + return i.URL } type Metadata struct { @@ -278,249 +278,249 @@ func (m *Metadata) UnmarshalJSON(data []byte) error { return nil } -func (o *Metadata) GetArt() *string { - if o == nil { +func (m *Metadata) GetArt() *string { + if m == nil { return nil } - return o.Art + return m.Art } -func (o *Metadata) GetGUID() *string { - if o == nil { +func (m *Metadata) GetGUID() *string { + if m == nil { return nil } - return o.GUID + return m.GUID } -func (o *Metadata) GetKey() *string { - if o == nil { +func (m *Metadata) GetKey() *string { + if m == nil { return nil } - return o.Key + return m.Key } -func (o *Metadata) GetRatingKey() *string { - if o == nil { +func (m *Metadata) GetRatingKey() *string { + if m == nil { return nil } - return o.RatingKey + return m.RatingKey } -func (o *Metadata) GetStudio() *string { - if o == nil { +func (m *Metadata) GetStudio() *string { + if m == nil { return nil } - return o.Studio + return m.Studio } -func (o *Metadata) GetTagline() *string { - if o == nil { +func (m *Metadata) GetTagline() *string { + if m == nil { return nil } - return o.Tagline + return m.Tagline } -func (o *Metadata) GetType() *string { - if o == nil { +func (m *Metadata) GetType() *string { + if m == nil { return nil } - return o.Type + return m.Type } -func (o *Metadata) GetThumb() *string { - if o == nil { +func (m *Metadata) GetThumb() *string { + if m == nil { return nil } - return o.Thumb + return m.Thumb } -func (o *Metadata) GetAddedAt() *int { - if o == nil { +func (m *Metadata) GetAddedAt() *int { + if m == nil { return nil } - return o.AddedAt + return m.AddedAt } -func (o *Metadata) GetDuration() *int { - if o == nil { +func (m *Metadata) GetDuration() *int { + if m == nil { return nil } - return o.Duration + return m.Duration } -func (o *Metadata) GetPublicPagesURL() *string { - if o == nil { +func (m *Metadata) GetPublicPagesURL() *string { + if m == nil { return nil } - return o.PublicPagesURL + return m.PublicPagesURL } -func (o *Metadata) GetSlug() *string { - if o == nil { +func (m *Metadata) GetSlug() *string { + if m == nil { return nil } - return o.Slug + return m.Slug } -func (o *Metadata) GetUserState() *bool { - if o == nil { +func (m *Metadata) GetUserState() *bool { + if m == nil { return nil } - return o.UserState + return m.UserState } -func (o *Metadata) GetTitle() *string { - if o == nil { +func (m *Metadata) GetTitle() *string { + if m == nil { return nil } - return o.Title + return m.Title } -func (o *Metadata) GetContentRating() *string { - if o == nil { +func (m *Metadata) GetContentRating() *string { + if m == nil { return nil } - return o.ContentRating + return m.ContentRating } -func (o *Metadata) GetOriginallyAvailableAt() *types.Date { - if o == nil { +func (m *Metadata) GetOriginallyAvailableAt() *types.Date { + if m == nil { return nil } - return o.OriginallyAvailableAt + return m.OriginallyAvailableAt } -func (o *Metadata) GetYear() *int { - if o == nil { +func (m *Metadata) GetYear() *int { + if m == nil { return nil } - return o.Year + return m.Year } -func (o *Metadata) GetImage() []Image { - if o == nil { +func (m *Metadata) GetImage() []Image { + if m == nil { return nil } - return o.Image + return m.Image } -func (o *Metadata) GetBanner() *string { - if o == nil { +func (m *Metadata) GetBanner() *string { + if m == nil { return nil } - return o.Banner + return m.Banner } -func (o *Metadata) GetRating() *float64 { - if o == nil { +func (m *Metadata) GetRating() *float64 { + if m == nil { return nil } - return o.Rating + return m.Rating } -func (o *Metadata) GetExpiresAt() *int { - if o == nil { +func (m *Metadata) GetExpiresAt() *int { + if m == nil { return nil } - return o.ExpiresAt + return m.ExpiresAt } -func (o *Metadata) GetOriginalTitle() *string { - if o == nil { +func (m *Metadata) GetOriginalTitle() *string { + if m == nil { return nil } - return o.OriginalTitle + return m.OriginalTitle } -func (o *Metadata) GetAudienceRating() *float64 { - if o == nil { +func (m *Metadata) GetAudienceRating() *float64 { + if m == nil { return nil } - return o.AudienceRating + return m.AudienceRating } -func (o *Metadata) GetAudienceRatingImage() *string { - if o == nil { +func (m *Metadata) GetAudienceRatingImage() *string { + if m == nil { return nil } - return o.AudienceRatingImage + return m.AudienceRatingImage } -func (o *Metadata) GetRatingImage() *string { - if o == nil { +func (m *Metadata) GetRatingImage() *string { + if m == nil { return nil } - return o.RatingImage + return m.RatingImage } -func (o *Metadata) GetImdbRatingCount() *int { - if o == nil { +func (m *Metadata) GetImdbRatingCount() *int { + if m == nil { return nil } - return o.ImdbRatingCount + return m.ImdbRatingCount } -func (o *Metadata) GetSubtype() *string { - if o == nil { +func (m *Metadata) GetSubtype() *string { + if m == nil { return nil } - return o.Subtype + return m.Subtype } -func (o *Metadata) GetTheme() *string { - if o == nil { +func (m *Metadata) GetTheme() *string { + if m == nil { return nil } - return o.Theme + return m.Theme } -func (o *Metadata) GetLeafCount() *int { - if o == nil { +func (m *Metadata) GetLeafCount() *int { + if m == nil { return nil } - return o.LeafCount + return m.LeafCount } -func (o *Metadata) GetChildCount() *int { - if o == nil { +func (m *Metadata) GetChildCount() *int { + if m == nil { return nil } - return o.ChildCount + return m.ChildCount } -func (o *Metadata) GetIsContinuingSeries() *bool { - if o == nil { +func (m *Metadata) GetIsContinuingSeries() *bool { + if m == nil { return nil } - return o.IsContinuingSeries + return m.IsContinuingSeries } -func (o *Metadata) GetSkipChildren() *bool { - if o == nil { +func (m *Metadata) GetSkipChildren() *bool { + if m == nil { return nil } - return o.SkipChildren + return m.SkipChildren } -func (o *Metadata) GetAvailabilityID() *string { - if o == nil { +func (m *Metadata) GetAvailabilityID() *string { + if m == nil { return nil } - return o.AvailabilityID + return m.AvailabilityID } -func (o *Metadata) GetStreamingMediaID() *string { - if o == nil { +func (m *Metadata) GetStreamingMediaID() *string { + if m == nil { return nil } - return o.StreamingMediaID + return m.StreamingMediaID } -func (o *Metadata) GetPlayableKey() *string { - if o == nil { +func (m *Metadata) GetPlayableKey() *string { + if m == nil { return nil } - return o.PlayableKey + return m.PlayableKey } // GetWatchListResponseBody - Watchlist Data @@ -534,53 +534,53 @@ type GetWatchListResponseBody struct { Metadata []Metadata `json:"Metadata,omitempty"` } -func (o *GetWatchListResponseBody) GetLibrarySectionID() *string { - if o == nil { +func (g *GetWatchListResponseBody) GetLibrarySectionID() *string { + if g == nil { return nil } - return o.LibrarySectionID + return g.LibrarySectionID } -func (o *GetWatchListResponseBody) GetLibrarySectionTitle() *string { - if o == nil { +func (g *GetWatchListResponseBody) GetLibrarySectionTitle() *string { + if g == nil { return nil } - return o.LibrarySectionTitle + return g.LibrarySectionTitle } -func (o *GetWatchListResponseBody) GetOffset() *int { - if o == nil { +func (g *GetWatchListResponseBody) GetOffset() *int { + if g == nil { return nil } - return o.Offset + return g.Offset } -func (o *GetWatchListResponseBody) GetTotalSize() *int { - if o == nil { +func (g *GetWatchListResponseBody) GetTotalSize() *int { + if g == nil { return nil } - return o.TotalSize + return g.TotalSize } -func (o *GetWatchListResponseBody) GetIdentifier() *string { - if o == nil { +func (g *GetWatchListResponseBody) GetIdentifier() *string { + if g == nil { return nil } - return o.Identifier + return g.Identifier } -func (o *GetWatchListResponseBody) GetSize() *int { - if o == nil { +func (g *GetWatchListResponseBody) GetSize() *int { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetWatchListResponseBody) GetMetadata() []Metadata { - if o == nil { +func (g *GetWatchListResponseBody) GetMetadata() []Metadata { + if g == nil { return nil } - return o.Metadata + return g.Metadata } type GetWatchListResponse struct { @@ -594,30 +594,30 @@ type GetWatchListResponse struct { Object *GetWatchListResponseBody } -func (o *GetWatchListResponse) GetContentType() string { - if o == nil { +func (g *GetWatchListResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetWatchListResponse) GetStatusCode() int { - if o == nil { +func (g *GetWatchListResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetWatchListResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetWatchListResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetWatchListResponse) GetObject() *GetWatchListResponseBody { - if o == nil { +func (g *GetWatchListResponse) GetObject() *GetWatchListResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/models/operations/logline.go b/models/operations/logline.go index dcdcd27..4c9263b 100644 --- a/models/operations/logline.go +++ b/models/operations/logline.go @@ -41,25 +41,25 @@ type LogLineRequest struct { Source string `queryParam:"style=form,explode=true,name=source"` } -func (o *LogLineRequest) GetLevel() Level { - if o == nil { +func (l *LogLineRequest) GetLevel() Level { + if l == nil { return Level(0) } - return o.Level + return l.Level } -func (o *LogLineRequest) GetMessage() string { - if o == nil { +func (l *LogLineRequest) GetMessage() string { + if l == nil { return "" } - return o.Message + return l.Message } -func (o *LogLineRequest) GetSource() string { - if o == nil { +func (l *LogLineRequest) GetSource() string { + if l == nil { return "" } - return o.Source + return l.Source } type LogLineResponse struct { @@ -71,23 +71,23 @@ type LogLineResponse struct { RawResponse *http.Response } -func (o *LogLineResponse) GetContentType() string { - if o == nil { +func (l *LogLineResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *LogLineResponse) GetStatusCode() int { - if o == nil { +func (l *LogLineResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *LogLineResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *LogLineResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } diff --git a/models/operations/logmultiline.go b/models/operations/logmultiline.go index d0879e4..7c72bfc 100644 --- a/models/operations/logmultiline.go +++ b/models/operations/logmultiline.go @@ -15,23 +15,23 @@ type LogMultiLineResponse struct { RawResponse *http.Response } -func (o *LogMultiLineResponse) GetContentType() string { - if o == nil { +func (l *LogMultiLineResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *LogMultiLineResponse) GetStatusCode() int { - if o == nil { +func (l *LogMultiLineResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *LogMultiLineResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *LogMultiLineResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } diff --git a/models/operations/markplayed.go b/models/operations/markplayed.go index 8f5ae5c..206626b 100644 --- a/models/operations/markplayed.go +++ b/models/operations/markplayed.go @@ -11,11 +11,11 @@ type MarkPlayedRequest struct { Key float64 `queryParam:"style=form,explode=true,name=key"` } -func (o *MarkPlayedRequest) GetKey() float64 { - if o == nil { +func (m *MarkPlayedRequest) GetKey() float64 { + if m == nil { return 0.0 } - return o.Key + return m.Key } type MarkPlayedResponse struct { @@ -27,23 +27,23 @@ type MarkPlayedResponse struct { RawResponse *http.Response } -func (o *MarkPlayedResponse) GetContentType() string { - if o == nil { +func (m *MarkPlayedResponse) GetContentType() string { + if m == nil { return "" } - return o.ContentType + return m.ContentType } -func (o *MarkPlayedResponse) GetStatusCode() int { - if o == nil { +func (m *MarkPlayedResponse) GetStatusCode() int { + if m == nil { return 0 } - return o.StatusCode + return m.StatusCode } -func (o *MarkPlayedResponse) GetRawResponse() *http.Response { - if o == nil { +func (m *MarkPlayedResponse) GetRawResponse() *http.Response { + if m == nil { return nil } - return o.RawResponse + return m.RawResponse } diff --git a/models/operations/markunplayed.go b/models/operations/markunplayed.go index abc658b..44c6400 100644 --- a/models/operations/markunplayed.go +++ b/models/operations/markunplayed.go @@ -11,11 +11,11 @@ type MarkUnplayedRequest struct { Key float64 `queryParam:"style=form,explode=true,name=key"` } -func (o *MarkUnplayedRequest) GetKey() float64 { - if o == nil { +func (m *MarkUnplayedRequest) GetKey() float64 { + if m == nil { return 0.0 } - return o.Key + return m.Key } type MarkUnplayedResponse struct { @@ -27,23 +27,23 @@ type MarkUnplayedResponse struct { RawResponse *http.Response } -func (o *MarkUnplayedResponse) GetContentType() string { - if o == nil { +func (m *MarkUnplayedResponse) GetContentType() string { + if m == nil { return "" } - return o.ContentType + return m.ContentType } -func (o *MarkUnplayedResponse) GetStatusCode() int { - if o == nil { +func (m *MarkUnplayedResponse) GetStatusCode() int { + if m == nil { return 0 } - return o.StatusCode + return m.StatusCode } -func (o *MarkUnplayedResponse) GetRawResponse() *http.Response { - if o == nil { +func (m *MarkUnplayedResponse) GetRawResponse() *http.Response { + if m == nil { return nil } - return o.RawResponse + return m.RawResponse } diff --git a/models/operations/performsearch.go b/models/operations/performsearch.go index 55152c5..dc27e5c 100644 --- a/models/operations/performsearch.go +++ b/models/operations/performsearch.go @@ -27,25 +27,25 @@ func (p *PerformSearchRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *PerformSearchRequest) GetQuery() string { - if o == nil { +func (p *PerformSearchRequest) GetQuery() string { + if p == nil { return "" } - return o.Query + return p.Query } -func (o *PerformSearchRequest) GetSectionID() *float64 { - if o == nil { +func (p *PerformSearchRequest) GetSectionID() *float64 { + if p == nil { return nil } - return o.SectionID + return p.SectionID } -func (o *PerformSearchRequest) GetLimit() *float64 { - if o == nil { +func (p *PerformSearchRequest) GetLimit() *float64 { + if p == nil { return nil } - return o.Limit + return p.Limit } type PerformSearchResponse struct { @@ -57,23 +57,23 @@ type PerformSearchResponse struct { RawResponse *http.Response } -func (o *PerformSearchResponse) GetContentType() string { - if o == nil { +func (p *PerformSearchResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PerformSearchResponse) GetStatusCode() int { - if o == nil { +func (p *PerformSearchResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PerformSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PerformSearchResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } diff --git a/models/operations/performvoicesearch.go b/models/operations/performvoicesearch.go index c4ab946..9910dd5 100644 --- a/models/operations/performvoicesearch.go +++ b/models/operations/performvoicesearch.go @@ -27,25 +27,25 @@ func (p *PerformVoiceSearchRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *PerformVoiceSearchRequest) GetQuery() string { - if o == nil { +func (p *PerformVoiceSearchRequest) GetQuery() string { + if p == nil { return "" } - return o.Query + return p.Query } -func (o *PerformVoiceSearchRequest) GetSectionID() *float64 { - if o == nil { +func (p *PerformVoiceSearchRequest) GetSectionID() *float64 { + if p == nil { return nil } - return o.SectionID + return p.SectionID } -func (o *PerformVoiceSearchRequest) GetLimit() *float64 { - if o == nil { +func (p *PerformVoiceSearchRequest) GetLimit() *float64 { + if p == nil { return nil } - return o.Limit + return p.Limit } type PerformVoiceSearchResponse struct { @@ -57,23 +57,23 @@ type PerformVoiceSearchResponse struct { RawResponse *http.Response } -func (o *PerformVoiceSearchResponse) GetContentType() string { - if o == nil { +func (p *PerformVoiceSearchResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PerformVoiceSearchResponse) GetStatusCode() int { - if o == nil { +func (p *PerformVoiceSearchResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PerformVoiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PerformVoiceSearchResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } diff --git a/models/operations/postmediaarts.go b/models/operations/postmediaarts.go index 43a03df..2a7016c 100644 --- a/models/operations/postmediaarts.go +++ b/models/operations/postmediaarts.go @@ -16,25 +16,25 @@ type PostMediaArtsRequest struct { RequestBody *any `request:"mediaType=image/*"` } -func (o *PostMediaArtsRequest) GetRatingKey() int64 { - if o == nil { +func (p *PostMediaArtsRequest) GetRatingKey() int64 { + if p == nil { return 0 } - return o.RatingKey + return p.RatingKey } -func (o *PostMediaArtsRequest) GetURL() *string { - if o == nil { +func (p *PostMediaArtsRequest) GetURL() *string { + if p == nil { return nil } - return o.URL + return p.URL } -func (o *PostMediaArtsRequest) GetRequestBody() *any { - if o == nil { +func (p *PostMediaArtsRequest) GetRequestBody() *any { + if p == nil { return nil } - return o.RequestBody + return p.RequestBody } type PostMediaArtsResponse struct { @@ -46,23 +46,23 @@ type PostMediaArtsResponse struct { RawResponse *http.Response } -func (o *PostMediaArtsResponse) GetContentType() string { - if o == nil { +func (p *PostMediaArtsResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PostMediaArtsResponse) GetStatusCode() int { - if o == nil { +func (p *PostMediaArtsResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PostMediaArtsResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PostMediaArtsResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } diff --git a/models/operations/postmediaposter.go b/models/operations/postmediaposter.go index 19af554..64cbc2a 100644 --- a/models/operations/postmediaposter.go +++ b/models/operations/postmediaposter.go @@ -16,25 +16,25 @@ type PostMediaPosterRequest struct { RequestBody *any `request:"mediaType=image/*"` } -func (o *PostMediaPosterRequest) GetRatingKey() int64 { - if o == nil { +func (p *PostMediaPosterRequest) GetRatingKey() int64 { + if p == nil { return 0 } - return o.RatingKey + return p.RatingKey } -func (o *PostMediaPosterRequest) GetURL() *string { - if o == nil { +func (p *PostMediaPosterRequest) GetURL() *string { + if p == nil { return nil } - return o.URL + return p.URL } -func (o *PostMediaPosterRequest) GetRequestBody() *any { - if o == nil { +func (p *PostMediaPosterRequest) GetRequestBody() *any { + if p == nil { return nil } - return o.RequestBody + return p.RequestBody } type PostMediaPosterResponse struct { @@ -46,23 +46,23 @@ type PostMediaPosterResponse struct { RawResponse *http.Response } -func (o *PostMediaPosterResponse) GetContentType() string { - if o == nil { +func (p *PostMediaPosterResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PostMediaPosterResponse) GetStatusCode() int { - if o == nil { +func (p *PostMediaPosterResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PostMediaPosterResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PostMediaPosterResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } diff --git a/models/operations/postuserssignindata.go b/models/operations/postuserssignindata.go index e7fbdb1..8a8b4ef 100644 --- a/models/operations/postuserssignindata.go +++ b/models/operations/postuserssignindata.go @@ -32,32 +32,32 @@ func (p *PostUsersSignInDataRequestBody) UnmarshalJSON(data []byte) error { return nil } -func (o *PostUsersSignInDataRequestBody) GetLogin() string { - if o == nil { +func (p *PostUsersSignInDataRequestBody) GetLogin() string { + if p == nil { return "" } - return o.Login + return p.Login } -func (o *PostUsersSignInDataRequestBody) GetPassword() string { - if o == nil { +func (p *PostUsersSignInDataRequestBody) GetPassword() string { + if p == nil { return "" } - return o.Password + return p.Password } -func (o *PostUsersSignInDataRequestBody) GetRememberMe() *bool { - if o == nil { +func (p *PostUsersSignInDataRequestBody) GetRememberMe() *bool { + if p == nil { return nil } - return o.RememberMe + return p.RememberMe } -func (o *PostUsersSignInDataRequestBody) GetVerificationCode() *string { - if o == nil { +func (p *PostUsersSignInDataRequestBody) GetVerificationCode() *string { + if p == nil { return nil } - return o.VerificationCode + return p.VerificationCode } type PostUsersSignInDataRequest struct { @@ -75,46 +75,46 @@ type PostUsersSignInDataRequest struct { RequestBody *PostUsersSignInDataRequestBody `request:"mediaType=application/x-www-form-urlencoded"` } -func (o *PostUsersSignInDataRequest) GetClientID() string { - if o == nil { +func (p *PostUsersSignInDataRequest) GetClientID() string { + if p == nil { return "" } - return o.ClientID + return p.ClientID } -func (o *PostUsersSignInDataRequest) GetClientName() *string { - if o == nil { +func (p *PostUsersSignInDataRequest) GetClientName() *string { + if p == nil { return nil } - return o.ClientName + return p.ClientName } -func (o *PostUsersSignInDataRequest) GetDeviceNickname() *string { - if o == nil { +func (p *PostUsersSignInDataRequest) GetDeviceNickname() *string { + if p == nil { return nil } - return o.DeviceNickname + return p.DeviceNickname } -func (o *PostUsersSignInDataRequest) GetClientVersion() *string { - if o == nil { +func (p *PostUsersSignInDataRequest) GetClientVersion() *string { + if p == nil { return nil } - return o.ClientVersion + return p.ClientVersion } -func (o *PostUsersSignInDataRequest) GetPlatform() *string { - if o == nil { +func (p *PostUsersSignInDataRequest) GetPlatform() *string { + if p == nil { return nil } - return o.Platform + return p.Platform } -func (o *PostUsersSignInDataRequest) GetRequestBody() *PostUsersSignInDataRequestBody { - if o == nil { +func (p *PostUsersSignInDataRequest) GetRequestBody() *PostUsersSignInDataRequestBody { + if p == nil { return nil } - return o.RequestBody + return p.RequestBody } // PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed) @@ -283,66 +283,66 @@ func (p PostUsersSignInDataUserProfile) MarshalJSON() ([]byte, error) { } func (p *PostUsersSignInDataUserProfile) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, []string{"defaultAudioLanguage", "defaultSubtitleLanguage"}); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *PostUsersSignInDataUserProfile) GetAutoSelectAudio() *bool { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetAutoSelectAudio() *bool { + if p == nil { return nil } - return o.AutoSelectAudio + return p.AutoSelectAudio } -func (o *PostUsersSignInDataUserProfile) GetDefaultAudioLanguage() *string { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetDefaultAudioLanguage() *string { + if p == nil { return nil } - return o.DefaultAudioLanguage + return p.DefaultAudioLanguage } -func (o *PostUsersSignInDataUserProfile) GetDefaultSubtitleLanguage() *string { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetDefaultSubtitleLanguage() *string { + if p == nil { return nil } - return o.DefaultSubtitleLanguage + return p.DefaultSubtitleLanguage } -func (o *PostUsersSignInDataUserProfile) GetAutoSelectSubtitle() *PostUsersSignInDataAutoSelectSubtitle { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetAutoSelectSubtitle() *PostUsersSignInDataAutoSelectSubtitle { + if p == nil { return nil } - return o.AutoSelectSubtitle + return p.AutoSelectSubtitle } -func (o *PostUsersSignInDataUserProfile) GetDefaultSubtitleAccessibility() *PostUsersSignInDataDefaultSubtitleAccessibility { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetDefaultSubtitleAccessibility() *PostUsersSignInDataDefaultSubtitleAccessibility { + if p == nil { return nil } - return o.DefaultSubtitleAccessibility + return p.DefaultSubtitleAccessibility } -func (o *PostUsersSignInDataUserProfile) GetDefaultSubtitleForced() *PostUsersSignInDataDefaultSubtitleForced { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetDefaultSubtitleForced() *PostUsersSignInDataDefaultSubtitleForced { + if p == nil { return nil } - return o.DefaultSubtitleForced + return p.DefaultSubtitleForced } -func (o *PostUsersSignInDataUserProfile) GetWatchedIndicator() *PostUsersSignInDataWatchedIndicator { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetWatchedIndicator() *PostUsersSignInDataWatchedIndicator { + if p == nil { return nil } - return o.WatchedIndicator + return p.WatchedIndicator } -func (o *PostUsersSignInDataUserProfile) GetMediaReviewsVisibility() *PostUsersSignInDataMediaReviewsVisibility { - if o == nil { +func (p *PostUsersSignInDataUserProfile) GetMediaReviewsVisibility() *PostUsersSignInDataMediaReviewsVisibility { + if p == nil { return nil } - return o.MediaReviewsVisibility + return p.MediaReviewsVisibility } type PostUsersSignInDataStatus string @@ -364,39 +364,39 @@ type PostUsersSignInDataServices struct { Status PostUsersSignInDataStatus `json:"status"` } -func (o *PostUsersSignInDataServices) GetIdentifier() string { - if o == nil { +func (p *PostUsersSignInDataServices) GetIdentifier() string { + if p == nil { return "" } - return o.Identifier + return p.Identifier } -func (o *PostUsersSignInDataServices) GetEndpoint() string { - if o == nil { +func (p *PostUsersSignInDataServices) GetEndpoint() string { + if p == nil { return "" } - return o.Endpoint + return p.Endpoint } -func (o *PostUsersSignInDataServices) GetToken() *string { - if o == nil { +func (p *PostUsersSignInDataServices) GetToken() *string { + if p == nil { return nil } - return o.Token + return p.Token } -func (o *PostUsersSignInDataServices) GetSecret() *string { - if o == nil { +func (p *PostUsersSignInDataServices) GetSecret() *string { + if p == nil { return nil } - return o.Secret + return p.Secret } -func (o *PostUsersSignInDataServices) GetStatus() PostUsersSignInDataStatus { - if o == nil { +func (p *PostUsersSignInDataServices) GetStatus() PostUsersSignInDataStatus { + if p == nil { return PostUsersSignInDataStatus("") } - return o.Status + return p.Status } // PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive @@ -427,46 +427,46 @@ type PostUsersSignInDataSubscription struct { Plan *string `json:"plan,omitempty"` } -func (o *PostUsersSignInDataSubscription) GetFeatures() []string { - if o == nil { +func (p *PostUsersSignInDataSubscription) GetFeatures() []string { + if p == nil { return nil } - return o.Features + return p.Features } -func (o *PostUsersSignInDataSubscription) GetActive() *bool { - if o == nil { +func (p *PostUsersSignInDataSubscription) GetActive() *bool { + if p == nil { return nil } - return o.Active + return p.Active } -func (o *PostUsersSignInDataSubscription) GetSubscribedAt() *string { - if o == nil { +func (p *PostUsersSignInDataSubscription) GetSubscribedAt() *string { + if p == nil { return nil } - return o.SubscribedAt + return p.SubscribedAt } -func (o *PostUsersSignInDataSubscription) GetStatus() *PostUsersSignInDataAuthenticationStatus { - if o == nil { +func (p *PostUsersSignInDataSubscription) GetStatus() *PostUsersSignInDataAuthenticationStatus { + if p == nil { return nil } - return o.Status + return p.Status } -func (o *PostUsersSignInDataSubscription) GetPaymentService() *string { - if o == nil { +func (p *PostUsersSignInDataSubscription) GetPaymentService() *string { + if p == nil { return nil } - return o.PaymentService + return p.PaymentService } -func (o *PostUsersSignInDataSubscription) GetPlan() *string { - if o == nil { +func (p *PostUsersSignInDataSubscription) GetPlan() *string { + if p == nil { return nil } - return o.Plan + return p.Plan } // PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive @@ -496,46 +496,46 @@ type PostUsersSignInDataAuthenticationSubscription struct { Plan *string `json:"plan,omitempty"` } -func (o *PostUsersSignInDataAuthenticationSubscription) GetFeatures() []string { - if o == nil { +func (p *PostUsersSignInDataAuthenticationSubscription) GetFeatures() []string { + if p == nil { return nil } - return o.Features + return p.Features } -func (o *PostUsersSignInDataAuthenticationSubscription) GetActive() *bool { - if o == nil { +func (p *PostUsersSignInDataAuthenticationSubscription) GetActive() *bool { + if p == nil { return nil } - return o.Active + return p.Active } -func (o *PostUsersSignInDataAuthenticationSubscription) GetSubscribedAt() *string { - if o == nil { +func (p *PostUsersSignInDataAuthenticationSubscription) GetSubscribedAt() *string { + if p == nil { return nil } - return o.SubscribedAt + return p.SubscribedAt } -func (o *PostUsersSignInDataAuthenticationSubscription) GetStatus() *PostUsersSignInDataAuthenticationResponseStatus { - if o == nil { +func (p *PostUsersSignInDataAuthenticationSubscription) GetStatus() *PostUsersSignInDataAuthenticationResponseStatus { + if p == nil { return nil } - return o.Status + return p.Status } -func (o *PostUsersSignInDataAuthenticationSubscription) GetPaymentService() *string { - if o == nil { +func (p *PostUsersSignInDataAuthenticationSubscription) GetPaymentService() *string { + if p == nil { return nil } - return o.PaymentService + return p.PaymentService } -func (o *PostUsersSignInDataAuthenticationSubscription) GetPlan() *string { - if o == nil { +func (p *PostUsersSignInDataAuthenticationSubscription) GetPlan() *string { + if p == nil { return nil } - return o.Plan + return p.Plan } type PostUsersSignInDataState string @@ -556,18 +556,18 @@ type Billing struct { PaymentMethodID *int64 `json:"paymentMethodId"` } -func (o *Billing) GetInternalPaymentMethod() InternalPaymentMethod { - if o == nil { +func (b *Billing) GetInternalPaymentMethod() InternalPaymentMethod { + if b == nil { return InternalPaymentMethod{} } - return o.InternalPaymentMethod + return b.InternalPaymentMethod } -func (o *Billing) GetPaymentMethodID() *int64 { - if o == nil { +func (b *Billing) GetPaymentMethodID() *int64 { + if b == nil { return nil } - return o.PaymentMethodID + return b.PaymentMethodID } type PastSubscription struct { @@ -593,115 +593,115 @@ func (p PastSubscription) MarshalJSON() ([]byte, error) { } func (p *PastSubscription) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "mode", "renewsAt", "endsAt", "type", "transfer", "state", "billing"}); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"type", "state", "billing"}); err != nil { return err } return nil } -func (o *PastSubscription) GetID() *string { - if o == nil { +func (p *PastSubscription) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PastSubscription) GetMode() *string { - if o == nil { +func (p *PastSubscription) GetMode() *string { + if p == nil { return nil } - return o.Mode + return p.Mode } -func (o *PastSubscription) GetRenewsAt() *int64 { - if o == nil { +func (p *PastSubscription) GetRenewsAt() *int64 { + if p == nil { return nil } - return o.RenewsAt + return p.RenewsAt } -func (o *PastSubscription) GetEndsAt() *int64 { - if o == nil { +func (p *PastSubscription) GetEndsAt() *int64 { + if p == nil { return nil } - return o.EndsAt + return p.EndsAt } -func (o *PastSubscription) GetCanceled() *bool { - if o == nil { +func (p *PastSubscription) GetCanceled() *bool { + if p == nil { return nil } - return o.Canceled + return p.Canceled } -func (o *PastSubscription) GetGracePeriod() *bool { - if o == nil { +func (p *PastSubscription) GetGracePeriod() *bool { + if p == nil { return nil } - return o.GracePeriod + return p.GracePeriod } -func (o *PastSubscription) GetOnHold() *bool { - if o == nil { +func (p *PastSubscription) GetOnHold() *bool { + if p == nil { return nil } - return o.OnHold + return p.OnHold } -func (o *PastSubscription) GetCanReactivate() *bool { - if o == nil { +func (p *PastSubscription) GetCanReactivate() *bool { + if p == nil { return nil } - return o.CanReactivate + return p.CanReactivate } -func (o *PastSubscription) GetCanUpgrade() *bool { - if o == nil { +func (p *PastSubscription) GetCanUpgrade() *bool { + if p == nil { return nil } - return o.CanUpgrade + return p.CanUpgrade } -func (o *PastSubscription) GetCanDowngrade() *bool { - if o == nil { +func (p *PastSubscription) GetCanDowngrade() *bool { + if p == nil { return nil } - return o.CanDowngrade + return p.CanDowngrade } -func (o *PastSubscription) GetCanConvert() *bool { - if o == nil { +func (p *PastSubscription) GetCanConvert() *bool { + if p == nil { return nil } - return o.CanConvert + return p.CanConvert } -func (o *PastSubscription) GetType() string { - if o == nil { +func (p *PastSubscription) GetType() string { + if p == nil { return "" } - return o.Type + return p.Type } -func (o *PastSubscription) GetTransfer() *string { - if o == nil { +func (p *PastSubscription) GetTransfer() *string { + if p == nil { return nil } - return o.Transfer + return p.Transfer } -func (o *PastSubscription) GetState() PostUsersSignInDataState { - if o == nil { +func (p *PastSubscription) GetState() PostUsersSignInDataState { + if p == nil { return PostUsersSignInDataState("") } - return o.State + return p.State } -func (o *PastSubscription) GetBilling() Billing { - if o == nil { +func (p *PastSubscription) GetBilling() Billing { + if p == nil { return Billing{} } - return o.Billing + return p.Billing } type Trials struct { @@ -796,311 +796,311 @@ func (p PostUsersSignInDataUserPlexAccount) MarshalJSON() ([]byte, error) { } func (p *PostUsersSignInDataUserPlexAccount) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", 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", "pastSubscriptions", "trials"}); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"authToken", "country", "email", "friendlyName", "entitlements", "homeSize", "id", "joinedAt", "mailingListStatus", "maxHomeSize", "profile", "rememberExpiresAt", "scrobbleTypes", "services", "subscription", "thumb", "title", "username", "uuid", "pastSubscriptions", "trials"}); err != nil { return err } return nil } -func (o *PostUsersSignInDataUserPlexAccount) GetAdsConsent() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetAdsConsent() *bool { + if p == nil { return nil } - return o.AdsConsent + return p.AdsConsent } -func (o *PostUsersSignInDataUserPlexAccount) GetAdsConsentReminderAt() *int64 { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetAdsConsentReminderAt() *int64 { + if p == nil { return nil } - return o.AdsConsentReminderAt + return p.AdsConsentReminderAt } -func (o *PostUsersSignInDataUserPlexAccount) GetAdsConsentSetAt() *int64 { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetAdsConsentSetAt() *int64 { + if p == nil { return nil } - return o.AdsConsentSetAt + return p.AdsConsentSetAt } -func (o *PostUsersSignInDataUserPlexAccount) GetAnonymous() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetAnonymous() *bool { + if p == nil { return nil } - return o.Anonymous + return p.Anonymous } -func (o *PostUsersSignInDataUserPlexAccount) GetAuthToken() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetAuthToken() string { + if p == nil { return "" } - return o.AuthToken + return p.AuthToken } -func (o *PostUsersSignInDataUserPlexAccount) GetBackupCodesCreated() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetBackupCodesCreated() *bool { + if p == nil { return nil } - return o.BackupCodesCreated + return p.BackupCodesCreated } -func (o *PostUsersSignInDataUserPlexAccount) GetConfirmed() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetConfirmed() *bool { + if p == nil { return nil } - return o.Confirmed + return p.Confirmed } -func (o *PostUsersSignInDataUserPlexAccount) GetCountry() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetCountry() string { + if p == nil { return "" } - return o.Country + return p.Country } -func (o *PostUsersSignInDataUserPlexAccount) GetEmail() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetEmail() string { + if p == nil { return "" } - return o.Email + return p.Email } -func (o *PostUsersSignInDataUserPlexAccount) GetEmailOnlyAuth() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetEmailOnlyAuth() *bool { + if p == nil { return nil } - return o.EmailOnlyAuth + return p.EmailOnlyAuth } -func (o *PostUsersSignInDataUserPlexAccount) GetExperimentalFeatures() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetExperimentalFeatures() *bool { + if p == nil { return nil } - return o.ExperimentalFeatures + return p.ExperimentalFeatures } -func (o *PostUsersSignInDataUserPlexAccount) GetFriendlyName() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetFriendlyName() string { + if p == nil { return "" } - return o.FriendlyName + return p.FriendlyName } -func (o *PostUsersSignInDataUserPlexAccount) GetEntitlements() []string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetEntitlements() []string { + if p == nil { return []string{} } - return o.Entitlements + return p.Entitlements } -func (o *PostUsersSignInDataUserPlexAccount) GetGuest() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetGuest() *bool { + if p == nil { return nil } - return o.Guest + return p.Guest } -func (o *PostUsersSignInDataUserPlexAccount) GetHasPassword() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetHasPassword() *bool { + if p == nil { return nil } - return o.HasPassword + return p.HasPassword } -func (o *PostUsersSignInDataUserPlexAccount) GetHome() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetHome() *bool { + if p == nil { return nil } - return o.Home + return p.Home } -func (o *PostUsersSignInDataUserPlexAccount) GetHomeAdmin() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetHomeAdmin() *bool { + if p == nil { return nil } - return o.HomeAdmin + return p.HomeAdmin } -func (o *PostUsersSignInDataUserPlexAccount) GetHomeSize() int { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetHomeSize() int { + if p == nil { return 0 } - return o.HomeSize + return p.HomeSize } -func (o *PostUsersSignInDataUserPlexAccount) GetID() int { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetID() int { + if p == nil { return 0 } - return o.ID + return p.ID } -func (o *PostUsersSignInDataUserPlexAccount) GetJoinedAt() int64 { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetJoinedAt() int64 { + if p == nil { return 0 } - return o.JoinedAt + return p.JoinedAt } -func (o *PostUsersSignInDataUserPlexAccount) GetLocale() *string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetLocale() *string { + if p == nil { return nil } - return o.Locale + return p.Locale } -func (o *PostUsersSignInDataUserPlexAccount) GetMailingListActive() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetMailingListActive() *bool { + if p == nil { return nil } - return o.MailingListActive + return p.MailingListActive } -func (o *PostUsersSignInDataUserPlexAccount) GetMailingListStatus() PostUsersSignInDataMailingListStatus { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetMailingListStatus() PostUsersSignInDataMailingListStatus { + if p == nil { return PostUsersSignInDataMailingListStatus("") } - return o.MailingListStatus + return p.MailingListStatus } -func (o *PostUsersSignInDataUserPlexAccount) GetMaxHomeSize() int { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetMaxHomeSize() int { + if p == nil { return 0 } - return o.MaxHomeSize + return p.MaxHomeSize } -func (o *PostUsersSignInDataUserPlexAccount) GetPin() *string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetPin() *string { + if p == nil { return nil } - return o.Pin + return p.Pin } -func (o *PostUsersSignInDataUserPlexAccount) GetProfile() PostUsersSignInDataUserProfile { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetProfile() PostUsersSignInDataUserProfile { + if p == nil { return PostUsersSignInDataUserProfile{} } - return o.Profile + return p.Profile } -func (o *PostUsersSignInDataUserPlexAccount) GetProtected() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PostUsersSignInDataUserPlexAccount) GetRememberExpiresAt() int64 { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetRememberExpiresAt() int64 { + if p == nil { return 0 } - return o.RememberExpiresAt + return p.RememberExpiresAt } -func (o *PostUsersSignInDataUserPlexAccount) GetRestricted() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetRestricted() *bool { + if p == nil { return nil } - return o.Restricted + return p.Restricted } -func (o *PostUsersSignInDataUserPlexAccount) GetRoles() []string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetRoles() []string { + if p == nil { return nil } - return o.Roles + return p.Roles } -func (o *PostUsersSignInDataUserPlexAccount) GetScrobbleTypes() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetScrobbleTypes() string { + if p == nil { return "" } - return o.ScrobbleTypes + return p.ScrobbleTypes } -func (o *PostUsersSignInDataUserPlexAccount) GetServices() []PostUsersSignInDataServices { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetServices() []PostUsersSignInDataServices { + if p == nil { return []PostUsersSignInDataServices{} } - return o.Services + return p.Services } -func (o *PostUsersSignInDataUserPlexAccount) GetSubscription() PostUsersSignInDataSubscription { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetSubscription() PostUsersSignInDataSubscription { + if p == nil { return PostUsersSignInDataSubscription{} } - return o.Subscription + return p.Subscription } -func (o *PostUsersSignInDataUserPlexAccount) GetSubscriptionDescription() *string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetSubscriptionDescription() *string { + if p == nil { return nil } - return o.SubscriptionDescription + return p.SubscriptionDescription } -func (o *PostUsersSignInDataUserPlexAccount) GetSubscriptions() []PostUsersSignInDataAuthenticationSubscription { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetSubscriptions() []PostUsersSignInDataAuthenticationSubscription { + if p == nil { return nil } - return o.Subscriptions + return p.Subscriptions } -func (o *PostUsersSignInDataUserPlexAccount) GetThumb() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetThumb() string { + if p == nil { return "" } - return o.Thumb + return p.Thumb } -func (o *PostUsersSignInDataUserPlexAccount) GetTitle() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetTitle() string { + if p == nil { return "" } - return o.Title + return p.Title } -func (o *PostUsersSignInDataUserPlexAccount) GetTwoFactorEnabled() *bool { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetTwoFactorEnabled() *bool { + if p == nil { return nil } - return o.TwoFactorEnabled + return p.TwoFactorEnabled } -func (o *PostUsersSignInDataUserPlexAccount) GetUsername() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetUsername() string { + if p == nil { return "" } - return o.Username + return p.Username } -func (o *PostUsersSignInDataUserPlexAccount) GetUUID() string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetUUID() string { + if p == nil { return "" } - return o.UUID + return p.UUID } -func (o *PostUsersSignInDataUserPlexAccount) GetAttributionPartner() *string { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetAttributionPartner() *string { + if p == nil { return nil } - return o.AttributionPartner + return p.AttributionPartner } -func (o *PostUsersSignInDataUserPlexAccount) GetPastSubscriptions() []PastSubscription { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetPastSubscriptions() []PastSubscription { + if p == nil { return []PastSubscription{} } - return o.PastSubscriptions + return p.PastSubscriptions } -func (o *PostUsersSignInDataUserPlexAccount) GetTrials() []Trials { - if o == nil { +func (p *PostUsersSignInDataUserPlexAccount) GetTrials() []Trials { + if p == nil { return []Trials{} } - return o.Trials + return p.Trials } type PostUsersSignInDataResponse struct { @@ -1114,30 +1114,30 @@ type PostUsersSignInDataResponse struct { UserPlexAccount *PostUsersSignInDataUserPlexAccount } -func (o *PostUsersSignInDataResponse) GetContentType() string { - if o == nil { +func (p *PostUsersSignInDataResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PostUsersSignInDataResponse) GetStatusCode() int { - if o == nil { +func (p *PostUsersSignInDataResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PostUsersSignInDataResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PostUsersSignInDataResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PostUsersSignInDataResponse) GetUserPlexAccount() *PostUsersSignInDataUserPlexAccount { - if o == nil { +func (p *PostUsersSignInDataResponse) GetUserPlexAccount() *PostUsersSignInDataUserPlexAccount { + if p == nil { return nil } - return o.UserPlexAccount + return p.UserPlexAccount } diff --git a/models/operations/startalltasks.go b/models/operations/startalltasks.go index 0be4513..c2af97c 100644 --- a/models/operations/startalltasks.go +++ b/models/operations/startalltasks.go @@ -15,23 +15,23 @@ type StartAllTasksResponse struct { RawResponse *http.Response } -func (o *StartAllTasksResponse) GetContentType() string { - if o == nil { +func (s *StartAllTasksResponse) GetContentType() string { + if s == nil { return "" } - return o.ContentType + return s.ContentType } -func (o *StartAllTasksResponse) GetStatusCode() int { - if o == nil { +func (s *StartAllTasksResponse) GetStatusCode() int { + if s == nil { return 0 } - return o.StatusCode + return s.StatusCode } -func (o *StartAllTasksResponse) GetRawResponse() *http.Response { - if o == nil { +func (s *StartAllTasksResponse) GetRawResponse() *http.Response { + if s == nil { return nil } - return o.RawResponse + return s.RawResponse } diff --git a/models/operations/starttask.go b/models/operations/starttask.go index 5644b92..35f1bc4 100644 --- a/models/operations/starttask.go +++ b/models/operations/starttask.go @@ -35,11 +35,11 @@ type StartTaskRequest struct { TaskName TaskName `pathParam:"style=simple,explode=false,name=taskName"` } -func (o *StartTaskRequest) GetTaskName() TaskName { - if o == nil { +func (s *StartTaskRequest) GetTaskName() TaskName { + if s == nil { return TaskName("") } - return o.TaskName + return s.TaskName } type StartTaskResponse struct { @@ -51,23 +51,23 @@ type StartTaskResponse struct { RawResponse *http.Response } -func (o *StartTaskResponse) GetContentType() string { - if o == nil { +func (s *StartTaskResponse) GetContentType() string { + if s == nil { return "" } - return o.ContentType + return s.ContentType } -func (o *StartTaskResponse) GetStatusCode() int { - if o == nil { +func (s *StartTaskResponse) GetStatusCode() int { + if s == nil { return 0 } - return o.StatusCode + return s.StatusCode } -func (o *StartTaskResponse) GetRawResponse() *http.Response { - if o == nil { +func (s *StartTaskResponse) GetRawResponse() *http.Response { + if s == nil { return nil } - return o.RawResponse + return s.RawResponse } diff --git a/models/operations/startuniversaltranscode.go b/models/operations/startuniversaltranscode.go index d0ccec4..477d45b 100644 --- a/models/operations/startuniversaltranscode.go +++ b/models/operations/startuniversaltranscode.go @@ -41,116 +41,116 @@ type StartUniversalTranscodeRequest struct { AutoAdjustQuality *float64 `queryParam:"style=form,explode=true,name=autoAdjustQuality"` } -func (o *StartUniversalTranscodeRequest) GetHasMDE() float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetHasMDE() float64 { + if s == nil { return 0.0 } - return o.HasMDE + return s.HasMDE } -func (o *StartUniversalTranscodeRequest) GetPath() string { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetPath() string { + if s == nil { return "" } - return o.Path + return s.Path } -func (o *StartUniversalTranscodeRequest) GetMediaIndex() float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetMediaIndex() float64 { + if s == nil { return 0.0 } - return o.MediaIndex + return s.MediaIndex } -func (o *StartUniversalTranscodeRequest) GetPartIndex() float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetPartIndex() float64 { + if s == nil { return 0.0 } - return o.PartIndex + return s.PartIndex } -func (o *StartUniversalTranscodeRequest) GetProtocol() string { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetProtocol() string { + if s == nil { return "" } - return o.Protocol + return s.Protocol } -func (o *StartUniversalTranscodeRequest) GetFastSeek() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetFastSeek() *float64 { + if s == nil { return nil } - return o.FastSeek + return s.FastSeek } -func (o *StartUniversalTranscodeRequest) GetDirectPlay() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetDirectPlay() *float64 { + if s == nil { return nil } - return o.DirectPlay + return s.DirectPlay } -func (o *StartUniversalTranscodeRequest) GetDirectStream() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetDirectStream() *float64 { + if s == nil { return nil } - return o.DirectStream + return s.DirectStream } -func (o *StartUniversalTranscodeRequest) GetSubtitleSize() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetSubtitleSize() *float64 { + if s == nil { return nil } - return o.SubtitleSize + return s.SubtitleSize } -func (o *StartUniversalTranscodeRequest) GetSubtites() *string { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetSubtites() *string { + if s == nil { return nil } - return o.Subtites + return s.Subtites } -func (o *StartUniversalTranscodeRequest) GetAudioBoost() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetAudioBoost() *float64 { + if s == nil { return nil } - return o.AudioBoost + return s.AudioBoost } -func (o *StartUniversalTranscodeRequest) GetLocation() *string { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetLocation() *string { + if s == nil { return nil } - return o.Location + return s.Location } -func (o *StartUniversalTranscodeRequest) GetMediaBufferSize() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetMediaBufferSize() *float64 { + if s == nil { return nil } - return o.MediaBufferSize + return s.MediaBufferSize } -func (o *StartUniversalTranscodeRequest) GetSession() *string { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetSession() *string { + if s == nil { return nil } - return o.Session + return s.Session } -func (o *StartUniversalTranscodeRequest) GetAddDebugOverlay() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetAddDebugOverlay() *float64 { + if s == nil { return nil } - return o.AddDebugOverlay + return s.AddDebugOverlay } -func (o *StartUniversalTranscodeRequest) GetAutoAdjustQuality() *float64 { - if o == nil { +func (s *StartUniversalTranscodeRequest) GetAutoAdjustQuality() *float64 { + if s == nil { return nil } - return o.AutoAdjustQuality + return s.AutoAdjustQuality } type StartUniversalTranscodeResponse struct { @@ -162,23 +162,23 @@ type StartUniversalTranscodeResponse struct { RawResponse *http.Response } -func (o *StartUniversalTranscodeResponse) GetContentType() string { - if o == nil { +func (s *StartUniversalTranscodeResponse) GetContentType() string { + if s == nil { return "" } - return o.ContentType + return s.ContentType } -func (o *StartUniversalTranscodeResponse) GetStatusCode() int { - if o == nil { +func (s *StartUniversalTranscodeResponse) GetStatusCode() int { + if s == nil { return 0 } - return o.StatusCode + return s.StatusCode } -func (o *StartUniversalTranscodeResponse) GetRawResponse() *http.Response { - if o == nil { +func (s *StartUniversalTranscodeResponse) GetRawResponse() *http.Response { + if s == nil { return nil } - return o.RawResponse + return s.RawResponse } diff --git a/models/operations/stopalltasks.go b/models/operations/stopalltasks.go index 0f42e0d..b417742 100644 --- a/models/operations/stopalltasks.go +++ b/models/operations/stopalltasks.go @@ -15,23 +15,23 @@ type StopAllTasksResponse struct { RawResponse *http.Response } -func (o *StopAllTasksResponse) GetContentType() string { - if o == nil { +func (s *StopAllTasksResponse) GetContentType() string { + if s == nil { return "" } - return o.ContentType + return s.ContentType } -func (o *StopAllTasksResponse) GetStatusCode() int { - if o == nil { +func (s *StopAllTasksResponse) GetStatusCode() int { + if s == nil { return 0 } - return o.StatusCode + return s.StatusCode } -func (o *StopAllTasksResponse) GetRawResponse() *http.Response { - if o == nil { +func (s *StopAllTasksResponse) GetRawResponse() *http.Response { + if s == nil { return nil } - return o.RawResponse + return s.RawResponse } diff --git a/models/operations/stoptask.go b/models/operations/stoptask.go index 813bc21..343bbba 100644 --- a/models/operations/stoptask.go +++ b/models/operations/stoptask.go @@ -35,11 +35,11 @@ type StopTaskRequest struct { TaskName PathParamTaskName `pathParam:"style=simple,explode=false,name=taskName"` } -func (o *StopTaskRequest) GetTaskName() PathParamTaskName { - if o == nil { +func (s *StopTaskRequest) GetTaskName() PathParamTaskName { + if s == nil { return PathParamTaskName("") } - return o.TaskName + return s.TaskName } type StopTaskResponse struct { @@ -51,23 +51,23 @@ type StopTaskResponse struct { RawResponse *http.Response } -func (o *StopTaskResponse) GetContentType() string { - if o == nil { +func (s *StopTaskResponse) GetContentType() string { + if s == nil { return "" } - return o.ContentType + return s.ContentType } -func (o *StopTaskResponse) GetStatusCode() int { - if o == nil { +func (s *StopTaskResponse) GetStatusCode() int { + if s == nil { return 0 } - return o.StatusCode + return s.StatusCode } -func (o *StopTaskResponse) GetRawResponse() *http.Response { - if o == nil { +func (s *StopTaskResponse) GetRawResponse() *http.Response { + if s == nil { return nil } - return o.RawResponse + return s.RawResponse } diff --git a/models/operations/stoptranscodesession.go b/models/operations/stoptranscodesession.go index 5490b70..f2a21cf 100644 --- a/models/operations/stoptranscodesession.go +++ b/models/operations/stoptranscodesession.go @@ -11,11 +11,11 @@ type StopTranscodeSessionRequest struct { SessionKey string `pathParam:"style=simple,explode=false,name=sessionKey"` } -func (o *StopTranscodeSessionRequest) GetSessionKey() string { - if o == nil { +func (s *StopTranscodeSessionRequest) GetSessionKey() string { + if s == nil { return "" } - return o.SessionKey + return s.SessionKey } type StopTranscodeSessionResponse struct { @@ -27,23 +27,23 @@ type StopTranscodeSessionResponse struct { RawResponse *http.Response } -func (o *StopTranscodeSessionResponse) GetContentType() string { - if o == nil { +func (s *StopTranscodeSessionResponse) GetContentType() string { + if s == nil { return "" } - return o.ContentType + return s.ContentType } -func (o *StopTranscodeSessionResponse) GetStatusCode() int { - if o == nil { +func (s *StopTranscodeSessionResponse) GetStatusCode() int { + if s == nil { return 0 } - return o.StatusCode + return s.StatusCode } -func (o *StopTranscodeSessionResponse) GetRawResponse() *http.Response { - if o == nil { +func (s *StopTranscodeSessionResponse) GetRawResponse() *http.Response { + if s == nil { return nil } - return o.RawResponse + return s.RawResponse } diff --git a/models/operations/updateplaylist.go b/models/operations/updateplaylist.go index 8c73f0e..6e7f4e2 100644 --- a/models/operations/updateplaylist.go +++ b/models/operations/updateplaylist.go @@ -15,25 +15,25 @@ type UpdatePlaylistRequest struct { Summary *string `queryParam:"style=form,explode=true,name=summary"` } -func (o *UpdatePlaylistRequest) GetPlaylistID() float64 { - if o == nil { +func (u *UpdatePlaylistRequest) GetPlaylistID() float64 { + if u == nil { return 0.0 } - return o.PlaylistID + return u.PlaylistID } -func (o *UpdatePlaylistRequest) GetTitle() *string { - if o == nil { +func (u *UpdatePlaylistRequest) GetTitle() *string { + if u == nil { return nil } - return o.Title + return u.Title } -func (o *UpdatePlaylistRequest) GetSummary() *string { - if o == nil { +func (u *UpdatePlaylistRequest) GetSummary() *string { + if u == nil { return nil } - return o.Summary + return u.Summary } type UpdatePlaylistResponse struct { @@ -45,23 +45,23 @@ type UpdatePlaylistResponse struct { RawResponse *http.Response } -func (o *UpdatePlaylistResponse) GetContentType() string { - if o == nil { +func (u *UpdatePlaylistResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdatePlaylistResponse) GetStatusCode() int { - if o == nil { +func (u *UpdatePlaylistResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdatePlaylistResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdatePlaylistResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } diff --git a/models/operations/updateplayprogress.go b/models/operations/updateplayprogress.go index 9c653e5..6e811e9 100644 --- a/models/operations/updateplayprogress.go +++ b/models/operations/updateplayprogress.go @@ -15,25 +15,25 @@ type UpdatePlayProgressRequest struct { State string `queryParam:"style=form,explode=true,name=state"` } -func (o *UpdatePlayProgressRequest) GetKey() string { - if o == nil { +func (u *UpdatePlayProgressRequest) GetKey() string { + if u == nil { return "" } - return o.Key + return u.Key } -func (o *UpdatePlayProgressRequest) GetTime() float64 { - if o == nil { +func (u *UpdatePlayProgressRequest) GetTime() float64 { + if u == nil { return 0.0 } - return o.Time + return u.Time } -func (o *UpdatePlayProgressRequest) GetState() string { - if o == nil { +func (u *UpdatePlayProgressRequest) GetState() string { + if u == nil { return "" } - return o.State + return u.State } type UpdatePlayProgressResponse struct { @@ -45,23 +45,23 @@ type UpdatePlayProgressResponse struct { RawResponse *http.Response } -func (o *UpdatePlayProgressResponse) GetContentType() string { - if o == nil { +func (u *UpdatePlayProgressResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdatePlayProgressResponse) GetStatusCode() int { - if o == nil { +func (u *UpdatePlayProgressResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdatePlayProgressResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdatePlayProgressResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } diff --git a/models/operations/uploadplaylist.go b/models/operations/uploadplaylist.go index a6539f3..8823713 100644 --- a/models/operations/uploadplaylist.go +++ b/models/operations/uploadplaylist.go @@ -69,25 +69,25 @@ func (u *UploadPlaylistRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *UploadPlaylistRequest) GetPath() string { - if o == nil { +func (u *UploadPlaylistRequest) GetPath() string { + if u == nil { return "" } - return o.Path + return u.Path } -func (o *UploadPlaylistRequest) GetForce() QueryParamForce { - if o == nil { +func (u *UploadPlaylistRequest) GetForce() QueryParamForce { + if u == nil { return QueryParamForce(0) } - return o.Force + return u.Force } -func (o *UploadPlaylistRequest) GetSectionID() int64 { - if o == nil { +func (u *UploadPlaylistRequest) GetSectionID() int64 { + if u == nil { return 0 } - return o.SectionID + return u.SectionID } type UploadPlaylistResponse struct { @@ -99,23 +99,23 @@ type UploadPlaylistResponse struct { RawResponse *http.Response } -func (o *UploadPlaylistResponse) GetContentType() string { - if o == nil { +func (u *UploadPlaylistResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UploadPlaylistResponse) GetStatusCode() int { - if o == nil { +func (u *UploadPlaylistResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UploadPlaylistResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UploadPlaylistResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } diff --git a/models/sdkerrors/addplaylistcontents.go b/models/sdkerrors/addplaylistcontents.go index 95fbe87..f4efdb5 100644 --- a/models/sdkerrors/addplaylistcontents.go +++ b/models/sdkerrors/addplaylistcontents.go @@ -13,25 +13,25 @@ type AddPlaylistContentsPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *AddPlaylistContentsPlaylistsErrors) GetCode() *int { - if o == nil { +func (a *AddPlaylistContentsPlaylistsErrors) GetCode() *int { + if a == nil { return nil } - return o.Code + return a.Code } -func (o *AddPlaylistContentsPlaylistsErrors) GetMessage() *string { - if o == nil { +func (a *AddPlaylistContentsPlaylistsErrors) GetMessage() *string { + if a == nil { return nil } - return o.Message + return a.Message } -func (o *AddPlaylistContentsPlaylistsErrors) GetStatus() *int { - if o == nil { +func (a *AddPlaylistContentsPlaylistsErrors) GetStatus() *int { + if a == nil { return nil } - return o.Status + return a.Status } // AddPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type AddPlaylistContentsErrors struct { Status *int `json:"status,omitempty"` } -func (o *AddPlaylistContentsErrors) GetCode() *int { - if o == nil { +func (a *AddPlaylistContentsErrors) GetCode() *int { + if a == nil { return nil } - return o.Code + return a.Code } -func (o *AddPlaylistContentsErrors) GetMessage() *string { - if o == nil { +func (a *AddPlaylistContentsErrors) GetMessage() *string { + if a == nil { return nil } - return o.Message + return a.Message } -func (o *AddPlaylistContentsErrors) GetStatus() *int { - if o == nil { +func (a *AddPlaylistContentsErrors) GetStatus() *int { + if a == nil { return nil } - return o.Status + return a.Status } // AddPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/applyupdates.go b/models/sdkerrors/applyupdates.go index 15981b8..200fb37 100644 --- a/models/sdkerrors/applyupdates.go +++ b/models/sdkerrors/applyupdates.go @@ -13,25 +13,25 @@ type ApplyUpdatesUpdaterErrors struct { Status *int `json:"status,omitempty"` } -func (o *ApplyUpdatesUpdaterErrors) GetCode() *int { - if o == nil { +func (a *ApplyUpdatesUpdaterErrors) GetCode() *int { + if a == nil { return nil } - return o.Code + return a.Code } -func (o *ApplyUpdatesUpdaterErrors) GetMessage() *string { - if o == nil { +func (a *ApplyUpdatesUpdaterErrors) GetMessage() *string { + if a == nil { return nil } - return o.Message + return a.Message } -func (o *ApplyUpdatesUpdaterErrors) GetStatus() *int { - if o == nil { +func (a *ApplyUpdatesUpdaterErrors) GetStatus() *int { + if a == nil { return nil } - return o.Status + return a.Status } // ApplyUpdatesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type ApplyUpdatesErrors struct { Status *int `json:"status,omitempty"` } -func (o *ApplyUpdatesErrors) GetCode() *int { - if o == nil { +func (a *ApplyUpdatesErrors) GetCode() *int { + if a == nil { return nil } - return o.Code + return a.Code } -func (o *ApplyUpdatesErrors) GetMessage() *string { - if o == nil { +func (a *ApplyUpdatesErrors) GetMessage() *string { + if a == nil { return nil } - return o.Message + return a.Message } -func (o *ApplyUpdatesErrors) GetStatus() *int { - if o == nil { +func (a *ApplyUpdatesErrors) GetStatus() *int { + if a == nil { return nil } - return o.Status + return a.Status } // ApplyUpdatesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/cancelserveractivities.go b/models/sdkerrors/cancelserveractivities.go index 97d0b60..974cce1 100644 --- a/models/sdkerrors/cancelserveractivities.go +++ b/models/sdkerrors/cancelserveractivities.go @@ -13,25 +13,25 @@ type CancelServerActivitiesActivitiesErrors struct { Status *int `json:"status,omitempty"` } -func (o *CancelServerActivitiesActivitiesErrors) GetCode() *int { - if o == nil { +func (c *CancelServerActivitiesActivitiesErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *CancelServerActivitiesActivitiesErrors) GetMessage() *string { - if o == nil { +func (c *CancelServerActivitiesActivitiesErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *CancelServerActivitiesActivitiesErrors) GetStatus() *int { - if o == nil { +func (c *CancelServerActivitiesActivitiesErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // CancelServerActivitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type CancelServerActivitiesErrors struct { Status *int `json:"status,omitempty"` } -func (o *CancelServerActivitiesErrors) GetCode() *int { - if o == nil { +func (c *CancelServerActivitiesErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *CancelServerActivitiesErrors) GetMessage() *string { - if o == nil { +func (c *CancelServerActivitiesErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *CancelServerActivitiesErrors) GetStatus() *int { - if o == nil { +func (c *CancelServerActivitiesErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // CancelServerActivitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/checkforupdates.go b/models/sdkerrors/checkforupdates.go index e070588..14c4243 100644 --- a/models/sdkerrors/checkforupdates.go +++ b/models/sdkerrors/checkforupdates.go @@ -13,25 +13,25 @@ type CheckForUpdatesUpdaterErrors struct { Status *int `json:"status,omitempty"` } -func (o *CheckForUpdatesUpdaterErrors) GetCode() *int { - if o == nil { +func (c *CheckForUpdatesUpdaterErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *CheckForUpdatesUpdaterErrors) GetMessage() *string { - if o == nil { +func (c *CheckForUpdatesUpdaterErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *CheckForUpdatesUpdaterErrors) GetStatus() *int { - if o == nil { +func (c *CheckForUpdatesUpdaterErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // CheckForUpdatesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type CheckForUpdatesErrors struct { Status *int `json:"status,omitempty"` } -func (o *CheckForUpdatesErrors) GetCode() *int { - if o == nil { +func (c *CheckForUpdatesErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *CheckForUpdatesErrors) GetMessage() *string { - if o == nil { +func (c *CheckForUpdatesErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *CheckForUpdatesErrors) GetStatus() *int { - if o == nil { +func (c *CheckForUpdatesErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // CheckForUpdatesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/clearplaylistcontents.go b/models/sdkerrors/clearplaylistcontents.go index afcab68..7b7468d 100644 --- a/models/sdkerrors/clearplaylistcontents.go +++ b/models/sdkerrors/clearplaylistcontents.go @@ -13,25 +13,25 @@ type ClearPlaylistContentsPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *ClearPlaylistContentsPlaylistsErrors) GetCode() *int { - if o == nil { +func (c *ClearPlaylistContentsPlaylistsErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *ClearPlaylistContentsPlaylistsErrors) GetMessage() *string { - if o == nil { +func (c *ClearPlaylistContentsPlaylistsErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *ClearPlaylistContentsPlaylistsErrors) GetStatus() *int { - if o == nil { +func (c *ClearPlaylistContentsPlaylistsErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // ClearPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type ClearPlaylistContentsErrors struct { Status *int `json:"status,omitempty"` } -func (o *ClearPlaylistContentsErrors) GetCode() *int { - if o == nil { +func (c *ClearPlaylistContentsErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *ClearPlaylistContentsErrors) GetMessage() *string { - if o == nil { +func (c *ClearPlaylistContentsErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *ClearPlaylistContentsErrors) GetStatus() *int { - if o == nil { +func (c *ClearPlaylistContentsErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // ClearPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/createplaylist.go b/models/sdkerrors/createplaylist.go index 4d69458..83a1c77 100644 --- a/models/sdkerrors/createplaylist.go +++ b/models/sdkerrors/createplaylist.go @@ -13,25 +13,25 @@ type CreatePlaylistPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *CreatePlaylistPlaylistsErrors) GetCode() *int { - if o == nil { +func (c *CreatePlaylistPlaylistsErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *CreatePlaylistPlaylistsErrors) GetMessage() *string { - if o == nil { +func (c *CreatePlaylistPlaylistsErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *CreatePlaylistPlaylistsErrors) GetStatus() *int { - if o == nil { +func (c *CreatePlaylistPlaylistsErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // CreatePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type CreatePlaylistErrors struct { Status *int `json:"status,omitempty"` } -func (o *CreatePlaylistErrors) GetCode() *int { - if o == nil { +func (c *CreatePlaylistErrors) GetCode() *int { + if c == nil { return nil } - return o.Code + return c.Code } -func (o *CreatePlaylistErrors) GetMessage() *string { - if o == nil { +func (c *CreatePlaylistErrors) GetMessage() *string { + if c == nil { return nil } - return o.Message + return c.Message } -func (o *CreatePlaylistErrors) GetStatus() *int { - if o == nil { +func (c *CreatePlaylistErrors) GetStatus() *int { + if c == nil { return nil } - return o.Status + return c.Status } // CreatePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/deletelibrary.go b/models/sdkerrors/deletelibrary.go index d296113..c4f23d1 100644 --- a/models/sdkerrors/deletelibrary.go +++ b/models/sdkerrors/deletelibrary.go @@ -13,25 +13,25 @@ type DeleteLibraryLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *DeleteLibraryLibraryErrors) GetCode() *int { - if o == nil { +func (d *DeleteLibraryLibraryErrors) GetCode() *int { + if d == nil { return nil } - return o.Code + return d.Code } -func (o *DeleteLibraryLibraryErrors) GetMessage() *string { - if o == nil { +func (d *DeleteLibraryLibraryErrors) GetMessage() *string { + if d == nil { return nil } - return o.Message + return d.Message } -func (o *DeleteLibraryLibraryErrors) GetStatus() *int { - if o == nil { +func (d *DeleteLibraryLibraryErrors) GetStatus() *int { + if d == nil { return nil } - return o.Status + return d.Status } // DeleteLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type DeleteLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *DeleteLibraryErrors) GetCode() *int { - if o == nil { +func (d *DeleteLibraryErrors) GetCode() *int { + if d == nil { return nil } - return o.Code + return d.Code } -func (o *DeleteLibraryErrors) GetMessage() *string { - if o == nil { +func (d *DeleteLibraryErrors) GetMessage() *string { + if d == nil { return nil } - return o.Message + return d.Message } -func (o *DeleteLibraryErrors) GetStatus() *int { - if o == nil { +func (d *DeleteLibraryErrors) GetStatus() *int { + if d == nil { return nil } - return o.Status + return d.Status } // DeleteLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/deleteplaylist.go b/models/sdkerrors/deleteplaylist.go index f92cd57..58f8bba 100644 --- a/models/sdkerrors/deleteplaylist.go +++ b/models/sdkerrors/deleteplaylist.go @@ -13,25 +13,25 @@ type DeletePlaylistPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *DeletePlaylistPlaylistsErrors) GetCode() *int { - if o == nil { +func (d *DeletePlaylistPlaylistsErrors) GetCode() *int { + if d == nil { return nil } - return o.Code + return d.Code } -func (o *DeletePlaylistPlaylistsErrors) GetMessage() *string { - if o == nil { +func (d *DeletePlaylistPlaylistsErrors) GetMessage() *string { + if d == nil { return nil } - return o.Message + return d.Message } -func (o *DeletePlaylistPlaylistsErrors) GetStatus() *int { - if o == nil { +func (d *DeletePlaylistPlaylistsErrors) GetStatus() *int { + if d == nil { return nil } - return o.Status + return d.Status } // DeletePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type DeletePlaylistErrors struct { Status *int `json:"status,omitempty"` } -func (o *DeletePlaylistErrors) GetCode() *int { - if o == nil { +func (d *DeletePlaylistErrors) GetCode() *int { + if d == nil { return nil } - return o.Code + return d.Code } -func (o *DeletePlaylistErrors) GetMessage() *string { - if o == nil { +func (d *DeletePlaylistErrors) GetMessage() *string { + if d == nil { return nil } - return o.Message + return d.Message } -func (o *DeletePlaylistErrors) GetStatus() *int { - if o == nil { +func (d *DeletePlaylistErrors) GetStatus() *int { + if d == nil { return nil } - return o.Status + return d.Status } // DeletePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/enablepapertrail.go b/models/sdkerrors/enablepapertrail.go index 2845a23..a4cd4f7 100644 --- a/models/sdkerrors/enablepapertrail.go +++ b/models/sdkerrors/enablepapertrail.go @@ -13,25 +13,25 @@ type EnablePaperTrailLogErrors struct { Status *int `json:"status,omitempty"` } -func (o *EnablePaperTrailLogErrors) GetCode() *int { - if o == nil { +func (e *EnablePaperTrailLogErrors) GetCode() *int { + if e == nil { return nil } - return o.Code + return e.Code } -func (o *EnablePaperTrailLogErrors) GetMessage() *string { - if o == nil { +func (e *EnablePaperTrailLogErrors) GetMessage() *string { + if e == nil { return nil } - return o.Message + return e.Message } -func (o *EnablePaperTrailLogErrors) GetStatus() *int { - if o == nil { +func (e *EnablePaperTrailLogErrors) GetStatus() *int { + if e == nil { return nil } - return o.Status + return e.Status } // EnablePaperTrailUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type EnablePaperTrailErrors struct { Status *int `json:"status,omitempty"` } -func (o *EnablePaperTrailErrors) GetCode() *int { - if o == nil { +func (e *EnablePaperTrailErrors) GetCode() *int { + if e == nil { return nil } - return o.Code + return e.Code } -func (o *EnablePaperTrailErrors) GetMessage() *string { - if o == nil { +func (e *EnablePaperTrailErrors) GetMessage() *string { + if e == nil { return nil } - return o.Message + return e.Message } -func (o *EnablePaperTrailErrors) GetStatus() *int { - if o == nil { +func (e *EnablePaperTrailErrors) GetStatus() *int { + if e == nil { return nil } - return o.Status + return e.Status } // EnablePaperTrailBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getactorslibrary.go b/models/sdkerrors/getactorslibrary.go index 2b65c67..0345715 100644 --- a/models/sdkerrors/getactorslibrary.go +++ b/models/sdkerrors/getactorslibrary.go @@ -13,25 +13,25 @@ type GetActorsLibraryLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetActorsLibraryLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetActorsLibraryLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetActorsLibraryLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetActorsLibraryLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetActorsLibraryLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetActorsLibraryLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetActorsLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetActorsLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetActorsLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetActorsLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetActorsLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetActorsLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetActorsLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetActorsLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetActorsLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getalllibraries.go b/models/sdkerrors/getalllibraries.go index 43e8261..0a29784 100644 --- a/models/sdkerrors/getalllibraries.go +++ b/models/sdkerrors/getalllibraries.go @@ -13,25 +13,25 @@ type GetAllLibrariesLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetAllLibrariesLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetAllLibrariesLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetAllLibrariesLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetAllLibrariesLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetAllLibrariesLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetAllLibrariesLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetAllLibrariesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetAllLibrariesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetAllLibrariesErrors) GetCode() *int { - if o == nil { +func (g *GetAllLibrariesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetAllLibrariesErrors) GetMessage() *string { - if o == nil { +func (g *GetAllLibrariesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetAllLibrariesErrors) GetStatus() *int { - if o == nil { +func (g *GetAllLibrariesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetAllLibrariesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getavailableclients.go b/models/sdkerrors/getavailableclients.go index 7da1715..0b77c41 100644 --- a/models/sdkerrors/getavailableclients.go +++ b/models/sdkerrors/getavailableclients.go @@ -13,25 +13,25 @@ type GetAvailableClientsServerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetAvailableClientsServerErrors) GetCode() *int { - if o == nil { +func (g *GetAvailableClientsServerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetAvailableClientsServerErrors) GetMessage() *string { - if o == nil { +func (g *GetAvailableClientsServerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetAvailableClientsServerErrors) GetStatus() *int { - if o == nil { +func (g *GetAvailableClientsServerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetAvailableClientsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetAvailableClientsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetAvailableClientsErrors) GetCode() *int { - if o == nil { +func (g *GetAvailableClientsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetAvailableClientsErrors) GetMessage() *string { - if o == nil { +func (g *GetAvailableClientsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetAvailableClientsErrors) GetStatus() *int { - if o == nil { +func (g *GetAvailableClientsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetAvailableClientsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getbandwidthstatistics.go b/models/sdkerrors/getbandwidthstatistics.go index 1ba9061..ed60752 100644 --- a/models/sdkerrors/getbandwidthstatistics.go +++ b/models/sdkerrors/getbandwidthstatistics.go @@ -13,25 +13,25 @@ type GetBandwidthStatisticsStatisticsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetBandwidthStatisticsStatisticsErrors) GetCode() *int { - if o == nil { +func (g *GetBandwidthStatisticsStatisticsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetBandwidthStatisticsStatisticsErrors) GetMessage() *string { - if o == nil { +func (g *GetBandwidthStatisticsStatisticsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetBandwidthStatisticsStatisticsErrors) GetStatus() *int { - if o == nil { +func (g *GetBandwidthStatisticsStatisticsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetBandwidthStatisticsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetBandwidthStatisticsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetBandwidthStatisticsErrors) GetCode() *int { - if o == nil { +func (g *GetBandwidthStatisticsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetBandwidthStatisticsErrors) GetMessage() *string { - if o == nil { +func (g *GetBandwidthStatisticsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetBandwidthStatisticsErrors) GetStatus() *int { - if o == nil { +func (g *GetBandwidthStatisticsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetBandwidthStatisticsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getbannerimage.go b/models/sdkerrors/getbannerimage.go index 193e077..777ba77 100644 --- a/models/sdkerrors/getbannerimage.go +++ b/models/sdkerrors/getbannerimage.go @@ -13,25 +13,25 @@ type GetBannerImageMediaErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetBannerImageMediaErrors) GetCode() *int { - if o == nil { +func (g *GetBannerImageMediaErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetBannerImageMediaErrors) GetMessage() *string { - if o == nil { +func (g *GetBannerImageMediaErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetBannerImageMediaErrors) GetStatus() *int { - if o == nil { +func (g *GetBannerImageMediaErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetBannerImageUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetBannerImageErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetBannerImageErrors) GetCode() *int { - if o == nil { +func (g *GetBannerImageErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetBannerImageErrors) GetMessage() *string { - if o == nil { +func (g *GetBannerImageErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetBannerImageErrors) GetStatus() *int { - if o == nil { +func (g *GetBannerImageErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetBannerImageBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getbutlertasks.go b/models/sdkerrors/getbutlertasks.go index dfbf750..10adf82 100644 --- a/models/sdkerrors/getbutlertasks.go +++ b/models/sdkerrors/getbutlertasks.go @@ -13,25 +13,25 @@ type GetButlerTasksButlerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetButlerTasksButlerErrors) GetCode() *int { - if o == nil { +func (g *GetButlerTasksButlerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetButlerTasksButlerErrors) GetMessage() *string { - if o == nil { +func (g *GetButlerTasksButlerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetButlerTasksButlerErrors) GetStatus() *int { - if o == nil { +func (g *GetButlerTasksButlerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetButlerTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetButlerTasksErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetButlerTasksErrors) GetCode() *int { - if o == nil { +func (g *GetButlerTasksErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetButlerTasksErrors) GetMessage() *string { - if o == nil { +func (g *GetButlerTasksErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetButlerTasksErrors) GetStatus() *int { - if o == nil { +func (g *GetButlerTasksErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetButlerTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getcompanionsdata.go b/models/sdkerrors/getcompanionsdata.go index 008b933..5da1c85 100644 --- a/models/sdkerrors/getcompanionsdata.go +++ b/models/sdkerrors/getcompanionsdata.go @@ -13,25 +13,25 @@ type GetCompanionsDataPlexErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetCompanionsDataPlexErrors) GetCode() *int { - if o == nil { +func (g *GetCompanionsDataPlexErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetCompanionsDataPlexErrors) GetMessage() *string { - if o == nil { +func (g *GetCompanionsDataPlexErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetCompanionsDataPlexErrors) GetStatus() *int { - if o == nil { +func (g *GetCompanionsDataPlexErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetCompanionsDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetCompanionsDataErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetCompanionsDataErrors) GetCode() *int { - if o == nil { +func (g *GetCompanionsDataErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetCompanionsDataErrors) GetMessage() *string { - if o == nil { +func (g *GetCompanionsDataErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetCompanionsDataErrors) GetStatus() *int { - if o == nil { +func (g *GetCompanionsDataErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetCompanionsDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getcountrieslibrary.go b/models/sdkerrors/getcountrieslibrary.go index fd4dc11..1fa24d8 100644 --- a/models/sdkerrors/getcountrieslibrary.go +++ b/models/sdkerrors/getcountrieslibrary.go @@ -13,25 +13,25 @@ type GetCountriesLibraryLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetCountriesLibraryLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetCountriesLibraryLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetCountriesLibraryLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetCountriesLibraryLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetCountriesLibraryLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetCountriesLibraryLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetCountriesLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetCountriesLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetCountriesLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetCountriesLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetCountriesLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetCountriesLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetCountriesLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetCountriesLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetCountriesLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getdevices.go b/models/sdkerrors/getdevices.go index 4540e87..25e28eb 100644 --- a/models/sdkerrors/getdevices.go +++ b/models/sdkerrors/getdevices.go @@ -13,25 +13,25 @@ type GetDevicesServerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetDevicesServerErrors) GetCode() *int { - if o == nil { +func (g *GetDevicesServerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetDevicesServerErrors) GetMessage() *string { - if o == nil { +func (g *GetDevicesServerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetDevicesServerErrors) GetStatus() *int { - if o == nil { +func (g *GetDevicesServerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetDevicesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetDevicesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetDevicesErrors) GetCode() *int { - if o == nil { +func (g *GetDevicesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetDevicesErrors) GetMessage() *string { - if o == nil { +func (g *GetDevicesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetDevicesErrors) GetStatus() *int { - if o == nil { +func (g *GetDevicesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetDevicesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getfilehash.go b/models/sdkerrors/getfilehash.go index bc9a5e4..4b7246e 100644 --- a/models/sdkerrors/getfilehash.go +++ b/models/sdkerrors/getfilehash.go @@ -13,25 +13,25 @@ type GetFileHashLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetFileHashLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetFileHashLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetFileHashLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetFileHashLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetFileHashLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetFileHashLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetFileHashUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetFileHashErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetFileHashErrors) GetCode() *int { - if o == nil { +func (g *GetFileHashErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetFileHashErrors) GetMessage() *string { - if o == nil { +func (g *GetFileHashErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetFileHashErrors) GetStatus() *int { - if o == nil { +func (g *GetFileHashErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetFileHashBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getgenreslibrary.go b/models/sdkerrors/getgenreslibrary.go index eecdf9a..1e74d66 100644 --- a/models/sdkerrors/getgenreslibrary.go +++ b/models/sdkerrors/getgenreslibrary.go @@ -13,25 +13,25 @@ type GetGenresLibraryLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetGenresLibraryLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetGenresLibraryLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetGenresLibraryLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetGenresLibraryLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetGenresLibraryLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetGenresLibraryLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetGenresLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetGenresLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetGenresLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetGenresLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetGenresLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetGenresLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetGenresLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetGenresLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetGenresLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getgeodata.go b/models/sdkerrors/getgeodata.go index 7774c15..0ab03fc 100644 --- a/models/sdkerrors/getgeodata.go +++ b/models/sdkerrors/getgeodata.go @@ -13,25 +13,25 @@ type GetGeoDataPlexErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetGeoDataPlexErrors) GetCode() *int { - if o == nil { +func (g *GetGeoDataPlexErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetGeoDataPlexErrors) GetMessage() *string { - if o == nil { +func (g *GetGeoDataPlexErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetGeoDataPlexErrors) GetStatus() *int { - if o == nil { +func (g *GetGeoDataPlexErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetGeoDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetGeoDataErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetGeoDataErrors) GetCode() *int { - if o == nil { +func (g *GetGeoDataErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetGeoDataErrors) GetMessage() *string { - if o == nil { +func (g *GetGeoDataErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetGeoDataErrors) GetStatus() *int { - if o == nil { +func (g *GetGeoDataErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetGeoDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getglobalhubs.go b/models/sdkerrors/getglobalhubs.go index b1400e5..8196f7e 100644 --- a/models/sdkerrors/getglobalhubs.go +++ b/models/sdkerrors/getglobalhubs.go @@ -13,25 +13,25 @@ type GetGlobalHubsHubsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetGlobalHubsHubsErrors) GetCode() *int { - if o == nil { +func (g *GetGlobalHubsHubsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetGlobalHubsHubsErrors) GetMessage() *string { - if o == nil { +func (g *GetGlobalHubsHubsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetGlobalHubsHubsErrors) GetStatus() *int { - if o == nil { +func (g *GetGlobalHubsHubsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetGlobalHubsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetGlobalHubsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetGlobalHubsErrors) GetCode() *int { - if o == nil { +func (g *GetGlobalHubsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetGlobalHubsErrors) GetMessage() *string { - if o == nil { +func (g *GetGlobalHubsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetGlobalHubsErrors) GetStatus() *int { - if o == nil { +func (g *GetGlobalHubsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetGlobalHubsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/gethomedata.go b/models/sdkerrors/gethomedata.go index f2c296e..1971b69 100644 --- a/models/sdkerrors/gethomedata.go +++ b/models/sdkerrors/gethomedata.go @@ -13,25 +13,25 @@ type GetHomeDataPlexErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetHomeDataPlexErrors) GetCode() *int { - if o == nil { +func (g *GetHomeDataPlexErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetHomeDataPlexErrors) GetMessage() *string { - if o == nil { +func (g *GetHomeDataPlexErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetHomeDataPlexErrors) GetStatus() *int { - if o == nil { +func (g *GetHomeDataPlexErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetHomeDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetHomeDataErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetHomeDataErrors) GetCode() *int { - if o == nil { +func (g *GetHomeDataErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetHomeDataErrors) GetMessage() *string { - if o == nil { +func (g *GetHomeDataErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetHomeDataErrors) GetStatus() *int { - if o == nil { +func (g *GetHomeDataErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetHomeDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getlibrarydetails.go b/models/sdkerrors/getlibrarydetails.go index f122b55..523cf11 100644 --- a/models/sdkerrors/getlibrarydetails.go +++ b/models/sdkerrors/getlibrarydetails.go @@ -13,25 +13,25 @@ type GetLibraryDetailsLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibraryDetailsLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetLibraryDetailsLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibraryDetailsLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetLibraryDetailsLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibraryDetailsLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetLibraryDetailsLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibraryDetailsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetLibraryDetailsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibraryDetailsErrors) GetCode() *int { - if o == nil { +func (g *GetLibraryDetailsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibraryDetailsErrors) GetMessage() *string { - if o == nil { +func (g *GetLibraryDetailsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibraryDetailsErrors) GetStatus() *int { - if o == nil { +func (g *GetLibraryDetailsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibraryDetailsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getlibraryhubs.go b/models/sdkerrors/getlibraryhubs.go index ba86ffb..f090471 100644 --- a/models/sdkerrors/getlibraryhubs.go +++ b/models/sdkerrors/getlibraryhubs.go @@ -13,25 +13,25 @@ type GetLibraryHubsHubsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibraryHubsHubsErrors) GetCode() *int { - if o == nil { +func (g *GetLibraryHubsHubsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibraryHubsHubsErrors) GetMessage() *string { - if o == nil { +func (g *GetLibraryHubsHubsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibraryHubsHubsErrors) GetStatus() *int { - if o == nil { +func (g *GetLibraryHubsHubsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibraryHubsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetLibraryHubsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibraryHubsErrors) GetCode() *int { - if o == nil { +func (g *GetLibraryHubsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibraryHubsErrors) GetMessage() *string { - if o == nil { +func (g *GetLibraryHubsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibraryHubsErrors) GetStatus() *int { - if o == nil { +func (g *GetLibraryHubsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibraryHubsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getlibraryitems.go b/models/sdkerrors/getlibraryitems.go index d9b1ba0..bafc564 100644 --- a/models/sdkerrors/getlibraryitems.go +++ b/models/sdkerrors/getlibraryitems.go @@ -13,25 +13,25 @@ type GetLibraryItemsLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibraryItemsLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetLibraryItemsLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibraryItemsLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetLibraryItemsLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibraryItemsLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetLibraryItemsLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibraryItemsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetLibraryItemsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibraryItemsErrors) GetCode() *int { - if o == nil { +func (g *GetLibraryItemsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibraryItemsErrors) GetMessage() *string { - if o == nil { +func (g *GetLibraryItemsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibraryItemsErrors) GetStatus() *int { - if o == nil { +func (g *GetLibraryItemsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibraryItemsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getlibrarysectionsall.go b/models/sdkerrors/getlibrarysectionsall.go index 9f58474..c985d3e 100644 --- a/models/sdkerrors/getlibrarysectionsall.go +++ b/models/sdkerrors/getlibrarysectionsall.go @@ -13,25 +13,25 @@ type GetLibrarySectionsAllLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibrarySectionsAllLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetLibrarySectionsAllLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibrarySectionsAllLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetLibrarySectionsAllLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibrarySectionsAllLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetLibrarySectionsAllLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibrarySectionsAllUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetLibrarySectionsAllErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetLibrarySectionsAllErrors) GetCode() *int { - if o == nil { +func (g *GetLibrarySectionsAllErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetLibrarySectionsAllErrors) GetMessage() *string { - if o == nil { +func (g *GetLibrarySectionsAllErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetLibrarySectionsAllErrors) GetStatus() *int { - if o == nil { +func (g *GetLibrarySectionsAllErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetLibrarySectionsAllBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getmediametadata.go b/models/sdkerrors/getmediametadata.go index e9161de..93db302 100644 --- a/models/sdkerrors/getmediametadata.go +++ b/models/sdkerrors/getmediametadata.go @@ -13,25 +13,25 @@ type GetMediaMetaDataLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMediaMetaDataLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetMediaMetaDataLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMediaMetaDataLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetMediaMetaDataLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMediaMetaDataLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetMediaMetaDataLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMediaMetaDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetMediaMetaDataErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMediaMetaDataErrors) GetCode() *int { - if o == nil { +func (g *GetMediaMetaDataErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMediaMetaDataErrors) GetMessage() *string { - if o == nil { +func (g *GetMediaMetaDataErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMediaMetaDataErrors) GetStatus() *int { - if o == nil { +func (g *GetMediaMetaDataErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMediaMetaDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getmediaproviders.go b/models/sdkerrors/getmediaproviders.go index b6f461e..28c3223 100644 --- a/models/sdkerrors/getmediaproviders.go +++ b/models/sdkerrors/getmediaproviders.go @@ -13,25 +13,25 @@ type GetMediaProvidersServerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMediaProvidersServerErrors) GetCode() *int { - if o == nil { +func (g *GetMediaProvidersServerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMediaProvidersServerErrors) GetMessage() *string { - if o == nil { +func (g *GetMediaProvidersServerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMediaProvidersServerErrors) GetStatus() *int { - if o == nil { +func (g *GetMediaProvidersServerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMediaProvidersUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetMediaProvidersErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMediaProvidersErrors) GetCode() *int { - if o == nil { +func (g *GetMediaProvidersErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMediaProvidersErrors) GetMessage() *string { - if o == nil { +func (g *GetMediaProvidersErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMediaProvidersErrors) GetStatus() *int { - if o == nil { +func (g *GetMediaProvidersErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMediaProvidersBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getmetadatachildren.go b/models/sdkerrors/getmetadatachildren.go index f7d601e..dd4d8f3 100644 --- a/models/sdkerrors/getmetadatachildren.go +++ b/models/sdkerrors/getmetadatachildren.go @@ -13,25 +13,25 @@ type GetMetadataChildrenLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMetadataChildrenLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetMetadataChildrenLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMetadataChildrenLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetMetadataChildrenLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMetadataChildrenLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetMetadataChildrenLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMetadataChildrenUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetMetadataChildrenErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMetadataChildrenErrors) GetCode() *int { - if o == nil { +func (g *GetMetadataChildrenErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMetadataChildrenErrors) GetMessage() *string { - if o == nil { +func (g *GetMetadataChildrenErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMetadataChildrenErrors) GetStatus() *int { - if o == nil { +func (g *GetMetadataChildrenErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMetadataChildrenBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getmyplexaccount.go b/models/sdkerrors/getmyplexaccount.go index f962607..6396289 100644 --- a/models/sdkerrors/getmyplexaccount.go +++ b/models/sdkerrors/getmyplexaccount.go @@ -13,25 +13,25 @@ type GetMyPlexAccountServerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMyPlexAccountServerErrors) GetCode() *int { - if o == nil { +func (g *GetMyPlexAccountServerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMyPlexAccountServerErrors) GetMessage() *string { - if o == nil { +func (g *GetMyPlexAccountServerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMyPlexAccountServerErrors) GetStatus() *int { - if o == nil { +func (g *GetMyPlexAccountServerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMyPlexAccountUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetMyPlexAccountErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetMyPlexAccountErrors) GetCode() *int { - if o == nil { +func (g *GetMyPlexAccountErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetMyPlexAccountErrors) GetMessage() *string { - if o == nil { +func (g *GetMyPlexAccountErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetMyPlexAccountErrors) GetStatus() *int { - if o == nil { +func (g *GetMyPlexAccountErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetMyPlexAccountBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getpin.go b/models/sdkerrors/getpin.go index 09dead4..f789f9f 100644 --- a/models/sdkerrors/getpin.go +++ b/models/sdkerrors/getpin.go @@ -13,25 +13,25 @@ type GetPinErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetPinErrors) GetCode() *int { - if o == nil { +func (g *GetPinErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetPinErrors) GetMessage() *string { - if o == nil { +func (g *GetPinErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetPinErrors) GetStatus() *int { - if o == nil { +func (g *GetPinErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetPinBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getplaylist.go b/models/sdkerrors/getplaylist.go index adad3b9..8211e1e 100644 --- a/models/sdkerrors/getplaylist.go +++ b/models/sdkerrors/getplaylist.go @@ -13,25 +13,25 @@ type GetPlaylistPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetPlaylistPlaylistsErrors) GetCode() *int { - if o == nil { +func (g *GetPlaylistPlaylistsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetPlaylistPlaylistsErrors) GetMessage() *string { - if o == nil { +func (g *GetPlaylistPlaylistsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetPlaylistPlaylistsErrors) GetStatus() *int { - if o == nil { +func (g *GetPlaylistPlaylistsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetPlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetPlaylistErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetPlaylistErrors) GetCode() *int { - if o == nil { +func (g *GetPlaylistErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetPlaylistErrors) GetMessage() *string { - if o == nil { +func (g *GetPlaylistErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetPlaylistErrors) GetStatus() *int { - if o == nil { +func (g *GetPlaylistErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetPlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getplaylistcontents.go b/models/sdkerrors/getplaylistcontents.go index d02b421..a4937a3 100644 --- a/models/sdkerrors/getplaylistcontents.go +++ b/models/sdkerrors/getplaylistcontents.go @@ -13,25 +13,25 @@ type GetPlaylistContentsPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetPlaylistContentsPlaylistsErrors) GetCode() *int { - if o == nil { +func (g *GetPlaylistContentsPlaylistsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetPlaylistContentsPlaylistsErrors) GetMessage() *string { - if o == nil { +func (g *GetPlaylistContentsPlaylistsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetPlaylistContentsPlaylistsErrors) GetStatus() *int { - if o == nil { +func (g *GetPlaylistContentsPlaylistsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetPlaylistContentsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetPlaylistContentsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetPlaylistContentsErrors) GetCode() *int { - if o == nil { +func (g *GetPlaylistContentsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetPlaylistContentsErrors) GetMessage() *string { - if o == nil { +func (g *GetPlaylistContentsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetPlaylistContentsErrors) GetStatus() *int { - if o == nil { +func (g *GetPlaylistContentsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetPlaylistContentsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getplaylists.go b/models/sdkerrors/getplaylists.go index d343568..83fbc86 100644 --- a/models/sdkerrors/getplaylists.go +++ b/models/sdkerrors/getplaylists.go @@ -13,25 +13,25 @@ type GetPlaylistsPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetPlaylistsPlaylistsErrors) GetCode() *int { - if o == nil { +func (g *GetPlaylistsPlaylistsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetPlaylistsPlaylistsErrors) GetMessage() *string { - if o == nil { +func (g *GetPlaylistsPlaylistsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetPlaylistsPlaylistsErrors) GetStatus() *int { - if o == nil { +func (g *GetPlaylistsPlaylistsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetPlaylistsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetPlaylistsErrors) GetCode() *int { - if o == nil { +func (g *GetPlaylistsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetPlaylistsErrors) GetMessage() *string { - if o == nil { +func (g *GetPlaylistsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetPlaylistsErrors) GetStatus() *int { - if o == nil { +func (g *GetPlaylistsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetPlaylistsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getrecentlyaddedlibrary.go b/models/sdkerrors/getrecentlyaddedlibrary.go index 8e74b3b..6237248 100644 --- a/models/sdkerrors/getrecentlyaddedlibrary.go +++ b/models/sdkerrors/getrecentlyaddedlibrary.go @@ -13,25 +13,25 @@ type GetRecentlyAddedLibraryLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetRecentlyAddedLibraryLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetRecentlyAddedLibraryLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetRecentlyAddedLibraryLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetRecentlyAddedLibraryLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetRecentlyAddedLibraryLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetRecentlyAddedLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetRecentlyAddedLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetRecentlyAddedLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetRecentlyAddedLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetRecentlyAddedLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetRecentlyAddedLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetRecentlyAddedLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetRecentlyAddedLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetRecentlyAddedLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getrefreshlibrarymetadata.go b/models/sdkerrors/getrefreshlibrarymetadata.go index 5f21374..cd41ebd 100644 --- a/models/sdkerrors/getrefreshlibrarymetadata.go +++ b/models/sdkerrors/getrefreshlibrarymetadata.go @@ -13,25 +13,25 @@ type GetRefreshLibraryMetadataLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetRefreshLibraryMetadataLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetRefreshLibraryMetadataLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetRefreshLibraryMetadataLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetRefreshLibraryMetadataLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetRefreshLibraryMetadataLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetRefreshLibraryMetadataLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetRefreshLibraryMetadataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetRefreshLibraryMetadataErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetRefreshLibraryMetadataErrors) GetCode() *int { - if o == nil { +func (g *GetRefreshLibraryMetadataErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetRefreshLibraryMetadataErrors) GetMessage() *string { - if o == nil { +func (g *GetRefreshLibraryMetadataErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetRefreshLibraryMetadataErrors) GetStatus() *int { - if o == nil { +func (g *GetRefreshLibraryMetadataErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetRefreshLibraryMetadataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getresizedphoto.go b/models/sdkerrors/getresizedphoto.go index 46cfa84..ccf2010 100644 --- a/models/sdkerrors/getresizedphoto.go +++ b/models/sdkerrors/getresizedphoto.go @@ -13,25 +13,25 @@ type GetResizedPhotoServerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetResizedPhotoServerErrors) GetCode() *int { - if o == nil { +func (g *GetResizedPhotoServerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetResizedPhotoServerErrors) GetMessage() *string { - if o == nil { +func (g *GetResizedPhotoServerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetResizedPhotoServerErrors) GetStatus() *int { - if o == nil { +func (g *GetResizedPhotoServerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetResizedPhotoUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetResizedPhotoErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetResizedPhotoErrors) GetCode() *int { - if o == nil { +func (g *GetResizedPhotoErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetResizedPhotoErrors) GetMessage() *string { - if o == nil { +func (g *GetResizedPhotoErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetResizedPhotoErrors) GetStatus() *int { - if o == nil { +func (g *GetResizedPhotoErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetResizedPhotoBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getresourcesstatistics.go b/models/sdkerrors/getresourcesstatistics.go index 141a5e2..4088be3 100644 --- a/models/sdkerrors/getresourcesstatistics.go +++ b/models/sdkerrors/getresourcesstatistics.go @@ -13,25 +13,25 @@ type GetResourcesStatisticsStatisticsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetResourcesStatisticsStatisticsErrors) GetCode() *int { - if o == nil { +func (g *GetResourcesStatisticsStatisticsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetResourcesStatisticsStatisticsErrors) GetMessage() *string { - if o == nil { +func (g *GetResourcesStatisticsStatisticsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetResourcesStatisticsStatisticsErrors) GetStatus() *int { - if o == nil { +func (g *GetResourcesStatisticsStatisticsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetResourcesStatisticsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetResourcesStatisticsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetResourcesStatisticsErrors) GetCode() *int { - if o == nil { +func (g *GetResourcesStatisticsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetResourcesStatisticsErrors) GetMessage() *string { - if o == nil { +func (g *GetResourcesStatisticsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetResourcesStatisticsErrors) GetStatus() *int { - if o == nil { +func (g *GetResourcesStatisticsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetResourcesStatisticsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getsearchalllibraries.go b/models/sdkerrors/getsearchalllibraries.go index 3363e4d..82e7b10 100644 --- a/models/sdkerrors/getsearchalllibraries.go +++ b/models/sdkerrors/getsearchalllibraries.go @@ -13,25 +13,25 @@ type GetSearchAllLibrariesLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSearchAllLibrariesLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetSearchAllLibrariesLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSearchAllLibrariesLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetSearchAllLibrariesLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSearchAllLibrariesLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetSearchAllLibrariesLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSearchAllLibrariesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetSearchAllLibrariesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSearchAllLibrariesErrors) GetCode() *int { - if o == nil { +func (g *GetSearchAllLibrariesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSearchAllLibrariesErrors) GetMessage() *string { - if o == nil { +func (g *GetSearchAllLibrariesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSearchAllLibrariesErrors) GetStatus() *int { - if o == nil { +func (g *GetSearchAllLibrariesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSearchAllLibrariesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getsearchlibrary.go b/models/sdkerrors/getsearchlibrary.go index 256f9fc..4209d22 100644 --- a/models/sdkerrors/getsearchlibrary.go +++ b/models/sdkerrors/getsearchlibrary.go @@ -13,25 +13,25 @@ type GetSearchLibraryLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSearchLibraryLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetSearchLibraryLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSearchLibraryLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetSearchLibraryLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSearchLibraryLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetSearchLibraryLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSearchLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetSearchLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSearchLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetSearchLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSearchLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetSearchLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSearchLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetSearchLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSearchLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getsearchresults.go b/models/sdkerrors/getsearchresults.go index 1673928..252a8ca 100644 --- a/models/sdkerrors/getsearchresults.go +++ b/models/sdkerrors/getsearchresults.go @@ -13,25 +13,25 @@ type GetSearchResultsSearchErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSearchResultsSearchErrors) GetCode() *int { - if o == nil { +func (g *GetSearchResultsSearchErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSearchResultsSearchErrors) GetMessage() *string { - if o == nil { +func (g *GetSearchResultsSearchErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSearchResultsSearchErrors) GetStatus() *int { - if o == nil { +func (g *GetSearchResultsSearchErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSearchResultsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetSearchResultsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSearchResultsErrors) GetCode() *int { - if o == nil { +func (g *GetSearchResultsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSearchResultsErrors) GetMessage() *string { - if o == nil { +func (g *GetSearchResultsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSearchResultsErrors) GetStatus() *int { - if o == nil { +func (g *GetSearchResultsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSearchResultsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getserveractivities.go b/models/sdkerrors/getserveractivities.go index ef0357a..8ad1dbd 100644 --- a/models/sdkerrors/getserveractivities.go +++ b/models/sdkerrors/getserveractivities.go @@ -13,25 +13,25 @@ type GetServerActivitiesActivitiesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerActivitiesActivitiesErrors) GetCode() *int { - if o == nil { +func (g *GetServerActivitiesActivitiesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerActivitiesActivitiesErrors) GetMessage() *string { - if o == nil { +func (g *GetServerActivitiesActivitiesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerActivitiesActivitiesErrors) GetStatus() *int { - if o == nil { +func (g *GetServerActivitiesActivitiesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerActivitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetServerActivitiesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerActivitiesErrors) GetCode() *int { - if o == nil { +func (g *GetServerActivitiesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerActivitiesErrors) GetMessage() *string { - if o == nil { +func (g *GetServerActivitiesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerActivitiesErrors) GetStatus() *int { - if o == nil { +func (g *GetServerActivitiesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerActivitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getservercapabilities.go b/models/sdkerrors/getservercapabilities.go index 70cca09..b109076 100644 --- a/models/sdkerrors/getservercapabilities.go +++ b/models/sdkerrors/getservercapabilities.go @@ -13,25 +13,25 @@ type GetServerCapabilitiesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerCapabilitiesErrors) GetCode() *int { - if o == nil { +func (g *GetServerCapabilitiesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerCapabilitiesErrors) GetMessage() *string { - if o == nil { +func (g *GetServerCapabilitiesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerCapabilitiesErrors) GetStatus() *int { - if o == nil { +func (g *GetServerCapabilitiesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerCapabilitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type Errors struct { Status *int `json:"status,omitempty"` } -func (o *Errors) GetCode() *int { - if o == nil { +func (e *Errors) GetCode() *int { + if e == nil { return nil } - return o.Code + return e.Code } -func (o *Errors) GetMessage() *string { - if o == nil { +func (e *Errors) GetMessage() *string { + if e == nil { return nil } - return o.Message + return e.Message } -func (o *Errors) GetStatus() *int { - if o == nil { +func (e *Errors) GetStatus() *int { + if e == nil { return nil } - return o.Status + return e.Status } // GetServerCapabilitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getserverlist.go b/models/sdkerrors/getserverlist.go index dba04d7..0ffcb8d 100644 --- a/models/sdkerrors/getserverlist.go +++ b/models/sdkerrors/getserverlist.go @@ -13,25 +13,25 @@ type GetServerListServerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerListServerErrors) GetCode() *int { - if o == nil { +func (g *GetServerListServerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerListServerErrors) GetMessage() *string { - if o == nil { +func (g *GetServerListServerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerListServerErrors) GetStatus() *int { - if o == nil { +func (g *GetServerListServerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerListUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetServerListErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerListErrors) GetCode() *int { - if o == nil { +func (g *GetServerListErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerListErrors) GetMessage() *string { - if o == nil { +func (g *GetServerListErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerListErrors) GetStatus() *int { - if o == nil { +func (g *GetServerListErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerListBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getserverpreferences.go b/models/sdkerrors/getserverpreferences.go index caf67e0..42e91de 100644 --- a/models/sdkerrors/getserverpreferences.go +++ b/models/sdkerrors/getserverpreferences.go @@ -13,25 +13,25 @@ type GetServerPreferencesServerErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerPreferencesServerErrors) GetCode() *int { - if o == nil { +func (g *GetServerPreferencesServerErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerPreferencesServerErrors) GetMessage() *string { - if o == nil { +func (g *GetServerPreferencesServerErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerPreferencesServerErrors) GetStatus() *int { - if o == nil { +func (g *GetServerPreferencesServerErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerPreferencesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetServerPreferencesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerPreferencesErrors) GetCode() *int { - if o == nil { +func (g *GetServerPreferencesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerPreferencesErrors) GetMessage() *string { - if o == nil { +func (g *GetServerPreferencesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerPreferencesErrors) GetStatus() *int { - if o == nil { +func (g *GetServerPreferencesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerPreferencesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getserverresources.go b/models/sdkerrors/getserverresources.go index ad66cc2..4ee43a4 100644 --- a/models/sdkerrors/getserverresources.go +++ b/models/sdkerrors/getserverresources.go @@ -13,25 +13,25 @@ type GetServerResourcesPlexErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerResourcesPlexErrors) GetCode() *int { - if o == nil { +func (g *GetServerResourcesPlexErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerResourcesPlexErrors) GetMessage() *string { - if o == nil { +func (g *GetServerResourcesPlexErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerResourcesPlexErrors) GetStatus() *int { - if o == nil { +func (g *GetServerResourcesPlexErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerResourcesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetServerResourcesErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetServerResourcesErrors) GetCode() *int { - if o == nil { +func (g *GetServerResourcesErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetServerResourcesErrors) GetMessage() *string { - if o == nil { +func (g *GetServerResourcesErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetServerResourcesErrors) GetStatus() *int { - if o == nil { +func (g *GetServerResourcesErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetServerResourcesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getsessionhistory.go b/models/sdkerrors/getsessionhistory.go index 651e418..9280a08 100644 --- a/models/sdkerrors/getsessionhistory.go +++ b/models/sdkerrors/getsessionhistory.go @@ -13,25 +13,25 @@ type GetSessionHistorySessionsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSessionHistorySessionsErrors) GetCode() *int { - if o == nil { +func (g *GetSessionHistorySessionsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSessionHistorySessionsErrors) GetMessage() *string { - if o == nil { +func (g *GetSessionHistorySessionsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSessionHistorySessionsErrors) GetStatus() *int { - if o == nil { +func (g *GetSessionHistorySessionsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSessionHistoryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetSessionHistoryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSessionHistoryErrors) GetCode() *int { - if o == nil { +func (g *GetSessionHistoryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSessionHistoryErrors) GetMessage() *string { - if o == nil { +func (g *GetSessionHistoryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSessionHistoryErrors) GetStatus() *int { - if o == nil { +func (g *GetSessionHistoryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSessionHistoryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getsessions.go b/models/sdkerrors/getsessions.go index dfe1fe3..704498c 100644 --- a/models/sdkerrors/getsessions.go +++ b/models/sdkerrors/getsessions.go @@ -13,25 +13,25 @@ type GetSessionsSessionsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSessionsSessionsErrors) GetCode() *int { - if o == nil { +func (g *GetSessionsSessionsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSessionsSessionsErrors) GetMessage() *string { - if o == nil { +func (g *GetSessionsSessionsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSessionsSessionsErrors) GetStatus() *int { - if o == nil { +func (g *GetSessionsSessionsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSessionsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetSessionsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSessionsErrors) GetCode() *int { - if o == nil { +func (g *GetSessionsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSessionsErrors) GetMessage() *string { - if o == nil { +func (g *GetSessionsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSessionsErrors) GetStatus() *int { - if o == nil { +func (g *GetSessionsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSessionsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getsourceconnectioninformation.go b/models/sdkerrors/getsourceconnectioninformation.go index 9551b49..b433595 100644 --- a/models/sdkerrors/getsourceconnectioninformation.go +++ b/models/sdkerrors/getsourceconnectioninformation.go @@ -13,25 +13,25 @@ type GetSourceConnectionInformationAuthenticationErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSourceConnectionInformationAuthenticationErrors) GetCode() *int { - if o == nil { +func (g *GetSourceConnectionInformationAuthenticationErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSourceConnectionInformationAuthenticationErrors) GetMessage() *string { - if o == nil { +func (g *GetSourceConnectionInformationAuthenticationErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSourceConnectionInformationAuthenticationErrors) GetStatus() *int { - if o == nil { +func (g *GetSourceConnectionInformationAuthenticationErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSourceConnectionInformationUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetSourceConnectionInformationErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetSourceConnectionInformationErrors) GetCode() *int { - if o == nil { +func (g *GetSourceConnectionInformationErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetSourceConnectionInformationErrors) GetMessage() *string { - if o == nil { +func (g *GetSourceConnectionInformationErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetSourceConnectionInformationErrors) GetStatus() *int { - if o == nil { +func (g *GetSourceConnectionInformationErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetSourceConnectionInformationBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getstatistics.go b/models/sdkerrors/getstatistics.go index 2173e6f..abb87ec 100644 --- a/models/sdkerrors/getstatistics.go +++ b/models/sdkerrors/getstatistics.go @@ -13,25 +13,25 @@ type GetStatisticsStatisticsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetStatisticsStatisticsErrors) GetCode() *int { - if o == nil { +func (g *GetStatisticsStatisticsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetStatisticsStatisticsErrors) GetMessage() *string { - if o == nil { +func (g *GetStatisticsStatisticsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetStatisticsStatisticsErrors) GetStatus() *int { - if o == nil { +func (g *GetStatisticsStatisticsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetStatisticsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetStatisticsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetStatisticsErrors) GetCode() *int { - if o == nil { +func (g *GetStatisticsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetStatisticsErrors) GetMessage() *string { - if o == nil { +func (g *GetStatisticsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetStatisticsErrors) GetStatus() *int { - if o == nil { +func (g *GetStatisticsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetStatisticsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getthumbimage.go b/models/sdkerrors/getthumbimage.go index 8f7731b..713b784 100644 --- a/models/sdkerrors/getthumbimage.go +++ b/models/sdkerrors/getthumbimage.go @@ -13,25 +13,25 @@ type GetThumbImageMediaErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetThumbImageMediaErrors) GetCode() *int { - if o == nil { +func (g *GetThumbImageMediaErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetThumbImageMediaErrors) GetMessage() *string { - if o == nil { +func (g *GetThumbImageMediaErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetThumbImageMediaErrors) GetStatus() *int { - if o == nil { +func (g *GetThumbImageMediaErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetThumbImageUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetThumbImageErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetThumbImageErrors) GetCode() *int { - if o == nil { +func (g *GetThumbImageErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetThumbImageErrors) GetMessage() *string { - if o == nil { +func (g *GetThumbImageErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetThumbImageErrors) GetStatus() *int { - if o == nil { +func (g *GetThumbImageErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetThumbImageBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/gettimeline.go b/models/sdkerrors/gettimeline.go index b8ee3ec..85ea889 100644 --- a/models/sdkerrors/gettimeline.go +++ b/models/sdkerrors/gettimeline.go @@ -13,25 +13,25 @@ type GetTimelineVideoErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTimelineVideoErrors) GetCode() *int { - if o == nil { +func (g *GetTimelineVideoErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTimelineVideoErrors) GetMessage() *string { - if o == nil { +func (g *GetTimelineVideoErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTimelineVideoErrors) GetStatus() *int { - if o == nil { +func (g *GetTimelineVideoErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTimelineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetTimelineErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTimelineErrors) GetCode() *int { - if o == nil { +func (g *GetTimelineErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTimelineErrors) GetMessage() *string { - if o == nil { +func (g *GetTimelineErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTimelineErrors) GetStatus() *int { - if o == nil { +func (g *GetTimelineErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTimelineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/gettokenbypinid.go b/models/sdkerrors/gettokenbypinid.go index 427f9a2..8cf0808 100644 --- a/models/sdkerrors/gettokenbypinid.go +++ b/models/sdkerrors/gettokenbypinid.go @@ -12,18 +12,18 @@ type GetTokenByPinIDPlexErrors struct { Message *string `json:"message,omitempty"` } -func (o *GetTokenByPinIDPlexErrors) GetCode() *int64 { - if o == nil { +func (g *GetTokenByPinIDPlexErrors) GetCode() *int64 { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTokenByPinIDPlexErrors) GetMessage() *string { - if o == nil { +func (g *GetTokenByPinIDPlexErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } // GetTokenByPinIDResponseBody - Not Found or Expired @@ -46,25 +46,25 @@ type GetTokenByPinIDErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTokenByPinIDErrors) GetCode() *int { - if o == nil { +func (g *GetTokenByPinIDErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTokenByPinIDErrors) GetMessage() *string { - if o == nil { +func (g *GetTokenByPinIDErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTokenByPinIDErrors) GetStatus() *int { - if o == nil { +func (g *GetTokenByPinIDErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTokenByPinIDBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/gettokendetails.go b/models/sdkerrors/gettokendetails.go index 690f837..2781555 100644 --- a/models/sdkerrors/gettokendetails.go +++ b/models/sdkerrors/gettokendetails.go @@ -13,25 +13,25 @@ type GetTokenDetailsAuthenticationErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTokenDetailsAuthenticationErrors) GetCode() *int { - if o == nil { +func (g *GetTokenDetailsAuthenticationErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTokenDetailsAuthenticationErrors) GetMessage() *string { - if o == nil { +func (g *GetTokenDetailsAuthenticationErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTokenDetailsAuthenticationErrors) GetStatus() *int { - if o == nil { +func (g *GetTokenDetailsAuthenticationErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTokenDetailsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetTokenDetailsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTokenDetailsErrors) GetCode() *int { - if o == nil { +func (g *GetTokenDetailsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTokenDetailsErrors) GetMessage() *string { - if o == nil { +func (g *GetTokenDetailsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTokenDetailsErrors) GetStatus() *int { - if o == nil { +func (g *GetTokenDetailsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTokenDetailsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/gettopwatchedcontent.go b/models/sdkerrors/gettopwatchedcontent.go index a5593bd..00fac4b 100644 --- a/models/sdkerrors/gettopwatchedcontent.go +++ b/models/sdkerrors/gettopwatchedcontent.go @@ -13,25 +13,25 @@ type GetTopWatchedContentLibraryErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTopWatchedContentLibraryErrors) GetCode() *int { - if o == nil { +func (g *GetTopWatchedContentLibraryErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTopWatchedContentLibraryErrors) GetMessage() *string { - if o == nil { +func (g *GetTopWatchedContentLibraryErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTopWatchedContentLibraryErrors) GetStatus() *int { - if o == nil { +func (g *GetTopWatchedContentLibraryErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTopWatchedContentUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetTopWatchedContentErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTopWatchedContentErrors) GetCode() *int { - if o == nil { +func (g *GetTopWatchedContentErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTopWatchedContentErrors) GetMessage() *string { - if o == nil { +func (g *GetTopWatchedContentErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTopWatchedContentErrors) GetStatus() *int { - if o == nil { +func (g *GetTopWatchedContentErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTopWatchedContentBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/gettranscodesessions.go b/models/sdkerrors/gettranscodesessions.go index 8fe9baa..99ec7fb 100644 --- a/models/sdkerrors/gettranscodesessions.go +++ b/models/sdkerrors/gettranscodesessions.go @@ -13,25 +13,25 @@ type GetTranscodeSessionsSessionsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTranscodeSessionsSessionsErrors) GetCode() *int { - if o == nil { +func (g *GetTranscodeSessionsSessionsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTranscodeSessionsSessionsErrors) GetMessage() *string { - if o == nil { +func (g *GetTranscodeSessionsSessionsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTranscodeSessionsSessionsErrors) GetStatus() *int { - if o == nil { +func (g *GetTranscodeSessionsSessionsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTranscodeSessionsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetTranscodeSessionsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTranscodeSessionsErrors) GetCode() *int { - if o == nil { +func (g *GetTranscodeSessionsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTranscodeSessionsErrors) GetMessage() *string { - if o == nil { +func (g *GetTranscodeSessionsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTranscodeSessionsErrors) GetStatus() *int { - if o == nil { +func (g *GetTranscodeSessionsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTranscodeSessionsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/gettransienttoken.go b/models/sdkerrors/gettransienttoken.go index 195de39..2dbe852 100644 --- a/models/sdkerrors/gettransienttoken.go +++ b/models/sdkerrors/gettransienttoken.go @@ -13,25 +13,25 @@ type GetTransientTokenAuthenticationErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTransientTokenAuthenticationErrors) GetCode() *int { - if o == nil { +func (g *GetTransientTokenAuthenticationErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTransientTokenAuthenticationErrors) GetMessage() *string { - if o == nil { +func (g *GetTransientTokenAuthenticationErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTransientTokenAuthenticationErrors) GetStatus() *int { - if o == nil { +func (g *GetTransientTokenAuthenticationErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTransientTokenUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetTransientTokenErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetTransientTokenErrors) GetCode() *int { - if o == nil { +func (g *GetTransientTokenErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetTransientTokenErrors) GetMessage() *string { - if o == nil { +func (g *GetTransientTokenErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetTransientTokenErrors) GetStatus() *int { - if o == nil { +func (g *GetTransientTokenErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetTransientTokenBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getupdatestatus.go b/models/sdkerrors/getupdatestatus.go index e1eab56..df1c58e 100644 --- a/models/sdkerrors/getupdatestatus.go +++ b/models/sdkerrors/getupdatestatus.go @@ -13,25 +13,25 @@ type GetUpdateStatusUpdaterErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetUpdateStatusUpdaterErrors) GetCode() *int { - if o == nil { +func (g *GetUpdateStatusUpdaterErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetUpdateStatusUpdaterErrors) GetMessage() *string { - if o == nil { +func (g *GetUpdateStatusUpdaterErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetUpdateStatusUpdaterErrors) GetStatus() *int { - if o == nil { +func (g *GetUpdateStatusUpdaterErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetUpdateStatusUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetUpdateStatusErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetUpdateStatusErrors) GetCode() *int { - if o == nil { +func (g *GetUpdateStatusErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetUpdateStatusErrors) GetMessage() *string { - if o == nil { +func (g *GetUpdateStatusErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetUpdateStatusErrors) GetStatus() *int { - if o == nil { +func (g *GetUpdateStatusErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetUpdateStatusBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getuserfriends.go b/models/sdkerrors/getuserfriends.go index 2bf3805..b6f34a7 100644 --- a/models/sdkerrors/getuserfriends.go +++ b/models/sdkerrors/getuserfriends.go @@ -13,25 +13,25 @@ type GetUserFriendsPlexErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetUserFriendsPlexErrors) GetCode() *int { - if o == nil { +func (g *GetUserFriendsPlexErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetUserFriendsPlexErrors) GetMessage() *string { - if o == nil { +func (g *GetUserFriendsPlexErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetUserFriendsPlexErrors) GetStatus() *int { - if o == nil { +func (g *GetUserFriendsPlexErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetUserFriendsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetUserFriendsErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetUserFriendsErrors) GetCode() *int { - if o == nil { +func (g *GetUserFriendsErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetUserFriendsErrors) GetMessage() *string { - if o == nil { +func (g *GetUserFriendsErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetUserFriendsErrors) GetStatus() *int { - if o == nil { +func (g *GetUserFriendsErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetUserFriendsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getusers.go b/models/sdkerrors/getusers.go index f84a439..faf9a6e 100644 --- a/models/sdkerrors/getusers.go +++ b/models/sdkerrors/getusers.go @@ -13,25 +13,25 @@ type GetUsersUsersErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetUsersUsersErrors) GetCode() *int { - if o == nil { +func (g *GetUsersUsersErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetUsersUsersErrors) GetMessage() *string { - if o == nil { +func (g *GetUsersUsersErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetUsersUsersErrors) GetStatus() *int { - if o == nil { +func (g *GetUsersUsersErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetUsersUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetUsersErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetUsersErrors) GetCode() *int { - if o == nil { +func (g *GetUsersErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetUsersErrors) GetMessage() *string { - if o == nil { +func (g *GetUsersErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetUsersErrors) GetStatus() *int { - if o == nil { +func (g *GetUsersErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetUsersBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/getwatchlist.go b/models/sdkerrors/getwatchlist.go index 4209fbd..2839188 100644 --- a/models/sdkerrors/getwatchlist.go +++ b/models/sdkerrors/getwatchlist.go @@ -13,25 +13,25 @@ type GetWatchListWatchlistErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetWatchListWatchlistErrors) GetCode() *int { - if o == nil { +func (g *GetWatchListWatchlistErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetWatchListWatchlistErrors) GetMessage() *string { - if o == nil { +func (g *GetWatchListWatchlistErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetWatchListWatchlistErrors) GetStatus() *int { - if o == nil { +func (g *GetWatchListWatchlistErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetWatchListUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type GetWatchListErrors struct { Status *int `json:"status,omitempty"` } -func (o *GetWatchListErrors) GetCode() *int { - if o == nil { +func (g *GetWatchListErrors) GetCode() *int { + if g == nil { return nil } - return o.Code + return g.Code } -func (o *GetWatchListErrors) GetMessage() *string { - if o == nil { +func (g *GetWatchListErrors) GetMessage() *string { + if g == nil { return nil } - return o.Message + return g.Message } -func (o *GetWatchListErrors) GetStatus() *int { - if o == nil { +func (g *GetWatchListErrors) GetStatus() *int { + if g == nil { return nil } - return o.Status + return g.Status } // GetWatchListBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/logline.go b/models/sdkerrors/logline.go index 90f1942..655b9fb 100644 --- a/models/sdkerrors/logline.go +++ b/models/sdkerrors/logline.go @@ -13,25 +13,25 @@ type LogLineLogErrors struct { Status *int `json:"status,omitempty"` } -func (o *LogLineLogErrors) GetCode() *int { - if o == nil { +func (l *LogLineLogErrors) GetCode() *int { + if l == nil { return nil } - return o.Code + return l.Code } -func (o *LogLineLogErrors) GetMessage() *string { - if o == nil { +func (l *LogLineLogErrors) GetMessage() *string { + if l == nil { return nil } - return o.Message + return l.Message } -func (o *LogLineLogErrors) GetStatus() *int { - if o == nil { +func (l *LogLineLogErrors) GetStatus() *int { + if l == nil { return nil } - return o.Status + return l.Status } // LogLineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type LogLineErrors struct { Status *int `json:"status,omitempty"` } -func (o *LogLineErrors) GetCode() *int { - if o == nil { +func (l *LogLineErrors) GetCode() *int { + if l == nil { return nil } - return o.Code + return l.Code } -func (o *LogLineErrors) GetMessage() *string { - if o == nil { +func (l *LogLineErrors) GetMessage() *string { + if l == nil { return nil } - return o.Message + return l.Message } -func (o *LogLineErrors) GetStatus() *int { - if o == nil { +func (l *LogLineErrors) GetStatus() *int { + if l == nil { return nil } - return o.Status + return l.Status } // LogLineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/logmultiline.go b/models/sdkerrors/logmultiline.go index 75937b1..fe87a77 100644 --- a/models/sdkerrors/logmultiline.go +++ b/models/sdkerrors/logmultiline.go @@ -13,25 +13,25 @@ type LogMultiLineLogErrors struct { Status *int `json:"status,omitempty"` } -func (o *LogMultiLineLogErrors) GetCode() *int { - if o == nil { +func (l *LogMultiLineLogErrors) GetCode() *int { + if l == nil { return nil } - return o.Code + return l.Code } -func (o *LogMultiLineLogErrors) GetMessage() *string { - if o == nil { +func (l *LogMultiLineLogErrors) GetMessage() *string { + if l == nil { return nil } - return o.Message + return l.Message } -func (o *LogMultiLineLogErrors) GetStatus() *int { - if o == nil { +func (l *LogMultiLineLogErrors) GetStatus() *int { + if l == nil { return nil } - return o.Status + return l.Status } // LogMultiLineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type LogMultiLineErrors struct { Status *int `json:"status,omitempty"` } -func (o *LogMultiLineErrors) GetCode() *int { - if o == nil { +func (l *LogMultiLineErrors) GetCode() *int { + if l == nil { return nil } - return o.Code + return l.Code } -func (o *LogMultiLineErrors) GetMessage() *string { - if o == nil { +func (l *LogMultiLineErrors) GetMessage() *string { + if l == nil { return nil } - return o.Message + return l.Message } -func (o *LogMultiLineErrors) GetStatus() *int { - if o == nil { +func (l *LogMultiLineErrors) GetStatus() *int { + if l == nil { return nil } - return o.Status + return l.Status } // LogMultiLineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/markplayed.go b/models/sdkerrors/markplayed.go index c77e82d..284ab0b 100644 --- a/models/sdkerrors/markplayed.go +++ b/models/sdkerrors/markplayed.go @@ -13,25 +13,25 @@ type MarkPlayedMediaErrors struct { Status *int `json:"status,omitempty"` } -func (o *MarkPlayedMediaErrors) GetCode() *int { - if o == nil { +func (m *MarkPlayedMediaErrors) GetCode() *int { + if m == nil { return nil } - return o.Code + return m.Code } -func (o *MarkPlayedMediaErrors) GetMessage() *string { - if o == nil { +func (m *MarkPlayedMediaErrors) GetMessage() *string { + if m == nil { return nil } - return o.Message + return m.Message } -func (o *MarkPlayedMediaErrors) GetStatus() *int { - if o == nil { +func (m *MarkPlayedMediaErrors) GetStatus() *int { + if m == nil { return nil } - return o.Status + return m.Status } // MarkPlayedUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type MarkPlayedErrors struct { Status *int `json:"status,omitempty"` } -func (o *MarkPlayedErrors) GetCode() *int { - if o == nil { +func (m *MarkPlayedErrors) GetCode() *int { + if m == nil { return nil } - return o.Code + return m.Code } -func (o *MarkPlayedErrors) GetMessage() *string { - if o == nil { +func (m *MarkPlayedErrors) GetMessage() *string { + if m == nil { return nil } - return o.Message + return m.Message } -func (o *MarkPlayedErrors) GetStatus() *int { - if o == nil { +func (m *MarkPlayedErrors) GetStatus() *int { + if m == nil { return nil } - return o.Status + return m.Status } // MarkPlayedBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/markunplayed.go b/models/sdkerrors/markunplayed.go index 7c85896..71af3dc 100644 --- a/models/sdkerrors/markunplayed.go +++ b/models/sdkerrors/markunplayed.go @@ -13,25 +13,25 @@ type MarkUnplayedMediaErrors struct { Status *int `json:"status,omitempty"` } -func (o *MarkUnplayedMediaErrors) GetCode() *int { - if o == nil { +func (m *MarkUnplayedMediaErrors) GetCode() *int { + if m == nil { return nil } - return o.Code + return m.Code } -func (o *MarkUnplayedMediaErrors) GetMessage() *string { - if o == nil { +func (m *MarkUnplayedMediaErrors) GetMessage() *string { + if m == nil { return nil } - return o.Message + return m.Message } -func (o *MarkUnplayedMediaErrors) GetStatus() *int { - if o == nil { +func (m *MarkUnplayedMediaErrors) GetStatus() *int { + if m == nil { return nil } - return o.Status + return m.Status } // MarkUnplayedUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type MarkUnplayedErrors struct { Status *int `json:"status,omitempty"` } -func (o *MarkUnplayedErrors) GetCode() *int { - if o == nil { +func (m *MarkUnplayedErrors) GetCode() *int { + if m == nil { return nil } - return o.Code + return m.Code } -func (o *MarkUnplayedErrors) GetMessage() *string { - if o == nil { +func (m *MarkUnplayedErrors) GetMessage() *string { + if m == nil { return nil } - return o.Message + return m.Message } -func (o *MarkUnplayedErrors) GetStatus() *int { - if o == nil { +func (m *MarkUnplayedErrors) GetStatus() *int { + if m == nil { return nil } - return o.Status + return m.Status } // MarkUnplayedBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/performsearch.go b/models/sdkerrors/performsearch.go index 0578926..b886aad 100644 --- a/models/sdkerrors/performsearch.go +++ b/models/sdkerrors/performsearch.go @@ -13,25 +13,25 @@ type PerformSearchSearchErrors struct { Status *int `json:"status,omitempty"` } -func (o *PerformSearchSearchErrors) GetCode() *int { - if o == nil { +func (p *PerformSearchSearchErrors) GetCode() *int { + if p == nil { return nil } - return o.Code + return p.Code } -func (o *PerformSearchSearchErrors) GetMessage() *string { - if o == nil { +func (p *PerformSearchSearchErrors) GetMessage() *string { + if p == nil { return nil } - return o.Message + return p.Message } -func (o *PerformSearchSearchErrors) GetStatus() *int { - if o == nil { +func (p *PerformSearchSearchErrors) GetStatus() *int { + if p == nil { return nil } - return o.Status + return p.Status } // PerformSearchUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type PerformSearchErrors struct { Status *int `json:"status,omitempty"` } -func (o *PerformSearchErrors) GetCode() *int { - if o == nil { +func (p *PerformSearchErrors) GetCode() *int { + if p == nil { return nil } - return o.Code + return p.Code } -func (o *PerformSearchErrors) GetMessage() *string { - if o == nil { +func (p *PerformSearchErrors) GetMessage() *string { + if p == nil { return nil } - return o.Message + return p.Message } -func (o *PerformSearchErrors) GetStatus() *int { - if o == nil { +func (p *PerformSearchErrors) GetStatus() *int { + if p == nil { return nil } - return o.Status + return p.Status } // PerformSearchBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/performvoicesearch.go b/models/sdkerrors/performvoicesearch.go index 7717ed6..10066d3 100644 --- a/models/sdkerrors/performvoicesearch.go +++ b/models/sdkerrors/performvoicesearch.go @@ -13,25 +13,25 @@ type PerformVoiceSearchSearchErrors struct { Status *int `json:"status,omitempty"` } -func (o *PerformVoiceSearchSearchErrors) GetCode() *int { - if o == nil { +func (p *PerformVoiceSearchSearchErrors) GetCode() *int { + if p == nil { return nil } - return o.Code + return p.Code } -func (o *PerformVoiceSearchSearchErrors) GetMessage() *string { - if o == nil { +func (p *PerformVoiceSearchSearchErrors) GetMessage() *string { + if p == nil { return nil } - return o.Message + return p.Message } -func (o *PerformVoiceSearchSearchErrors) GetStatus() *int { - if o == nil { +func (p *PerformVoiceSearchSearchErrors) GetStatus() *int { + if p == nil { return nil } - return o.Status + return p.Status } // PerformVoiceSearchUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type PerformVoiceSearchErrors struct { Status *int `json:"status,omitempty"` } -func (o *PerformVoiceSearchErrors) GetCode() *int { - if o == nil { +func (p *PerformVoiceSearchErrors) GetCode() *int { + if p == nil { return nil } - return o.Code + return p.Code } -func (o *PerformVoiceSearchErrors) GetMessage() *string { - if o == nil { +func (p *PerformVoiceSearchErrors) GetMessage() *string { + if p == nil { return nil } - return o.Message + return p.Message } -func (o *PerformVoiceSearchErrors) GetStatus() *int { - if o == nil { +func (p *PerformVoiceSearchErrors) GetStatus() *int { + if p == nil { return nil } - return o.Status + return p.Status } // PerformVoiceSearchBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/postuserssignindata.go b/models/sdkerrors/postuserssignindata.go index 97dd30e..fad490f 100644 --- a/models/sdkerrors/postuserssignindata.go +++ b/models/sdkerrors/postuserssignindata.go @@ -13,25 +13,25 @@ type PostUsersSignInDataAuthenticationErrors struct { Status *int `json:"status,omitempty"` } -func (o *PostUsersSignInDataAuthenticationErrors) GetCode() *int { - if o == nil { +func (p *PostUsersSignInDataAuthenticationErrors) GetCode() *int { + if p == nil { return nil } - return o.Code + return p.Code } -func (o *PostUsersSignInDataAuthenticationErrors) GetMessage() *string { - if o == nil { +func (p *PostUsersSignInDataAuthenticationErrors) GetMessage() *string { + if p == nil { return nil } - return o.Message + return p.Message } -func (o *PostUsersSignInDataAuthenticationErrors) GetStatus() *int { - if o == nil { +func (p *PostUsersSignInDataAuthenticationErrors) GetStatus() *int { + if p == nil { return nil } - return o.Status + return p.Status } // PostUsersSignInDataUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type PostUsersSignInDataErrors struct { Status *int `json:"status,omitempty"` } -func (o *PostUsersSignInDataErrors) GetCode() *int { - if o == nil { +func (p *PostUsersSignInDataErrors) GetCode() *int { + if p == nil { return nil } - return o.Code + return p.Code } -func (o *PostUsersSignInDataErrors) GetMessage() *string { - if o == nil { +func (p *PostUsersSignInDataErrors) GetMessage() *string { + if p == nil { return nil } - return o.Message + return p.Message } -func (o *PostUsersSignInDataErrors) GetStatus() *int { - if o == nil { +func (p *PostUsersSignInDataErrors) GetStatus() *int { + if p == nil { return nil } - return o.Status + return p.Status } // PostUsersSignInDataBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/startalltasks.go b/models/sdkerrors/startalltasks.go index bbd075e..a967384 100644 --- a/models/sdkerrors/startalltasks.go +++ b/models/sdkerrors/startalltasks.go @@ -13,25 +13,25 @@ type StartAllTasksButlerErrors struct { Status *int `json:"status,omitempty"` } -func (o *StartAllTasksButlerErrors) GetCode() *int { - if o == nil { +func (s *StartAllTasksButlerErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StartAllTasksButlerErrors) GetMessage() *string { - if o == nil { +func (s *StartAllTasksButlerErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StartAllTasksButlerErrors) GetStatus() *int { - if o == nil { +func (s *StartAllTasksButlerErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StartAllTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type StartAllTasksErrors struct { Status *int `json:"status,omitempty"` } -func (o *StartAllTasksErrors) GetCode() *int { - if o == nil { +func (s *StartAllTasksErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StartAllTasksErrors) GetMessage() *string { - if o == nil { +func (s *StartAllTasksErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StartAllTasksErrors) GetStatus() *int { - if o == nil { +func (s *StartAllTasksErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StartAllTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/starttask.go b/models/sdkerrors/starttask.go index 6c4e46b..1959755 100644 --- a/models/sdkerrors/starttask.go +++ b/models/sdkerrors/starttask.go @@ -13,25 +13,25 @@ type StartTaskButlerErrors struct { Status *int `json:"status,omitempty"` } -func (o *StartTaskButlerErrors) GetCode() *int { - if o == nil { +func (s *StartTaskButlerErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StartTaskButlerErrors) GetMessage() *string { - if o == nil { +func (s *StartTaskButlerErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StartTaskButlerErrors) GetStatus() *int { - if o == nil { +func (s *StartTaskButlerErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StartTaskUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type StartTaskErrors struct { Status *int `json:"status,omitempty"` } -func (o *StartTaskErrors) GetCode() *int { - if o == nil { +func (s *StartTaskErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StartTaskErrors) GetMessage() *string { - if o == nil { +func (s *StartTaskErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StartTaskErrors) GetStatus() *int { - if o == nil { +func (s *StartTaskErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StartTaskBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/startuniversaltranscode.go b/models/sdkerrors/startuniversaltranscode.go index b2601fc..72861ff 100644 --- a/models/sdkerrors/startuniversaltranscode.go +++ b/models/sdkerrors/startuniversaltranscode.go @@ -13,25 +13,25 @@ type StartUniversalTranscodeVideoErrors struct { Status *int `json:"status,omitempty"` } -func (o *StartUniversalTranscodeVideoErrors) GetCode() *int { - if o == nil { +func (s *StartUniversalTranscodeVideoErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StartUniversalTranscodeVideoErrors) GetMessage() *string { - if o == nil { +func (s *StartUniversalTranscodeVideoErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StartUniversalTranscodeVideoErrors) GetStatus() *int { - if o == nil { +func (s *StartUniversalTranscodeVideoErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StartUniversalTranscodeUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type StartUniversalTranscodeErrors struct { Status *int `json:"status,omitempty"` } -func (o *StartUniversalTranscodeErrors) GetCode() *int { - if o == nil { +func (s *StartUniversalTranscodeErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StartUniversalTranscodeErrors) GetMessage() *string { - if o == nil { +func (s *StartUniversalTranscodeErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StartUniversalTranscodeErrors) GetStatus() *int { - if o == nil { +func (s *StartUniversalTranscodeErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StartUniversalTranscodeBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/stopalltasks.go b/models/sdkerrors/stopalltasks.go index 3934218..374bb6a 100644 --- a/models/sdkerrors/stopalltasks.go +++ b/models/sdkerrors/stopalltasks.go @@ -13,25 +13,25 @@ type StopAllTasksButlerErrors struct { Status *int `json:"status,omitempty"` } -func (o *StopAllTasksButlerErrors) GetCode() *int { - if o == nil { +func (s *StopAllTasksButlerErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StopAllTasksButlerErrors) GetMessage() *string { - if o == nil { +func (s *StopAllTasksButlerErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StopAllTasksButlerErrors) GetStatus() *int { - if o == nil { +func (s *StopAllTasksButlerErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StopAllTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type StopAllTasksErrors struct { Status *int `json:"status,omitempty"` } -func (o *StopAllTasksErrors) GetCode() *int { - if o == nil { +func (s *StopAllTasksErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StopAllTasksErrors) GetMessage() *string { - if o == nil { +func (s *StopAllTasksErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StopAllTasksErrors) GetStatus() *int { - if o == nil { +func (s *StopAllTasksErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StopAllTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/stoptask.go b/models/sdkerrors/stoptask.go index f766ba4..76244ee 100644 --- a/models/sdkerrors/stoptask.go +++ b/models/sdkerrors/stoptask.go @@ -13,25 +13,25 @@ type StopTaskButlerErrors struct { Status *int `json:"status,omitempty"` } -func (o *StopTaskButlerErrors) GetCode() *int { - if o == nil { +func (s *StopTaskButlerErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StopTaskButlerErrors) GetMessage() *string { - if o == nil { +func (s *StopTaskButlerErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StopTaskButlerErrors) GetStatus() *int { - if o == nil { +func (s *StopTaskButlerErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StopTaskUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type StopTaskErrors struct { Status *int `json:"status,omitempty"` } -func (o *StopTaskErrors) GetCode() *int { - if o == nil { +func (s *StopTaskErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StopTaskErrors) GetMessage() *string { - if o == nil { +func (s *StopTaskErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StopTaskErrors) GetStatus() *int { - if o == nil { +func (s *StopTaskErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StopTaskBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/stoptranscodesession.go b/models/sdkerrors/stoptranscodesession.go index 747f65b..012695b 100644 --- a/models/sdkerrors/stoptranscodesession.go +++ b/models/sdkerrors/stoptranscodesession.go @@ -13,25 +13,25 @@ type StopTranscodeSessionSessionsErrors struct { Status *int `json:"status,omitempty"` } -func (o *StopTranscodeSessionSessionsErrors) GetCode() *int { - if o == nil { +func (s *StopTranscodeSessionSessionsErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StopTranscodeSessionSessionsErrors) GetMessage() *string { - if o == nil { +func (s *StopTranscodeSessionSessionsErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StopTranscodeSessionSessionsErrors) GetStatus() *int { - if o == nil { +func (s *StopTranscodeSessionSessionsErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StopTranscodeSessionUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type StopTranscodeSessionErrors struct { Status *int `json:"status,omitempty"` } -func (o *StopTranscodeSessionErrors) GetCode() *int { - if o == nil { +func (s *StopTranscodeSessionErrors) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *StopTranscodeSessionErrors) GetMessage() *string { - if o == nil { +func (s *StopTranscodeSessionErrors) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } -func (o *StopTranscodeSessionErrors) GetStatus() *int { - if o == nil { +func (s *StopTranscodeSessionErrors) GetStatus() *int { + if s == nil { return nil } - return o.Status + return s.Status } // StopTranscodeSessionBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/updateplaylist.go b/models/sdkerrors/updateplaylist.go index 76aa1be..4b40bb3 100644 --- a/models/sdkerrors/updateplaylist.go +++ b/models/sdkerrors/updateplaylist.go @@ -13,25 +13,25 @@ type UpdatePlaylistPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *UpdatePlaylistPlaylistsErrors) GetCode() *int { - if o == nil { +func (u *UpdatePlaylistPlaylistsErrors) GetCode() *int { + if u == nil { return nil } - return o.Code + return u.Code } -func (o *UpdatePlaylistPlaylistsErrors) GetMessage() *string { - if o == nil { +func (u *UpdatePlaylistPlaylistsErrors) GetMessage() *string { + if u == nil { return nil } - return o.Message + return u.Message } -func (o *UpdatePlaylistPlaylistsErrors) GetStatus() *int { - if o == nil { +func (u *UpdatePlaylistPlaylistsErrors) GetStatus() *int { + if u == nil { return nil } - return o.Status + return u.Status } // UpdatePlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type UpdatePlaylistErrors struct { Status *int `json:"status,omitempty"` } -func (o *UpdatePlaylistErrors) GetCode() *int { - if o == nil { +func (u *UpdatePlaylistErrors) GetCode() *int { + if u == nil { return nil } - return o.Code + return u.Code } -func (o *UpdatePlaylistErrors) GetMessage() *string { - if o == nil { +func (u *UpdatePlaylistErrors) GetMessage() *string { + if u == nil { return nil } - return o.Message + return u.Message } -func (o *UpdatePlaylistErrors) GetStatus() *int { - if o == nil { +func (u *UpdatePlaylistErrors) GetStatus() *int { + if u == nil { return nil } - return o.Status + return u.Status } // UpdatePlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/updateplayprogress.go b/models/sdkerrors/updateplayprogress.go index 043db82..93d3607 100644 --- a/models/sdkerrors/updateplayprogress.go +++ b/models/sdkerrors/updateplayprogress.go @@ -13,25 +13,25 @@ type UpdatePlayProgressMediaErrors struct { Status *int `json:"status,omitempty"` } -func (o *UpdatePlayProgressMediaErrors) GetCode() *int { - if o == nil { +func (u *UpdatePlayProgressMediaErrors) GetCode() *int { + if u == nil { return nil } - return o.Code + return u.Code } -func (o *UpdatePlayProgressMediaErrors) GetMessage() *string { - if o == nil { +func (u *UpdatePlayProgressMediaErrors) GetMessage() *string { + if u == nil { return nil } - return o.Message + return u.Message } -func (o *UpdatePlayProgressMediaErrors) GetStatus() *int { - if o == nil { +func (u *UpdatePlayProgressMediaErrors) GetStatus() *int { + if u == nil { return nil } - return o.Status + return u.Status } // UpdatePlayProgressUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type UpdatePlayProgressErrors struct { Status *int `json:"status,omitempty"` } -func (o *UpdatePlayProgressErrors) GetCode() *int { - if o == nil { +func (u *UpdatePlayProgressErrors) GetCode() *int { + if u == nil { return nil } - return o.Code + return u.Code } -func (o *UpdatePlayProgressErrors) GetMessage() *string { - if o == nil { +func (u *UpdatePlayProgressErrors) GetMessage() *string { + if u == nil { return nil } - return o.Message + return u.Message } -func (o *UpdatePlayProgressErrors) GetStatus() *int { - if o == nil { +func (u *UpdatePlayProgressErrors) GetStatus() *int { + if u == nil { return nil } - return o.Status + return u.Status } // UpdatePlayProgressBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/models/sdkerrors/uploadplaylist.go b/models/sdkerrors/uploadplaylist.go index fec1549..8fdf730 100644 --- a/models/sdkerrors/uploadplaylist.go +++ b/models/sdkerrors/uploadplaylist.go @@ -13,25 +13,25 @@ type UploadPlaylistPlaylistsErrors struct { Status *int `json:"status,omitempty"` } -func (o *UploadPlaylistPlaylistsErrors) GetCode() *int { - if o == nil { +func (u *UploadPlaylistPlaylistsErrors) GetCode() *int { + if u == nil { return nil } - return o.Code + return u.Code } -func (o *UploadPlaylistPlaylistsErrors) GetMessage() *string { - if o == nil { +func (u *UploadPlaylistPlaylistsErrors) GetMessage() *string { + if u == nil { return nil } - return o.Message + return u.Message } -func (o *UploadPlaylistPlaylistsErrors) GetStatus() *int { - if o == nil { +func (u *UploadPlaylistPlaylistsErrors) GetStatus() *int { + if u == nil { return nil } - return o.Status + return u.Status } // UploadPlaylistUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. @@ -54,25 +54,25 @@ type UploadPlaylistErrors struct { Status *int `json:"status,omitempty"` } -func (o *UploadPlaylistErrors) GetCode() *int { - if o == nil { +func (u *UploadPlaylistErrors) GetCode() *int { + if u == nil { return nil } - return o.Code + return u.Code } -func (o *UploadPlaylistErrors) GetMessage() *string { - if o == nil { +func (u *UploadPlaylistErrors) GetMessage() *string { + if u == nil { return nil } - return o.Message + return u.Message } -func (o *UploadPlaylistErrors) GetStatus() *int { - if o == nil { +func (u *UploadPlaylistErrors) GetStatus() *int { + if u == nil { return nil } - return o.Status + return u.Status } // UploadPlaylistBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. diff --git a/optionalnullable/optionalnullable.go b/optionalnullable/optionalnullable.go new file mode 100644 index 0000000..c6739be --- /dev/null +++ b/optionalnullable/optionalnullable.go @@ -0,0 +1,233 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package optionalnullable + +import ( + "bytes" + "encoding/json" + "reflect" +) + +// OptionalNullable represents a field that can distinguish between three states: +// 1. Set to a value: field is present with a non-nil value +// 2. Set to nil: field is present but explicitly set to null in JSON +// 3. Unset: field is omitted from JSON entirely +// +// This type is designed to work with JSON marshaling/unmarshaling and supports +// the `omitempty` struct tag to properly omit unset fields from JSON output. +// +// Usage: +// +// type User struct { +// Name OptionalNullable[string] `json:"name,omitempty"` +// Age OptionalNullable[int] `json:"age,omitempty"` +// Tags OptionalNullable[[]string] `json:"tags,omitempty"` +// } +// +// // Set to value +// name := "John" +// user.Name = From(&name) +// +// // Set to nil (will appear as "name": null in JSON) +// user.Name = From[string](nil) +// +// // Leave unset (will be omitted from JSON with omitempty) +// user := User{} +// +// WARNING: Do NOT use *OptionalNullable[T] as a field type. Always use OptionalNullable[T] directly. +// Using *OptionalNullable[T] will break the omitempty behavior and JSON marshaling. +// +// The type is implemented as a map[bool]*T where: +// - nil map represents unset state +// - Map with true key represents set state (value may be nil) +type OptionalNullable[T any] map[bool]*T + +// From creates a new OptionalNullable with the given value. +// Pass nil to create a OptionalNullable that is set to null. +// Pass a pointer to a value to create a OptionalNullable with that value. +// +// Examples: +// +// hello := "hello" +// From(&hello) // set to "hello" +// From[string](nil) // set to null +func From[T any](value *T) OptionalNullable[T] { + return map[bool]*T{ + true: value, + } +} + +// IsNull returns true if the OptionalNullable is explicitly set to nil. +// Returns false if the OptionalNullable is unset or has a value. +// +// Note: This differs from traditional null checks because unset fields +// return false, not true. Use IsSet() to check if a field was provided. +func (n OptionalNullable[T]) IsNull() bool { + v, ok := n[true] + return ok && v == nil +} + +// IsSet returns true if the OptionalNullable has been explicitly set (to either a value or nil). +// Returns false if the OptionalNullable is unset (omitted from JSON). +// +// This is the key method for distinguishing between: +// - Set to nil: IsSet() = true, IsNull() = true +// - Unset: IsSet() = false, IsNull() = false +func (n OptionalNullable[T]) IsSet() bool { + _, ok := n[true] + return ok +} + +// Get returns the internal pointer and whether the field was set. +// +// Return values: +// - (ptr, true): field was set (ptr may be nil if set to null) +// - (nil, false): field was unset/omitted +// +// This method provides direct access to the internal pointer representation. +func (n OptionalNullable[T]) Get() (*T, bool) { + v, ok := n[true] + return v, ok +} + +// GetOrZero returns the value and whether it was set. +// +// Return values: +// - (value, true): field was set to a non-nil value +// - (zero, true): field was explicitly set to nil +// - (zero, false): field was unset/omitted +// +// Examples: +// +// val, ok := nullable.GetOrZero() +// if !ok { +// // Field was unset/omitted +// } else if nullable.IsNull() { +// // Field was explicitly set to null +// } else { +// // Field has a value: val +// } +func (n OptionalNullable[T]) GetOrZero() (T, bool) { + var zero T + + if v, ok := n[true]; ok { + if v == nil { + return zero, true + } + return *v, true + } + return zero, false +} + +// GetUntyped returns the value as interface{} and whether it was set. +// This is useful for reflection-based code that needs to work with the value +// without knowing the specific type T. +// +// Return values: +// - (value, true): field was set to a non-nil value +// - (nil, true): field was explicitly set to nil +// - (nil, false): field was unset/omitted +func (n OptionalNullable[T]) GetUntyped() (interface{}, bool) { + if v, ok := n[true]; ok { + if v == nil { + return nil, true + } + return *v, true + } + return nil, false +} + +// Set sets the OptionalNullable to the given value pointer. +// Pass nil to set the field to null. +// Pass a pointer to a value to set the field to that value. +// +// Examples: +// +// nullable.Set(ptrFrom("hello")) // set to "hello" +// nullable.Set(nil) // set to null +func (n *OptionalNullable[T]) Set(value *T) { + *n = map[bool]*T{ + true: value, + } +} + +// Unset removes the value, making the field unset/omitted. +// After calling Unset(), IsSet() will return false and the field +// will be omitted from JSON output when using omitempty. +func (n *OptionalNullable[T]) Unset() { + *n = map[bool]*T{} +} + +// MarshalJSON implements json.Marshaler. +// +// Behavior: +// - Unset fields: omitted from JSON when struct field has omitempty tag +// - Null fields: serialized as "null" +// - Value fields: serialized as the actual value +// +// The omitempty behavior works because an empty map is considered +// a zero value by Go's JSON package. +func (n OptionalNullable[T]) MarshalJSON() ([]byte, error) { + if n.IsNull() { + return []byte("null"), nil + } + + return json.Marshal(n[true]) +} + +// UnmarshalJSON implements json.Unmarshaler. +// +// Behavior: +// - "null" in JSON: sets the field to null (IsSet=true, IsNull=true) +// - Any other value: sets the field to that value (IsSet=true, IsNull=false) +// - Missing from JSON: field remains unset (IsSet=false, IsNull=false) +func (n *OptionalNullable[T]) UnmarshalJSON(data []byte) error { + if bytes.Equal(data, []byte("null")) { + n.Set(nil) + return nil + } + var v T + if err := json.Unmarshal(data, &v); err != nil { + return err + } + n.Set(&v) + return nil +} + +// NullableInterface defines the interface that all OptionalNullable[T] types implement. +// This interface provides untyped access to optional nullable values for reflection-based code. +type OptionalNullableInterface interface { + GetUntyped() (interface{}, bool) +} + +// AsOptionalNullable attempts to convert a reflect.Value to a OptionalNullableInterface. +// This is a helper function for reflection-based code that needs to check +// if a value implements the optional nullable interface pattern. +// +// Returns: +// - (nullable, true): if the value implements OptionalNullableInterface +// - (nil, false): if the value does not implement OptionalNullableInterface +// +// Example usage: +// +// if nullable, ok := AsOptionalNullable(reflectValue); ok { +// if value, isSet := nullable.GetUntyped(); isSet { +// // Handle the nullable value +// } +// } +func AsOptionalNullable(v reflect.Value) (OptionalNullableInterface, bool) { + // Check if the value can be converted to an interface first + if !v.CanInterface() { + return nil, false + } + + // Check if the underlying value is a nil map (unset nullable) + if v.Kind() == reflect.Map && v.IsNil() { + return nil, false + } + + if nullable, ok := v.Interface().(OptionalNullableInterface); ok { + return nullable, true + } + return nil, false +} diff --git a/optionalnullable/optionalnullable_test.go b/optionalnullable/optionalnullable_test.go new file mode 100644 index 0000000..e6e5a01 --- /dev/null +++ b/optionalnullable/optionalnullable_test.go @@ -0,0 +1,1806 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package optionalnullable + +import ( + "encoding/json" + "reflect" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +// Test helper function to create pointers from values +func ptrFrom[T any](value T) *T { + return &value +} + +// Test helper types for comprehensive testing +type TestStruct struct { + Name string `json:"name"` + Age int `json:"age"` +} + +type TestContainer struct { + StringField OptionalNullable[string] `json:"string_field,omitempty"` + IntField OptionalNullable[int] `json:"int_field,omitempty"` + SliceField OptionalNullable[[]string] `json:"slice_field,omitempty"` + StructField OptionalNullable[TestStruct] `json:"struct_field,omitempty"` +} + +// TestNewNullable tests the From constructor +func TestNewNullable(t *testing.T) { + t.Parallel() + t.Run("with string value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value for string + }) + + t.Run("with int value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(42)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + }) + + t.Run("with slice value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b", "c"})) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b", "c"}, got) + }) + + t.Run("with empty slice", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{})) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + }) + + t.Run("with struct value", func(t *testing.T) { + t.Parallel() + val := TestStruct{Name: "John", Age: 30} + nullable := From(&val) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + v, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, val, v) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "John", Age: 30}, got) + }) +} + +// TestNewNullableUnset tests the NewNullableUnset constructor +func TestNewNullableUnset(t *testing.T) { + t.Parallel() + t.Run("string type", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, "", got) // zero value for string + }) + + t.Run("int type", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[int] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, 0, got) // zero value for int + }) + + t.Run("slice type", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[[]string] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Nil(t, got) // zero value for slice is nil + }) +} + +// TestIsNull tests the IsNull method +func TestIsNull(t *testing.T) { + t.Parallel() + t.Run("with value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + assert.False(t, nullable.IsNull()) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + assert.True(t, nullable.IsNull()) + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + assert.False(t, nullable.IsNull()) + }) +} + +// TestIsSet tests the IsSet method +func TestIsSet(t *testing.T) { + t.Parallel() + t.Run("with value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + assert.True(t, nullable.IsSet()) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + assert.True(t, nullable.IsSet()) + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + assert.False(t, nullable.IsSet()) + }) +} + +// TestGet tests the Get method +func TestGet(t *testing.T) { + t.Parallel() + t.Run("with string value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("with slice value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b"})) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, got) + }) + + t.Run("with nil slice pointer", func(t *testing.T) { + t.Parallel() + nullable := From[[]string](nil) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) // zero value for slice is nil + }) +} + +// TestPointer tests the Pointer method +func TestPointer(t *testing.T) { + t.Parallel() + t.Run("with value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + ptr, ok := nullable.Get() + assert.True(t, ok) + assert.NotNil(t, ptr) + assert.Equal(t, "test", *ptr) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + ptr, ok := nullable.Get() + assert.True(t, ok) + assert.Nil(t, ptr) + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + ptr, ok := nullable.Get() + assert.False(t, ok) + assert.Nil(t, ptr) + }) +} + +// TestSet tests the Set method +func TestSet(t *testing.T) { + t.Parallel() + t.Run("set string value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + // Initially unset + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + // Set a value + nullable.Set(ptrFrom("test")) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("set int value", func(t *testing.T) { + t.Parallel() + nullable := OptionalNullable[int]{} + + nullable.Set(ptrFrom(42)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + }) + + t.Run("set slice value", func(t *testing.T) { + t.Parallel() + nullable := OptionalNullable[[]string]{} + + slice := []string{"a", "b"} + nullable.Set(ptrFrom(slice)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, got) + }) + + t.Run("set empty slice", func(t *testing.T) { + t.Parallel() + nullable := OptionalNullable[[]string]{} + + slice := []string{} + nullable.Set(ptrFrom(slice)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + }) + + t.Run("overwrite existing value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("original")) + + // Verify original value + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "original", got) + + // Set new value + nullable.Set(ptrFrom("new")) + + got, ok = nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "new", got) + }) +} + +// TestUnset tests the Unset method +func TestUnset(t *testing.T) { + t.Parallel() + t.Run("unset from value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + // Initially set + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + // Unset + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // After unset is not null + // Value is now internal to the map implementation + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("unset from nil", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + // Initially set to nil + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) // Set to nil should be null + + // Unset + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // After unset is not null + }) + + t.Run("unset already unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + // Initially unset + assert.False(t, nullable.IsSet()) + + // Unset again + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Empty map is not null + }) +} + +// TestMarshalJSON tests JSON marshaling +func TestMarshalJSON(t *testing.T) { + t.Parallel() + t.Run("marshal string value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `"test"`, string(data)) + }) + + t.Run("marshal int value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(42)) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `42`, string(data)) + }) + + t.Run("marshal nil value", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `null`, string(data)) + }) + + t.Run("marshal slice value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b", "c"})) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `["a","b","c"]`, string(data)) + }) + + t.Run("marshal empty slice", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{})) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `[]`, string(data)) + }) + + t.Run("marshal struct value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(TestStruct{Name: "John", Age: 30})) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `{"name":"John","age":30}`, string(data)) + }) + + // Note: Unset values are not tested here because the current implementation + // doesn't handle unset fields in marshaling (see TODO in the code) +} + +// TestUnmarshalJSON tests JSON unmarshaling +func TestUnmarshalJSON(t *testing.T) { + t.Parallel() + t.Run("unmarshal string value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(`"test"`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("unmarshal int value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[int] + err := json.Unmarshal([]byte(`42`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + }) + + t.Run("unmarshal null value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(`null`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("unmarshal slice value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(`["a","b","c"]`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b", "c"}, got) + }) + + t.Run("unmarshal empty slice", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(`[]`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + }) + + t.Run("unmarshal struct value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[TestStruct] + err := json.Unmarshal([]byte(`{"name":"John","age":30}`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "John", Age: 30}, got) + }) + + t.Run("unmarshal invalid JSON", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(`invalid`), &nullable) + assert.Error(t, err) + + // Ensure the nullable remains unset after error + assert.False(t, nullable.IsSet()) + }) + + t.Run("unmarshal invalid JSON for int", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[int] + err := json.Unmarshal([]byte(`"not_a_number"`), &nullable) + assert.Error(t, err) + + // Ensure the nullable remains unset after error + assert.False(t, nullable.IsSet()) + }) + + t.Run("unmarshal malformed JSON", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[TestStruct] + err := json.Unmarshal([]byte(`{invalid json`), &nullable) + assert.Error(t, err) + + // Ensure the nullable remains unset after error + assert.False(t, nullable.IsSet()) + }) +} + +// TestJSONRoundTrip tests marshaling and unmarshaling together +func TestJSONRoundTrip(t *testing.T) { + t.Parallel() + t.Run("string value round trip", func(t *testing.T) { + t.Parallel() + nullable1 := From(ptrFrom("test value")) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + assert.Equal(t, got1, got2) + }) + + t.Run("nil value round trip", func(t *testing.T) { + t.Parallel() + nullable1 := From[string](nil) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + assert.Equal(t, got1, got2) + }) + + t.Run("slice round trip", func(t *testing.T) { + t.Parallel() + nullable1 := From(ptrFrom([]string{"a", "b", "c"})) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[[]string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + assert.Equal(t, got1, got2) + }) +} + +// TestJSONToJSONRoundTrip tests starting with JSON and ensuring we can serialize back to the same JSON +func TestJSONToJSONRoundTrip(t *testing.T) { + t.Parallel() + t.Run("string value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `"hello world"` + + // Unmarshal from JSON + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "hello world", got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("null value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `null` + + // Unmarshal from JSON + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("int value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `42` + + // Unmarshal from JSON + var nullable OptionalNullable[int] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("slice value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `["a","b","c"]` + + // Unmarshal from JSON + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b", "c"}, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("empty slice JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `[]` + + // Unmarshal from JSON + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("struct value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `{"name":"Alice","age":25}` + + // Unmarshal from JSON + var nullable OptionalNullable[TestStruct] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "Alice", Age: 25}, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) +} + +// TestContainerStates tests comprehensive state detection and serialization with TestContainer +func TestContainerStates(t *testing.T) { + t.Parallel() + t.Run("all fields set to values", func(t *testing.T) { + t.Parallel() + container := TestContainer{ + StringField: From(ptrFrom("hello")), + IntField: From(ptrFrom(42)), + SliceField: From(ptrFrom([]string{"a", "b"})), + StructField: From(ptrFrom(TestStruct{Name: "John", Age: 30})), + } + + // Verify all fields are set and not null + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + assert.True(t, container.IntField.IsSet()) + assert.False(t, container.IntField.IsNull()) + assert.True(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) + assert.True(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + + // Verify values + stringVal, ok := container.StringField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "hello", stringVal) + + intVal, ok := container.IntField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, intVal) + + sliceVal, ok := container.SliceField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, sliceVal) + + structVal, ok := container.StructField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "John", Age: 30}, structVal) + + // Test JSON serialization + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + assert.Equal(t, "hello", result["string_field"]) + assert.Equal(t, float64(42), result["int_field"]) // JSON numbers are float64 + assert.Equal(t, []interface{}{"a", "b"}, result["slice_field"]) + structResult := result["struct_field"].(map[string]interface{}) + assert.Equal(t, "John", structResult["name"]) + assert.Equal(t, float64(30), structResult["age"]) + }) + + t.Run("all fields set to nil", func(t *testing.T) { + t.Parallel() + container := TestContainer{ + StringField: From[string](nil), + IntField: From[int](nil), + SliceField: From[[]string](nil), + StructField: From[TestStruct](nil), + } + + // Verify all fields are set but null + assert.True(t, container.StringField.IsSet()) + assert.True(t, container.StringField.IsNull()) + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + assert.True(t, container.SliceField.IsSet()) + assert.True(t, container.SliceField.IsNull()) + assert.True(t, container.StructField.IsSet()) + assert.True(t, container.StructField.IsNull()) + + // Verify GetOrZero() behavior for nil values + stringVal, ok := container.StringField.GetOrZero() + assert.True(t, ok) // set to nil still returns true + assert.Equal(t, "", stringVal) // zero value + + intVal, ok := container.IntField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 0, intVal) // zero value + + sliceVal, ok := container.SliceField.GetOrZero() + assert.True(t, ok) + assert.Nil(t, sliceVal) // zero value for slice is nil + + structVal, ok := container.StructField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{}, structVal) // zero value + + // Test JSON serialization - all should be null + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + assert.Nil(t, result["string_field"]) + assert.Nil(t, result["int_field"]) + assert.Nil(t, result["slice_field"]) + assert.Nil(t, result["struct_field"]) + }) + + t.Run("all fields unset", func(t *testing.T) { + t.Parallel() + container := TestContainer{} + + // Verify all fields are unset + assert.False(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) // unset is not null in new implementation + assert.False(t, container.IntField.IsSet()) + assert.False(t, container.IntField.IsNull()) + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) + assert.False(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + + // Verify GetOrZero() behavior for unset values + stringVal, ok := container.StringField.GetOrZero() + assert.False(t, ok) // unset returns false + assert.Equal(t, "", stringVal) // zero value + + intVal, ok := container.IntField.GetOrZero() + assert.False(t, ok) + assert.Equal(t, 0, intVal) // zero value + + sliceVal, ok := container.SliceField.GetOrZero() + assert.False(t, ok) + assert.Nil(t, sliceVal) // zero value + + structVal, ok := container.StructField.GetOrZero() + assert.False(t, ok) + assert.Equal(t, TestStruct{}, structVal) // zero value + + // Test JSON serialization - unset fields should be omitted due to omitempty + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + // With omitempty, unset fields should not appear in JSON + assert.NotContains(t, result, "string_field") + assert.NotContains(t, result, "int_field") + assert.NotContains(t, result, "slice_field") + assert.NotContains(t, result, "struct_field") + }) + + t.Run("slice field states: nil vs unset vs empty vs set", func(t *testing.T) { + t.Parallel() + // Test all possible slice states + nilSlice := TestContainer{ + SliceField: From[[]string](nil), // explicitly set to nil + } + unsetSlice := TestContainer{} // unset + emptySlice := TestContainer{ + SliceField: From(ptrFrom([]string{})), // empty slice + } + setSlice := TestContainer{ + SliceField: From(ptrFrom([]string{"a", "b"})), // slice with values + } + + // Verify nil slice + assert.True(t, nilSlice.SliceField.IsSet()) + assert.True(t, nilSlice.SliceField.IsNull()) + val, ok := nilSlice.SliceField.GetOrZero() + assert.True(t, ok) + assert.Nil(t, val) + + // Verify unset slice + assert.False(t, unsetSlice.SliceField.IsSet()) + assert.False(t, unsetSlice.SliceField.IsNull()) // Unset is not null + val, ok = unsetSlice.SliceField.GetOrZero() + assert.False(t, ok) + assert.Nil(t, val) + + // Verify empty slice + assert.True(t, emptySlice.SliceField.IsSet()) + assert.False(t, emptySlice.SliceField.IsNull()) + val, ok = emptySlice.SliceField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, val) + + // Verify set slice + assert.True(t, setSlice.SliceField.IsSet()) + assert.False(t, setSlice.SliceField.IsNull()) + val, ok = setSlice.SliceField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, val) + + // Test JSON serialization for each state + nilData, err := json.Marshal(nilSlice) + require.NoError(t, err) + assert.Contains(t, string(nilData), `"slice_field":null`) + + unsetData, err := json.Marshal(unsetSlice) + require.NoError(t, err) + assert.NotContains(t, string(unsetData), "slice_field") // omitted due to omitempty + + emptyData, err := json.Marshal(emptySlice) + require.NoError(t, err) + assert.Contains(t, string(emptyData), `"slice_field":[]`) + + setData, err := json.Marshal(setSlice) + require.NoError(t, err) + assert.Contains(t, string(setData), `"slice_field":["a","b"]`) + }) + + t.Run("mixed states container", func(t *testing.T) { + t.Parallel() + container := TestContainer{ + StringField: From(ptrFrom("hello")), // set to value + IntField: From[int](nil), // set to nil + StructField: From(ptrFrom(TestStruct{Name: "Alice", Age: 25})), // set to value + } + + // Verify states + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) // Unset is not null + + assert.True(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + + // Test JSON serialization + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + assert.Equal(t, "hello", result["string_field"]) + assert.Nil(t, result["int_field"]) + assert.NotContains(t, result, "slice_field") // unset, so omitted + structResult := result["struct_field"].(map[string]interface{}) + assert.Equal(t, "Alice", structResult["name"]) + assert.Equal(t, float64(25), structResult["age"]) + }) + + t.Run("JSON unmarshaling preserves states", func(t *testing.T) { + t.Parallel() + // JSON with some fields missing, some null, some with values + jsonData := `{ + "string_field": "test", + "int_field": null, + "struct_field": {"name": "Bob", "age": 35} + }` + + var container TestContainer + err := json.Unmarshal([]byte(jsonData), &container) + require.NoError(t, err) + + // string_field: present with value + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + stringVal, ok := container.StringField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", stringVal) + + // int_field: present but null + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + intVal, ok := container.IntField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 0, intVal) // zero value + + // slice_field: missing from JSON, should remain unset + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) // Unset is not null + sliceVal, ok := container.SliceField.GetOrZero() + assert.False(t, ok) + assert.Nil(t, sliceVal) + + // struct_field: present with value + assert.True(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + structVal, ok := container.StructField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "Bob", Age: 35}, structVal) + }) +} + +// TestNilVsUnsetDistinction tests the key feature of distinguishing nil from unset +func TestNilVsUnsetDistinction(t *testing.T) { + t.Parallel() + t.Run("explicit nil vs unset", func(t *testing.T) { + t.Parallel() + // Explicitly set to nil + explicitNil := From[string](nil) + + // Unset + var unset OptionalNullable[string] + + // Both are null, but only one is set + assert.True(t, explicitNil.IsNull()) + assert.True(t, explicitNil.IsSet()) + + assert.False(t, unset.IsNull()) // Unset is not null + assert.False(t, unset.IsSet()) + + // Get behavior differs + got1, ok1 := explicitNil.GetOrZero() + got2, ok2 := unset.GetOrZero() + + assert.True(t, ok1) // explicitly set to nil returns true + assert.False(t, ok2) // unset returns false + assert.Equal(t, "", got1) // both return zero value + assert.Equal(t, "", got2) + + // Get behavior differs + ptr1, ok1 := explicitNil.Get() + ptr2, ok2 := unset.Get() + + assert.True(t, ok1) // explicitly set to nil returns true + assert.False(t, ok2) // unset returns false + assert.Nil(t, ptr1) // both return nil pointer + assert.Nil(t, ptr2) + }) + + t.Run("empty slice vs nil slice vs unset", func(t *testing.T) { + t.Parallel() + // Empty slice + emptyNullable := From(ptrFrom([]string{})) + + // Nil slice + nilNullable := From[[]string](nil) + + // Unset + var unsetNullable OptionalNullable[[]string] + + // All have different characteristics + assert.True(t, emptyNullable.IsSet()) + assert.False(t, emptyNullable.IsNull()) + + assert.True(t, nilNullable.IsSet()) + assert.True(t, nilNullable.IsNull()) + + assert.False(t, unsetNullable.IsSet()) + assert.False(t, unsetNullable.IsNull()) // Unset is not null + + // Get behavior + got1, ok1 := emptyNullable.GetOrZero() + got2, ok2 := nilNullable.GetOrZero() + got3, ok3 := unsetNullable.GetOrZero() + + assert.True(t, ok1) + assert.Equal(t, []string{}, got1) + + assert.True(t, ok2) + assert.Nil(t, got2) + + assert.False(t, ok3) + assert.Nil(t, got3) + }) +} + +// TestJSONOmitEmpty tests behavior with omitempty tag +func TestJSONOmitEmpty(t *testing.T) { + t.Parallel() + t.Run("marshal with omitempty", func(t *testing.T) { + t.Parallel() + // Test container with various nullable states + container := TestContainer{ + StringField: From(ptrFrom("test")), + IntField: From(ptrFrom(42)), + StructField: From[TestStruct](nil), // explicitly nil + } + + data, err := json.Marshal(container) + require.NoError(t, err) + + // Parse back to verify structure + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + // Should contain set fields + assert.Contains(t, result, "string_field") + assert.Contains(t, result, "int_field") + assert.Contains(t, result, "struct_field") + + // Should not contain unset field (due to omitempty) + // Note: This depends on how the marshaling handles unset fields + // The current implementation doesn't handle this case properly (see TODO) + }) + + t.Run("unmarshal missing fields", func(t *testing.T) { + t.Parallel() + // JSON with some fields missing + jsonData := `{"string_field": "test", "int_field": null}` + + var container TestContainer + err := json.Unmarshal([]byte(jsonData), &container) + require.NoError(t, err) + + // Present fields should be set + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + got, ok := container.StringField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + + // Null field should be set to nil + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + + // Missing fields should remain unset + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.StructField.IsSet()) + }) +} + +// TestEdgeCases tests various edge cases +func TestEdgeCases(t *testing.T) { + t.Parallel() + t.Run("zero values", func(t *testing.T) { + t.Parallel() + // Test with zero values that are not nil + intNullable := From(ptrFrom(0)) + stringNullable := From(ptrFrom("")) + + assert.True(t, intNullable.IsSet()) + assert.False(t, intNullable.IsNull()) + got, ok := intNullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 0, got) + + assert.True(t, stringNullable.IsSet()) + assert.False(t, stringNullable.IsNull()) + got2, ok2 := stringNullable.GetOrZero() + assert.True(t, ok2) + assert.Equal(t, "", got2) + }) + + t.Run("pointer to pointer", func(t *testing.T) { + t.Parallel() + // Test with pointer to pointer type + inner := "test" + nullable := From(ptrFrom(&inner)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, &inner, got) + assert.Equal(t, "test", *got) + }) + + t.Run("complex struct", func(t *testing.T) { + t.Parallel() + complexStruct := struct { + Name string + Values []int + Metadata map[string]string + }{ + Name: "complex", + Values: []int{1, 2, 3}, + Metadata: map[string]string{ + "key1": "value1", + "key2": "value2", + }, + } + + nullable := From(ptrFrom(complexStruct)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, complexStruct, got) + }) +} + +// TestDoublePointers tests comprehensive double pointer scenarios +func TestDoublePointers(t *testing.T) { + t.Parallel() + + t.Run("string double pointer with value", func(t *testing.T) { + t.Parallel() + inner := "hello world" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, &inner, got) + assert.Equal(t, "hello world", *got) + }) + + t.Run("int double pointer with value", func(t *testing.T) { + t.Parallel() + inner := 42 + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, &inner, got) + assert.Equal(t, 42, *got) + }) + + t.Run("double pointer to nil", func(t *testing.T) { + t.Parallel() + var ptr *string = nil + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Nil(t, got) + }) + + t.Run("nil double pointer", func(t *testing.T) { + t.Parallel() + nullable := From[*string](nil) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) // zero value for **string is nil + }) + + t.Run("unset double pointer", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Nil(t, got) // zero value for **string is nil + }) + + t.Run("double pointer modification", func(t *testing.T) { + t.Parallel() + inner := "original" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + // Verify original value + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "original", *got) + + // Modify through double pointer + *got = "modified" + assert.Equal(t, "modified", inner) + assert.Equal(t, "modified", *got) + }) + + t.Run("double pointer to struct", func(t *testing.T) { + t.Parallel() + inner := TestStruct{Name: "Alice", Age: 30} + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, TestStruct{Name: "Alice", Age: 30}, *got) + + // Modify through double pointer + (*got).Name = "Bob" + assert.Equal(t, "Bob", inner.Name) + assert.Equal(t, "Bob", (*got).Name) + }) + + t.Run("double pointer to slice", func(t *testing.T) { + t.Parallel() + inner := []string{"a", "b", "c"} + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, []string{"a", "b", "c"}, *got) + + // Modify through double pointer + *got = append(*got, "d") + assert.Equal(t, []string{"a", "b", "c", "d"}, inner) + assert.Equal(t, []string{"a", "b", "c", "d"}, *got) + }) + + t.Run("double pointer to empty slice", func(t *testing.T) { + t.Parallel() + inner := []string{} + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, []string{}, *got) + }) + + t.Run("double pointer to nil slice", func(t *testing.T) { + t.Parallel() + var inner []string = nil + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Nil(t, *got) + }) + + t.Run("double pointer JSON marshaling", func(t *testing.T) { + t.Parallel() + inner := "json test" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `"json test"`, string(data)) + }) + + t.Run("double pointer JSON unmarshaling", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + err := json.Unmarshal([]byte(`"json test"`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.NotNil(t, got) + assert.Equal(t, "json test", *got) + }) + + t.Run("double pointer JSON null marshaling", func(t *testing.T) { + t.Parallel() + nullable := From[*string](nil) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `null`, string(data)) + }) + + t.Run("double pointer JSON null unmarshaling", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + err := json.Unmarshal([]byte(`null`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) + }) + + t.Run("double pointer round trip", func(t *testing.T) { + t.Parallel() + inner := "round trip test" + ptr := &inner + nullable1 := From(ptrFrom(ptr)) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[*string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare states + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + + // Values should be equal + assert.Equal(t, *got1, *got2) + }) + + t.Run("triple pointer", func(t *testing.T) { + t.Parallel() + inner := "triple" + ptr1 := &inner + ptr2 := &ptr1 + nullable := From(ptrFrom(ptr2)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr2, got) + assert.Equal(t, ptr1, *got) + assert.Equal(t, "triple", **got) + }) + + t.Run("double pointer set and unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + + // Initially unset + assert.False(t, nullable.IsSet()) + + // Set to double pointer + inner := "set test" + ptr := &inner + nullable.Set(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "set test", *got) + + // Set to nil + nullable.Set(nil) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok = nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) + + // Unset + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok = nullable.GetOrZero() + assert.False(t, ok) + assert.Nil(t, got) + }) + + t.Run("double pointer Get method", func(t *testing.T) { + t.Parallel() + inner := "get test" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + // Test Get method + gotPtr, ok := nullable.Get() + assert.True(t, ok) + assert.NotNil(t, gotPtr) + assert.Equal(t, ptr, *gotPtr) + assert.Equal(t, "get test", **gotPtr) + + // Test with nil + nilNullable := From[*string](nil) + gotPtr, ok = nilNullable.Get() + assert.True(t, ok) + assert.Nil(t, gotPtr) + + // Test with unset + var unsetNullable OptionalNullable[*string] + gotPtr, ok = unsetNullable.Get() + assert.False(t, ok) + assert.Nil(t, gotPtr) + }) + + t.Run("double pointer zero values", func(t *testing.T) { + t.Parallel() + // Test with zero value string + inner := "" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", *got) + + // Test with zero value int + innerInt := 0 + ptrInt := &innerInt + nullableInt := From(ptrFrom(ptrInt)) + + assert.True(t, nullableInt.IsSet()) + assert.False(t, nullableInt.IsNull()) + + gotInt, okInt := nullableInt.GetOrZero() + assert.True(t, okInt) + assert.Equal(t, 0, *gotInt) + }) +} + +// TestAsOptionalNullable tests the AsOptionalNullable helper function +func TestAsOptionalNullable(t *testing.T) { + t.Parallel() + + t.Run("with nullable string", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, "test", value) + }) + + t.Run("with nullable int", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(42)) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, 42, value) + }) + + t.Run("with nullable nil", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Nil(t, value) + }) + + t.Run("with unset nullable", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable string", func(t *testing.T) { + t.Parallel() + regularString := "not nullable" + reflectValue := reflect.ValueOf(regularString) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable int", func(t *testing.T) { + t.Parallel() + regularInt := 42 + reflectValue := reflect.ValueOf(regularInt) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable map", func(t *testing.T) { + t.Parallel() + regularMap := map[string]int{"key": 42} + reflectValue := reflect.ValueOf(regularMap) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable struct", func(t *testing.T) { + t.Parallel() + regularStruct := TestStruct{Name: "test", Age: 30} + reflectValue := reflect.ValueOf(regularStruct) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with nullable double pointer", func(t *testing.T) { + t.Parallel() + inner := "test" + ptr := &inner + nullable := From(ptrFrom(ptr)) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, ptr, value) + assert.Equal(t, "test", *value.(*string)) + }) + + t.Run("with nullable slice", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b", "c"})) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, []string{"a", "b", "c"}, value) + }) + + t.Run("with nullable struct", func(t *testing.T) { + t.Parallel() + testStruct := TestStruct{Name: "Alice", Age: 25} + nullable := From(ptrFrom(testStruct)) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, testStruct, value) + }) + + t.Run("with pointer to nullable", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + ptrToNullable := &nullable + reflectValue := reflect.ValueOf(ptrToNullable) + + // This should work since the pointer to nullable still contains a nullable + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, "test", value) + }) + + t.Run("with interface containing nullable", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + var iface interface{} = nullable + reflectValue := reflect.ValueOf(iface) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, "test", value) + }) +} diff --git a/plexapi.go b/plexapi.go index 7b9f70a..5e3f529 100644 --- a/plexapi.go +++ b/plexapi.go @@ -2,7 +2,7 @@ package plexgo -// Generated from OpenAPI doc version 0.0.3 and generator version 2.698.4 +// Generated from OpenAPI doc version 0.0.3 and generator version 2.722.2 import ( "context" @@ -277,9 +277,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *PlexAPI { sdk := &PlexAPI{ - SDKVersion: "0.24.2", + SDKVersion: "0.25.0", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.24.2 2.698.4 0.0.3 github.com/LukeHagar/plexgo", + UserAgent: "speakeasy-sdk/go 0.25.0 2.722.2 0.0.3 github.com/LukeHagar/plexgo", ServerList: ServerList, ServerVariables: []map[string]string{ { diff --git a/types/decimal.go b/types/decimal.go deleted file mode 100644 index d8429bc..0000000 --- a/types/decimal.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -import ( - "fmt" - - "github.com/ericlagergren/decimal" -) - -// MustNewDecimalFromString returns an instance of Decimal from a string -// Avoid using this function in production code. -func MustNewDecimalFromString(s string) *decimal.Big { - d, ok := new(decimal.Big).SetString(s) - if !ok { - panic(fmt.Errorf("failed to parse string as decimal.Big")) - } - - return d -}