ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.635.1

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

View File

@@ -3,10 +3,10 @@ id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
management:
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

View File

@@ -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

View File

@@ -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

View File

@@ -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 - .
- [Go v0.24.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.24.2 - .
## 2025-10-07 00:10:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.635.1 (2.722.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.25.0] .
### Releases
- [Go v0.25.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.25.0 - .

View File

@@ -619,7 +619,7 @@ actions:
res, err := s.Hubs.GetRecentlyAdded(ctx, operations.GetRecentlyAddedRequest{
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("<YOUR_API_KEY_HERE>"),
)
res, err := s.Search.PerformSearch(ctx, "arnold", nil, plexgo.Float64(5))
res, err := s.Search.PerformSearch(ctx, "arnold", nil, plexgo.Pointer[float64](5))
if err != nil {
log.Fatal(err)
}
@@ -680,7 +680,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Search.PerformVoiceSearch(ctx, "dead+poop", nil, plexgo.Float64(5))
res, err := s.Search.PerformVoiceSearch(ctx, "dead+poop", nil, plexgo.Pointer[float64](5))
if err != nil {
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("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil {
log.Fatal(err)
}
@@ -964,7 +964,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.String("Stream"))
res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.Pointer("Stream"))
if err != nil {
log.Fatal(err)
}
@@ -1022,7 +1022,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil {
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("<YOUR_API_KEY_HERE>"),
)
res, err := s.Playlists.AddPlaylistContents(ctx, 7013.44, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123))
res, err := s.Playlists.AddPlaylistContents(ctx, 7013.44, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Pointer[float64](123))
if err != nil {
log.Fatal(err)
}
@@ -2190,7 +2190,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Int64(4))
res, err := s.Statistics.GetBandwidthStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil {
log.Fatal(err)
}
@@ -2219,7 +2219,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Statistics.GetStatistics(ctx, plexgo.Int64(4))
res, err := s.Statistics.GetStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil {
log.Fatal(err)
}
@@ -2248,7 +2248,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Int64(4))
res, err := s.Statistics.GetResourcesStatistics(ctx, plexgo.Pointer[int64](4))
if err != nil {
log.Fatal(err)
}
@@ -2307,7 +2307,7 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Sessions.GetSessionHistory(ctx, plexgo.String("viewedAt:desc"), plexgo.Int64(1), &operations.QueryParamFilter{}, plexgo.Int64(12))
res, err := s.Sessions.GetSessionHistory(ctx, plexgo.Pointer("viewedAt:desc"), plexgo.Pointer[int64](1), &operations.QueryParamFilter{}, plexgo.Pointer[int64](12))
if err != nil {
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)

View File

@@ -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 {

View File

@@ -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(),
})

View File

@@ -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("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
res, err := s.Library.PostMediaArts(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil {
log.Fatal(err)
}
@@ -1115,7 +1115,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.String("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
res, err := s.Library.PostMediaPoster(ctx, 2268, plexgo.Pointer("https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b"), nil)
if err != nil {
log.Fatal(err)
}
@@ -1169,7 +1169,7 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.String("Stream"))
res, err := s.Library.GetMetadataChildren(ctx, 2403.67, plexgo.Pointer("Stream"))
if err != nil {
log.Fatal(err)
}

View File

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

View File

@@ -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)

View File

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

View File

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

View File

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

View File

@@ -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 {

View File

@@ -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)

8
go.mod
View File

@@ -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
)

12
go.sum
View File

@@ -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=

View File

@@ -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()

View File

@@ -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()

View File

@@ -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
}

View File

@@ -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++ {

View File

@@ -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

View File

@@ -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()))

View File

@@ -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)
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -11,11 +11,11 @@ type GetMediaArtsRequest struct {
RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"`
}
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
}

File diff suppressed because it is too large Load Diff

View File

@@ -11,11 +11,11 @@ type GetMediaPostersRequest struct {
RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"`
}
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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -44,18 +44,18 @@ type GetRefreshLibraryMetadataRequest struct {
SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"`
}
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
}

View File

@@ -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
}

View File

@@ -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
}

File diff suppressed because it is too large Load Diff

View File

@@ -45,18 +45,18 @@ type GetSearchLibraryRequest struct {
Type GetSearchLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"`
}
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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

File diff suppressed because it is too large Load Diff

View File

@@ -11,11 +11,11 @@ type GetSourceConnectionInformationRequest struct {
Source string `queryParam:"style=form,explode=true,name=source"`
}
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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

File diff suppressed because it is too large Load Diff

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