mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 20:47:45 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f33408b177 | ||
|
|
22654201f5 | ||
|
|
9dc8821b31 | ||
|
|
412b27f162 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
.speakeasy/reports
|
||||||
# Ignore Gradle project-specific cache directory
|
# Ignore Gradle project-specific cache directory
|
||||||
.gradle
|
.gradle
|
||||||
# Ignore Gradle build output directory
|
# Ignore Gradle build output directory
|
||||||
|
|||||||
1551
.speakeasy/gen.lock
1551
.speakeasy/gen.lock
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@ generation:
|
|||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
java:
|
java:
|
||||||
version: 0.11.0
|
version: 0.11.4
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
additionalPlugins: []
|
additionalPlugins: []
|
||||||
artifactID: plexapi
|
artifactID: plexapi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.459.2
|
speakeasyVersion: 1.484.1
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -8,19 +8,19 @@ sources:
|
|||||||
- latest
|
- latest
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0
|
sourceRevisionDigest: sha256:0b88c8bfc41def63e19e91fdd4d51bab07cb947cc3d39d2b44e8523a209cec10
|
||||||
sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332
|
sourceBlobDigest: sha256:89d5b8427d4fb61b25751aebbaf71f9613958e9e91073fc084fed2c2ec62ce55
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1734740746
|
- speakeasy-sdk-regen-1738715170
|
||||||
targets:
|
targets:
|
||||||
plexjava:
|
plexjava:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0
|
sourceRevisionDigest: sha256:0b88c8bfc41def63e19e91fdd4d51bab07cb947cc3d39d2b44e8523a209cec10
|
||||||
sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332
|
sourceBlobDigest: sha256:89d5b8427d4fb61b25751aebbaf71f9613958e9e91073fc084fed2c2ec62ce55
|
||||||
codeSamplesNamespace: code-samples-java-plexjava
|
codeSamplesNamespace: code-samples-java-plexjava
|
||||||
codeSamplesRevisionDigest: sha256:0612fff80a5399294636de519c9d3e8c24207624718af53454fe4d57a0a714e0
|
codeSamplesRevisionDigest: sha256:2aa7538a82c8a44f72d94eb4f26788f861508b856440d207b35e5160b54e9420
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ The samples below show how a published SDK artifact is used:
|
|||||||
|
|
||||||
Gradle:
|
Gradle:
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'dev.plexapi:plexapi:0.11.0'
|
implementation 'dev.plexapi:plexapi:0.11.4'
|
||||||
```
|
```
|
||||||
|
|
||||||
Maven:
|
Maven:
|
||||||
@@ -77,7 +77,7 @@ Maven:
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.plexapi</groupId>
|
<groupId>dev.plexapi</groupId>
|
||||||
<artifactId>plexapi</artifactId>
|
<artifactId>plexapi</artifactId>
|
||||||
<version>0.11.0</version>
|
<version>0.11.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -171,6 +171,8 @@ public class Application {
|
|||||||
* [getLibraryItems](docs/sdks/library/README.md#getlibraryitems) - Get Library Items
|
* [getLibraryItems](docs/sdks/library/README.md#getlibraryitems) - Get Library Items
|
||||||
* [getRefreshLibraryMetadata](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
|
* [getRefreshLibraryMetadata](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
|
||||||
* [getSearchLibrary](docs/sdks/library/README.md#getsearchlibrary) - Search Library
|
* [getSearchLibrary](docs/sdks/library/README.md#getsearchlibrary) - Search Library
|
||||||
|
* [getGenresLibrary](docs/sdks/library/README.md#getgenreslibrary) - Get Genres of library media
|
||||||
|
* [getCountriesLibrary](docs/sdks/library/README.md#getcountrieslibrary) - Get Countries of library media
|
||||||
* [getSearchAllLibraries](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries
|
* [getSearchAllLibraries](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries
|
||||||
* [getMetaDataByRatingKey](docs/sdks/library/README.md#getmetadatabyratingkey) - Get Metadata by RatingKey
|
* [getMetaDataByRatingKey](docs/sdks/library/README.md#getmetadatabyratingkey) - Get Metadata by RatingKey
|
||||||
* [getMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
* [getMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
||||||
|
|||||||
42
RELEASES.md
42
RELEASES.md
@@ -188,4 +188,44 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [java v0.11.0] .
|
- [java v0.11.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Maven Central v0.11.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.11.0 - .
|
- [Maven Central v0.11.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.11.0 - .
|
||||||
|
|
||||||
|
## 2024-12-22 00:28:49
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.459.2 (2.483.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [java v0.11.1] .
|
||||||
|
### Releases
|
||||||
|
- [Maven Central v0.11.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.11.1 - .
|
||||||
|
|
||||||
|
## 2025-01-24 00:25:37
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.474.0 (2.495.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [java v0.11.2] .
|
||||||
|
### Releases
|
||||||
|
- [Maven Central v0.11.2] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.11.2 - .
|
||||||
|
|
||||||
|
## 2025-01-27 00:26:34
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.476.1 (2.495.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [java v0.11.3] .
|
||||||
|
### Releases
|
||||||
|
- [Maven Central v0.11.3] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.11.3 - .
|
||||||
|
|
||||||
|
## 2025-02-05 00:25:55
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [java v0.11.4] .
|
||||||
|
### Releases
|
||||||
|
- [Maven Central v0.11.4] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.11.4 - .
|
||||||
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.plexapi"
|
group = "dev.plexapi"
|
||||||
version = "0.11.0"
|
version = "0.11.4"
|
||||||
|
|
||||||
sourcesJar {
|
sourcesJar {
|
||||||
archiveBaseName = "plexapi"
|
archiveBaseName = "plexapi"
|
||||||
@@ -101,7 +101,7 @@ publishing {
|
|||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
groupId = 'dev.plexapi'
|
groupId = 'dev.plexapi'
|
||||||
artifactId = 'plexapi'
|
artifactId = 'plexapi'
|
||||||
version = '0.11.0'
|
version = '0.11.4'
|
||||||
|
|
||||||
from components.java
|
from components.java
|
||||||
|
|
||||||
@@ -144,6 +144,8 @@ if (!project.hasProperty('skip.signing')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
|
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
|
||||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
|
||||||
@@ -154,6 +156,4 @@ dependencies {
|
|||||||
implementation 'commons-io:commons-io:2.18.0'
|
implementation 'commons-io:commons-io:2.18.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
apply from: 'build-extras.gradle'
|
apply from: 'build-extras.gradle'
|
||||||
|
|||||||
@@ -624,7 +624,6 @@ actions:
|
|||||||
import dev.plexapi.plexapi.PlexAPI;
|
import dev.plexapi.plexapi.PlexAPI;
|
||||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedRequest;
|
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedRequest;
|
||||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedResponse;
|
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedResponse;
|
||||||
import dev.plexapi.plexapi.models.operations.IncludeMeta;
|
|
||||||
import dev.plexapi.plexapi.models.operations.Type;
|
import dev.plexapi.plexapi.models.operations.Type;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
|
|
||||||
@@ -640,9 +639,6 @@ actions:
|
|||||||
.contentDirectoryID(470161L)
|
.contentDirectoryID(470161L)
|
||||||
.type(Type.TvShow)
|
.type(Type.TvShow)
|
||||||
.sectionID(2L)
|
.sectionID(2L)
|
||||||
.includeMeta(IncludeMeta.Enable)
|
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRecentlyAddedResponse res = sdk.hubs().getRecentlyAdded()
|
GetRecentlyAddedResponse res = sdk.hubs().getRecentlyAdded()
|
||||||
@@ -678,7 +674,7 @@ actions:
|
|||||||
|
|
||||||
PerformSearchResponse res = sdk.search().performSearch()
|
PerformSearchResponse res = sdk.search().performSearch()
|
||||||
.query("dylan")
|
.query("dylan")
|
||||||
.sectionId(9487.87d)
|
.sectionId(9487.88d)
|
||||||
.limit(5d)
|
.limit(5d)
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
@@ -709,7 +705,7 @@ actions:
|
|||||||
|
|
||||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||||
.query("dead+poop")
|
.query("dead+poop")
|
||||||
.sectionId(4094.80d)
|
.sectionId(4094.8d)
|
||||||
.limit(5d)
|
.limit(5d)
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
@@ -936,7 +932,7 @@ actions:
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
||||||
.ratingKey(1539.15d)
|
.ratingKey(1539.14d)
|
||||||
.includeElements("Stream")
|
.includeElements("Stream")
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
@@ -1029,7 +1025,6 @@ actions:
|
|||||||
import dev.plexapi.plexapi.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
import dev.plexapi.plexapi.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
||||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryRequest;
|
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryRequest;
|
||||||
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryResponse;
|
import dev.plexapi.plexapi.models.operations.GetRecentlyAddedLibraryResponse;
|
||||||
import dev.plexapi.plexapi.models.operations.QueryParamIncludeMeta;
|
|
||||||
import dev.plexapi.plexapi.models.operations.QueryParamType;
|
import dev.plexapi.plexapi.models.operations.QueryParamType;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -1059,9 +1054,6 @@ actions:
|
|||||||
16L,
|
16L,
|
||||||
17L))
|
17L))
|
||||||
.sectionID(2L)
|
.sectionID(2L)
|
||||||
.includeMeta(QueryParamIncludeMeta.Enable)
|
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRecentlyAddedLibraryResponse res = sdk.library().getRecentlyAddedLibrary()
|
GetRecentlyAddedLibraryResponse res = sdk.library().getRecentlyAddedLibrary()
|
||||||
@@ -1086,8 +1078,6 @@ actions:
|
|||||||
import dev.plexapi.plexapi.models.errors.GetSearchAllLibrariesUnauthorized;
|
import dev.plexapi.plexapi.models.errors.GetSearchAllLibrariesUnauthorized;
|
||||||
import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesRequest;
|
import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesRequest;
|
||||||
import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesResponse;
|
import dev.plexapi.plexapi.models.operations.GetSearchAllLibrariesResponse;
|
||||||
import dev.plexapi.plexapi.models.operations.QueryParamIncludeCollections;
|
|
||||||
import dev.plexapi.plexapi.models.operations.QueryParamIncludeExternalMedia;
|
|
||||||
import dev.plexapi.plexapi.models.operations.SearchTypes;
|
import dev.plexapi.plexapi.models.operations.SearchTypes;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -1105,8 +1095,6 @@ actions:
|
|||||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||||
.searchTypes(List.of(
|
.searchTypes(List.of(
|
||||||
SearchTypes.PEOPLE))
|
SearchTypes.PEOPLE))
|
||||||
.includeCollections(QueryParamIncludeCollections.Enable)
|
|
||||||
.includeExternalMedia(QueryParamIncludeExternalMedia.Enable)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSearchAllLibrariesResponse res = sdk.library().getSearchAllLibraries()
|
GetSearchAllLibrariesResponse res = sdk.library().getSearchAllLibraries()
|
||||||
@@ -1175,8 +1163,6 @@ actions:
|
|||||||
GetWatchListRequest req = GetWatchListRequest.builder()
|
GetWatchListRequest req = GetWatchListRequest.builder()
|
||||||
.filter(Filter.AVAILABLE)
|
.filter(Filter.AVAILABLE)
|
||||||
.xPlexToken("CV5xoxjTpFKUzBTShsaf")
|
.xPlexToken("CV5xoxjTpFKUzBTShsaf")
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetWatchListResponse res = sdk.watchlist().getWatchList()
|
GetWatchListResponse res = sdk.watchlist().getWatchList()
|
||||||
@@ -1245,6 +1231,68 @@ actions:
|
|||||||
.sectionKey(9518)
|
.sectionKey(9518)
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
|
if (res.object().isPresent()) {
|
||||||
|
// handle response
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- target: $["paths"]["/library/sections/{sectionKey}/country"]["get"]
|
||||||
|
update:
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: java
|
||||||
|
label: library
|
||||||
|
source: |-
|
||||||
|
package hello.world;
|
||||||
|
|
||||||
|
import dev.plexapi.plexapi.PlexAPI;
|
||||||
|
import dev.plexapi.plexapi.models.errors.GetCountriesLibraryBadRequest;
|
||||||
|
import dev.plexapi.plexapi.models.errors.GetCountriesLibraryUnauthorized;
|
||||||
|
import dev.plexapi.plexapi.models.operations.GetCountriesLibraryResponse;
|
||||||
|
import java.lang.Exception;
|
||||||
|
|
||||||
|
public class Application {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws GetCountriesLibraryBadRequest, GetCountriesLibraryUnauthorized, Exception {
|
||||||
|
|
||||||
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
GetCountriesLibraryResponse res = sdk.library().getCountriesLibrary()
|
||||||
|
.sectionKey(9518)
|
||||||
|
.call();
|
||||||
|
|
||||||
|
if (res.object().isPresent()) {
|
||||||
|
// handle response
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- target: $["paths"]["/library/sections/{sectionKey}/genre"]["get"]
|
||||||
|
update:
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: java
|
||||||
|
label: library
|
||||||
|
source: |-
|
||||||
|
package hello.world;
|
||||||
|
|
||||||
|
import dev.plexapi.plexapi.PlexAPI;
|
||||||
|
import dev.plexapi.plexapi.models.errors.GetGenresLibraryBadRequest;
|
||||||
|
import dev.plexapi.plexapi.models.errors.GetGenresLibraryUnauthorized;
|
||||||
|
import dev.plexapi.plexapi.models.operations.GetGenresLibraryResponse;
|
||||||
|
import java.lang.Exception;
|
||||||
|
|
||||||
|
public class Application {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws GetGenresLibraryBadRequest, GetGenresLibraryUnauthorized, Exception {
|
||||||
|
|
||||||
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
GetGenresLibraryResponse res = sdk.library().getGenresLibrary()
|
||||||
|
.sectionKey(9518)
|
||||||
|
.call();
|
||||||
|
|
||||||
if (res.object().isPresent()) {
|
if (res.object().isPresent()) {
|
||||||
// handle response
|
// handle response
|
||||||
}
|
}
|
||||||
@@ -1325,11 +1373,9 @@ actions:
|
|||||||
import dev.plexapi.plexapi.PlexAPI;
|
import dev.plexapi.plexapi.PlexAPI;
|
||||||
import dev.plexapi.plexapi.models.errors.GetLibraryItemsBadRequest;
|
import dev.plexapi.plexapi.models.errors.GetLibraryItemsBadRequest;
|
||||||
import dev.plexapi.plexapi.models.errors.GetLibraryItemsUnauthorized;
|
import dev.plexapi.plexapi.models.errors.GetLibraryItemsUnauthorized;
|
||||||
import dev.plexapi.plexapi.models.operations.GetLibraryItemsQueryParamIncludeMeta;
|
|
||||||
import dev.plexapi.plexapi.models.operations.GetLibraryItemsQueryParamType;
|
import dev.plexapi.plexapi.models.operations.GetLibraryItemsQueryParamType;
|
||||||
import dev.plexapi.plexapi.models.operations.GetLibraryItemsRequest;
|
import dev.plexapi.plexapi.models.operations.GetLibraryItemsRequest;
|
||||||
import dev.plexapi.plexapi.models.operations.GetLibraryItemsResponse;
|
import dev.plexapi.plexapi.models.operations.GetLibraryItemsResponse;
|
||||||
import dev.plexapi.plexapi.models.operations.IncludeGuids;
|
|
||||||
import dev.plexapi.plexapi.models.operations.Tag;
|
import dev.plexapi.plexapi.models.operations.Tag;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
|
|
||||||
@@ -1344,11 +1390,7 @@ actions:
|
|||||||
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
||||||
.tag(Tag.EDITION)
|
.tag(Tag.EDITION)
|
||||||
.sectionKey(9518)
|
.sectionKey(9518)
|
||||||
.includeGuids(IncludeGuids.Enable)
|
|
||||||
.type(GetLibraryItemsQueryParamType.TvShow)
|
.type(GetLibraryItemsQueryParamType.TvShow)
|
||||||
.includeMeta(GetLibraryItemsQueryParamIncludeMeta.Enable)
|
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryItemsResponse res = sdk.library().getLibraryItems()
|
GetLibraryItemsResponse res = sdk.library().getLibraryItems()
|
||||||
@@ -1823,7 +1865,7 @@ actions:
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
||||||
.playlistID(3915.00d)
|
.playlistID(3915d)
|
||||||
.title("<value>")
|
.title("<value>")
|
||||||
.summary("<value>")
|
.summary("<value>")
|
||||||
.call();
|
.call();
|
||||||
@@ -1916,7 +1958,7 @@ actions:
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
||||||
.playlistID(8502.00d)
|
.playlistID(8502.01d)
|
||||||
.uri("server://12345/com.plexapp.plugins.library/library/metadata/1")
|
.uri("server://12345/com.plexapp.plugins.library/library/metadata/1")
|
||||||
.playQueueID(123d)
|
.playQueueID(123d)
|
||||||
.call();
|
.call();
|
||||||
|
|||||||
11
docs/models/errors/GetCountriesLibraryBadRequest.md
Normal file
11
docs/models/errors/GetCountriesLibraryBadRequest.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetCountriesLibraryBadRequest
|
||||||
|
|
||||||
|
Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `errors` | List\<[GetCountriesLibraryErrors](../../models/errors/GetCountriesLibraryErrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
|
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
||||||
10
docs/models/errors/GetCountriesLibraryErrors.md
Normal file
10
docs/models/errors/GetCountriesLibraryErrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
||||||
|
| `code` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1000 |
|
||||||
|
| `message` | *Optional\<String>* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing |
|
||||||
|
| `status` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 400 |
|
||||||
10
docs/models/errors/GetCountriesLibraryLibraryErrors.md
Normal file
10
docs/models/errors/GetCountriesLibraryLibraryErrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
|
||||||
|
| `code` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1001 |
|
||||||
|
| `message` | *Optional\<String>* | :heavy_minus_sign: | N/A | User could not be authenticated |
|
||||||
|
| `status` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 401 |
|
||||||
11
docs/models/errors/GetCountriesLibraryUnauthorized.md
Normal file
11
docs/models/errors/GetCountriesLibraryUnauthorized.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetCountriesLibraryUnauthorized
|
||||||
|
|
||||||
|
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `errors` | List\<[GetCountriesLibraryLibraryErrors](../../models/errors/GetCountriesLibraryLibraryErrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
|
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
||||||
11
docs/models/errors/GetGenresLibraryBadRequest.md
Normal file
11
docs/models/errors/GetGenresLibraryBadRequest.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetGenresLibraryBadRequest
|
||||||
|
|
||||||
|
Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `errors` | List\<[GetGenresLibraryErrors](../../models/errors/GetGenresLibraryErrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
|
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
||||||
10
docs/models/errors/GetGenresLibraryErrors.md
Normal file
10
docs/models/errors/GetGenresLibraryErrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
||||||
|
| `code` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1000 |
|
||||||
|
| `message` | *Optional\<String>* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing |
|
||||||
|
| `status` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 400 |
|
||||||
10
docs/models/errors/GetGenresLibraryLibraryErrors.md
Normal file
10
docs/models/errors/GetGenresLibraryLibraryErrors.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryLibraryErrors
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
|
||||||
|
| `code` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1001 |
|
||||||
|
| `message` | *Optional\<String>* | :heavy_minus_sign: | N/A | User could not be authenticated |
|
||||||
|
| `status` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 401 |
|
||||||
11
docs/models/errors/GetGenresLibraryUnauthorized.md
Normal file
11
docs/models/errors/GetGenresLibraryUnauthorized.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetGenresLibraryUnauthorized
|
||||||
|
|
||||||
|
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `errors` | List\<[GetGenresLibraryLibraryErrors](../../models/errors/GetGenresLibraryLibraryErrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
|
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
||||||
11
docs/models/operations/EnableCreditsMarkerGeneration.md
Normal file
11
docs/models/operations/EnableCreditsMarkerGeneration.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# EnableCreditsMarkerGeneration
|
||||||
|
|
||||||
|
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `Disabled` | 0 |
|
||||||
12
docs/models/operations/EpisodeSort.md
Normal file
12
docs/models/operations/EpisodeSort.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# EpisodeSort
|
||||||
|
|
||||||
|
Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `OldestFirst` | 0 |
|
||||||
|
| `NewestFirst` | 1 |
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
# FlattenSeasons
|
# FlattenSeasons
|
||||||
|
|
||||||
|
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------- | ------- |
|
| ---------------- | ---------------- |
|
||||||
| `False` | 0 |
|
| `LibraryDefault` | -1 |
|
||||||
| `True` | 1 |
|
| `Hide` | 0 |
|
||||||
|
| `Show` | 1 |
|
||||||
10
docs/models/operations/GetCountriesLibraryDirectory.md
Normal file
10
docs/models/operations/GetCountriesLibraryDirectory.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryDirectory
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- |
|
||||||
|
| `fastKey` | *String* | :heavy_check_mark: | N/A | /library/sections/2/all?country=15491 |
|
||||||
|
| `key` | *String* | :heavy_check_mark: | N/A | 15491 |
|
||||||
|
| `title` | *String* | :heavy_check_mark: | N/A | Japan |
|
||||||
22
docs/models/operations/GetCountriesLibraryMediaContainer.md
Normal file
22
docs/models/operations/GetCountriesLibraryMediaContainer.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# GetCountriesLibraryMediaContainer
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
||||||
|
| `size` | *double* | :heavy_check_mark: | N/A | 50 |
|
||||||
|
| `offset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `totalSize` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `identifier` | *String* | :heavy_check_mark: | N/A | com.plexapp.plugins.library |
|
||||||
|
| `allowSync` | *boolean* | :heavy_check_mark: | N/A | false |
|
||||||
|
| `art` | *String* | :heavy_check_mark: | N/A | /:/resources/show-fanart.jpg |
|
||||||
|
| `content` | *String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `mediaTagPrefix` | *String* | :heavy_check_mark: | N/A | /system/bundle/media/flags/ |
|
||||||
|
| `mediaTagVersion` | *long* | :heavy_check_mark: | N/A | 1734362201 |
|
||||||
|
| `nocache` | *boolean* | :heavy_check_mark: | N/A | true |
|
||||||
|
| `thumb` | *String* | :heavy_check_mark: | N/A | /:/resources/show.png |
|
||||||
|
| `title1` | *String* | :heavy_check_mark: | N/A | TV Series |
|
||||||
|
| `title2` | *String* | :heavy_check_mark: | N/A | By Country |
|
||||||
|
| `viewGroup` | *String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `directory` | List\<[GetCountriesLibraryDirectory](../../models/operations/GetCountriesLibraryDirectory.md)> | :heavy_minus_sign: | N/A | |
|
||||||
8
docs/models/operations/GetCountriesLibraryRequest.md
Normal file
8
docs/models/operations/GetCountriesLibraryRequest.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# GetCountriesLibraryRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
11
docs/models/operations/GetCountriesLibraryResponse.md
Normal file
11
docs/models/operations/GetCountriesLibraryResponse.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetCountriesLibraryResponse
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||||
|
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||||
|
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||||
|
| `object` | [Optional\<GetCountriesLibraryResponseBody>](../../models/operations/GetCountriesLibraryResponseBody.md) | :heavy_minus_sign: | Successful response containing media container data. |
|
||||||
10
docs/models/operations/GetCountriesLibraryResponseBody.md
Normal file
10
docs/models/operations/GetCountriesLibraryResponseBody.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetCountriesLibraryResponseBody
|
||||||
|
|
||||||
|
Successful response containing media container data.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `mediaContainer` | [Optional\<GetCountriesLibraryMediaContainer>](../../models/operations/GetCountriesLibraryMediaContainer.md) | :heavy_minus_sign: | N/A |
|
||||||
11
docs/models/operations/GetGenresLibraryDirectory.md
Normal file
11
docs/models/operations/GetGenresLibraryDirectory.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetGenresLibraryDirectory
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
|
||||||
|
| `fastKey` | *String* | :heavy_check_mark: | N/A | /library/sections/10/all?genre=89 |
|
||||||
|
| `key` | *String* | :heavy_check_mark: | N/A | 89 |
|
||||||
|
| `title` | *String* | :heavy_check_mark: | N/A | Action |
|
||||||
|
| `type` | *String* | :heavy_check_mark: | N/A | genre |
|
||||||
22
docs/models/operations/GetGenresLibraryMediaContainer.md
Normal file
22
docs/models/operations/GetGenresLibraryMediaContainer.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# GetGenresLibraryMediaContainer
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
||||||
|
| `size` | *double* | :heavy_check_mark: | N/A | 50 |
|
||||||
|
| `offset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `totalSize` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
||||||
|
| `identifier` | *String* | :heavy_check_mark: | N/A | com.plexapp.plugins.library |
|
||||||
|
| `allowSync` | *boolean* | :heavy_check_mark: | N/A | false |
|
||||||
|
| `art` | *String* | :heavy_check_mark: | N/A | /:/resources/show-fanart.jpg |
|
||||||
|
| `content` | *String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `mediaTagPrefix` | *String* | :heavy_check_mark: | N/A | /system/bundle/media/flags/ |
|
||||||
|
| `mediaTagVersion` | *long* | :heavy_check_mark: | N/A | 1734362201 |
|
||||||
|
| `nocache` | *boolean* | :heavy_check_mark: | N/A | true |
|
||||||
|
| `thumb` | *String* | :heavy_check_mark: | N/A | /:/resources/show.png |
|
||||||
|
| `title1` | *String* | :heavy_check_mark: | N/A | TV Shows (Reality) |
|
||||||
|
| `title2` | *String* | :heavy_check_mark: | N/A | By Genre |
|
||||||
|
| `viewGroup` | *String* | :heavy_check_mark: | N/A | secondary |
|
||||||
|
| `directory` | List\<[GetGenresLibraryDirectory](../../models/operations/GetGenresLibraryDirectory.md)> | :heavy_minus_sign: | N/A | |
|
||||||
8
docs/models/operations/GetGenresLibraryRequest.md
Normal file
8
docs/models/operations/GetGenresLibraryRequest.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# GetGenresLibraryRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
11
docs/models/operations/GetGenresLibraryResponse.md
Normal file
11
docs/models/operations/GetGenresLibraryResponse.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetGenresLibraryResponse
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||||
|
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||||
|
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||||
|
| `object` | [Optional\<GetGenresLibraryResponseBody>](../../models/operations/GetGenresLibraryResponseBody.md) | :heavy_minus_sign: | Successful response containing media container data. |
|
||||||
10
docs/models/operations/GetGenresLibraryResponseBody.md
Normal file
10
docs/models/operations/GetGenresLibraryResponseBody.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# GetGenresLibraryResponseBody
|
||||||
|
|
||||||
|
Successful response containing media container data.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `mediaContainer` | [Optional\<GetGenresLibraryMediaContainer>](../../models/operations/GetGenresLibraryMediaContainer.md) | :heavy_minus_sign: | N/A |
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# GetLibraryItemsEnableCreditsMarkerGeneration
|
||||||
|
|
||||||
|
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `Disabled` | 0 |
|
||||||
12
docs/models/operations/GetLibraryItemsEpisodeSort.md
Normal file
12
docs/models/operations/GetLibraryItemsEpisodeSort.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# GetLibraryItemsEpisodeSort
|
||||||
|
|
||||||
|
Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `OldestFirst` | 0 |
|
||||||
|
| `NewestFirst` | 1 |
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
# GetLibraryItemsFlattenSeasons
|
# GetLibraryItemsFlattenSeasons
|
||||||
|
|
||||||
|
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------- | ------- |
|
| ---------------- | ---------------- |
|
||||||
| `False` | 0 |
|
| `LibraryDefault` | -1 |
|
||||||
| `True` | 1 |
|
| `Hide` | 0 |
|
||||||
|
| `Show` | 1 |
|
||||||
@@ -23,8 +23,10 @@
|
|||||||
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
| `flattenSeasons` | [Optional\<GetLibraryItemsFlattenSeasons>](../../models/operations/GetLibraryItemsFlattenSeasons.md) | :heavy_minus_sign: | N/A | 1 |
|
| `flattenSeasons` | [Optional\<GetLibraryItemsFlattenSeasons>](../../models/operations/GetLibraryItemsFlattenSeasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
||||||
| `showOrdering` | [Optional\<GetLibraryItemsShowOrdering>](../../models/operations/GetLibraryItemsShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>tvdbAiring = TheTVDB (Aired),<br/>tvdbDvd = TheTVDB (DVD),<br/>tvdbAbsolute = TheTVDB (Absolute)).<br/> | tvdbDvd |
|
| `episodeSort` | [Optional\<GetLibraryItemsEpisodeSort>](../../models/operations/GetLibraryItemsEpisodeSort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
||||||
|
| `enableCreditsMarkerGeneration` | [Optional\<GetLibraryItemsEnableCreditsMarkerGeneration>](../../models/operations/GetLibraryItemsEnableCreditsMarkerGeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
||||||
|
| `showOrdering` | [Optional\<GetLibraryItemsShowOrdering>](../../models/operations/GetLibraryItemsShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
||||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
# GetLibraryItemsShowOrdering
|
# GetLibraryItemsShowOrdering
|
||||||
|
|
||||||
Setting that indicates the episode ordering for the show
|
Setting that indicates the episode ordering for the show.
|
||||||
None = Library default,
|
None = Library default,
|
||||||
tmdbAiring = The Movie Database (Aired),
|
tmdbAiring = The Movie Database (Aired),
|
||||||
tvdbAiring = TheTVDB (Aired),
|
aired = TheTVDB (Aired),
|
||||||
tvdbDvd = TheTVDB (DVD),
|
dvd = TheTVDB (DVD),
|
||||||
tvdbAbsolute = TheTVDB (Absolute)).
|
absolute = TheTVDB (Absolute)).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15,6 +15,6 @@ tvdbAbsolute = TheTVDB (Absolute)).
|
|||||||
| -------------- | -------------- |
|
| -------------- | -------------- |
|
||||||
| `None` | None |
|
| `None` | None |
|
||||||
| `TmdbAiring` | tmdbAiring |
|
| `TmdbAiring` | tmdbAiring |
|
||||||
| `TvdbAiring` | tvdbAiring |
|
| `TvdbAired` | aired |
|
||||||
| `TvdbDvd` | tvdbDvd |
|
| `TvdbDvd` | dvd |
|
||||||
| `TvdbAbsolute` | tvdbAbsolute |
|
| `TvdbAbsolute` | absolute |
|
||||||
@@ -9,6 +9,6 @@
|
|||||||
| `offset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
| `offset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
||||||
| `totalSize` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
| `totalSize` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | |
|
||||||
| `identifier` | *Optional\<String>* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library |
|
| `identifier` | *Optional\<String>* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library |
|
||||||
| `allowSync` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | |
|
| `allowSync` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||||
| `meta` | [Optional\<Meta>](../../models/operations/Meta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
| `meta` | [Optional\<Meta>](../../models/operations/Meta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
||||||
| `metadata` | List\<[GetRecentlyAddedMetadata](../../models/operations/GetRecentlyAddedMetadata.md)> | :heavy_minus_sign: | N/A | |
|
| `metadata` | List\<[GetRecentlyAddedMetadata](../../models/operations/GetRecentlyAddedMetadata.md)> | :heavy_minus_sign: | N/A | |
|
||||||
@@ -23,8 +23,10 @@
|
|||||||
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
| `flattenSeasons` | [Optional\<FlattenSeasons>](../../models/operations/FlattenSeasons.md) | :heavy_minus_sign: | N/A | 1 |
|
| `flattenSeasons` | [Optional\<FlattenSeasons>](../../models/operations/FlattenSeasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
||||||
| `showOrdering` | [Optional\<ShowOrdering>](../../models/operations/ShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>tvdbAiring = TheTVDB (Aired),<br/>tvdbDvd = TheTVDB (DVD),<br/>tvdbAbsolute = TheTVDB (Absolute)).<br/> | tvdbDvd |
|
| `episodeSort` | [Optional\<EpisodeSort>](../../models/operations/EpisodeSort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
||||||
|
| `enableCreditsMarkerGeneration` | [Optional\<EnableCreditsMarkerGeneration>](../../models/operations/EnableCreditsMarkerGeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
||||||
|
| `showOrdering` | [Optional\<ShowOrdering>](../../models/operations/ShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
||||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# GetSearchAllLibrariesEnableCreditsMarkerGeneration
|
||||||
|
|
||||||
|
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `Disabled` | 0 |
|
||||||
12
docs/models/operations/GetSearchAllLibrariesEpisodeSort.md
Normal file
12
docs/models/operations/GetSearchAllLibrariesEpisodeSort.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# GetSearchAllLibrariesEpisodeSort
|
||||||
|
|
||||||
|
Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `OldestFirst` | 0 |
|
||||||
|
| `NewestFirst` | 1 |
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
# GetSearchAllLibrariesFlattenSeasons
|
# GetSearchAllLibrariesFlattenSeasons
|
||||||
|
|
||||||
|
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------- | ------- |
|
| ---------------- | ---------------- |
|
||||||
| `False` | 0 |
|
| `LibraryDefault` | -1 |
|
||||||
| `True` | 1 |
|
| `Hide` | 0 |
|
||||||
|
| `Show` | 1 |
|
||||||
@@ -23,8 +23,10 @@
|
|||||||
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
| `seasonCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
| `flattenSeasons` | [Optional\<GetSearchAllLibrariesFlattenSeasons>](../../models/operations/GetSearchAllLibrariesFlattenSeasons.md) | :heavy_minus_sign: | N/A | 1 |
|
| `flattenSeasons` | [Optional\<GetSearchAllLibrariesFlattenSeasons>](../../models/operations/GetSearchAllLibrariesFlattenSeasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
||||||
| `showOrdering` | [Optional\<GetSearchAllLibrariesShowOrdering>](../../models/operations/GetSearchAllLibrariesShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>tvdbAiring = TheTVDB (Aired),<br/>tvdbDvd = TheTVDB (DVD),<br/>tvdbAbsolute = TheTVDB (Absolute)).<br/> | tvdbDvd |
|
| `episodeSort` | [Optional\<GetSearchAllLibrariesEpisodeSort>](../../models/operations/GetSearchAllLibrariesEpisodeSort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
||||||
|
| `enableCreditsMarkerGeneration` | [Optional\<GetSearchAllLibrariesEnableCreditsMarkerGeneration>](../../models/operations/GetSearchAllLibrariesEnableCreditsMarkerGeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
||||||
|
| `showOrdering` | [Optional\<GetSearchAllLibrariesShowOrdering>](../../models/operations/GetSearchAllLibrariesShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
||||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
| `banner` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
# GetSearchAllLibrariesShowOrdering
|
# GetSearchAllLibrariesShowOrdering
|
||||||
|
|
||||||
Setting that indicates the episode ordering for the show
|
Setting that indicates the episode ordering for the show.
|
||||||
None = Library default,
|
None = Library default,
|
||||||
tmdbAiring = The Movie Database (Aired),
|
tmdbAiring = The Movie Database (Aired),
|
||||||
tvdbAiring = TheTVDB (Aired),
|
aired = TheTVDB (Aired),
|
||||||
tvdbDvd = TheTVDB (DVD),
|
dvd = TheTVDB (DVD),
|
||||||
tvdbAbsolute = TheTVDB (Absolute)).
|
absolute = TheTVDB (Absolute)).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15,6 +15,6 @@ tvdbAbsolute = TheTVDB (Absolute)).
|
|||||||
| -------------- | -------------- |
|
| -------------- | -------------- |
|
||||||
| `None` | None |
|
| `None` | None |
|
||||||
| `TmdbAiring` | tmdbAiring |
|
| `TmdbAiring` | tmdbAiring |
|
||||||
| `TvdbAiring` | tvdbAiring |
|
| `TvdbAired` | aired |
|
||||||
| `TvdbDvd` | tvdbDvd |
|
| `TvdbDvd` | dvd |
|
||||||
| `TvdbAbsolute` | tvdbAbsolute |
|
| `TvdbAbsolute` | absolute |
|
||||||
@@ -3,42 +3,43 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
|
| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `addedAt` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1705543312 |
|
| `addedAt` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1705543312 |
|
||||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 |
|
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 |
|
||||||
| `duration` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 186240 |
|
| `duration` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 186240 |
|
||||||
| `grandparentArt` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 |
|
| `grandparentArt` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904/art/1705310687 |
|
||||||
| `grandparentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 |
|
| `grandparentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://artist/5d07bbfd403c6402904a6480 |
|
||||||
| `grandparentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904 |
|
| `grandparentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904 |
|
||||||
| `grandparentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 39904 |
|
| `grandparentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 39904 |
|
||||||
| `grandparentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 |
|
| `grandparentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/39904/thumb/1705310687 |
|
||||||
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Green Day |
|
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Green Day |
|
||||||
| `guid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f |
|
| `guid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://track/6535834f71f22f36f71a8e8f |
|
||||||
| `index` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
| `index` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `key` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67085 |
|
| `key` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67085 |
|
||||||
| `librarySectionID` | *Optional\<String>* | :heavy_minus_sign: | N/A | 3 |
|
| `librarySectionID` | *Optional\<String>* | :heavy_minus_sign: | N/A | 3 |
|
||||||
| `librarySectionKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/sections/3 |
|
| `librarySectionKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/sections/3 |
|
||||||
| `librarySectionTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Music |
|
| `librarySectionTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Music |
|
||||||
| `musicAnalysisVersion` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1 |
|
| `musicAnalysisVersion` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `parentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 |
|
| `originalTitle` | *Optional\<String>* | :heavy_minus_sign: | The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist | The American Dream Is Killing Me |
|
||||||
| `parentIndex` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
| `parentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://album/65394d6d472b8ab03ef47f12 |
|
||||||
| `parentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67084 |
|
| `parentIndex` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `parentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 67084 |
|
| `parentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67084 |
|
||||||
| `parentStudio` | *Optional\<String>* | :heavy_minus_sign: | N/A | Reprise Records |
|
| `parentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 67084 |
|
||||||
| `parentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 |
|
| `parentStudio` | *Optional\<String>* | :heavy_minus_sign: | N/A | Reprise Records |
|
||||||
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Saviors |
|
| `parentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 |
|
||||||
| `parentYear` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2024 |
|
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Saviors |
|
||||||
| `ratingCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 45885 |
|
| `parentYear` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2024 |
|
||||||
| `ratingKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 67085 |
|
| `ratingCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 45885 |
|
||||||
| `sessionKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 203 |
|
| `ratingKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 67085 |
|
||||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 |
|
| `sessionKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 203 |
|
||||||
| `title` | *Optional\<String>* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me |
|
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/67084/thumb/1705543314 |
|
||||||
| `titleSort` | *Optional\<String>* | :heavy_minus_sign: | N/A | American Dream Is Killing Me |
|
| `title` | *Optional\<String>* | :heavy_minus_sign: | N/A | The American Dream Is Killing Me |
|
||||||
| `type` | *Optional\<String>* | :heavy_minus_sign: | N/A | track |
|
| `titleSort` | *Optional\<String>* | :heavy_minus_sign: | N/A | American Dream Is Killing Me |
|
||||||
| `updatedAt` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1705543314 |
|
| `type` | *Optional\<String>* | :heavy_minus_sign: | N/A | track |
|
||||||
| `viewOffset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1000 |
|
| `updatedAt` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1705543314 |
|
||||||
| `media` | List\<[GetSessionsMedia](../../models/operations/GetSessionsMedia.md)> | :heavy_minus_sign: | N/A | |
|
| `viewOffset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1000 |
|
||||||
| `user` | [Optional\<GetSessionsUser>](../../models/operations/GetSessionsUser.md) | :heavy_minus_sign: | N/A | |
|
| `media` | List\<[GetSessionsMedia](../../models/operations/GetSessionsMedia.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `player` | [Optional\<Player>](../../models/operations/Player.md) | :heavy_minus_sign: | N/A | |
|
| `user` | [Optional\<GetSessionsUser>](../../models/operations/GetSessionsUser.md) | :heavy_minus_sign: | N/A | |
|
||||||
| `session` | [Optional\<Session>](../../models/operations/Session.md) | :heavy_minus_sign: | N/A | |
|
| `player` | [Optional\<Player>](../../models/operations/Player.md) | :heavy_minus_sign: | N/A | |
|
||||||
|
| `session` | [Optional\<Session>](../../models/operations/Session.md) | :heavy_minus_sign: | N/A | |
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
# ShowOrdering
|
# ShowOrdering
|
||||||
|
|
||||||
Setting that indicates the episode ordering for the show
|
Setting that indicates the episode ordering for the show.
|
||||||
None = Library default,
|
None = Library default,
|
||||||
tmdbAiring = The Movie Database (Aired),
|
tmdbAiring = The Movie Database (Aired),
|
||||||
tvdbAiring = TheTVDB (Aired),
|
aired = TheTVDB (Aired),
|
||||||
tvdbDvd = TheTVDB (DVD),
|
dvd = TheTVDB (DVD),
|
||||||
tvdbAbsolute = TheTVDB (Absolute)).
|
absolute = TheTVDB (Absolute)).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15,6 +15,6 @@ tvdbAbsolute = TheTVDB (Absolute)).
|
|||||||
| -------------- | -------------- |
|
| -------------- | -------------- |
|
||||||
| `None` | None |
|
| `None` | None |
|
||||||
| `TmdbAiring` | tmdbAiring |
|
| `TmdbAiring` | tmdbAiring |
|
||||||
| `TvdbAiring` | tvdbAiring |
|
| `TvdbAired` | aired |
|
||||||
| `TvdbDvd` | tvdbDvd |
|
| `TvdbDvd` | dvd |
|
||||||
| `TvdbAbsolute` | tvdbAbsolute |
|
| `TvdbAbsolute` | absolute |
|
||||||
@@ -80,7 +80,6 @@ package hello.world;
|
|||||||
import dev.plexapi.sdk.PlexAPI;
|
import dev.plexapi.sdk.PlexAPI;
|
||||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequest;
|
import dev.plexapi.sdk.models.operations.GetRecentlyAddedRequest;
|
||||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse;
|
import dev.plexapi.sdk.models.operations.GetRecentlyAddedResponse;
|
||||||
import dev.plexapi.sdk.models.operations.IncludeMeta;
|
|
||||||
import dev.plexapi.sdk.models.operations.Type;
|
import dev.plexapi.sdk.models.operations.Type;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
|
|
||||||
@@ -96,9 +95,6 @@ public class Application {
|
|||||||
.contentDirectoryID(470161L)
|
.contentDirectoryID(470161L)
|
||||||
.type(Type.TvShow)
|
.type(Type.TvShow)
|
||||||
.sectionID(2L)
|
.sectionID(2L)
|
||||||
.includeMeta(IncludeMeta.Enable)
|
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRecentlyAddedResponse res = sdk.hubs().getRecentlyAdded()
|
GetRecentlyAddedResponse res = sdk.hubs().getRecentlyAdded()
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ API Calls interacting with Plex Media Server Libraries
|
|||||||
* [getLibraryItems](#getlibraryitems) - Get Library Items
|
* [getLibraryItems](#getlibraryitems) - Get Library Items
|
||||||
* [getRefreshLibraryMetadata](#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
|
* [getRefreshLibraryMetadata](#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
|
||||||
* [getSearchLibrary](#getsearchlibrary) - Search Library
|
* [getSearchLibrary](#getsearchlibrary) - Search Library
|
||||||
|
* [getGenresLibrary](#getgenreslibrary) - Get Genres of library media
|
||||||
|
* [getCountriesLibrary](#getcountrieslibrary) - Get Countries of library media
|
||||||
* [getSearchAllLibraries](#getsearchalllibraries) - Search All Libraries
|
* [getSearchAllLibraries](#getsearchalllibraries) - Search All Libraries
|
||||||
* [getMetaDataByRatingKey](#getmetadatabyratingkey) - Get Metadata by RatingKey
|
* [getMetaDataByRatingKey](#getmetadatabyratingkey) - Get Metadata by RatingKey
|
||||||
* [getMetadataChildren](#getmetadatachildren) - Get Items Children
|
* [getMetadataChildren](#getmetadatachildren) - Get Items Children
|
||||||
@@ -89,7 +91,6 @@ import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryBadRequest;
|
|||||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
||||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequest;
|
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequest;
|
||||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryResponse;
|
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryResponse;
|
||||||
import dev.plexapi.sdk.models.operations.QueryParamIncludeMeta;
|
|
||||||
import dev.plexapi.sdk.models.operations.QueryParamType;
|
import dev.plexapi.sdk.models.operations.QueryParamType;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -119,9 +120,6 @@ public class Application {
|
|||||||
16L,
|
16L,
|
||||||
17L))
|
17L))
|
||||||
.sectionID(2L)
|
.sectionID(2L)
|
||||||
.includeMeta(QueryParamIncludeMeta.Enable)
|
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRecentlyAddedLibraryResponse res = sdk.library().getRecentlyAddedLibrary()
|
GetRecentlyAddedLibraryResponse res = sdk.library().getRecentlyAddedLibrary()
|
||||||
@@ -381,11 +379,9 @@ package hello.world;
|
|||||||
import dev.plexapi.sdk.PlexAPI;
|
import dev.plexapi.sdk.PlexAPI;
|
||||||
import dev.plexapi.sdk.models.errors.GetLibraryItemsBadRequest;
|
import dev.plexapi.sdk.models.errors.GetLibraryItemsBadRequest;
|
||||||
import dev.plexapi.sdk.models.errors.GetLibraryItemsUnauthorized;
|
import dev.plexapi.sdk.models.errors.GetLibraryItemsUnauthorized;
|
||||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsQueryParamIncludeMeta;
|
|
||||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsQueryParamType;
|
import dev.plexapi.sdk.models.operations.GetLibraryItemsQueryParamType;
|
||||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsRequest;
|
import dev.plexapi.sdk.models.operations.GetLibraryItemsRequest;
|
||||||
import dev.plexapi.sdk.models.operations.GetLibraryItemsResponse;
|
import dev.plexapi.sdk.models.operations.GetLibraryItemsResponse;
|
||||||
import dev.plexapi.sdk.models.operations.IncludeGuids;
|
|
||||||
import dev.plexapi.sdk.models.operations.Tag;
|
import dev.plexapi.sdk.models.operations.Tag;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
|
|
||||||
@@ -400,11 +396,7 @@ public class Application {
|
|||||||
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
||||||
.tag(Tag.EDITION)
|
.tag(Tag.EDITION)
|
||||||
.sectionKey(9518)
|
.sectionKey(9518)
|
||||||
.includeGuids(IncludeGuids.Enable)
|
|
||||||
.type(GetLibraryItemsQueryParamType.TvShow)
|
.type(GetLibraryItemsQueryParamType.TvShow)
|
||||||
.includeMeta(GetLibraryItemsQueryParamIncludeMeta.Enable)
|
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryItemsResponse res = sdk.library().getLibraryItems()
|
GetLibraryItemsResponse res = sdk.library().getLibraryItems()
|
||||||
@@ -563,6 +555,112 @@ public class Application {
|
|||||||
| models/errors/GetSearchLibraryUnauthorized | 401 | application/json |
|
| models/errors/GetSearchLibraryUnauthorized | 401 | application/json |
|
||||||
| models/errors/SDKError | 4XX, 5XX | \*/\* |
|
| models/errors/SDKError | 4XX, 5XX | \*/\* |
|
||||||
|
|
||||||
|
## getGenresLibrary
|
||||||
|
|
||||||
|
Retrieves a list of all the genres that are found for the media in this library.
|
||||||
|
|
||||||
|
|
||||||
|
### Example Usage
|
||||||
|
|
||||||
|
```java
|
||||||
|
package hello.world;
|
||||||
|
|
||||||
|
import dev.plexapi.sdk.PlexAPI;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetGenresLibraryBadRequest;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetGenresLibraryUnauthorized;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetGenresLibraryResponse;
|
||||||
|
import java.lang.Exception;
|
||||||
|
|
||||||
|
public class Application {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws GetGenresLibraryBadRequest, GetGenresLibraryUnauthorized, Exception {
|
||||||
|
|
||||||
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
GetGenresLibraryResponse res = sdk.library().getGenresLibrary()
|
||||||
|
.sectionKey(9518)
|
||||||
|
.call();
|
||||||
|
|
||||||
|
if (res.object().isPresent()) {
|
||||||
|
// handle response
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
|
|
||||||
|
### Response
|
||||||
|
|
||||||
|
**[GetGenresLibraryResponse](../../models/operations/GetGenresLibraryResponse.md)**
|
||||||
|
|
||||||
|
### Errors
|
||||||
|
|
||||||
|
| Error Type | Status Code | Content Type |
|
||||||
|
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
|
||||||
|
| models/errors/GetGenresLibraryBadRequest | 400 | application/json |
|
||||||
|
| models/errors/GetGenresLibraryUnauthorized | 401 | application/json |
|
||||||
|
| models/errors/SDKError | 4XX, 5XX | \*/\* |
|
||||||
|
|
||||||
|
## getCountriesLibrary
|
||||||
|
|
||||||
|
Retrieves a list of all the countries that are found for the media in this library.
|
||||||
|
|
||||||
|
|
||||||
|
### Example Usage
|
||||||
|
|
||||||
|
```java
|
||||||
|
package hello.world;
|
||||||
|
|
||||||
|
import dev.plexapi.sdk.PlexAPI;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetCountriesLibraryBadRequest;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetCountriesLibraryUnauthorized;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetCountriesLibraryResponse;
|
||||||
|
import java.lang.Exception;
|
||||||
|
|
||||||
|
public class Application {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws GetCountriesLibraryBadRequest, GetCountriesLibraryUnauthorized, Exception {
|
||||||
|
|
||||||
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
GetCountriesLibraryResponse res = sdk.library().getCountriesLibrary()
|
||||||
|
.sectionKey(9518)
|
||||||
|
.call();
|
||||||
|
|
||||||
|
if (res.object().isPresent()) {
|
||||||
|
// handle response
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
|
| `sectionKey` | *int* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
|
|
||||||
|
### Response
|
||||||
|
|
||||||
|
**[GetCountriesLibraryResponse](../../models/operations/GetCountriesLibraryResponse.md)**
|
||||||
|
|
||||||
|
### Errors
|
||||||
|
|
||||||
|
| Error Type | Status Code | Content Type |
|
||||||
|
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
|
||||||
|
| models/errors/GetCountriesLibraryBadRequest | 400 | application/json |
|
||||||
|
| models/errors/GetCountriesLibraryUnauthorized | 401 | application/json |
|
||||||
|
| models/errors/SDKError | 4XX, 5XX | \*/\* |
|
||||||
|
|
||||||
## getSearchAllLibraries
|
## getSearchAllLibraries
|
||||||
|
|
||||||
Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type.
|
Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type.
|
||||||
@@ -578,8 +676,6 @@ import dev.plexapi.sdk.models.errors.GetSearchAllLibrariesBadRequest;
|
|||||||
import dev.plexapi.sdk.models.errors.GetSearchAllLibrariesUnauthorized;
|
import dev.plexapi.sdk.models.errors.GetSearchAllLibrariesUnauthorized;
|
||||||
import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesRequest;
|
import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesRequest;
|
||||||
import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesResponse;
|
import dev.plexapi.sdk.models.operations.GetSearchAllLibrariesResponse;
|
||||||
import dev.plexapi.sdk.models.operations.QueryParamIncludeCollections;
|
|
||||||
import dev.plexapi.sdk.models.operations.QueryParamIncludeExternalMedia;
|
|
||||||
import dev.plexapi.sdk.models.operations.SearchTypes;
|
import dev.plexapi.sdk.models.operations.SearchTypes;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -597,8 +693,6 @@ public class Application {
|
|||||||
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
.clientID("3381b62b-9ab7-4e37-827b-203e9809eb58")
|
||||||
.searchTypes(List.of(
|
.searchTypes(List.of(
|
||||||
SearchTypes.PEOPLE))
|
SearchTypes.PEOPLE))
|
||||||
.includeCollections(QueryParamIncludeCollections.Enable)
|
|
||||||
.includeExternalMedia(QueryParamIncludeExternalMedia.Enable)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSearchAllLibrariesResponse res = sdk.library().getSearchAllLibraries()
|
GetSearchAllLibrariesResponse res = sdk.library().getSearchAllLibraries()
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class Application {
|
|||||||
.title("<value>")
|
.title("<value>")
|
||||||
.type(CreatePlaylistQueryParamType.PHOTO)
|
.type(CreatePlaylistQueryParamType.PHOTO)
|
||||||
.smart(Smart.ONE)
|
.smart(Smart.ONE)
|
||||||
.uri("https://inborn-brochure.biz")
|
.uri("https://hoarse-testing.info/")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CreatePlaylistResponse res = sdk.playlists().createPlaylist()
|
CreatePlaylistResponse res = sdk.playlists().createPlaylist()
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class Application {
|
|||||||
|
|
||||||
PerformSearchResponse res = sdk.search().performSearch()
|
PerformSearchResponse res = sdk.search().performSearch()
|
||||||
.query("dylan")
|
.query("dylan")
|
||||||
.sectionId(9487.87d)
|
.sectionId(9487.88d)
|
||||||
.limit(5d)
|
.limit(5d)
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ public class Application {
|
|||||||
|
|
||||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||||
.query("dead+poop")
|
.query("dead+poop")
|
||||||
.sectionId(4094.80d)
|
.sectionId(4094.8d)
|
||||||
.limit(5d)
|
.limit(5d)
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
|
|||||||
@@ -38,8 +38,6 @@ public class Application {
|
|||||||
GetWatchListRequest req = GetWatchListRequest.builder()
|
GetWatchListRequest req = GetWatchListRequest.builder()
|
||||||
.filter(Filter.AVAILABLE)
|
.filter(Filter.AVAILABLE)
|
||||||
.xPlexToken("CV5xoxjTpFKUzBTShsaf")
|
.xPlexToken("CV5xoxjTpFKUzBTShsaf")
|
||||||
.xPlexContainerStart(0)
|
|
||||||
.xPlexContainerSize(50)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetWatchListResponse res = sdk.watchlist().getWatchList()
|
GetWatchListResponse res = sdk.watchlist().getWatchList()
|
||||||
|
|||||||
@@ -182,7 +182,15 @@ public class Activities implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -328,7 +336,15 @@ public class Activities implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -216,7 +216,15 @@ public class Authentication implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -369,7 +377,15 @@ public class Authentication implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -530,7 +546,15 @@ public class Authentication implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -703,7 +727,15 @@ public class Authentication implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -194,7 +194,15 @@ public class Butler implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -340,7 +348,15 @@ public class Butler implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -478,7 +494,15 @@ public class Butler implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -634,7 +658,15 @@ public class Butler implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -782,7 +814,15 @@ public class Butler implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -212,7 +212,15 @@ public class Hubs implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -336,7 +344,15 @@ public class Hubs implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -519,7 +535,15 @@ public class Hubs implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -9,8 +9,12 @@ import dev.plexapi.sdk.models.errors.DeleteLibraryBadRequest;
|
|||||||
import dev.plexapi.sdk.models.errors.DeleteLibraryUnauthorized;
|
import dev.plexapi.sdk.models.errors.DeleteLibraryUnauthorized;
|
||||||
import dev.plexapi.sdk.models.errors.GetAllLibrariesBadRequest;
|
import dev.plexapi.sdk.models.errors.GetAllLibrariesBadRequest;
|
||||||
import dev.plexapi.sdk.models.errors.GetAllLibrariesUnauthorized;
|
import dev.plexapi.sdk.models.errors.GetAllLibrariesUnauthorized;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetCountriesLibraryBadRequest;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetCountriesLibraryUnauthorized;
|
||||||
import dev.plexapi.sdk.models.errors.GetFileHashBadRequest;
|
import dev.plexapi.sdk.models.errors.GetFileHashBadRequest;
|
||||||
import dev.plexapi.sdk.models.errors.GetFileHashUnauthorized;
|
import dev.plexapi.sdk.models.errors.GetFileHashUnauthorized;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetGenresLibraryBadRequest;
|
||||||
|
import dev.plexapi.sdk.models.errors.GetGenresLibraryUnauthorized;
|
||||||
import dev.plexapi.sdk.models.errors.GetLibraryDetailsBadRequest;
|
import dev.plexapi.sdk.models.errors.GetLibraryDetailsBadRequest;
|
||||||
import dev.plexapi.sdk.models.errors.GetLibraryDetailsUnauthorized;
|
import dev.plexapi.sdk.models.errors.GetLibraryDetailsUnauthorized;
|
||||||
import dev.plexapi.sdk.models.errors.GetLibraryItemsBadRequest;
|
import dev.plexapi.sdk.models.errors.GetLibraryItemsBadRequest;
|
||||||
@@ -39,9 +43,17 @@ import dev.plexapi.sdk.models.operations.Force;
|
|||||||
import dev.plexapi.sdk.models.operations.GetAllLibrariesRequestBuilder;
|
import dev.plexapi.sdk.models.operations.GetAllLibrariesRequestBuilder;
|
||||||
import dev.plexapi.sdk.models.operations.GetAllLibrariesResponse;
|
import dev.plexapi.sdk.models.operations.GetAllLibrariesResponse;
|
||||||
import dev.plexapi.sdk.models.operations.GetAllLibrariesResponseBody;
|
import dev.plexapi.sdk.models.operations.GetAllLibrariesResponseBody;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetCountriesLibraryRequest;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetCountriesLibraryRequestBuilder;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetCountriesLibraryResponse;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetCountriesLibraryResponseBody;
|
||||||
import dev.plexapi.sdk.models.operations.GetFileHashRequest;
|
import dev.plexapi.sdk.models.operations.GetFileHashRequest;
|
||||||
import dev.plexapi.sdk.models.operations.GetFileHashRequestBuilder;
|
import dev.plexapi.sdk.models.operations.GetFileHashRequestBuilder;
|
||||||
import dev.plexapi.sdk.models.operations.GetFileHashResponse;
|
import dev.plexapi.sdk.models.operations.GetFileHashResponse;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetGenresLibraryRequest;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetGenresLibraryRequestBuilder;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetGenresLibraryResponse;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetGenresLibraryResponseBody;
|
||||||
import dev.plexapi.sdk.models.operations.GetLibraryDetailsRequest;
|
import dev.plexapi.sdk.models.operations.GetLibraryDetailsRequest;
|
||||||
import dev.plexapi.sdk.models.operations.GetLibraryDetailsRequestBuilder;
|
import dev.plexapi.sdk.models.operations.GetLibraryDetailsRequestBuilder;
|
||||||
import dev.plexapi.sdk.models.operations.GetLibraryDetailsResponse;
|
import dev.plexapi.sdk.models.operations.GetLibraryDetailsResponse;
|
||||||
@@ -113,6 +125,8 @@ public class Library implements
|
|||||||
MethodCallGetLibraryItems,
|
MethodCallGetLibraryItems,
|
||||||
MethodCallGetRefreshLibraryMetadata,
|
MethodCallGetRefreshLibraryMetadata,
|
||||||
MethodCallGetSearchLibrary,
|
MethodCallGetSearchLibrary,
|
||||||
|
MethodCallGetGenresLibrary,
|
||||||
|
MethodCallGetCountriesLibrary,
|
||||||
MethodCallGetSearchAllLibraries,
|
MethodCallGetSearchAllLibraries,
|
||||||
MethodCallGetMetaDataByRatingKey,
|
MethodCallGetMetaDataByRatingKey,
|
||||||
MethodCallGetMetadataChildren,
|
MethodCallGetMetadataChildren,
|
||||||
@@ -273,7 +287,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -429,7 +451,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -588,7 +618,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -888,7 +926,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1036,7 +1082,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1234,7 +1288,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1407,7 +1469,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1616,7 +1686,353 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected status code received: " + _httpRes.statusCode(),
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Genres of library media
|
||||||
|
* Retrieves a list of all the genres that are found for the media in this library.
|
||||||
|
*
|
||||||
|
* @return The call builder
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryRequestBuilder getGenresLibrary() {
|
||||||
|
return new GetGenresLibraryRequestBuilder(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Genres of library media
|
||||||
|
* Retrieves a list of all the genres that are found for the media in this library.
|
||||||
|
*
|
||||||
|
* @param sectionKey The unique key of the Plex library.
|
||||||
|
Note: This is unique in the context of the Plex server.
|
||||||
|
|
||||||
|
* @return The response from the API call
|
||||||
|
* @throws Exception if the API call fails
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryResponse getGenresLibrary(
|
||||||
|
int sectionKey) throws Exception {
|
||||||
|
GetGenresLibraryRequest request =
|
||||||
|
GetGenresLibraryRequest
|
||||||
|
.builder()
|
||||||
|
.sectionKey(sectionKey)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
String _baseUrl = Utils.templateUrl(
|
||||||
|
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||||
|
String _url = Utils.generateURL(
|
||||||
|
GetGenresLibraryRequest.class,
|
||||||
|
_baseUrl,
|
||||||
|
"/library/sections/{sectionKey}/genre",
|
||||||
|
request, null);
|
||||||
|
|
||||||
|
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||||
|
_req.addHeader("Accept", "application/json")
|
||||||
|
.addHeader("user-agent",
|
||||||
|
SDKConfiguration.USER_AGENT);
|
||||||
|
|
||||||
|
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||||
|
Utils.configureSecurity(_req,
|
||||||
|
this.sdkConfiguration.securitySource.getSecurity());
|
||||||
|
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||||
|
HttpRequest _r =
|
||||||
|
sdkConfiguration.hooks()
|
||||||
|
.beforeRequest(
|
||||||
|
new BeforeRequestContextImpl(
|
||||||
|
"get-genres-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
_req.build());
|
||||||
|
HttpResponse<InputStream> _httpRes;
|
||||||
|
try {
|
||||||
|
_httpRes = _client.send(_r);
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "404", "4XX", "5XX")) {
|
||||||
|
_httpRes = sdkConfiguration.hooks()
|
||||||
|
.afterError(
|
||||||
|
new AfterErrorContextImpl(
|
||||||
|
"get-genres-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
Optional.of(_httpRes),
|
||||||
|
Optional.empty());
|
||||||
|
} else {
|
||||||
|
_httpRes = sdkConfiguration.hooks()
|
||||||
|
.afterSuccess(
|
||||||
|
new AfterSuccessContextImpl(
|
||||||
|
"get-genres-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
_httpRes);
|
||||||
|
}
|
||||||
|
} catch (Exception _e) {
|
||||||
|
_httpRes = sdkConfiguration.hooks()
|
||||||
|
.afterError(
|
||||||
|
new AfterErrorContextImpl(
|
||||||
|
"get-genres-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
Optional.empty(),
|
||||||
|
Optional.of(_e));
|
||||||
|
}
|
||||||
|
String _contentType = _httpRes
|
||||||
|
.headers()
|
||||||
|
.firstValue("Content-Type")
|
||||||
|
.orElse("application/octet-stream");
|
||||||
|
GetGenresLibraryResponse.Builder _resBuilder =
|
||||||
|
GetGenresLibraryResponse
|
||||||
|
.builder()
|
||||||
|
.contentType(_contentType)
|
||||||
|
.statusCode(_httpRes.statusCode())
|
||||||
|
.rawResponse(_httpRes);
|
||||||
|
|
||||||
|
GetGenresLibraryResponse _res = _resBuilder.build();
|
||||||
|
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||||
|
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||||
|
GetGenresLibraryResponseBody _out = Utils.mapper().readValue(
|
||||||
|
Utils.toUtf8AndClose(_httpRes.body()),
|
||||||
|
new TypeReference<GetGenresLibraryResponseBody>() {});
|
||||||
|
_res.withObject(Optional.ofNullable(_out));
|
||||||
|
return _res;
|
||||||
|
} else {
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected content-type received: " + _contentType,
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) {
|
||||||
|
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||||
|
GetGenresLibraryBadRequest _out = Utils.mapper().readValue(
|
||||||
|
Utils.toUtf8AndClose(_httpRes.body()),
|
||||||
|
new TypeReference<GetGenresLibraryBadRequest>() {});
|
||||||
|
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||||
|
|
||||||
|
throw _out;
|
||||||
|
} else {
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected content-type received: " + _contentType,
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) {
|
||||||
|
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||||
|
GetGenresLibraryUnauthorized _out = Utils.mapper().readValue(
|
||||||
|
Utils.toUtf8AndClose(_httpRes.body()),
|
||||||
|
new TypeReference<GetGenresLibraryUnauthorized>() {});
|
||||||
|
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||||
|
|
||||||
|
throw _out;
|
||||||
|
} else {
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected content-type received: " + _contentType,
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected status code received: " + _httpRes.statusCode(),
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Countries of library media
|
||||||
|
* Retrieves a list of all the countries that are found for the media in this library.
|
||||||
|
*
|
||||||
|
* @return The call builder
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryRequestBuilder getCountriesLibrary() {
|
||||||
|
return new GetCountriesLibraryRequestBuilder(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Countries of library media
|
||||||
|
* Retrieves a list of all the countries that are found for the media in this library.
|
||||||
|
*
|
||||||
|
* @param sectionKey The unique key of the Plex library.
|
||||||
|
Note: This is unique in the context of the Plex server.
|
||||||
|
|
||||||
|
* @return The response from the API call
|
||||||
|
* @throws Exception if the API call fails
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryResponse getCountriesLibrary(
|
||||||
|
int sectionKey) throws Exception {
|
||||||
|
GetCountriesLibraryRequest request =
|
||||||
|
GetCountriesLibraryRequest
|
||||||
|
.builder()
|
||||||
|
.sectionKey(sectionKey)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
String _baseUrl = Utils.templateUrl(
|
||||||
|
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||||
|
String _url = Utils.generateURL(
|
||||||
|
GetCountriesLibraryRequest.class,
|
||||||
|
_baseUrl,
|
||||||
|
"/library/sections/{sectionKey}/country",
|
||||||
|
request, null);
|
||||||
|
|
||||||
|
HTTPRequest _req = new HTTPRequest(_url, "GET");
|
||||||
|
_req.addHeader("Accept", "application/json")
|
||||||
|
.addHeader("user-agent",
|
||||||
|
SDKConfiguration.USER_AGENT);
|
||||||
|
|
||||||
|
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||||
|
Utils.configureSecurity(_req,
|
||||||
|
this.sdkConfiguration.securitySource.getSecurity());
|
||||||
|
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||||
|
HttpRequest _r =
|
||||||
|
sdkConfiguration.hooks()
|
||||||
|
.beforeRequest(
|
||||||
|
new BeforeRequestContextImpl(
|
||||||
|
"get-countries-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
_req.build());
|
||||||
|
HttpResponse<InputStream> _httpRes;
|
||||||
|
try {
|
||||||
|
_httpRes = _client.send(_r);
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "404", "4XX", "5XX")) {
|
||||||
|
_httpRes = sdkConfiguration.hooks()
|
||||||
|
.afterError(
|
||||||
|
new AfterErrorContextImpl(
|
||||||
|
"get-countries-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
Optional.of(_httpRes),
|
||||||
|
Optional.empty());
|
||||||
|
} else {
|
||||||
|
_httpRes = sdkConfiguration.hooks()
|
||||||
|
.afterSuccess(
|
||||||
|
new AfterSuccessContextImpl(
|
||||||
|
"get-countries-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
_httpRes);
|
||||||
|
}
|
||||||
|
} catch (Exception _e) {
|
||||||
|
_httpRes = sdkConfiguration.hooks()
|
||||||
|
.afterError(
|
||||||
|
new AfterErrorContextImpl(
|
||||||
|
"get-countries-library",
|
||||||
|
Optional.of(List.of()),
|
||||||
|
_hookSecuritySource),
|
||||||
|
Optional.empty(),
|
||||||
|
Optional.of(_e));
|
||||||
|
}
|
||||||
|
String _contentType = _httpRes
|
||||||
|
.headers()
|
||||||
|
.firstValue("Content-Type")
|
||||||
|
.orElse("application/octet-stream");
|
||||||
|
GetCountriesLibraryResponse.Builder _resBuilder =
|
||||||
|
GetCountriesLibraryResponse
|
||||||
|
.builder()
|
||||||
|
.contentType(_contentType)
|
||||||
|
.statusCode(_httpRes.statusCode())
|
||||||
|
.rawResponse(_httpRes);
|
||||||
|
|
||||||
|
GetCountriesLibraryResponse _res = _resBuilder.build();
|
||||||
|
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||||
|
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||||
|
GetCountriesLibraryResponseBody _out = Utils.mapper().readValue(
|
||||||
|
Utils.toUtf8AndClose(_httpRes.body()),
|
||||||
|
new TypeReference<GetCountriesLibraryResponseBody>() {});
|
||||||
|
_res.withObject(Optional.ofNullable(_out));
|
||||||
|
return _res;
|
||||||
|
} else {
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected content-type received: " + _contentType,
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400")) {
|
||||||
|
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||||
|
GetCountriesLibraryBadRequest _out = Utils.mapper().readValue(
|
||||||
|
Utils.toUtf8AndClose(_httpRes.body()),
|
||||||
|
new TypeReference<GetCountriesLibraryBadRequest>() {});
|
||||||
|
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||||
|
|
||||||
|
throw _out;
|
||||||
|
} else {
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected content-type received: " + _contentType,
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401")) {
|
||||||
|
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||||
|
GetCountriesLibraryUnauthorized _out = Utils.mapper().readValue(
|
||||||
|
Utils.toUtf8AndClose(_httpRes.body()),
|
||||||
|
new TypeReference<GetCountriesLibraryUnauthorized>() {});
|
||||||
|
_out.withRawResponse(Optional.ofNullable(_httpRes));
|
||||||
|
|
||||||
|
throw _out;
|
||||||
|
} else {
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"Unexpected content-type received: " + _contentType,
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1773,7 +2189,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1932,7 +2356,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -2113,7 +2545,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -2304,7 +2744,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -2453,7 +2901,15 @@ public class Library implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -200,7 +200,15 @@ public class Log implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -393,7 +401,15 @@ public class Log implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -531,7 +547,15 @@ public class Log implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -196,7 +196,15 @@ public class Media implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -345,7 +353,15 @@ public class Media implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -502,7 +518,15 @@ public class Media implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -659,7 +683,15 @@ public class Media implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -816,7 +848,15 @@ public class Media implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -244,7 +244,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -417,7 +425,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -578,7 +594,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -726,7 +750,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -898,7 +930,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1077,7 +1117,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1225,7 +1273,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1413,7 +1469,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1580,7 +1644,15 @@ public class Playlists implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -268,7 +268,15 @@ public class Plex implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -429,7 +437,15 @@ public class Plex implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -587,7 +603,15 @@ public class Plex implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -734,7 +758,15 @@ public class Plex implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -922,7 +954,15 @@ public class Plex implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1074,7 +1114,15 @@ public class Plex implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1239,7 +1287,15 @@ public class Plex implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ class SDKConfiguration {
|
|||||||
} };
|
} };
|
||||||
private static final String LANGUAGE = "java";
|
private static final String LANGUAGE = "java";
|
||||||
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
||||||
public static final String SDK_VERSION = "0.11.0";
|
public static final String SDK_VERSION = "0.11.4";
|
||||||
public static final String GEN_VERSION = "2.483.1";
|
public static final String GEN_VERSION = "2.503.2";
|
||||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||||
public static final String USER_AGENT =
|
public static final String USER_AGENT =
|
||||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||||
|
|||||||
@@ -240,7 +240,15 @@ public class Search implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -419,7 +427,15 @@ public class Search implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -579,7 +595,15 @@ public class Search implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -218,7 +218,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -365,7 +373,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -512,7 +528,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -659,7 +683,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -787,7 +819,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -934,7 +974,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1079,7 +1127,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1235,7 +1291,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -1382,7 +1446,15 @@ public class Server implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -191,7 +191,15 @@ public class Sessions implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -375,7 +383,15 @@ public class Sessions implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -522,7 +538,15 @@ public class Sessions implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -668,7 +692,15 @@ public class Sessions implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -211,7 +211,15 @@ public class Statistics implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -383,7 +391,15 @@ public class Statistics implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -555,7 +571,15 @@ public class Statistics implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -186,7 +186,15 @@ public class Updater implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -345,7 +353,15 @@ public class Updater implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -510,7 +526,15 @@ public class Updater implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "500", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "500", "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -172,7 +172,15 @@ public class Video implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
@@ -315,7 +323,15 @@ public class Video implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -208,7 +208,15 @@ public class Watchlist implements
|
|||||||
Utils.extractByteArrayFromBody(_httpRes));
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||||
|
// no content
|
||||||
|
throw new SDKError(
|
||||||
|
_httpRes,
|
||||||
|
_httpRes.statusCode(),
|
||||||
|
"API error occurred",
|
||||||
|
Utils.extractByteArrayFromBody(_httpRes));
|
||||||
|
}
|
||||||
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||||
// no content
|
// no content
|
||||||
throw new SDKError(
|
throw new SDKError(
|
||||||
_httpRes,
|
_httpRes,
|
||||||
|
|||||||
@@ -0,0 +1,173 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.net.http.HttpResponse;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetCountriesLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public class GetCountriesLibraryBadRequest extends RuntimeException {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("errors")
|
||||||
|
private Optional<? extends List<GetCountriesLibraryErrors>> errors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("RawResponse")
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryBadRequest(
|
||||||
|
@JsonProperty("errors") Optional<? extends List<GetCountriesLibraryErrors>> errors,
|
||||||
|
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.errors = errors;
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryBadRequest() {
|
||||||
|
this(Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<List<GetCountriesLibraryErrors>> errors(){
|
||||||
|
return (Optional<List<GetCountriesLibraryErrors>>) errors;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||||
|
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryBadRequest withErrors(List<GetCountriesLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryBadRequest withErrors(Optional<? extends List<GetCountriesLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryBadRequest other = (GetCountriesLibraryBadRequest) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.errors, other.errors) &&
|
||||||
|
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return java.util.Objects.hash(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryBadRequest.class,
|
||||||
|
"errors", errors,
|
||||||
|
"rawResponse", rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<? extends List<GetCountriesLibraryErrors>> errors = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(List<GetCountriesLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(Optional<? extends List<GetCountriesLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryBadRequest build() {
|
||||||
|
return new GetCountriesLibraryBadRequest(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,194 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetCountriesLibraryErrors {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("code")
|
||||||
|
private Optional<Integer> code;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("message")
|
||||||
|
private Optional<String> message;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("status")
|
||||||
|
private Optional<Integer> status;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryErrors(
|
||||||
|
@JsonProperty("code") Optional<Integer> code,
|
||||||
|
@JsonProperty("message") Optional<String> message,
|
||||||
|
@JsonProperty("status") Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.code = code;
|
||||||
|
this.message = message;
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors() {
|
||||||
|
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> code() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> message() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> status() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors withCode(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors withCode(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors withMessage(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors withMessage(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors withStatus(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors withStatus(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryErrors other = (GetCountriesLibraryErrors) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.code, other.code) &&
|
||||||
|
Objects.deepEquals(this.message, other.message) &&
|
||||||
|
Objects.deepEquals(this.status, other.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryErrors.class,
|
||||||
|
"code", code,
|
||||||
|
"message", message,
|
||||||
|
"status", status);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<Integer> code = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> message = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<Integer> status = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryErrors build() {
|
||||||
|
return new GetCountriesLibraryErrors(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,194 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetCountriesLibraryLibraryErrors {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("code")
|
||||||
|
private Optional<Integer> code;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("message")
|
||||||
|
private Optional<String> message;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("status")
|
||||||
|
private Optional<Integer> status;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryLibraryErrors(
|
||||||
|
@JsonProperty("code") Optional<Integer> code,
|
||||||
|
@JsonProperty("message") Optional<String> message,
|
||||||
|
@JsonProperty("status") Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.code = code;
|
||||||
|
this.message = message;
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors() {
|
||||||
|
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> code() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> message() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> status() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors withCode(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors withCode(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors withMessage(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors withMessage(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors withStatus(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors withStatus(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryLibraryErrors other = (GetCountriesLibraryLibraryErrors) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.code, other.code) &&
|
||||||
|
Objects.deepEquals(this.message, other.message) &&
|
||||||
|
Objects.deepEquals(this.status, other.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryLibraryErrors.class,
|
||||||
|
"code", code,
|
||||||
|
"message", message,
|
||||||
|
"status", status);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<Integer> code = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> message = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<Integer> status = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryLibraryErrors build() {
|
||||||
|
return new GetCountriesLibraryLibraryErrors(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,173 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.net.http.HttpResponse;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetCountriesLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public class GetCountriesLibraryUnauthorized extends RuntimeException {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("errors")
|
||||||
|
private Optional<? extends List<GetCountriesLibraryLibraryErrors>> errors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("RawResponse")
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryUnauthorized(
|
||||||
|
@JsonProperty("errors") Optional<? extends List<GetCountriesLibraryLibraryErrors>> errors,
|
||||||
|
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.errors = errors;
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryUnauthorized() {
|
||||||
|
this(Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<List<GetCountriesLibraryLibraryErrors>> errors(){
|
||||||
|
return (Optional<List<GetCountriesLibraryLibraryErrors>>) errors;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||||
|
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryUnauthorized withErrors(List<GetCountriesLibraryLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryUnauthorized withErrors(Optional<? extends List<GetCountriesLibraryLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryUnauthorized other = (GetCountriesLibraryUnauthorized) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.errors, other.errors) &&
|
||||||
|
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return java.util.Objects.hash(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryUnauthorized.class,
|
||||||
|
"errors", errors,
|
||||||
|
"rawResponse", rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<? extends List<GetCountriesLibraryLibraryErrors>> errors = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(List<GetCountriesLibraryLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(Optional<? extends List<GetCountriesLibraryLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryUnauthorized build() {
|
||||||
|
return new GetCountriesLibraryUnauthorized(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,173 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.net.http.HttpResponse;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetGenresLibraryBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public class GetGenresLibraryBadRequest extends RuntimeException {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("errors")
|
||||||
|
private Optional<? extends List<GetGenresLibraryErrors>> errors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("RawResponse")
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryBadRequest(
|
||||||
|
@JsonProperty("errors") Optional<? extends List<GetGenresLibraryErrors>> errors,
|
||||||
|
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.errors = errors;
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryBadRequest() {
|
||||||
|
this(Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<List<GetGenresLibraryErrors>> errors(){
|
||||||
|
return (Optional<List<GetGenresLibraryErrors>>) errors;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||||
|
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryBadRequest withErrors(List<GetGenresLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryBadRequest withErrors(Optional<? extends List<GetGenresLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryBadRequest other = (GetGenresLibraryBadRequest) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.errors, other.errors) &&
|
||||||
|
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return java.util.Objects.hash(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryBadRequest.class,
|
||||||
|
"errors", errors,
|
||||||
|
"rawResponse", rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<? extends List<GetGenresLibraryErrors>> errors = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(List<GetGenresLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(Optional<? extends List<GetGenresLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryBadRequest build() {
|
||||||
|
return new GetGenresLibraryBadRequest(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,194 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetGenresLibraryErrors {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("code")
|
||||||
|
private Optional<Integer> code;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("message")
|
||||||
|
private Optional<String> message;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("status")
|
||||||
|
private Optional<Integer> status;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryErrors(
|
||||||
|
@JsonProperty("code") Optional<Integer> code,
|
||||||
|
@JsonProperty("message") Optional<String> message,
|
||||||
|
@JsonProperty("status") Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.code = code;
|
||||||
|
this.message = message;
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors() {
|
||||||
|
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> code() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> message() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> status() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors withCode(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors withCode(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors withMessage(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors withMessage(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors withStatus(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors withStatus(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryErrors other = (GetGenresLibraryErrors) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.code, other.code) &&
|
||||||
|
Objects.deepEquals(this.message, other.message) &&
|
||||||
|
Objects.deepEquals(this.status, other.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryErrors.class,
|
||||||
|
"code", code,
|
||||||
|
"message", message,
|
||||||
|
"status", status);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<Integer> code = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> message = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<Integer> status = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryErrors build() {
|
||||||
|
return new GetGenresLibraryErrors(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,194 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetGenresLibraryLibraryErrors {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("code")
|
||||||
|
private Optional<Integer> code;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("message")
|
||||||
|
private Optional<String> message;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("status")
|
||||||
|
private Optional<Integer> status;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryLibraryErrors(
|
||||||
|
@JsonProperty("code") Optional<Integer> code,
|
||||||
|
@JsonProperty("message") Optional<String> message,
|
||||||
|
@JsonProperty("status") Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.code = code;
|
||||||
|
this.message = message;
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors() {
|
||||||
|
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> code() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> message() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> status() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors withCode(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors withCode(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors withMessage(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors withMessage(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors withStatus(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors withStatus(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryLibraryErrors other = (GetGenresLibraryLibraryErrors) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.code, other.code) &&
|
||||||
|
Objects.deepEquals(this.message, other.message) &&
|
||||||
|
Objects.deepEquals(this.status, other.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryLibraryErrors.class,
|
||||||
|
"code", code,
|
||||||
|
"message", message,
|
||||||
|
"status", status);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<Integer> code = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> message = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<Integer> status = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(int code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = Optional.ofNullable(code);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder code(Optional<Integer> code) {
|
||||||
|
Utils.checkNotNull(code, "code");
|
||||||
|
this.code = code;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(String message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = Optional.ofNullable(message);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder message(Optional<String> message) {
|
||||||
|
Utils.checkNotNull(message, "message");
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(int status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = Optional.ofNullable(status);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder status(Optional<Integer> status) {
|
||||||
|
Utils.checkNotNull(status, "status");
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryLibraryErrors build() {
|
||||||
|
return new GetGenresLibraryLibraryErrors(
|
||||||
|
code,
|
||||||
|
message,
|
||||||
|
status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,173 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.errors;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.net.http.HttpResponse;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetGenresLibraryUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public class GetGenresLibraryUnauthorized extends RuntimeException {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("errors")
|
||||||
|
private Optional<? extends List<GetGenresLibraryLibraryErrors>> errors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("RawResponse")
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryUnauthorized(
|
||||||
|
@JsonProperty("errors") Optional<? extends List<GetGenresLibraryLibraryErrors>> errors,
|
||||||
|
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.errors = errors;
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryUnauthorized() {
|
||||||
|
this(Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<List<GetGenresLibraryLibraryErrors>> errors(){
|
||||||
|
return (Optional<List<GetGenresLibraryLibraryErrors>>) errors;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public Optional<HttpResponse<InputStream>> rawResponse(){
|
||||||
|
return (Optional<HttpResponse<InputStream>>) rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryUnauthorized withErrors(List<GetGenresLibraryLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryUnauthorized withErrors(Optional<? extends List<GetGenresLibraryLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryUnauthorized other = (GetGenresLibraryUnauthorized) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.errors, other.errors) &&
|
||||||
|
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return java.util.Objects.hash(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryUnauthorized.class,
|
||||||
|
"errors", errors,
|
||||||
|
"rawResponse", rawResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<? extends List<GetGenresLibraryLibraryErrors>> errors = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(List<GetGenresLibraryLibraryErrors> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = Optional.ofNullable(errors);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder errors(Optional<? extends List<GetGenresLibraryLibraryErrors>> errors) {
|
||||||
|
Utils.checkNotNull(errors, "errors");
|
||||||
|
this.errors = errors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryUnauthorized build() {
|
||||||
|
return new GetGenresLibraryUnauthorized(
|
||||||
|
errors,
|
||||||
|
rawResponse);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public enum EnableCreditsMarkerGeneration {
|
||||||
|
LibraryDefault("-1"),
|
||||||
|
Disabled("0");
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private EnableCreditsMarkerGeneration(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Optional<EnableCreditsMarkerGeneration> fromValue(String value) {
|
||||||
|
for (EnableCreditsMarkerGeneration o: EnableCreditsMarkerGeneration.values()) {
|
||||||
|
if (Objects.deepEquals(o.value, value)) {
|
||||||
|
return Optional.of(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public enum EpisodeSort {
|
||||||
|
LibraryDefault("-1"),
|
||||||
|
OldestFirst("0"),
|
||||||
|
NewestFirst("1");
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private EpisodeSort(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Optional<EpisodeSort> fromValue(String value) {
|
||||||
|
for (EpisodeSort o: EpisodeSort.values()) {
|
||||||
|
if (Objects.deepEquals(o.value, value)) {
|
||||||
|
return Optional.of(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,9 +9,13 @@ import java.lang.String;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public enum FlattenSeasons {
|
public enum FlattenSeasons {
|
||||||
False("0"),
|
LibraryDefault("-1"),
|
||||||
True("1");
|
Hide("0"),
|
||||||
|
Show("1");
|
||||||
|
|
||||||
@JsonValue
|
@JsonValue
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|||||||
@@ -0,0 +1,147 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetCountriesLibraryDirectory {
|
||||||
|
|
||||||
|
@JsonProperty("fastKey")
|
||||||
|
private String fastKey;
|
||||||
|
|
||||||
|
@JsonProperty("key")
|
||||||
|
private String key;
|
||||||
|
|
||||||
|
@JsonProperty("title")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryDirectory(
|
||||||
|
@JsonProperty("fastKey") String fastKey,
|
||||||
|
@JsonProperty("key") String key,
|
||||||
|
@JsonProperty("title") String title) {
|
||||||
|
Utils.checkNotNull(fastKey, "fastKey");
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
Utils.checkNotNull(title, "title");
|
||||||
|
this.fastKey = fastKey;
|
||||||
|
this.key = key;
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String fastKey() {
|
||||||
|
return fastKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String key() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String title() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryDirectory withFastKey(String fastKey) {
|
||||||
|
Utils.checkNotNull(fastKey, "fastKey");
|
||||||
|
this.fastKey = fastKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryDirectory withKey(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryDirectory withTitle(String title) {
|
||||||
|
Utils.checkNotNull(title, "title");
|
||||||
|
this.title = title;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryDirectory other = (GetCountriesLibraryDirectory) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.fastKey, other.fastKey) &&
|
||||||
|
Objects.deepEquals(this.key, other.key) &&
|
||||||
|
Objects.deepEquals(this.title, other.title);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
fastKey,
|
||||||
|
key,
|
||||||
|
title);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryDirectory.class,
|
||||||
|
"fastKey", fastKey,
|
||||||
|
"key", key,
|
||||||
|
"title", title);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private String fastKey;
|
||||||
|
|
||||||
|
private String key;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder fastKey(String fastKey) {
|
||||||
|
Utils.checkNotNull(fastKey, "fastKey");
|
||||||
|
this.fastKey = fastKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder key(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder title(String title) {
|
||||||
|
Utils.checkNotNull(title, "title");
|
||||||
|
this.title = title;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryDirectory build() {
|
||||||
|
return new GetCountriesLibraryDirectory(
|
||||||
|
fastKey,
|
||||||
|
key,
|
||||||
|
title);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,560 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Double;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetCountriesLibraryMediaContainer {
|
||||||
|
|
||||||
|
@JsonProperty("size")
|
||||||
|
private double size;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("offset")
|
||||||
|
private Optional<Integer> offset;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("totalSize")
|
||||||
|
private Optional<Integer> totalSize;
|
||||||
|
|
||||||
|
@JsonProperty("identifier")
|
||||||
|
private String identifier;
|
||||||
|
|
||||||
|
@JsonProperty("allowSync")
|
||||||
|
private boolean allowSync;
|
||||||
|
|
||||||
|
@JsonProperty("art")
|
||||||
|
private String art;
|
||||||
|
|
||||||
|
@JsonProperty("content")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
@JsonProperty("mediaTagPrefix")
|
||||||
|
private String mediaTagPrefix;
|
||||||
|
|
||||||
|
@JsonProperty("mediaTagVersion")
|
||||||
|
private long mediaTagVersion;
|
||||||
|
|
||||||
|
@JsonProperty("nocache")
|
||||||
|
private boolean nocache;
|
||||||
|
|
||||||
|
@JsonProperty("thumb")
|
||||||
|
private String thumb;
|
||||||
|
|
||||||
|
@JsonProperty("title1")
|
||||||
|
private String title1;
|
||||||
|
|
||||||
|
@JsonProperty("title2")
|
||||||
|
private String title2;
|
||||||
|
|
||||||
|
@JsonProperty("viewGroup")
|
||||||
|
private String viewGroup;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("Directory")
|
||||||
|
private Optional<? extends List<GetCountriesLibraryDirectory>> directory;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryMediaContainer(
|
||||||
|
@JsonProperty("size") double size,
|
||||||
|
@JsonProperty("offset") Optional<Integer> offset,
|
||||||
|
@JsonProperty("totalSize") Optional<Integer> totalSize,
|
||||||
|
@JsonProperty("identifier") String identifier,
|
||||||
|
@JsonProperty("allowSync") boolean allowSync,
|
||||||
|
@JsonProperty("art") String art,
|
||||||
|
@JsonProperty("content") String content,
|
||||||
|
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
|
||||||
|
@JsonProperty("mediaTagVersion") long mediaTagVersion,
|
||||||
|
@JsonProperty("nocache") boolean nocache,
|
||||||
|
@JsonProperty("thumb") String thumb,
|
||||||
|
@JsonProperty("title1") String title1,
|
||||||
|
@JsonProperty("title2") String title2,
|
||||||
|
@JsonProperty("viewGroup") String viewGroup,
|
||||||
|
@JsonProperty("Directory") Optional<? extends List<GetCountriesLibraryDirectory>> directory) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
Utils.checkNotNull(identifier, "identifier");
|
||||||
|
Utils.checkNotNull(allowSync, "allowSync");
|
||||||
|
Utils.checkNotNull(art, "art");
|
||||||
|
Utils.checkNotNull(content, "content");
|
||||||
|
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||||
|
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||||
|
Utils.checkNotNull(nocache, "nocache");
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
Utils.checkNotNull(title1, "title1");
|
||||||
|
Utils.checkNotNull(title2, "title2");
|
||||||
|
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.size = size;
|
||||||
|
this.offset = offset;
|
||||||
|
this.totalSize = totalSize;
|
||||||
|
this.identifier = identifier;
|
||||||
|
this.allowSync = allowSync;
|
||||||
|
this.art = art;
|
||||||
|
this.content = content;
|
||||||
|
this.mediaTagPrefix = mediaTagPrefix;
|
||||||
|
this.mediaTagVersion = mediaTagVersion;
|
||||||
|
this.nocache = nocache;
|
||||||
|
this.thumb = thumb;
|
||||||
|
this.title1 = title1;
|
||||||
|
this.title2 = title2;
|
||||||
|
this.viewGroup = viewGroup;
|
||||||
|
this.directory = directory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer(
|
||||||
|
double size,
|
||||||
|
String identifier,
|
||||||
|
boolean allowSync,
|
||||||
|
String art,
|
||||||
|
String content,
|
||||||
|
String mediaTagPrefix,
|
||||||
|
long mediaTagVersion,
|
||||||
|
boolean nocache,
|
||||||
|
String thumb,
|
||||||
|
String title1,
|
||||||
|
String title2,
|
||||||
|
String viewGroup) {
|
||||||
|
this(size, Optional.empty(), Optional.empty(), identifier, allowSync, art, content, mediaTagPrefix, mediaTagVersion, nocache, thumb, title1, title2, viewGroup, Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public double size() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> offset() {
|
||||||
|
return offset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> totalSize() {
|
||||||
|
return totalSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String identifier() {
|
||||||
|
return identifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public boolean allowSync() {
|
||||||
|
return allowSync;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String art() {
|
||||||
|
return art;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String content() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String mediaTagPrefix() {
|
||||||
|
return mediaTagPrefix;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long mediaTagVersion() {
|
||||||
|
return mediaTagVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public boolean nocache() {
|
||||||
|
return nocache;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String thumb() {
|
||||||
|
return thumb;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String title1() {
|
||||||
|
return title1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String title2() {
|
||||||
|
return title2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String viewGroup() {
|
||||||
|
return viewGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<List<GetCountriesLibraryDirectory>> directory() {
|
||||||
|
return (Optional<List<GetCountriesLibraryDirectory>>) directory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withSize(double size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withOffset(int offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = Optional.ofNullable(offset);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withOffset(Optional<Integer> offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = offset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withTotalSize(int totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = Optional.ofNullable(totalSize);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withTotalSize(Optional<Integer> totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = totalSize;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withIdentifier(String identifier) {
|
||||||
|
Utils.checkNotNull(identifier, "identifier");
|
||||||
|
this.identifier = identifier;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withAllowSync(boolean allowSync) {
|
||||||
|
Utils.checkNotNull(allowSync, "allowSync");
|
||||||
|
this.allowSync = allowSync;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withArt(String art) {
|
||||||
|
Utils.checkNotNull(art, "art");
|
||||||
|
this.art = art;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withContent(String content) {
|
||||||
|
Utils.checkNotNull(content, "content");
|
||||||
|
this.content = content;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||||
|
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||||
|
this.mediaTagPrefix = mediaTagPrefix;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withMediaTagVersion(long mediaTagVersion) {
|
||||||
|
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||||
|
this.mediaTagVersion = mediaTagVersion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withNocache(boolean nocache) {
|
||||||
|
Utils.checkNotNull(nocache, "nocache");
|
||||||
|
this.nocache = nocache;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withThumb(String thumb) {
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
this.thumb = thumb;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withTitle1(String title1) {
|
||||||
|
Utils.checkNotNull(title1, "title1");
|
||||||
|
this.title1 = title1;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withTitle2(String title2) {
|
||||||
|
Utils.checkNotNull(title2, "title2");
|
||||||
|
this.title2 = title2;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withViewGroup(String viewGroup) {
|
||||||
|
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||||
|
this.viewGroup = viewGroup;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withDirectory(List<GetCountriesLibraryDirectory> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = Optional.ofNullable(directory);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer withDirectory(Optional<? extends List<GetCountriesLibraryDirectory>> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = directory;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryMediaContainer other = (GetCountriesLibraryMediaContainer) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.size, other.size) &&
|
||||||
|
Objects.deepEquals(this.offset, other.offset) &&
|
||||||
|
Objects.deepEquals(this.totalSize, other.totalSize) &&
|
||||||
|
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||||
|
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||||
|
Objects.deepEquals(this.art, other.art) &&
|
||||||
|
Objects.deepEquals(this.content, other.content) &&
|
||||||
|
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||||
|
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||||
|
Objects.deepEquals(this.nocache, other.nocache) &&
|
||||||
|
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||||
|
Objects.deepEquals(this.title1, other.title1) &&
|
||||||
|
Objects.deepEquals(this.title2, other.title2) &&
|
||||||
|
Objects.deepEquals(this.viewGroup, other.viewGroup) &&
|
||||||
|
Objects.deepEquals(this.directory, other.directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
size,
|
||||||
|
offset,
|
||||||
|
totalSize,
|
||||||
|
identifier,
|
||||||
|
allowSync,
|
||||||
|
art,
|
||||||
|
content,
|
||||||
|
mediaTagPrefix,
|
||||||
|
mediaTagVersion,
|
||||||
|
nocache,
|
||||||
|
thumb,
|
||||||
|
title1,
|
||||||
|
title2,
|
||||||
|
viewGroup,
|
||||||
|
directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryMediaContainer.class,
|
||||||
|
"size", size,
|
||||||
|
"offset", offset,
|
||||||
|
"totalSize", totalSize,
|
||||||
|
"identifier", identifier,
|
||||||
|
"allowSync", allowSync,
|
||||||
|
"art", art,
|
||||||
|
"content", content,
|
||||||
|
"mediaTagPrefix", mediaTagPrefix,
|
||||||
|
"mediaTagVersion", mediaTagVersion,
|
||||||
|
"nocache", nocache,
|
||||||
|
"thumb", thumb,
|
||||||
|
"title1", title1,
|
||||||
|
"title2", title2,
|
||||||
|
"viewGroup", viewGroup,
|
||||||
|
"directory", directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Double size;
|
||||||
|
|
||||||
|
private Optional<Integer> offset = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<Integer> totalSize = Optional.empty();
|
||||||
|
|
||||||
|
private String identifier;
|
||||||
|
|
||||||
|
private Boolean allowSync;
|
||||||
|
|
||||||
|
private String art;
|
||||||
|
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
private String mediaTagPrefix;
|
||||||
|
|
||||||
|
private Long mediaTagVersion;
|
||||||
|
|
||||||
|
private Boolean nocache;
|
||||||
|
|
||||||
|
private String thumb;
|
||||||
|
|
||||||
|
private String title1;
|
||||||
|
|
||||||
|
private String title2;
|
||||||
|
|
||||||
|
private String viewGroup;
|
||||||
|
|
||||||
|
private Optional<? extends List<GetCountriesLibraryDirectory>> directory = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder size(double size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder offset(int offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = Optional.ofNullable(offset);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder offset(Optional<Integer> offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = offset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder totalSize(int totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = Optional.ofNullable(totalSize);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder totalSize(Optional<Integer> totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = totalSize;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder identifier(String identifier) {
|
||||||
|
Utils.checkNotNull(identifier, "identifier");
|
||||||
|
this.identifier = identifier;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder allowSync(boolean allowSync) {
|
||||||
|
Utils.checkNotNull(allowSync, "allowSync");
|
||||||
|
this.allowSync = allowSync;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder art(String art) {
|
||||||
|
Utils.checkNotNull(art, "art");
|
||||||
|
this.art = art;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder content(String content) {
|
||||||
|
Utils.checkNotNull(content, "content");
|
||||||
|
this.content = content;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||||
|
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||||
|
this.mediaTagPrefix = mediaTagPrefix;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaTagVersion(long mediaTagVersion) {
|
||||||
|
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||||
|
this.mediaTagVersion = mediaTagVersion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder nocache(boolean nocache) {
|
||||||
|
Utils.checkNotNull(nocache, "nocache");
|
||||||
|
this.nocache = nocache;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder thumb(String thumb) {
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
this.thumb = thumb;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder title1(String title1) {
|
||||||
|
Utils.checkNotNull(title1, "title1");
|
||||||
|
this.title1 = title1;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder title2(String title2) {
|
||||||
|
Utils.checkNotNull(title2, "title2");
|
||||||
|
this.title2 = title2;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder viewGroup(String viewGroup) {
|
||||||
|
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||||
|
this.viewGroup = viewGroup;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder directory(List<GetCountriesLibraryDirectory> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = Optional.ofNullable(directory);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder directory(Optional<? extends List<GetCountriesLibraryDirectory>> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = directory;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryMediaContainer build() {
|
||||||
|
return new GetCountriesLibraryMediaContainer(
|
||||||
|
size,
|
||||||
|
offset,
|
||||||
|
totalSize,
|
||||||
|
identifier,
|
||||||
|
allowSync,
|
||||||
|
art,
|
||||||
|
content,
|
||||||
|
mediaTagPrefix,
|
||||||
|
mediaTagVersion,
|
||||||
|
nocache,
|
||||||
|
thumb,
|
||||||
|
title1,
|
||||||
|
title2,
|
||||||
|
viewGroup,
|
||||||
|
directory);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetCountriesLibraryRequest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")
|
||||||
|
private int sectionKey;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryRequest(
|
||||||
|
int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public int sectionKey() {
|
||||||
|
return sectionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryRequest withSectionKey(int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryRequest other = (GetCountriesLibraryRequest) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.sectionKey, other.sectionKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
sectionKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryRequest.class,
|
||||||
|
"sectionKey", sectionKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Integer sectionKey;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public Builder sectionKey(int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryRequest build() {
|
||||||
|
return new GetCountriesLibraryRequest(
|
||||||
|
sectionKey);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryRequestBuilder {
|
||||||
|
|
||||||
|
private Integer sectionKey;
|
||||||
|
private final SDKMethodInterfaces.MethodCallGetCountriesLibrary sdk;
|
||||||
|
|
||||||
|
public GetCountriesLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetCountriesLibrary sdk) {
|
||||||
|
this.sdk = sdk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryRequestBuilder sectionKey(int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryResponse call() throws Exception {
|
||||||
|
|
||||||
|
return sdk.getCountriesLibrary(
|
||||||
|
sectionKey);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,251 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import dev.plexapi.sdk.utils.Response;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.net.http.HttpResponse;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetCountriesLibraryResponse implements Response {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
private String contentType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
private int statusCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
private HttpResponse<InputStream> rawResponse;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
private Optional<? extends GetCountriesLibraryResponseBody> object;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryResponse(
|
||||||
|
String contentType,
|
||||||
|
int statusCode,
|
||||||
|
HttpResponse<InputStream> rawResponse,
|
||||||
|
Optional<? extends GetCountriesLibraryResponseBody> object) {
|
||||||
|
Utils.checkNotNull(contentType, "contentType");
|
||||||
|
Utils.checkNotNull(statusCode, "statusCode");
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.contentType = contentType;
|
||||||
|
this.statusCode = statusCode;
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
this.object = object;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryResponse(
|
||||||
|
String contentType,
|
||||||
|
int statusCode,
|
||||||
|
HttpResponse<InputStream> rawResponse) {
|
||||||
|
this(contentType, statusCode, rawResponse, Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public String contentType() {
|
||||||
|
return contentType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public int statusCode() {
|
||||||
|
return statusCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public HttpResponse<InputStream> rawResponse() {
|
||||||
|
return rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetCountriesLibraryResponseBody> object() {
|
||||||
|
return (Optional<GetCountriesLibraryResponseBody>) object;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryResponse withContentType(String contentType) {
|
||||||
|
Utils.checkNotNull(contentType, "contentType");
|
||||||
|
this.contentType = contentType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryResponse withStatusCode(int statusCode) {
|
||||||
|
Utils.checkNotNull(statusCode, "statusCode");
|
||||||
|
this.statusCode = statusCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryResponse withObject(GetCountriesLibraryResponseBody object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = Optional.ofNullable(object);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public GetCountriesLibraryResponse withObject(Optional<? extends GetCountriesLibraryResponseBody> object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = object;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryResponse other = (GetCountriesLibraryResponse) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.contentType, other.contentType) &&
|
||||||
|
Objects.deepEquals(this.statusCode, other.statusCode) &&
|
||||||
|
Objects.deepEquals(this.rawResponse, other.rawResponse) &&
|
||||||
|
Objects.deepEquals(this.object, other.object);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
contentType,
|
||||||
|
statusCode,
|
||||||
|
rawResponse,
|
||||||
|
object);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryResponse.class,
|
||||||
|
"contentType", contentType,
|
||||||
|
"statusCode", statusCode,
|
||||||
|
"rawResponse", rawResponse,
|
||||||
|
"object", object);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private String contentType;
|
||||||
|
|
||||||
|
private Integer statusCode;
|
||||||
|
|
||||||
|
private HttpResponse<InputStream> rawResponse;
|
||||||
|
|
||||||
|
private Optional<? extends GetCountriesLibraryResponseBody> object = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
public Builder contentType(String contentType) {
|
||||||
|
Utils.checkNotNull(contentType, "contentType");
|
||||||
|
this.contentType = contentType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
public Builder statusCode(int statusCode) {
|
||||||
|
Utils.checkNotNull(statusCode, "statusCode");
|
||||||
|
this.statusCode = statusCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public Builder object(GetCountriesLibraryResponseBody object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = Optional.ofNullable(object);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public Builder object(Optional<? extends GetCountriesLibraryResponseBody> object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = object;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryResponse build() {
|
||||||
|
return new GetCountriesLibraryResponse(
|
||||||
|
contentType,
|
||||||
|
statusCode,
|
||||||
|
rawResponse,
|
||||||
|
object);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetCountriesLibraryResponseBody - Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class GetCountriesLibraryResponseBody {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("MediaContainer")
|
||||||
|
private Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetCountriesLibraryResponseBody(
|
||||||
|
@JsonProperty("MediaContainer") Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = mediaContainer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryResponseBody() {
|
||||||
|
this(Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetCountriesLibraryMediaContainer> mediaContainer() {
|
||||||
|
return (Optional<GetCountriesLibraryMediaContainer>) mediaContainer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryResponseBody withMediaContainer(GetCountriesLibraryMediaContainer mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryResponseBody withMediaContainer(Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = mediaContainer;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetCountriesLibraryResponseBody other = (GetCountriesLibraryResponseBody) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
mediaContainer);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetCountriesLibraryResponseBody.class,
|
||||||
|
"mediaContainer", mediaContainer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaContainer(GetCountriesLibraryMediaContainer mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaContainer(Optional<? extends GetCountriesLibraryMediaContainer> mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = mediaContainer;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetCountriesLibraryResponseBody build() {
|
||||||
|
return new GetCountriesLibraryResponseBody(
|
||||||
|
mediaContainer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,176 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetGenresLibraryDirectory {
|
||||||
|
|
||||||
|
@JsonProperty("fastKey")
|
||||||
|
private String fastKey;
|
||||||
|
|
||||||
|
@JsonProperty("key")
|
||||||
|
private String key;
|
||||||
|
|
||||||
|
@JsonProperty("title")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@JsonProperty("type")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryDirectory(
|
||||||
|
@JsonProperty("fastKey") String fastKey,
|
||||||
|
@JsonProperty("key") String key,
|
||||||
|
@JsonProperty("title") String title,
|
||||||
|
@JsonProperty("type") String type) {
|
||||||
|
Utils.checkNotNull(fastKey, "fastKey");
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
Utils.checkNotNull(title, "title");
|
||||||
|
Utils.checkNotNull(type, "type");
|
||||||
|
this.fastKey = fastKey;
|
||||||
|
this.key = key;
|
||||||
|
this.title = title;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String fastKey() {
|
||||||
|
return fastKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String key() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String title() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String type() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryDirectory withFastKey(String fastKey) {
|
||||||
|
Utils.checkNotNull(fastKey, "fastKey");
|
||||||
|
this.fastKey = fastKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryDirectory withKey(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryDirectory withTitle(String title) {
|
||||||
|
Utils.checkNotNull(title, "title");
|
||||||
|
this.title = title;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryDirectory withType(String type) {
|
||||||
|
Utils.checkNotNull(type, "type");
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryDirectory other = (GetGenresLibraryDirectory) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.fastKey, other.fastKey) &&
|
||||||
|
Objects.deepEquals(this.key, other.key) &&
|
||||||
|
Objects.deepEquals(this.title, other.title) &&
|
||||||
|
Objects.deepEquals(this.type, other.type);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
fastKey,
|
||||||
|
key,
|
||||||
|
title,
|
||||||
|
type);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryDirectory.class,
|
||||||
|
"fastKey", fastKey,
|
||||||
|
"key", key,
|
||||||
|
"title", title,
|
||||||
|
"type", type);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private String fastKey;
|
||||||
|
|
||||||
|
private String key;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder fastKey(String fastKey) {
|
||||||
|
Utils.checkNotNull(fastKey, "fastKey");
|
||||||
|
this.fastKey = fastKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder key(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder title(String title) {
|
||||||
|
Utils.checkNotNull(title, "title");
|
||||||
|
this.title = title;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder type(String type) {
|
||||||
|
Utils.checkNotNull(type, "type");
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryDirectory build() {
|
||||||
|
return new GetGenresLibraryDirectory(
|
||||||
|
fastKey,
|
||||||
|
key,
|
||||||
|
title,
|
||||||
|
type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,560 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Double;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetGenresLibraryMediaContainer {
|
||||||
|
|
||||||
|
@JsonProperty("size")
|
||||||
|
private double size;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("offset")
|
||||||
|
private Optional<Integer> offset;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("totalSize")
|
||||||
|
private Optional<Integer> totalSize;
|
||||||
|
|
||||||
|
@JsonProperty("identifier")
|
||||||
|
private String identifier;
|
||||||
|
|
||||||
|
@JsonProperty("allowSync")
|
||||||
|
private boolean allowSync;
|
||||||
|
|
||||||
|
@JsonProperty("art")
|
||||||
|
private String art;
|
||||||
|
|
||||||
|
@JsonProperty("content")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
@JsonProperty("mediaTagPrefix")
|
||||||
|
private String mediaTagPrefix;
|
||||||
|
|
||||||
|
@JsonProperty("mediaTagVersion")
|
||||||
|
private long mediaTagVersion;
|
||||||
|
|
||||||
|
@JsonProperty("nocache")
|
||||||
|
private boolean nocache;
|
||||||
|
|
||||||
|
@JsonProperty("thumb")
|
||||||
|
private String thumb;
|
||||||
|
|
||||||
|
@JsonProperty("title1")
|
||||||
|
private String title1;
|
||||||
|
|
||||||
|
@JsonProperty("title2")
|
||||||
|
private String title2;
|
||||||
|
|
||||||
|
@JsonProperty("viewGroup")
|
||||||
|
private String viewGroup;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("Directory")
|
||||||
|
private Optional<? extends List<GetGenresLibraryDirectory>> directory;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryMediaContainer(
|
||||||
|
@JsonProperty("size") double size,
|
||||||
|
@JsonProperty("offset") Optional<Integer> offset,
|
||||||
|
@JsonProperty("totalSize") Optional<Integer> totalSize,
|
||||||
|
@JsonProperty("identifier") String identifier,
|
||||||
|
@JsonProperty("allowSync") boolean allowSync,
|
||||||
|
@JsonProperty("art") String art,
|
||||||
|
@JsonProperty("content") String content,
|
||||||
|
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
|
||||||
|
@JsonProperty("mediaTagVersion") long mediaTagVersion,
|
||||||
|
@JsonProperty("nocache") boolean nocache,
|
||||||
|
@JsonProperty("thumb") String thumb,
|
||||||
|
@JsonProperty("title1") String title1,
|
||||||
|
@JsonProperty("title2") String title2,
|
||||||
|
@JsonProperty("viewGroup") String viewGroup,
|
||||||
|
@JsonProperty("Directory") Optional<? extends List<GetGenresLibraryDirectory>> directory) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
Utils.checkNotNull(identifier, "identifier");
|
||||||
|
Utils.checkNotNull(allowSync, "allowSync");
|
||||||
|
Utils.checkNotNull(art, "art");
|
||||||
|
Utils.checkNotNull(content, "content");
|
||||||
|
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||||
|
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||||
|
Utils.checkNotNull(nocache, "nocache");
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
Utils.checkNotNull(title1, "title1");
|
||||||
|
Utils.checkNotNull(title2, "title2");
|
||||||
|
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.size = size;
|
||||||
|
this.offset = offset;
|
||||||
|
this.totalSize = totalSize;
|
||||||
|
this.identifier = identifier;
|
||||||
|
this.allowSync = allowSync;
|
||||||
|
this.art = art;
|
||||||
|
this.content = content;
|
||||||
|
this.mediaTagPrefix = mediaTagPrefix;
|
||||||
|
this.mediaTagVersion = mediaTagVersion;
|
||||||
|
this.nocache = nocache;
|
||||||
|
this.thumb = thumb;
|
||||||
|
this.title1 = title1;
|
||||||
|
this.title2 = title2;
|
||||||
|
this.viewGroup = viewGroup;
|
||||||
|
this.directory = directory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer(
|
||||||
|
double size,
|
||||||
|
String identifier,
|
||||||
|
boolean allowSync,
|
||||||
|
String art,
|
||||||
|
String content,
|
||||||
|
String mediaTagPrefix,
|
||||||
|
long mediaTagVersion,
|
||||||
|
boolean nocache,
|
||||||
|
String thumb,
|
||||||
|
String title1,
|
||||||
|
String title2,
|
||||||
|
String viewGroup) {
|
||||||
|
this(size, Optional.empty(), Optional.empty(), identifier, allowSync, art, content, mediaTagPrefix, mediaTagVersion, nocache, thumb, title1, title2, viewGroup, Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public double size() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> offset() {
|
||||||
|
return offset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Integer> totalSize() {
|
||||||
|
return totalSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String identifier() {
|
||||||
|
return identifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public boolean allowSync() {
|
||||||
|
return allowSync;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String art() {
|
||||||
|
return art;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String content() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String mediaTagPrefix() {
|
||||||
|
return mediaTagPrefix;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long mediaTagVersion() {
|
||||||
|
return mediaTagVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public boolean nocache() {
|
||||||
|
return nocache;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String thumb() {
|
||||||
|
return thumb;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String title1() {
|
||||||
|
return title1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String title2() {
|
||||||
|
return title2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String viewGroup() {
|
||||||
|
return viewGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<List<GetGenresLibraryDirectory>> directory() {
|
||||||
|
return (Optional<List<GetGenresLibraryDirectory>>) directory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withSize(double size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withOffset(int offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = Optional.ofNullable(offset);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withOffset(Optional<Integer> offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = offset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withTotalSize(int totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = Optional.ofNullable(totalSize);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withTotalSize(Optional<Integer> totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = totalSize;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withIdentifier(String identifier) {
|
||||||
|
Utils.checkNotNull(identifier, "identifier");
|
||||||
|
this.identifier = identifier;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withAllowSync(boolean allowSync) {
|
||||||
|
Utils.checkNotNull(allowSync, "allowSync");
|
||||||
|
this.allowSync = allowSync;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withArt(String art) {
|
||||||
|
Utils.checkNotNull(art, "art");
|
||||||
|
this.art = art;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withContent(String content) {
|
||||||
|
Utils.checkNotNull(content, "content");
|
||||||
|
this.content = content;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||||
|
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||||
|
this.mediaTagPrefix = mediaTagPrefix;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withMediaTagVersion(long mediaTagVersion) {
|
||||||
|
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||||
|
this.mediaTagVersion = mediaTagVersion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withNocache(boolean nocache) {
|
||||||
|
Utils.checkNotNull(nocache, "nocache");
|
||||||
|
this.nocache = nocache;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withThumb(String thumb) {
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
this.thumb = thumb;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withTitle1(String title1) {
|
||||||
|
Utils.checkNotNull(title1, "title1");
|
||||||
|
this.title1 = title1;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withTitle2(String title2) {
|
||||||
|
Utils.checkNotNull(title2, "title2");
|
||||||
|
this.title2 = title2;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withViewGroup(String viewGroup) {
|
||||||
|
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||||
|
this.viewGroup = viewGroup;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withDirectory(List<GetGenresLibraryDirectory> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = Optional.ofNullable(directory);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer withDirectory(Optional<? extends List<GetGenresLibraryDirectory>> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = directory;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryMediaContainer other = (GetGenresLibraryMediaContainer) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.size, other.size) &&
|
||||||
|
Objects.deepEquals(this.offset, other.offset) &&
|
||||||
|
Objects.deepEquals(this.totalSize, other.totalSize) &&
|
||||||
|
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||||
|
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||||
|
Objects.deepEquals(this.art, other.art) &&
|
||||||
|
Objects.deepEquals(this.content, other.content) &&
|
||||||
|
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||||
|
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||||
|
Objects.deepEquals(this.nocache, other.nocache) &&
|
||||||
|
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||||
|
Objects.deepEquals(this.title1, other.title1) &&
|
||||||
|
Objects.deepEquals(this.title2, other.title2) &&
|
||||||
|
Objects.deepEquals(this.viewGroup, other.viewGroup) &&
|
||||||
|
Objects.deepEquals(this.directory, other.directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
size,
|
||||||
|
offset,
|
||||||
|
totalSize,
|
||||||
|
identifier,
|
||||||
|
allowSync,
|
||||||
|
art,
|
||||||
|
content,
|
||||||
|
mediaTagPrefix,
|
||||||
|
mediaTagVersion,
|
||||||
|
nocache,
|
||||||
|
thumb,
|
||||||
|
title1,
|
||||||
|
title2,
|
||||||
|
viewGroup,
|
||||||
|
directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryMediaContainer.class,
|
||||||
|
"size", size,
|
||||||
|
"offset", offset,
|
||||||
|
"totalSize", totalSize,
|
||||||
|
"identifier", identifier,
|
||||||
|
"allowSync", allowSync,
|
||||||
|
"art", art,
|
||||||
|
"content", content,
|
||||||
|
"mediaTagPrefix", mediaTagPrefix,
|
||||||
|
"mediaTagVersion", mediaTagVersion,
|
||||||
|
"nocache", nocache,
|
||||||
|
"thumb", thumb,
|
||||||
|
"title1", title1,
|
||||||
|
"title2", title2,
|
||||||
|
"viewGroup", viewGroup,
|
||||||
|
"directory", directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Double size;
|
||||||
|
|
||||||
|
private Optional<Integer> offset = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<Integer> totalSize = Optional.empty();
|
||||||
|
|
||||||
|
private String identifier;
|
||||||
|
|
||||||
|
private Boolean allowSync;
|
||||||
|
|
||||||
|
private String art;
|
||||||
|
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
private String mediaTagPrefix;
|
||||||
|
|
||||||
|
private Long mediaTagVersion;
|
||||||
|
|
||||||
|
private Boolean nocache;
|
||||||
|
|
||||||
|
private String thumb;
|
||||||
|
|
||||||
|
private String title1;
|
||||||
|
|
||||||
|
private String title2;
|
||||||
|
|
||||||
|
private String viewGroup;
|
||||||
|
|
||||||
|
private Optional<? extends List<GetGenresLibraryDirectory>> directory = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder size(double size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder offset(int offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = Optional.ofNullable(offset);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder offset(Optional<Integer> offset) {
|
||||||
|
Utils.checkNotNull(offset, "offset");
|
||||||
|
this.offset = offset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder totalSize(int totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = Optional.ofNullable(totalSize);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder totalSize(Optional<Integer> totalSize) {
|
||||||
|
Utils.checkNotNull(totalSize, "totalSize");
|
||||||
|
this.totalSize = totalSize;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder identifier(String identifier) {
|
||||||
|
Utils.checkNotNull(identifier, "identifier");
|
||||||
|
this.identifier = identifier;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder allowSync(boolean allowSync) {
|
||||||
|
Utils.checkNotNull(allowSync, "allowSync");
|
||||||
|
this.allowSync = allowSync;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder art(String art) {
|
||||||
|
Utils.checkNotNull(art, "art");
|
||||||
|
this.art = art;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder content(String content) {
|
||||||
|
Utils.checkNotNull(content, "content");
|
||||||
|
this.content = content;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||||
|
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||||
|
this.mediaTagPrefix = mediaTagPrefix;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaTagVersion(long mediaTagVersion) {
|
||||||
|
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||||
|
this.mediaTagVersion = mediaTagVersion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder nocache(boolean nocache) {
|
||||||
|
Utils.checkNotNull(nocache, "nocache");
|
||||||
|
this.nocache = nocache;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder thumb(String thumb) {
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
this.thumb = thumb;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder title1(String title1) {
|
||||||
|
Utils.checkNotNull(title1, "title1");
|
||||||
|
this.title1 = title1;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder title2(String title2) {
|
||||||
|
Utils.checkNotNull(title2, "title2");
|
||||||
|
this.title2 = title2;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder viewGroup(String viewGroup) {
|
||||||
|
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||||
|
this.viewGroup = viewGroup;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder directory(List<GetGenresLibraryDirectory> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = Optional.ofNullable(directory);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder directory(Optional<? extends List<GetGenresLibraryDirectory>> directory) {
|
||||||
|
Utils.checkNotNull(directory, "directory");
|
||||||
|
this.directory = directory;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryMediaContainer build() {
|
||||||
|
return new GetGenresLibraryMediaContainer(
|
||||||
|
size,
|
||||||
|
offset,
|
||||||
|
totalSize,
|
||||||
|
identifier,
|
||||||
|
allowSync,
|
||||||
|
art,
|
||||||
|
content,
|
||||||
|
mediaTagPrefix,
|
||||||
|
mediaTagVersion,
|
||||||
|
nocache,
|
||||||
|
thumb,
|
||||||
|
title1,
|
||||||
|
title2,
|
||||||
|
viewGroup,
|
||||||
|
directory);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetGenresLibraryRequest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")
|
||||||
|
private int sectionKey;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryRequest(
|
||||||
|
int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public int sectionKey() {
|
||||||
|
return sectionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryRequest withSectionKey(int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryRequest other = (GetGenresLibraryRequest) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.sectionKey, other.sectionKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
sectionKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryRequest.class,
|
||||||
|
"sectionKey", sectionKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Integer sectionKey;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The unique key of the Plex library.
|
||||||
|
* Note: This is unique in the context of the Plex server.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public Builder sectionKey(int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryRequest build() {
|
||||||
|
return new GetGenresLibraryRequest(
|
||||||
|
sectionKey);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Integer;
|
||||||
|
|
||||||
|
public class GetGenresLibraryRequestBuilder {
|
||||||
|
|
||||||
|
private Integer sectionKey;
|
||||||
|
private final SDKMethodInterfaces.MethodCallGetGenresLibrary sdk;
|
||||||
|
|
||||||
|
public GetGenresLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetGenresLibrary sdk) {
|
||||||
|
this.sdk = sdk;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryRequestBuilder sectionKey(int sectionKey) {
|
||||||
|
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||||
|
this.sectionKey = sectionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryResponse call() throws Exception {
|
||||||
|
|
||||||
|
return sdk.getGenresLibrary(
|
||||||
|
sectionKey);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,251 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import dev.plexapi.sdk.utils.Response;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.net.http.HttpResponse;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetGenresLibraryResponse implements Response {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
private String contentType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
private int statusCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
private HttpResponse<InputStream> rawResponse;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
private Optional<? extends GetGenresLibraryResponseBody> object;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryResponse(
|
||||||
|
String contentType,
|
||||||
|
int statusCode,
|
||||||
|
HttpResponse<InputStream> rawResponse,
|
||||||
|
Optional<? extends GetGenresLibraryResponseBody> object) {
|
||||||
|
Utils.checkNotNull(contentType, "contentType");
|
||||||
|
Utils.checkNotNull(statusCode, "statusCode");
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.contentType = contentType;
|
||||||
|
this.statusCode = statusCode;
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
this.object = object;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryResponse(
|
||||||
|
String contentType,
|
||||||
|
int statusCode,
|
||||||
|
HttpResponse<InputStream> rawResponse) {
|
||||||
|
this(contentType, statusCode, rawResponse, Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public String contentType() {
|
||||||
|
return contentType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public int statusCode() {
|
||||||
|
return statusCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public HttpResponse<InputStream> rawResponse() {
|
||||||
|
return rawResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetGenresLibraryResponseBody> object() {
|
||||||
|
return (Optional<GetGenresLibraryResponseBody>) object;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryResponse withContentType(String contentType) {
|
||||||
|
Utils.checkNotNull(contentType, "contentType");
|
||||||
|
this.contentType = contentType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryResponse withStatusCode(int statusCode) {
|
||||||
|
Utils.checkNotNull(statusCode, "statusCode");
|
||||||
|
this.statusCode = statusCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryResponse withObject(GetGenresLibraryResponseBody object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = Optional.ofNullable(object);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public GetGenresLibraryResponse withObject(Optional<? extends GetGenresLibraryResponseBody> object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = object;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryResponse other = (GetGenresLibraryResponse) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.contentType, other.contentType) &&
|
||||||
|
Objects.deepEquals(this.statusCode, other.statusCode) &&
|
||||||
|
Objects.deepEquals(this.rawResponse, other.rawResponse) &&
|
||||||
|
Objects.deepEquals(this.object, other.object);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
contentType,
|
||||||
|
statusCode,
|
||||||
|
rawResponse,
|
||||||
|
object);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryResponse.class,
|
||||||
|
"contentType", contentType,
|
||||||
|
"statusCode", statusCode,
|
||||||
|
"rawResponse", rawResponse,
|
||||||
|
"object", object);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private String contentType;
|
||||||
|
|
||||||
|
private Integer statusCode;
|
||||||
|
|
||||||
|
private HttpResponse<InputStream> rawResponse;
|
||||||
|
|
||||||
|
private Optional<? extends GetGenresLibraryResponseBody> object = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response content type for this operation
|
||||||
|
*/
|
||||||
|
public Builder contentType(String contentType) {
|
||||||
|
Utils.checkNotNull(contentType, "contentType");
|
||||||
|
this.contentType = contentType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP response status code for this operation
|
||||||
|
*/
|
||||||
|
public Builder statusCode(int statusCode) {
|
||||||
|
Utils.checkNotNull(statusCode, "statusCode");
|
||||||
|
this.statusCode = statusCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raw HTTP response; suitable for custom response parsing
|
||||||
|
*/
|
||||||
|
public Builder rawResponse(HttpResponse<InputStream> rawResponse) {
|
||||||
|
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||||
|
this.rawResponse = rawResponse;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public Builder object(GetGenresLibraryResponseBody object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = Optional.ofNullable(object);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
public Builder object(Optional<? extends GetGenresLibraryResponseBody> object) {
|
||||||
|
Utils.checkNotNull(object, "object");
|
||||||
|
this.object = object;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryResponse build() {
|
||||||
|
return new GetGenresLibraryResponse(
|
||||||
|
contentType,
|
||||||
|
statusCode,
|
||||||
|
rawResponse,
|
||||||
|
object);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetGenresLibraryResponseBody - Successful response containing media container data.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class GetGenresLibraryResponseBody {
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("MediaContainer")
|
||||||
|
private Optional<? extends GetGenresLibraryMediaContainer> mediaContainer;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public GetGenresLibraryResponseBody(
|
||||||
|
@JsonProperty("MediaContainer") Optional<? extends GetGenresLibraryMediaContainer> mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = mediaContainer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryResponseBody() {
|
||||||
|
this(Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetGenresLibraryMediaContainer> mediaContainer() {
|
||||||
|
return (Optional<GetGenresLibraryMediaContainer>) mediaContainer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryResponseBody withMediaContainer(GetGenresLibraryMediaContainer mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryResponseBody withMediaContainer(Optional<? extends GetGenresLibraryMediaContainer> mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = mediaContainer;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetGenresLibraryResponseBody other = (GetGenresLibraryResponseBody) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
mediaContainer);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(GetGenresLibraryResponseBody.class,
|
||||||
|
"mediaContainer", mediaContainer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<? extends GetGenresLibraryMediaContainer> mediaContainer = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaContainer(GetGenresLibraryMediaContainer mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mediaContainer(Optional<? extends GetGenresLibraryMediaContainer> mediaContainer) {
|
||||||
|
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||||
|
this.mediaContainer = mediaContainer;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetGenresLibraryResponseBody build() {
|
||||||
|
return new GetGenresLibraryResponseBody(
|
||||||
|
mediaContainer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetLibraryItemsEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public enum GetLibraryItemsEnableCreditsMarkerGeneration {
|
||||||
|
LibraryDefault("-1"),
|
||||||
|
Disabled("0");
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetLibraryItemsEnableCreditsMarkerGeneration(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Optional<GetLibraryItemsEnableCreditsMarkerGeneration> fromValue(String value) {
|
||||||
|
for (GetLibraryItemsEnableCreditsMarkerGeneration o: GetLibraryItemsEnableCreditsMarkerGeneration.values()) {
|
||||||
|
if (Objects.deepEquals(o.value, value)) {
|
||||||
|
return Optional.of(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetLibraryItemsEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public enum GetLibraryItemsEpisodeSort {
|
||||||
|
LibraryDefault("-1"),
|
||||||
|
OldestFirst("0"),
|
||||||
|
NewestFirst("1");
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetLibraryItemsEpisodeSort(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Optional<GetLibraryItemsEpisodeSort> fromValue(String value) {
|
||||||
|
for (GetLibraryItemsEpisodeSort o: GetLibraryItemsEpisodeSort.values()) {
|
||||||
|
if (Objects.deepEquals(o.value, value)) {
|
||||||
|
return Optional.of(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,9 +9,13 @@ import java.lang.String;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetLibraryItemsFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public enum GetLibraryItemsFlattenSeasons {
|
public enum GetLibraryItemsFlattenSeasons {
|
||||||
False("0"),
|
LibraryDefault("-1"),
|
||||||
True("1");
|
Hide("0"),
|
||||||
|
Show("1");
|
||||||
|
|
||||||
@JsonValue
|
@JsonValue
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
|
||||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
import java.lang.Double;
|
import java.lang.Double;
|
||||||
@@ -103,17 +101,34 @@ public class GetLibraryItemsMetadata {
|
|||||||
@JsonProperty("tagline")
|
@JsonProperty("tagline")
|
||||||
private Optional<String> tagline;
|
private Optional<String> tagline;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("flattenSeasons")
|
@JsonProperty("flattenSeasons")
|
||||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("episodeSort")
|
||||||
|
private Optional<? extends GetLibraryItemsEpisodeSort> episodeSort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("enableCreditsMarkerGeneration")
|
||||||
|
private Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@@ -374,6 +389,8 @@ public class GetLibraryItemsMetadata {
|
|||||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||||
@JsonProperty("tagline") Optional<String> tagline,
|
@JsonProperty("tagline") Optional<String> tagline,
|
||||||
@JsonProperty("flattenSeasons") Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons,
|
@JsonProperty("flattenSeasons") Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons,
|
||||||
|
@JsonProperty("episodeSort") Optional<? extends GetLibraryItemsEpisodeSort> episodeSort,
|
||||||
|
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
|
||||||
@JsonProperty("showOrdering") Optional<? extends GetLibraryItemsShowOrdering> showOrdering,
|
@JsonProperty("showOrdering") Optional<? extends GetLibraryItemsShowOrdering> showOrdering,
|
||||||
@JsonProperty("thumb") Optional<String> thumb,
|
@JsonProperty("thumb") Optional<String> thumb,
|
||||||
@JsonProperty("art") Optional<String> art,
|
@JsonProperty("art") Optional<String> art,
|
||||||
@@ -448,6 +465,8 @@ public class GetLibraryItemsMetadata {
|
|||||||
Utils.checkNotNull(seasonCount, "seasonCount");
|
Utils.checkNotNull(seasonCount, "seasonCount");
|
||||||
Utils.checkNotNull(tagline, "tagline");
|
Utils.checkNotNull(tagline, "tagline");
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
Utils.checkNotNull(art, "art");
|
Utils.checkNotNull(art, "art");
|
||||||
@@ -522,6 +541,8 @@ public class GetLibraryItemsMetadata {
|
|||||||
this.seasonCount = seasonCount;
|
this.seasonCount = seasonCount;
|
||||||
this.tagline = tagline;
|
this.tagline = tagline;
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
this.showOrdering = showOrdering;
|
this.showOrdering = showOrdering;
|
||||||
this.thumb = thumb;
|
this.thumb = thumb;
|
||||||
this.art = art;
|
this.art = art;
|
||||||
@@ -587,7 +608,7 @@ public class GetLibraryItemsMetadata {
|
|||||||
String title,
|
String title,
|
||||||
String summary,
|
String summary,
|
||||||
long addedAt) {
|
long addedAt) {
|
||||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -689,6 +710,9 @@ public class GetLibraryItemsMetadata {
|
|||||||
return tagline;
|
return tagline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<GetLibraryItemsFlattenSeasons> flattenSeasons() {
|
public Optional<GetLibraryItemsFlattenSeasons> flattenSeasons() {
|
||||||
@@ -696,12 +720,30 @@ public class GetLibraryItemsMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetLibraryItemsEpisodeSort> episodeSort() {
|
||||||
|
return (Optional<GetLibraryItemsEpisodeSort>) episodeSort;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||||
|
return (Optional<GetLibraryItemsEnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -1203,12 +1245,18 @@ public class GetLibraryItemsMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public GetLibraryItemsMetadata withFlattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
public GetLibraryItemsMetadata withFlattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public GetLibraryItemsMetadata withFlattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
public GetLibraryItemsMetadata withFlattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
@@ -1216,12 +1264,48 @@ public class GetLibraryItemsMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public GetLibraryItemsMetadata withEpisodeSort(GetLibraryItemsEpisodeSort episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public GetLibraryItemsMetadata withEpisodeSort(Optional<? extends GetLibraryItemsEpisodeSort> episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetLibraryItemsMetadata withShowOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
public GetLibraryItemsMetadata withShowOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||||
@@ -1231,12 +1315,12 @@ public class GetLibraryItemsMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||||
@@ -1949,6 +2033,8 @@ public class GetLibraryItemsMetadata {
|
|||||||
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
||||||
Objects.deepEquals(this.tagline, other.tagline) &&
|
Objects.deepEquals(this.tagline, other.tagline) &&
|
||||||
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
||||||
|
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
|
||||||
|
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
|
||||||
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
||||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||||
Objects.deepEquals(this.art, other.art) &&
|
Objects.deepEquals(this.art, other.art) &&
|
||||||
@@ -2028,6 +2114,8 @@ public class GetLibraryItemsMetadata {
|
|||||||
seasonCount,
|
seasonCount,
|
||||||
tagline,
|
tagline,
|
||||||
flattenSeasons,
|
flattenSeasons,
|
||||||
|
episodeSort,
|
||||||
|
enableCreditsMarkerGeneration,
|
||||||
showOrdering,
|
showOrdering,
|
||||||
thumb,
|
thumb,
|
||||||
art,
|
art,
|
||||||
@@ -2107,6 +2195,8 @@ public class GetLibraryItemsMetadata {
|
|||||||
"seasonCount", seasonCount,
|
"seasonCount", seasonCount,
|
||||||
"tagline", tagline,
|
"tagline", tagline,
|
||||||
"flattenSeasons", flattenSeasons,
|
"flattenSeasons", flattenSeasons,
|
||||||
|
"episodeSort", episodeSort,
|
||||||
|
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
|
||||||
"showOrdering", showOrdering,
|
"showOrdering", showOrdering,
|
||||||
"thumb", thumb,
|
"thumb", thumb,
|
||||||
"art", art,
|
"art", art,
|
||||||
@@ -2202,7 +2292,11 @@ public class GetLibraryItemsMetadata {
|
|||||||
|
|
||||||
private Optional<String> tagline = Optional.empty();
|
private Optional<String> tagline = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends GetLibraryItemsEpisodeSort> episodeSort = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering = Optional.empty();
|
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering = Optional.empty();
|
||||||
|
|
||||||
@@ -2507,12 +2601,18 @@ public class GetLibraryItemsMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public Builder flattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
public Builder flattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public Builder flattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
public Builder flattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
@@ -2520,12 +2620,48 @@ public class GetLibraryItemsMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public Builder episodeSort(GetLibraryItemsEpisodeSort episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public Builder episodeSort(Optional<? extends GetLibraryItemsEpisodeSort> episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public Builder enableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public Builder enableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder showOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
public Builder showOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||||
@@ -2535,12 +2671,12 @@ public class GetLibraryItemsMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder showOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
public Builder showOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||||
@@ -3225,9 +3361,7 @@ public class GetLibraryItemsMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GetLibraryItemsMetadata build() {
|
public GetLibraryItemsMetadata build() {
|
||||||
if (flattenSeasons == null) {
|
return new GetLibraryItemsMetadata(
|
||||||
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
|
|
||||||
} return new GetLibraryItemsMetadata(
|
|
||||||
ratingKey,
|
ratingKey,
|
||||||
key,
|
key,
|
||||||
guid,
|
guid,
|
||||||
@@ -3247,6 +3381,8 @@ public class GetLibraryItemsMetadata {
|
|||||||
seasonCount,
|
seasonCount,
|
||||||
tagline,
|
tagline,
|
||||||
flattenSeasons,
|
flattenSeasons,
|
||||||
|
episodeSort,
|
||||||
|
enableCreditsMarkerGeneration,
|
||||||
showOrdering,
|
showOrdering,
|
||||||
thumb,
|
thumb,
|
||||||
art,
|
art,
|
||||||
@@ -3303,12 +3439,6 @@ public class GetLibraryItemsMetadata {
|
|||||||
parentThumb,
|
parentThumb,
|
||||||
parentTheme);
|
parentTheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsFlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
|
||||||
new LazySingletonValue<>(
|
|
||||||
"flattenSeasons",
|
|
||||||
"\"0\"",
|
|
||||||
new TypeReference<Optional<? extends GetLibraryItemsFlattenSeasons>>() {});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,20 +10,20 @@ import java.util.Objects;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
|
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum GetLibraryItemsShowOrdering {
|
public enum GetLibraryItemsShowOrdering {
|
||||||
None("None"),
|
None("None"),
|
||||||
TmdbAiring("tmdbAiring"),
|
TmdbAiring("tmdbAiring"),
|
||||||
TvdbAiring("tvdbAiring"),
|
TvdbAired("aired"),
|
||||||
TvdbDvd("tvdbDvd"),
|
TvdbDvd("dvd"),
|
||||||
TvdbAbsolute("tvdbAbsolute");
|
TvdbAbsolute("absolute");
|
||||||
|
|
||||||
@JsonValue
|
@JsonValue
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
|
||||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
import java.lang.Double;
|
import java.lang.Double;
|
||||||
@@ -103,17 +101,34 @@ public class GetRecentlyAddedMetadata {
|
|||||||
@JsonProperty("tagline")
|
@JsonProperty("tagline")
|
||||||
private Optional<String> tagline;
|
private Optional<String> tagline;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("flattenSeasons")
|
@JsonProperty("flattenSeasons")
|
||||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("episodeSort")
|
||||||
|
private Optional<? extends EpisodeSort> episodeSort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("enableCreditsMarkerGeneration")
|
||||||
|
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@@ -374,6 +389,8 @@ public class GetRecentlyAddedMetadata {
|
|||||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||||
@JsonProperty("tagline") Optional<String> tagline,
|
@JsonProperty("tagline") Optional<String> tagline,
|
||||||
@JsonProperty("flattenSeasons") Optional<? extends FlattenSeasons> flattenSeasons,
|
@JsonProperty("flattenSeasons") Optional<? extends FlattenSeasons> flattenSeasons,
|
||||||
|
@JsonProperty("episodeSort") Optional<? extends EpisodeSort> episodeSort,
|
||||||
|
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
|
||||||
@JsonProperty("showOrdering") Optional<? extends ShowOrdering> showOrdering,
|
@JsonProperty("showOrdering") Optional<? extends ShowOrdering> showOrdering,
|
||||||
@JsonProperty("thumb") Optional<String> thumb,
|
@JsonProperty("thumb") Optional<String> thumb,
|
||||||
@JsonProperty("art") Optional<String> art,
|
@JsonProperty("art") Optional<String> art,
|
||||||
@@ -448,6 +465,8 @@ public class GetRecentlyAddedMetadata {
|
|||||||
Utils.checkNotNull(seasonCount, "seasonCount");
|
Utils.checkNotNull(seasonCount, "seasonCount");
|
||||||
Utils.checkNotNull(tagline, "tagline");
|
Utils.checkNotNull(tagline, "tagline");
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
Utils.checkNotNull(art, "art");
|
Utils.checkNotNull(art, "art");
|
||||||
@@ -522,6 +541,8 @@ public class GetRecentlyAddedMetadata {
|
|||||||
this.seasonCount = seasonCount;
|
this.seasonCount = seasonCount;
|
||||||
this.tagline = tagline;
|
this.tagline = tagline;
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
this.showOrdering = showOrdering;
|
this.showOrdering = showOrdering;
|
||||||
this.thumb = thumb;
|
this.thumb = thumb;
|
||||||
this.art = art;
|
this.art = art;
|
||||||
@@ -587,7 +608,7 @@ public class GetRecentlyAddedMetadata {
|
|||||||
String title,
|
String title,
|
||||||
String summary,
|
String summary,
|
||||||
long addedAt) {
|
long addedAt) {
|
||||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -689,6 +710,9 @@ public class GetRecentlyAddedMetadata {
|
|||||||
return tagline;
|
return tagline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<FlattenSeasons> flattenSeasons() {
|
public Optional<FlattenSeasons> flattenSeasons() {
|
||||||
@@ -696,12 +720,30 @@ public class GetRecentlyAddedMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<EpisodeSort> episodeSort() {
|
||||||
|
return (Optional<EpisodeSort>) episodeSort;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||||
|
return (Optional<EnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -1203,12 +1245,18 @@ public class GetRecentlyAddedMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public GetRecentlyAddedMetadata withFlattenSeasons(FlattenSeasons flattenSeasons) {
|
public GetRecentlyAddedMetadata withFlattenSeasons(FlattenSeasons flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public GetRecentlyAddedMetadata withFlattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
public GetRecentlyAddedMetadata withFlattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
@@ -1216,12 +1264,48 @@ public class GetRecentlyAddedMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public GetRecentlyAddedMetadata withEpisodeSort(EpisodeSort episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public GetRecentlyAddedMetadata withEpisodeSort(Optional<? extends EpisodeSort> episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public GetRecentlyAddedMetadata withEnableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public GetRecentlyAddedMetadata withEnableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetRecentlyAddedMetadata withShowOrdering(ShowOrdering showOrdering) {
|
public GetRecentlyAddedMetadata withShowOrdering(ShowOrdering showOrdering) {
|
||||||
@@ -1231,12 +1315,12 @@ public class GetRecentlyAddedMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetRecentlyAddedMetadata withShowOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
public GetRecentlyAddedMetadata withShowOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||||
@@ -1949,6 +2033,8 @@ public class GetRecentlyAddedMetadata {
|
|||||||
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
||||||
Objects.deepEquals(this.tagline, other.tagline) &&
|
Objects.deepEquals(this.tagline, other.tagline) &&
|
||||||
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
||||||
|
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
|
||||||
|
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
|
||||||
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
||||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||||
Objects.deepEquals(this.art, other.art) &&
|
Objects.deepEquals(this.art, other.art) &&
|
||||||
@@ -2028,6 +2114,8 @@ public class GetRecentlyAddedMetadata {
|
|||||||
seasonCount,
|
seasonCount,
|
||||||
tagline,
|
tagline,
|
||||||
flattenSeasons,
|
flattenSeasons,
|
||||||
|
episodeSort,
|
||||||
|
enableCreditsMarkerGeneration,
|
||||||
showOrdering,
|
showOrdering,
|
||||||
thumb,
|
thumb,
|
||||||
art,
|
art,
|
||||||
@@ -2107,6 +2195,8 @@ public class GetRecentlyAddedMetadata {
|
|||||||
"seasonCount", seasonCount,
|
"seasonCount", seasonCount,
|
||||||
"tagline", tagline,
|
"tagline", tagline,
|
||||||
"flattenSeasons", flattenSeasons,
|
"flattenSeasons", flattenSeasons,
|
||||||
|
"episodeSort", episodeSort,
|
||||||
|
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
|
||||||
"showOrdering", showOrdering,
|
"showOrdering", showOrdering,
|
||||||
"thumb", thumb,
|
"thumb", thumb,
|
||||||
"art", art,
|
"art", art,
|
||||||
@@ -2202,7 +2292,11 @@ public class GetRecentlyAddedMetadata {
|
|||||||
|
|
||||||
private Optional<String> tagline = Optional.empty();
|
private Optional<String> tagline = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
private Optional<? extends FlattenSeasons> flattenSeasons = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends EpisodeSort> episodeSort = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends ShowOrdering> showOrdering = Optional.empty();
|
private Optional<? extends ShowOrdering> showOrdering = Optional.empty();
|
||||||
|
|
||||||
@@ -2507,12 +2601,18 @@ public class GetRecentlyAddedMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public Builder flattenSeasons(FlattenSeasons flattenSeasons) {
|
public Builder flattenSeasons(FlattenSeasons flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public Builder flattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
public Builder flattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
@@ -2520,12 +2620,48 @@ public class GetRecentlyAddedMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public Builder episodeSort(EpisodeSort episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public Builder episodeSort(Optional<? extends EpisodeSort> episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public Builder enableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public Builder enableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder showOrdering(ShowOrdering showOrdering) {
|
public Builder showOrdering(ShowOrdering showOrdering) {
|
||||||
@@ -2535,12 +2671,12 @@ public class GetRecentlyAddedMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder showOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
public Builder showOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||||
@@ -3225,9 +3361,7 @@ public class GetRecentlyAddedMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GetRecentlyAddedMetadata build() {
|
public GetRecentlyAddedMetadata build() {
|
||||||
if (flattenSeasons == null) {
|
return new GetRecentlyAddedMetadata(
|
||||||
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
|
|
||||||
} return new GetRecentlyAddedMetadata(
|
|
||||||
ratingKey,
|
ratingKey,
|
||||||
key,
|
key,
|
||||||
guid,
|
guid,
|
||||||
@@ -3247,6 +3381,8 @@ public class GetRecentlyAddedMetadata {
|
|||||||
seasonCount,
|
seasonCount,
|
||||||
tagline,
|
tagline,
|
||||||
flattenSeasons,
|
flattenSeasons,
|
||||||
|
episodeSort,
|
||||||
|
enableCreditsMarkerGeneration,
|
||||||
showOrdering,
|
showOrdering,
|
||||||
thumb,
|
thumb,
|
||||||
art,
|
art,
|
||||||
@@ -3303,12 +3439,6 @@ public class GetRecentlyAddedMetadata {
|
|||||||
parentThumb,
|
parentThumb,
|
||||||
parentTheme);
|
parentTheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final LazySingletonValue<Optional<? extends FlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
|
||||||
new LazySingletonValue<>(
|
|
||||||
"flattenSeasons",
|
|
||||||
"\"0\"",
|
|
||||||
new TypeReference<Optional<? extends FlattenSeasons>>() {});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetSearchAllLibrariesEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public enum GetSearchAllLibrariesEnableCreditsMarkerGeneration {
|
||||||
|
LibraryDefault("-1"),
|
||||||
|
Disabled("0");
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetSearchAllLibrariesEnableCreditsMarkerGeneration(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration> fromValue(String value) {
|
||||||
|
for (GetSearchAllLibrariesEnableCreditsMarkerGeneration o: GetSearchAllLibrariesEnableCreditsMarkerGeneration.values()) {
|
||||||
|
if (Objects.deepEquals(o.value, value)) {
|
||||||
|
return Optional.of(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetSearchAllLibrariesEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public enum GetSearchAllLibrariesEpisodeSort {
|
||||||
|
LibraryDefault("-1"),
|
||||||
|
OldestFirst("0"),
|
||||||
|
NewestFirst("1");
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetSearchAllLibrariesEpisodeSort(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Optional<GetSearchAllLibrariesEpisodeSort> fromValue(String value) {
|
||||||
|
for (GetSearchAllLibrariesEpisodeSort o: GetSearchAllLibrariesEpisodeSort.values()) {
|
||||||
|
if (Objects.deepEquals(o.value, value)) {
|
||||||
|
return Optional.of(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,9 +9,13 @@ import java.lang.String;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetSearchAllLibrariesFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public enum GetSearchAllLibrariesFlattenSeasons {
|
public enum GetSearchAllLibrariesFlattenSeasons {
|
||||||
False("0"),
|
LibraryDefault("-1"),
|
||||||
True("1");
|
Hide("0"),
|
||||||
|
Show("1");
|
||||||
|
|
||||||
@JsonValue
|
@JsonValue
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
|
||||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
import java.lang.Double;
|
import java.lang.Double;
|
||||||
@@ -103,17 +101,34 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
@JsonProperty("tagline")
|
@JsonProperty("tagline")
|
||||||
private Optional<String> tagline;
|
private Optional<String> tagline;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("flattenSeasons")
|
@JsonProperty("flattenSeasons")
|
||||||
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
|
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("episodeSort")
|
||||||
|
private Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("enableCreditsMarkerGeneration")
|
||||||
|
private Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@@ -374,6 +389,8 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||||
@JsonProperty("tagline") Optional<String> tagline,
|
@JsonProperty("tagline") Optional<String> tagline,
|
||||||
@JsonProperty("flattenSeasons") Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons,
|
@JsonProperty("flattenSeasons") Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons,
|
||||||
|
@JsonProperty("episodeSort") Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort,
|
||||||
|
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
|
||||||
@JsonProperty("showOrdering") Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering,
|
@JsonProperty("showOrdering") Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering,
|
||||||
@JsonProperty("thumb") Optional<String> thumb,
|
@JsonProperty("thumb") Optional<String> thumb,
|
||||||
@JsonProperty("art") Optional<String> art,
|
@JsonProperty("art") Optional<String> art,
|
||||||
@@ -448,6 +465,8 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
Utils.checkNotNull(seasonCount, "seasonCount");
|
Utils.checkNotNull(seasonCount, "seasonCount");
|
||||||
Utils.checkNotNull(tagline, "tagline");
|
Utils.checkNotNull(tagline, "tagline");
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
Utils.checkNotNull(art, "art");
|
Utils.checkNotNull(art, "art");
|
||||||
@@ -522,6 +541,8 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
this.seasonCount = seasonCount;
|
this.seasonCount = seasonCount;
|
||||||
this.tagline = tagline;
|
this.tagline = tagline;
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
this.showOrdering = showOrdering;
|
this.showOrdering = showOrdering;
|
||||||
this.thumb = thumb;
|
this.thumb = thumb;
|
||||||
this.art = art;
|
this.art = art;
|
||||||
@@ -587,7 +608,7 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
String title,
|
String title,
|
||||||
String summary,
|
String summary,
|
||||||
long addedAt) {
|
long addedAt) {
|
||||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -689,6 +710,9 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
return tagline;
|
return tagline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<GetSearchAllLibrariesFlattenSeasons> flattenSeasons() {
|
public Optional<GetSearchAllLibrariesFlattenSeasons> flattenSeasons() {
|
||||||
@@ -696,12 +720,30 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetSearchAllLibrariesEpisodeSort> episodeSort() {
|
||||||
|
return (Optional<GetSearchAllLibrariesEpisodeSort>) episodeSort;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||||
|
return (Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -1203,12 +1245,18 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public GetSearchAllLibrariesMetadata withFlattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
|
public GetSearchAllLibrariesMetadata withFlattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public GetSearchAllLibrariesMetadata withFlattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
|
public GetSearchAllLibrariesMetadata withFlattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
@@ -1216,12 +1264,48 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public GetSearchAllLibrariesMetadata withEpisodeSort(GetSearchAllLibrariesEpisodeSort episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public GetSearchAllLibrariesMetadata withEpisodeSort(Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public GetSearchAllLibrariesMetadata withEnableCreditsMarkerGeneration(GetSearchAllLibrariesEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public GetSearchAllLibrariesMetadata withEnableCreditsMarkerGeneration(Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetSearchAllLibrariesMetadata withShowOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
public GetSearchAllLibrariesMetadata withShowOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||||
@@ -1231,12 +1315,12 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetSearchAllLibrariesMetadata withShowOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
public GetSearchAllLibrariesMetadata withShowOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||||
@@ -1949,6 +2033,8 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
||||||
Objects.deepEquals(this.tagline, other.tagline) &&
|
Objects.deepEquals(this.tagline, other.tagline) &&
|
||||||
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
||||||
|
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
|
||||||
|
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
|
||||||
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
||||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||||
Objects.deepEquals(this.art, other.art) &&
|
Objects.deepEquals(this.art, other.art) &&
|
||||||
@@ -2028,6 +2114,8 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
seasonCount,
|
seasonCount,
|
||||||
tagline,
|
tagline,
|
||||||
flattenSeasons,
|
flattenSeasons,
|
||||||
|
episodeSort,
|
||||||
|
enableCreditsMarkerGeneration,
|
||||||
showOrdering,
|
showOrdering,
|
||||||
thumb,
|
thumb,
|
||||||
art,
|
art,
|
||||||
@@ -2107,6 +2195,8 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
"seasonCount", seasonCount,
|
"seasonCount", seasonCount,
|
||||||
"tagline", tagline,
|
"tagline", tagline,
|
||||||
"flattenSeasons", flattenSeasons,
|
"flattenSeasons", flattenSeasons,
|
||||||
|
"episodeSort", episodeSort,
|
||||||
|
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
|
||||||
"showOrdering", showOrdering,
|
"showOrdering", showOrdering,
|
||||||
"thumb", thumb,
|
"thumb", thumb,
|
||||||
"art", art,
|
"art", art,
|
||||||
@@ -2202,7 +2292,11 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
|
|
||||||
private Optional<String> tagline = Optional.empty();
|
private Optional<String> tagline = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
|
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering = Optional.empty();
|
private Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering = Optional.empty();
|
||||||
|
|
||||||
@@ -2507,12 +2601,18 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public Builder flattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
|
public Builder flattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
*/
|
||||||
public Builder flattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
|
public Builder flattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
|
||||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||||
this.flattenSeasons = flattenSeasons;
|
this.flattenSeasons = flattenSeasons;
|
||||||
@@ -2520,12 +2620,48 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public Builder episodeSort(GetSearchAllLibrariesEpisodeSort episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
*/
|
||||||
|
public Builder episodeSort(Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort) {
|
||||||
|
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||||
|
this.episodeSort = episodeSort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public Builder enableCreditsMarkerGeneration(GetSearchAllLibrariesEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
*/
|
||||||
|
public Builder enableCreditsMarkerGeneration(Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||||
|
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||||
|
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder showOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
public Builder showOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||||
@@ -2535,12 +2671,12 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setting that indicates the episode ordering for the show
|
* Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder showOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
public Builder showOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||||
@@ -3225,9 +3361,7 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GetSearchAllLibrariesMetadata build() {
|
public GetSearchAllLibrariesMetadata build() {
|
||||||
if (flattenSeasons == null) {
|
return new GetSearchAllLibrariesMetadata(
|
||||||
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
|
|
||||||
} return new GetSearchAllLibrariesMetadata(
|
|
||||||
ratingKey,
|
ratingKey,
|
||||||
key,
|
key,
|
||||||
guid,
|
guid,
|
||||||
@@ -3247,6 +3381,8 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
seasonCount,
|
seasonCount,
|
||||||
tagline,
|
tagline,
|
||||||
flattenSeasons,
|
flattenSeasons,
|
||||||
|
episodeSort,
|
||||||
|
enableCreditsMarkerGeneration,
|
||||||
showOrdering,
|
showOrdering,
|
||||||
thumb,
|
thumb,
|
||||||
art,
|
art,
|
||||||
@@ -3303,12 +3439,6 @@ public class GetSearchAllLibrariesMetadata {
|
|||||||
parentThumb,
|
parentThumb,
|
||||||
parentTheme);
|
parentTheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final LazySingletonValue<Optional<? extends GetSearchAllLibrariesFlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
|
||||||
new LazySingletonValue<>(
|
|
||||||
"flattenSeasons",
|
|
||||||
"\"0\"",
|
|
||||||
new TypeReference<Optional<? extends GetSearchAllLibrariesFlattenSeasons>>() {});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,20 +10,20 @@ import java.util.Objects;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show
|
* GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show.
|
||||||
* None = Library default,
|
* None = Library default,
|
||||||
* tmdbAiring = The Movie Database (Aired),
|
* tmdbAiring = The Movie Database (Aired),
|
||||||
* tvdbAiring = TheTVDB (Aired),
|
* aired = TheTVDB (Aired),
|
||||||
* tvdbDvd = TheTVDB (DVD),
|
* dvd = TheTVDB (DVD),
|
||||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
* absolute = TheTVDB (Absolute)).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum GetSearchAllLibrariesShowOrdering {
|
public enum GetSearchAllLibrariesShowOrdering {
|
||||||
None("None"),
|
None("None"),
|
||||||
TmdbAiring("tmdbAiring"),
|
TmdbAiring("tmdbAiring"),
|
||||||
TvdbAiring("tvdbAiring"),
|
TvdbAired("aired"),
|
||||||
TvdbDvd("tvdbDvd"),
|
TvdbDvd("dvd"),
|
||||||
TvdbAbsolute("tvdbAbsolute");
|
TvdbAbsolute("absolute");
|
||||||
|
|
||||||
@JsonValue
|
@JsonValue
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|||||||
@@ -86,6 +86,13 @@ public class GetSessionsMetadata {
|
|||||||
@JsonProperty("musicAnalysisVersion")
|
@JsonProperty("musicAnalysisVersion")
|
||||||
private Optional<String> musicAnalysisVersion;
|
private Optional<String> musicAnalysisVersion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("originalTitle")
|
||||||
|
private Optional<String> originalTitle;
|
||||||
|
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("parentGuid")
|
@JsonProperty("parentGuid")
|
||||||
private Optional<String> parentGuid;
|
private Optional<String> parentGuid;
|
||||||
@@ -188,6 +195,7 @@ public class GetSessionsMetadata {
|
|||||||
@JsonProperty("librarySectionKey") Optional<String> librarySectionKey,
|
@JsonProperty("librarySectionKey") Optional<String> librarySectionKey,
|
||||||
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
|
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
|
||||||
@JsonProperty("musicAnalysisVersion") Optional<String> musicAnalysisVersion,
|
@JsonProperty("musicAnalysisVersion") Optional<String> musicAnalysisVersion,
|
||||||
|
@JsonProperty("originalTitle") Optional<String> originalTitle,
|
||||||
@JsonProperty("parentGuid") Optional<String> parentGuid,
|
@JsonProperty("parentGuid") Optional<String> parentGuid,
|
||||||
@JsonProperty("parentIndex") Optional<Integer> parentIndex,
|
@JsonProperty("parentIndex") Optional<Integer> parentIndex,
|
||||||
@JsonProperty("parentKey") Optional<String> parentKey,
|
@JsonProperty("parentKey") Optional<String> parentKey,
|
||||||
@@ -225,6 +233,7 @@ public class GetSessionsMetadata {
|
|||||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||||
Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion");
|
Utils.checkNotNull(musicAnalysisVersion, "musicAnalysisVersion");
|
||||||
|
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||||
Utils.checkNotNull(parentGuid, "parentGuid");
|
Utils.checkNotNull(parentGuid, "parentGuid");
|
||||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||||
Utils.checkNotNull(parentKey, "parentKey");
|
Utils.checkNotNull(parentKey, "parentKey");
|
||||||
@@ -262,6 +271,7 @@ public class GetSessionsMetadata {
|
|||||||
this.librarySectionKey = librarySectionKey;
|
this.librarySectionKey = librarySectionKey;
|
||||||
this.librarySectionTitle = librarySectionTitle;
|
this.librarySectionTitle = librarySectionTitle;
|
||||||
this.musicAnalysisVersion = musicAnalysisVersion;
|
this.musicAnalysisVersion = musicAnalysisVersion;
|
||||||
|
this.originalTitle = originalTitle;
|
||||||
this.parentGuid = parentGuid;
|
this.parentGuid = parentGuid;
|
||||||
this.parentIndex = parentIndex;
|
this.parentIndex = parentIndex;
|
||||||
this.parentKey = parentKey;
|
this.parentKey = parentKey;
|
||||||
@@ -286,7 +296,7 @@ public class GetSessionsMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GetSessionsMetadata() {
|
public GetSessionsMetadata() {
|
||||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@@ -369,6 +379,14 @@ public class GetSessionsMetadata {
|
|||||||
return musicAnalysisVersion;
|
return musicAnalysisVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> originalTitle() {
|
||||||
|
return originalTitle;
|
||||||
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> parentGuid() {
|
public Optional<String> parentGuid() {
|
||||||
return parentGuid;
|
return parentGuid;
|
||||||
@@ -674,6 +692,24 @@ public class GetSessionsMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist
|
||||||
|
*/
|
||||||
|
public GetSessionsMetadata withOriginalTitle(String originalTitle) {
|
||||||
|
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||||
|
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist
|
||||||
|
*/
|
||||||
|
public GetSessionsMetadata withOriginalTitle(Optional<String> originalTitle) {
|
||||||
|
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||||
|
this.originalTitle = originalTitle;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public GetSessionsMetadata withParentGuid(String parentGuid) {
|
public GetSessionsMetadata withParentGuid(String parentGuid) {
|
||||||
Utils.checkNotNull(parentGuid, "parentGuid");
|
Utils.checkNotNull(parentGuid, "parentGuid");
|
||||||
this.parentGuid = Optional.ofNullable(parentGuid);
|
this.parentGuid = Optional.ofNullable(parentGuid);
|
||||||
@@ -952,6 +988,7 @@ public class GetSessionsMetadata {
|
|||||||
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
|
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
|
||||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||||
Objects.deepEquals(this.musicAnalysisVersion, other.musicAnalysisVersion) &&
|
Objects.deepEquals(this.musicAnalysisVersion, other.musicAnalysisVersion) &&
|
||||||
|
Objects.deepEquals(this.originalTitle, other.originalTitle) &&
|
||||||
Objects.deepEquals(this.parentGuid, other.parentGuid) &&
|
Objects.deepEquals(this.parentGuid, other.parentGuid) &&
|
||||||
Objects.deepEquals(this.parentIndex, other.parentIndex) &&
|
Objects.deepEquals(this.parentIndex, other.parentIndex) &&
|
||||||
Objects.deepEquals(this.parentKey, other.parentKey) &&
|
Objects.deepEquals(this.parentKey, other.parentKey) &&
|
||||||
@@ -994,6 +1031,7 @@ public class GetSessionsMetadata {
|
|||||||
librarySectionKey,
|
librarySectionKey,
|
||||||
librarySectionTitle,
|
librarySectionTitle,
|
||||||
musicAnalysisVersion,
|
musicAnalysisVersion,
|
||||||
|
originalTitle,
|
||||||
parentGuid,
|
parentGuid,
|
||||||
parentIndex,
|
parentIndex,
|
||||||
parentKey,
|
parentKey,
|
||||||
@@ -1036,6 +1074,7 @@ public class GetSessionsMetadata {
|
|||||||
"librarySectionKey", librarySectionKey,
|
"librarySectionKey", librarySectionKey,
|
||||||
"librarySectionTitle", librarySectionTitle,
|
"librarySectionTitle", librarySectionTitle,
|
||||||
"musicAnalysisVersion", musicAnalysisVersion,
|
"musicAnalysisVersion", musicAnalysisVersion,
|
||||||
|
"originalTitle", originalTitle,
|
||||||
"parentGuid", parentGuid,
|
"parentGuid", parentGuid,
|
||||||
"parentIndex", parentIndex,
|
"parentIndex", parentIndex,
|
||||||
"parentKey", parentKey,
|
"parentKey", parentKey,
|
||||||
@@ -1093,6 +1132,8 @@ public class GetSessionsMetadata {
|
|||||||
|
|
||||||
private Optional<String> musicAnalysisVersion = Optional.empty();
|
private Optional<String> musicAnalysisVersion = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> originalTitle = Optional.empty();
|
||||||
|
|
||||||
private Optional<String> parentGuid = Optional.empty();
|
private Optional<String> parentGuid = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> parentIndex = Optional.empty();
|
private Optional<Integer> parentIndex = Optional.empty();
|
||||||
@@ -1331,6 +1372,24 @@ public class GetSessionsMetadata {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist
|
||||||
|
*/
|
||||||
|
public Builder originalTitle(String originalTitle) {
|
||||||
|
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||||
|
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist
|
||||||
|
*/
|
||||||
|
public Builder originalTitle(Optional<String> originalTitle) {
|
||||||
|
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||||
|
this.originalTitle = originalTitle;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Builder parentGuid(String parentGuid) {
|
public Builder parentGuid(String parentGuid) {
|
||||||
Utils.checkNotNull(parentGuid, "parentGuid");
|
Utils.checkNotNull(parentGuid, "parentGuid");
|
||||||
this.parentGuid = Optional.ofNullable(parentGuid);
|
this.parentGuid = Optional.ofNullable(parentGuid);
|
||||||
@@ -1601,6 +1660,7 @@ public class GetSessionsMetadata {
|
|||||||
librarySectionKey,
|
librarySectionKey,
|
||||||
librarySectionTitle,
|
librarySectionTitle,
|
||||||
musicAnalysisVersion,
|
musicAnalysisVersion,
|
||||||
|
originalTitle,
|
||||||
parentGuid,
|
parentGuid,
|
||||||
parentIndex,
|
parentIndex,
|
||||||
parentKey,
|
parentKey,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user