mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 20:47:45 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8194abfa99 |
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ generation:
|
||||
oAuth2ClientCredentialsEnabled: true
|
||||
oAuth2PasswordEnabled: false
|
||||
java:
|
||||
version: 0.13.0
|
||||
version: 0.13.1
|
||||
additionalDependencies: []
|
||||
additionalPlugins: []
|
||||
artifactID: plexapi
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.513.2
|
||||
speakeasyVersion: 1.513.4
|
||||
sources:
|
||||
my-source:
|
||||
sourceNamespace: my-source
|
||||
@@ -8,19 +8,19 @@ sources:
|
||||
- latest
|
||||
plexapi:
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
|
||||
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
|
||||
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
|
||||
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
|
||||
tags:
|
||||
- latest
|
||||
- speakeasy-sdk-regen-1741307253
|
||||
- speakeasy-sdk-regen-1741479884
|
||||
targets:
|
||||
plexjava:
|
||||
source: plexapi
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
|
||||
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
|
||||
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
|
||||
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
|
||||
codeSamplesNamespace: code-samples-java-plexjava
|
||||
codeSamplesRevisionDigest: sha256:867c2c5221857129302871ef35dc9c448a467474c29768830e2d291749d164c1
|
||||
codeSamplesRevisionDigest: sha256:4064f5ad7cfcedb8f9c65f1154bc2cdf5c92ebf8c60ba752d5537bb5692305e7
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: latest
|
||||
|
||||
@@ -69,7 +69,7 @@ The samples below show how a published SDK artifact is used:
|
||||
|
||||
Gradle:
|
||||
```groovy
|
||||
implementation 'dev.plexapi:plexapi:0.13.0'
|
||||
implementation 'dev.plexapi:plexapi:0.13.1'
|
||||
```
|
||||
|
||||
Maven:
|
||||
@@ -77,7 +77,7 @@ Maven:
|
||||
<dependency>
|
||||
<groupId>dev.plexapi</groupId>
|
||||
<artifactId>plexapi</artifactId>
|
||||
<version>0.13.0</version>
|
||||
<version>0.13.1</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
@@ -179,7 +179,6 @@ public class Application {
|
||||
* [getMediaMetaData](docs/sdks/library/README.md#getmediametadata) - Get Media Metadata
|
||||
* [getMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
||||
* [getTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
||||
* [getOnDeck](docs/sdks/library/README.md#getondeck) - Get On Deck
|
||||
|
||||
### [log()](docs/sdks/log/README.md)
|
||||
|
||||
|
||||
10
RELEASES.md
10
RELEASES.md
@@ -269,3 +269,13 @@ Based on:
|
||||
- [java v0.13.0] .
|
||||
### Releases
|
||||
- [Maven Central v0.13.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.13.0 - .
|
||||
|
||||
## 2025-03-09 00:24:27
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.513.4 (2.545.4) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [java v0.13.1] .
|
||||
### Releases
|
||||
- [Maven Central v0.13.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.13.1 - .
|
||||
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
|
||||
}
|
||||
|
||||
group = "dev.plexapi"
|
||||
version = "0.13.0"
|
||||
version = "0.13.1"
|
||||
|
||||
sourcesJar {
|
||||
archiveBaseName = "plexapi"
|
||||
@@ -101,7 +101,7 @@ publishing {
|
||||
maven(MavenPublication) {
|
||||
groupId = 'dev.plexapi'
|
||||
artifactId = 'plexapi'
|
||||
version = '0.13.0'
|
||||
version = '0.13.1'
|
||||
|
||||
from components.java
|
||||
|
||||
|
||||
@@ -1000,36 +1000,6 @@ actions:
|
||||
}
|
||||
}
|
||||
}
|
||||
- target: $["paths"]["/library/onDeck"]["get"]
|
||||
update:
|
||||
x-codeSamples:
|
||||
- lang: java
|
||||
label: getOnDeck
|
||||
source: |-
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.plexapi.PlexAPI;
|
||||
import dev.plexapi.plexapi.models.errors.GetOnDeckBadRequest;
|
||||
import dev.plexapi.plexapi.models.errors.GetOnDeckUnauthorized;
|
||||
import dev.plexapi.plexapi.models.operations.GetOnDeckResponse;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) throws GetOnDeckBadRequest, GetOnDeckUnauthorized, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.build();
|
||||
|
||||
GetOnDeckResponse res = sdk.library().getOnDeck()
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
// handle response
|
||||
}
|
||||
}
|
||||
}
|
||||
- target: $["paths"]["/library/recentlyAdded"]["get"]
|
||||
update:
|
||||
x-codeSamples:
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# GetOnDeckBadRequest
|
||||
|
||||
Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `errors` | List\<[GetOnDeckErrors](../../models/errors/GetOnDeckErrors.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 |
|
||||
@@ -1,10 +0,0 @@
|
||||
# GetOnDeckErrors
|
||||
|
||||
|
||||
## 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 |
|
||||
@@ -1,10 +0,0 @@
|
||||
# GetOnDeckLibraryErrors
|
||||
|
||||
|
||||
## 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 |
|
||||
@@ -1,11 +0,0 @@
|
||||
# GetOnDeckUnauthorized
|
||||
|
||||
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `errors` | List\<[GetOnDeckLibraryErrors](../../models/errors/GetOnDeckLibraryErrors.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 |
|
||||
@@ -4,5 +4,5 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
|
||||
| `tag` | *Optional\<String>* | :heavy_minus_sign: | N/A | Working NL Subs |
|
||||
| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
|
||||
| `tag` | *String* | :heavy_check_mark: | The user-made collection this media item belongs to | My Awesome Collection |
|
||||
@@ -1,8 +1,12 @@
|
||||
# Country
|
||||
|
||||
The filter query string for country media items.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ |
|
||||
| `tag` | *Optional\<String>* | :heavy_minus_sign: | N/A | United States of America |
|
||||
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | N/A | 259 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The country of origin of this media item | United States of America |
|
||||
| `filter` | *Optional\<String>* | :heavy_minus_sign: | N/A | country=19 |
|
||||
@@ -4,5 +4,5 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
|
||||
| `tag` | *Optional\<String>* | :heavy_minus_sign: | N/A | James Cameron |
|
||||
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||
| `tag` | *String* | :heavy_check_mark: | The role of Director | Danny Boyle |
|
||||
@@ -1,8 +1,12 @@
|
||||
# Genre
|
||||
|
||||
The filter query string for similar items.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
|
||||
| `tag` | *Optional\<String>* | :heavy_minus_sign: | N/A | Adventure |
|
||||
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | N/A | 259 |
|
||||
| `filter` | *String* | :heavy_check_mark: | N/A | genre=19 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The genre name of this media-item<br/> | Crime |
|
||||
@@ -4,5 +4,5 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
||||
| `tag` | *String* | :heavy_check_mark: | The country of origin of this media item | United States of America |
|
||||
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||
| `tag` | *String* | :heavy_check_mark: | The genre name of this media-item<br/> | Crime |
|
||||
8
docs/models/operations/GetAllMediaLibraryGuids.md
Normal file
8
docs/models/operations/GetAllMediaLibraryGuids.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# GetAllMediaLibraryGuids
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `id` | *Optional\<String>* | :heavy_minus_sign: | The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337<br/> | tvdb://2337 |
|
||||
@@ -19,8 +19,8 @@
|
||||
| `container` | *Optional\<String>* | :heavy_minus_sign: | File container type. | mkv |
|
||||
| `videoFrameRate` | *Optional\<String>* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p<br/> | 24p |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 |
|
||||
| `hasVoiceActivity` | *boolean* | :heavy_check_mark: | Indicates whether voice activity is detected. | false |
|
||||
| `hasVoiceActivity` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether voice activity is detected. | false |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
||||
| `optimizedForStreaming` | [Optional\<GetAllMediaLibraryOptimizedForStreaming>](../../models/operations/GetAllMediaLibraryOptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
||||
| `has64bitOffsets` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `part` | List\<[GetAllMediaLibraryPart](../../models/operations/GetAllMediaLibraryPart.md)> | :heavy_check_mark: | An array of parts for this media item. | |
|
||||
| `part` | List\<[GetAllMediaLibraryPart](../../models/operations/GetAllMediaLibraryPart.md)> | :heavy_minus_sign: | An array of parts for this media item. | |
|
||||
@@ -20,7 +20,7 @@ Unknown
|
||||
| `summary` | *String* | :heavy_check_mark: | A synopsis of the media item. | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.<br/>Once a familiar threat returns to finish what was previously started, Jake must<br/>work with Neytiri and the army of the Na'vi race to protect their home.<br/> |
|
||||
| `rating` | *float* | :heavy_check_mark: | The critic rating for the media item. | 7.6 |
|
||||
| `audienceRating` | *double* | :heavy_check_mark: | The audience rating for the media item. | 9.2 |
|
||||
| `year` | *int* | :heavy_check_mark: | The release year of the media item. | 2022 |
|
||||
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | The release year of the media item. | 2022 |
|
||||
| `tagline` | *String* | :heavy_check_mark: | A brief tagline for the media item. | Return to Pandora. |
|
||||
| `thumb` | *String* | :heavy_check_mark: | The thumbnail image URL for the media item. | /library/metadata/58683/thumb/1703239236 |
|
||||
| `art` | *String* | :heavy_check_mark: | The art image URL for the media item. | /library/metadata/58683/art/1703239236 |
|
||||
@@ -70,5 +70,5 @@ Unknown
|
||||
| `director` | List\<[GetAllMediaLibraryDirector](../../models/operations/GetAllMediaLibraryDirector.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `writer` | List\<[GetAllMediaLibraryWriter](../../models/operations/GetAllMediaLibraryWriter.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `role` | List\<[GetAllMediaLibraryRole](../../models/operations/GetAllMediaLibraryRole.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `guids` | List\<[Guids](../../models/operations/Guids.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `guids` | List\<[GetAllMediaLibraryGuids](../../models/operations/GetAllMediaLibraryGuids.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `collection` | List\<[GetAllMediaLibraryCollection](../../models/operations/GetAllMediaLibraryCollection.md)> | :heavy_minus_sign: | N/A | |
|
||||
@@ -4,5 +4,5 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
||||
| `tag` | *String* | :heavy_check_mark: | The name of the actor for this role | Danny Boyle |
|
||||
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
||||
| `tag` | *String* | :heavy_check_mark: | The display tag for the actor (typically the actor's name). | Teller |
|
||||
@@ -11,9 +11,9 @@
|
||||
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
||||
| `index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
||||
| `language` | *String* | :heavy_check_mark: | Language of the stream. | English |
|
||||
| `languageTag` | *String* | :heavy_check_mark: | Language tag (e.g., en). | en |
|
||||
| `languageCode` | *String* | :heavy_check_mark: | ISO language code. | eng |
|
||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
||||
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | ISO language code. | eng |
|
||||
| `headerCompression` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
||||
| `doviblCompatID` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
||||
| `doviblPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
||||
@@ -28,6 +28,7 @@
|
||||
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
||||
| `codedHeight` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video height. | 1608 |
|
||||
| `codedWidth` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video width. | 3840 |
|
||||
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
||||
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
||||
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
||||
@@ -39,6 +40,7 @@
|
||||
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `profile` | *Optional\<String>* | :heavy_minus_sign: | Video profile. | main 10 |
|
||||
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||
| `refFrames` | *Optional\<Integer>* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
||||
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
||||
| `displayTitle` | *String* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||
| `tag` | *String* | :heavy_check_mark: | The role of Writer | Danny Boyle |
|
||||
| `tag` | *String* | :heavy_check_mark: | The role of Writer | Jamie P. Hanson |
|
||||
@@ -1,11 +0,0 @@
|
||||
# GetLibraryItemsEnableCreditsMarkerGeneration
|
||||
|
||||
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ---------------- | ---------------- |
|
||||
| `LibraryDefault` | -1 |
|
||||
| `Disabled` | 0 |
|
||||
@@ -1,12 +0,0 @@
|
||||
# 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,12 +0,0 @@
|
||||
# GetLibraryItemsFlattenSeasons
|
||||
|
||||
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ---------------- | ---------------- |
|
||||
| `LibraryDefault` | -1 |
|
||||
| `Hide` | 0 |
|
||||
| `Show` | 1 |
|
||||
@@ -1,8 +0,0 @@
|
||||
# GetLibraryItemsMediaGuid
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||
| `id` | *String* | :heavy_check_mark: | Can be one of the following formats:<br/>imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/> | imdb://tt13015952 |
|
||||
@@ -1,10 +0,0 @@
|
||||
# GetLibraryItemsMetaDataRating
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
|
||||
| `image` | *String* | :heavy_check_mark: | A URI or path to the rating image. | themoviedb://image.rating |
|
||||
| `value` | *float* | :heavy_check_mark: | The value of the rating. | 3 |
|
||||
| `type` | *String* | :heavy_check_mark: | The type of rating (e.g., audience, critic). | audience |
|
||||
@@ -23,10 +23,10 @@
|
||||
| `year` | *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. |
|
||||
| `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 |
|
||||
| `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 |
|
||||
| `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 |
|
||||
| `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 |
|
||||
| `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 |
|
||||
@@ -55,9 +55,9 @@
|
||||
| `collection` | List\<[GetLibraryItemsCollection](../../models/operations/GetLibraryItemsCollection.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `role` | List\<[GetLibraryItemsRole](../../models/operations/GetLibraryItemsRole.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `location` | List\<[GetLibraryItemsLocation](../../models/operations/GetLibraryItemsLocation.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `mediaGuid` | List\<[GetLibraryItemsMediaGuid](../../models/operations/GetLibraryItemsMediaGuid.md)> | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||
| `mediaGuid` | List\<[MediaGuid](../../models/operations/MediaGuid.md)> | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||
| `ultraBlurColors` | [Optional\<GetLibraryItemsUltraBlurColors>](../../models/operations/GetLibraryItemsUltraBlurColors.md) | :heavy_minus_sign: | N/A | |
|
||||
| `metaDataRating` | List\<[GetLibraryItemsMetaDataRating](../../models/operations/GetLibraryItemsMetaDataRating.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `metaDataRating` | List\<[MetaDataRating](../../models/operations/MetaDataRating.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `image` | List\<[GetLibraryItemsImage](../../models/operations/GetLibraryItemsImage.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `titleSort` | *Optional\<String>* | :heavy_minus_sign: | N/A | Whale |
|
||||
| `viewCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
# GetLibraryItemsShowOrdering
|
||||
|
||||
Setting that indicates the episode ordering for the show.
|
||||
None = Library default,
|
||||
tmdbAiring = The Movie Database (Aired),
|
||||
aired = TheTVDB (Aired),
|
||||
dvd = TheTVDB (DVD),
|
||||
absolute = TheTVDB (Absolute)).
|
||||
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| -------------- | -------------- |
|
||||
| `None` | None |
|
||||
| `TmdbAiring` | tmdbAiring |
|
||||
| `TvdbAired` | aired |
|
||||
| `TvdbDvd` | dvd |
|
||||
| `TvdbAbsolute` | absolute |
|
||||
@@ -19,8 +19,8 @@
|
||||
| `container` | *Optional\<String>* | :heavy_minus_sign: | File container type. | mkv |
|
||||
| `videoFrameRate` | *Optional\<String>* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p<br/> | 24p |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 |
|
||||
| `hasVoiceActivity` | *boolean* | :heavy_check_mark: | Indicates whether voice activity is detected. | false |
|
||||
| `hasVoiceActivity` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether voice activity is detected. | false |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
||||
| `optimizedForStreaming` | [Optional\<GetMediaMetaDataOptimizedForStreaming>](../../models/operations/GetMediaMetaDataOptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
||||
| `has64bitOffsets` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `part` | List\<[GetMediaMetaDataPart](../../models/operations/GetMediaMetaDataPart.md)> | :heavy_check_mark: | An array of parts for this media item. | |
|
||||
| `part` | List\<[GetMediaMetaDataPart](../../models/operations/GetMediaMetaDataPart.md)> | :heavy_minus_sign: | An array of parts for this media item. | |
|
||||
@@ -63,6 +63,6 @@
|
||||
| `role` | List\<[GetMediaMetaDataRole](../../models/operations/GetMediaMetaDataRole.md)> | :heavy_minus_sign: | An array of Actor roles. | |
|
||||
| `director` | List\<[GetMediaMetaDataDirector](../../models/operations/GetMediaMetaDataDirector.md)> | :heavy_minus_sign: | An array of Director roles. | |
|
||||
| `writer` | List\<[GetMediaMetaDataWriter](../../models/operations/GetMediaMetaDataWriter.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
||||
| `producer` | List\<[Producer](../../models/operations/Producer.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
||||
| `similar` | List\<[Similar](../../models/operations/Similar.md)> | :heavy_minus_sign: | An array of similar content objects. | |
|
||||
| `producer` | List\<[GetMediaMetaDataProducer](../../models/operations/GetMediaMetaDataProducer.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
||||
| `similar` | List\<[GetMediaMetaDataSimilar](../../models/operations/GetMediaMetaDataSimilar.md)> | :heavy_minus_sign: | An array of similar content objects. | |
|
||||
| `location` | List\<[GetMediaMetaDataLocation](../../models/operations/GetMediaMetaDataLocation.md)> | :heavy_minus_sign: | An array of location objects. | |
|
||||
@@ -0,0 +1,9 @@
|
||||
# GetMediaMetaDataOptimizedForStreamingLibrary1
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `ZERO` | 0 |
|
||||
| `ONE` | 1 |
|
||||
13
docs/models/operations/GetMediaMetaDataProducer.md
Normal file
13
docs/models/operations/GetMediaMetaDataProducer.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# GetMediaMetaDataProducer
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | The unique role identifier. | 109501 |
|
||||
| `filter` | *String* | :heavy_check_mark: | The filter string for the role. | actor=109501 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The actor's name. | Bob Odenkirk |
|
||||
| `tagKey` | *String* | :heavy_check_mark: | A key associated with the actor tag. | 5d77683254f42c001f8c3f69 |
|
||||
| `role` | *Optional\<String>* | :heavy_minus_sign: | The character name or role. | Jimmy McGill |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | URL for the role thumbnail image. | https://metadata-static.plex.tv/f/people/f2ca7b474cc984efbdd5c503a096285a.jpg |
|
||||
10
docs/models/operations/GetMediaMetaDataSimilar.md
Normal file
10
docs/models/operations/GetMediaMetaDataSimilar.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# GetMediaMetaDataSimilar
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | The unique similar item identifier. | 26 |
|
||||
| `filter` | *String* | :heavy_check_mark: | The filter string for similar items. | similar=26 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The tag or title of the similar content. | Breaking Bad |
|
||||
@@ -11,9 +11,9 @@
|
||||
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
||||
| `index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
||||
| `language` | *String* | :heavy_check_mark: | Language of the stream. | English |
|
||||
| `languageTag` | *String* | :heavy_check_mark: | Language tag (e.g., en). | en |
|
||||
| `languageCode` | *String* | :heavy_check_mark: | ISO language code. | eng |
|
||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
||||
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | ISO language code. | eng |
|
||||
| `headerCompression` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
||||
| `doviblCompatID` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
||||
| `doviblPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
||||
@@ -28,6 +28,7 @@
|
||||
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
||||
| `codedHeight` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video height. | 1608 |
|
||||
| `codedWidth` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video width. | 3840 |
|
||||
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
||||
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
||||
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
||||
@@ -39,6 +40,7 @@
|
||||
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `profile` | *Optional\<String>* | :heavy_minus_sign: | Video profile. | main 10 |
|
||||
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||
| `refFrames` | *Optional\<Integer>* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
||||
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
||||
| `displayTitle` | *String* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
# GetOnDeckGuids
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
|
||||
| `id` | *Optional\<String>* | :heavy_minus_sign: | N/A | imdb://tt13303712 |
|
||||
@@ -1,22 +0,0 @@
|
||||
# GetOnDeckMedia
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
|
||||
| `id` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 80994 |
|
||||
| `duration` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 420080 |
|
||||
| `bitrate` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1046 |
|
||||
| `width` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1920 |
|
||||
| `height` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1080 |
|
||||
| `aspectRatio` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1.78 |
|
||||
| `audioChannels` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 2 |
|
||||
| `audioCodec` | *Optional\<String>* | :heavy_minus_sign: | N/A | aac |
|
||||
| `videoCodec` | *Optional\<String>* | :heavy_minus_sign: | N/A | hevc |
|
||||
| `videoResolution` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1080 |
|
||||
| `container` | *Optional\<String>* | :heavy_minus_sign: | N/A | mkv |
|
||||
| `videoFrameRate` | *Optional\<String>* | :heavy_minus_sign: | N/A | PAL |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | lc |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | main |
|
||||
| `part` | List\<[GetOnDeckPart](../../models/operations/GetOnDeckPart.md)> | :heavy_minus_sign: | N/A | |
|
||||
@@ -1,14 +0,0 @@
|
||||
# GetOnDeckMediaContainer
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
|
||||
| `size` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 16 |
|
||||
| `allowSync` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | |
|
||||
| `identifier` | *Optional\<String>* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library |
|
||||
| `mediaTagPrefix` | *Optional\<String>* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ |
|
||||
| `mediaTagVersion` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1680021154 |
|
||||
| `mixedParents` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | |
|
||||
| `metadata` | List\<[GetOnDeckMetadata](../../models/operations/GetOnDeckMetadata.md)> | :heavy_minus_sign: | N/A | |
|
||||
@@ -1,43 +0,0 @@
|
||||
# GetOnDeckMetadata
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `allowSync` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | |
|
||||
| `librarySectionID` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 2 |
|
||||
| `librarySectionTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | TV Shows |
|
||||
| `librarySectionUUID` | *Optional\<String>* | :heavy_minus_sign: | N/A | 4bb2521c-8ba9-459b-aaee-8ab8bc35eabd |
|
||||
| `ratingKey` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 49564 |
|
||||
| `key` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49564 |
|
||||
| `parentRatingKey` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 49557 |
|
||||
| `grandparentRatingKey` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 49556 |
|
||||
| `guid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://episode/5ea7d7402e7ab10042e74d4f |
|
||||
| `parentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://season/602e754d67f4c8002ce54b3d |
|
||||
| `grandparentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://show/5d9c090e705e7a001e6e94d8 |
|
||||
| `type` | *Optional\<String>* | :heavy_minus_sign: | N/A | episode |
|
||||
| `title` | *Optional\<String>* | :heavy_minus_sign: | N/A | Circus |
|
||||
| `grandparentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49556 |
|
||||
| `parentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49557 |
|
||||
| `librarySectionKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/sections/2 |
|
||||
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Bluey (2018) |
|
||||
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Season 2 |
|
||||
| `contentRating` | *Optional\<String>* | :heavy_minus_sign: | N/A | TV-Y |
|
||||
| `summary` | *Optional\<String>* | :heavy_minus_sign: | N/A | Bluey is the ringmaster in a game of circus with her friends but Hercules wants to play his motorcycle game instead. Luckily Bluey has a solution to keep everyone happy. |
|
||||
| `index` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 33 |
|
||||
| `parentIndex` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 2 |
|
||||
| `lastViewedAt` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1681908352 |
|
||||
| `year` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 2018 |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49564/thumb/1654258204 |
|
||||
| `art` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49556/art/1680939546 |
|
||||
| `parentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49557/thumb/1654258204 |
|
||||
| `grandparentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49556/thumb/1680939546 |
|
||||
| `grandparentArt` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49556/art/1680939546 |
|
||||
| `grandparentTheme` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/49556/theme/1680939546 |
|
||||
| `duration` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 420080 |
|
||||
| `originallyAvailableAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2020-10-31 00:00:00 +0000 UTC |
|
||||
| `addedAt` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1654258196 |
|
||||
| `updatedAt` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1654258204 |
|
||||
| `media` | List\<[GetOnDeckMedia](../../models/operations/GetOnDeckMedia.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `guids` | List\<[GetOnDeckGuids](../../models/operations/GetOnDeckGuids.md)> | :heavy_minus_sign: | N/A | |
|
||||
@@ -1,16 +0,0 @@
|
||||
# GetOnDeckPart
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `id` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 80994 |
|
||||
| `key` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/parts/80994/1655007810/file.mkv |
|
||||
| `duration` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 420080 |
|
||||
| `file` | *Optional\<String>* | :heavy_minus_sign: | N/A | /tvshows/Bluey (2018)/Bluey (2018) - S02E33 - Circus.mkv |
|
||||
| `size` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 55148931 |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | lc |
|
||||
| `container` | *Optional\<String>* | :heavy_minus_sign: | N/A | mkv |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | main |
|
||||
| `stream` | List\<[GetOnDeckStream](../../models/operations/GetOnDeckStream.md)> | :heavy_minus_sign: | N/A | |
|
||||
@@ -1,11 +0,0 @@
|
||||
# GetOnDeckResponse
|
||||
|
||||
|
||||
## 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\<GetOnDeckResponseBody>](../../models/operations/GetOnDeckResponseBody.md) | :heavy_minus_sign: | The on Deck content |
|
||||
@@ -1,10 +0,0 @@
|
||||
# GetOnDeckResponseBody
|
||||
|
||||
The on Deck content
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `mediaContainer` | [Optional\<GetOnDeckMediaContainer>](../../models/operations/GetOnDeckMediaContainer.md) | :heavy_minus_sign: | N/A |
|
||||
@@ -1,30 +0,0 @@
|
||||
# GetOnDeckStream
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- |
|
||||
| `id` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 211234 |
|
||||
| `streamType` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | |
|
||||
| `codec` | *Optional\<String>* | :heavy_minus_sign: | N/A | hevc |
|
||||
| `index` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 0 |
|
||||
| `bitrate` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 918 |
|
||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | N/A | English |
|
||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | N/A | en |
|
||||
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | N/A | eng |
|
||||
| `bitDepth` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 8 |
|
||||
| `chromaLocation` | *Optional\<String>* | :heavy_minus_sign: | N/A | left |
|
||||
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | N/A | 4:2:0 |
|
||||
| `codedHeight` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1080 |
|
||||
| `codedWidth` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1920 |
|
||||
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | N/A | tv |
|
||||
| `frameRate` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 25 |
|
||||
| `height` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1080 |
|
||||
| `level` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 120 |
|
||||
| `profile` | *Optional\<String>* | :heavy_minus_sign: | N/A | main |
|
||||
| `refFrames` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `width` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1920 |
|
||||
| `displayTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1080p (HEVC Main) |
|
||||
| `extendedDisplayTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1080p (HEVC Main) |
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
|
||||
| `size` | *long* | :heavy_check_mark: | N/A | 50 |
|
||||
| `offset` | *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 |
|
||||
| `allowSync` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `size` | *int* | :heavy_check_mark: | Number of media items returned in this response. | 50 |
|
||||
| `totalSize` | *int* | :heavy_check_mark: | Total number of media items in the library. | 50 |
|
||||
| `offset` | *long* | :heavy_check_mark: | Offset value for pagination. | 0 |
|
||||
| `allowSync` | *boolean* | :heavy_check_mark: | Indicates whether syncing is allowed. | false |
|
||||
| `identifier` | *String* | :heavy_check_mark: | An plugin identifier for the media container. | com.plexapp.plugins.library |
|
||||
| `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: | An array of metadata items. | |
|
||||
@@ -1,83 +1,85 @@
|
||||
# GetRecentlyAddedMetadata
|
||||
|
||||
Unknown
|
||||
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `ratingKey` | *String* | :heavy_check_mark: | The rating key (Media ID) of this media item.<br/>Note: This is always an integer, but is represented as a string in the API.<br/> | 58683 |
|
||||
| `key` | *String* | :heavy_check_mark: | N/A | /library/metadata/58683 |
|
||||
| `guid` | *String* | :heavy_check_mark: | N/A | plex://movie/5d7768ba96b655001fdc0408 |
|
||||
| `studio` | *Optional\<String>* | :heavy_minus_sign: | N/A | 20th Century Studios |
|
||||
| `skipChildren` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `librarySectionID` | *Optional\<Long>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `librarySectionTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Movies |
|
||||
| `librarySectionKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/sections/1 |
|
||||
| `type` | [GetRecentlyAddedHubsType](../../models/operations/GetRecentlyAddedHubsType.md) | :heavy_check_mark: | The type of media content<br/> | movie |
|
||||
| `title` | *String* | :heavy_check_mark: | N/A | Avatar: The Way of Water |
|
||||
| `slug` | *Optional\<String>* | :heavy_minus_sign: | N/A | 4-for-texas |
|
||||
| `contentRating` | *Optional\<String>* | :heavy_minus_sign: | N/A | PG-13 |
|
||||
| `summary` | *String* | :heavy_check_mark: | N/A | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home. |
|
||||
| `rating` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 7.6 |
|
||||
| `audienceRating` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 9.2 |
|
||||
| `year` | *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. |
|
||||
| `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 |
|
||||
| `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 |
|
||||
| `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 |
|
||||
| `duration` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 11558112 |
|
||||
| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC |
|
||||
| `addedAt` | *long* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `addedAt` | *long* | :heavy_check_mark: | N/A | 1556281940 |
|
||||
| `art` | *String* | :heavy_check_mark: | The art image URL for the media item. | /library/metadata/58683/art/1703239236 |
|
||||
| `audienceRatingImage` | *Optional\<String>* | :heavy_minus_sign: | The URL for the audience rating image. | rottentomatoes://image.rating.upright |
|
||||
| `audienceRating` | *double* | :heavy_check_mark: | The audience rating for the media item. | 9.2 |
|
||||
| `chapterSource` | *Optional\<String>* | :heavy_minus_sign: | The source from which chapter data is derived. | media |
|
||||
| `childCount` | *int* | :heavy_check_mark: | The number of child items associated with this media item. | 1 |
|
||||
| `contentRating` | *Optional\<String>* | :heavy_minus_sign: | The content rating for the media item. | PG-13 |
|
||||
| `createdAtAccuracy` | *Optional\<String>* | :heavy_minus_sign: | The accuracy of the creation timestamp. This value indicates the format(s) provided (for example, 'epoch,local' means both epoch and local time formats are available). | epoch,local |
|
||||
| `createdAtTZOffset` | *Optional\<String>* | :heavy_minus_sign: | The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC. | 0 |
|
||||
| `duration` | *int* | :heavy_check_mark: | The duration of the media item in milliseconds. | 11558112 |
|
||||
| `grandparentArt` | *Optional\<String>* | :heavy_minus_sign: | The art URL for the grandparent media item. | /library/metadata/66/art/1705716261 |
|
||||
| `grandparentGuid` | *Optional\<String>* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 |
|
||||
| `grandparentKey` | *Optional\<String>* | :heavy_minus_sign: | The key of the grandparent media item. | /library/metadata/66 |
|
||||
| `grandparentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | The rating key of the grandparent media item. | 66 |
|
||||
| `grandparentSlug` | *Optional\<String>* | :heavy_minus_sign: | The slug for the grandparent media item. | alice-in-borderland-2020 |
|
||||
| `grandparentTheme` | *Optional\<String>* | :heavy_minus_sign: | The theme URL for the grandparent media item. | /library/metadata/66/theme/1705716261 |
|
||||
| `grandparentThumb` | *Optional\<String>* | :heavy_minus_sign: | The thumbnail URL for the grandparent media item. | /library/metadata/66/thumb/1705716261 |
|
||||
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | The title of the grandparent media item. | Caprica |
|
||||
| `guid` | *String* | :heavy_check_mark: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 |
|
||||
| `index` | *int* | :heavy_check_mark: | The index position of the media item. | 1 |
|
||||
| `key` | *String* | :heavy_check_mark: | The unique key for the media item. | /library/metadata/58683 |
|
||||
| `lastRatedAt` | *Optional\<Long>* | :heavy_minus_sign: | The Unix timestamp representing the last time the item was rated. | 1721813113 |
|
||||
| `lastViewedAt` | *Optional\<Integer>* | :heavy_minus_sign: | Unix timestamp for when the media item was last viewed. | 1682752242 |
|
||||
| `leafCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of leaf items (end nodes) under this media item. | 14 |
|
||||
| `librarySectionID` | *long* | :heavy_check_mark: | The identifier for the library section. | 1 |
|
||||
| `librarySectionKey` | *String* | :heavy_check_mark: | The key corresponding to the library section. | /library/sections/1 |
|
||||
| `librarySectionTitle` | *String* | :heavy_check_mark: | The title of the library section. | Movies |
|
||||
| `originalTitle` | *Optional\<String>* | :heavy_minus_sign: | The original title of the media item (if different). | 映画 ブラッククローバー 魔法帝の剣 |
|
||||
| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | The original release date of the media item. | 2022-12-14 |
|
||||
| `parentGuid` | *Optional\<String>* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 |
|
||||
| `parentIndex` | *Optional\<Integer>* | :heavy_minus_sign: | The index position of the parent media item. | 1 |
|
||||
| `parentKey` | *Optional\<String>* | :heavy_minus_sign: | The key of the parent media item. | /library/metadata/66 |
|
||||
| `parentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | The rating key of the parent media item. | 66 |
|
||||
| `parentSlug` | *Optional\<String>* | :heavy_minus_sign: | The slug for the parent media item. | alice-in-borderland-2020 |
|
||||
| `parentStudio` | *String* | :heavy_check_mark: | The studio of the parent media item. | UCP |
|
||||
| `parentTheme` | *String* | :heavy_check_mark: | The theme URL for the parent media item. | /library/metadata/66/theme/1705716261 |
|
||||
| `parentThumb` | *Optional\<String>* | :heavy_minus_sign: | The thumbnail URL for the parent media item. | /library/metadata/66/thumb/1705716261 |
|
||||
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | The title of the parent media item. | Caprica |
|
||||
| `parentYear` | *Optional\<Integer>* | :heavy_minus_sign: | The release year of the parent media item. | 2010 |
|
||||
| `primaryExtraKey` | *Optional\<String>* | :heavy_minus_sign: | The primary extra key associated with this media item. | /library/metadata/58684 |
|
||||
| `ratingImage` | *Optional\<String>* | :heavy_minus_sign: | The URL for the rating image. | rottentomatoes://image.rating.ripe |
|
||||
| `ratingKey` | *String* | :heavy_check_mark: | The rating key (Media ID) of this media item. Note: Although this is always an integer, it is represented as a string in the API. | 58683 |
|
||||
| `rating` | *float* | :heavy_check_mark: | The critic rating for the media item. | 7.6 |
|
||||
| `seasonCount` | *int* | :heavy_check_mark: | The total number of seasons (for TV shows). | 2022 |
|
||||
| `skipCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of times this media item has been skipped. | 1 |
|
||||
| `slug` | *String* | :heavy_check_mark: | A URL‐friendly version of the media title. | 4-for-texas |
|
||||
| `studio` | *Optional\<String>* | :heavy_minus_sign: | The studio that produced the media item. | 20th Century Studios |
|
||||
| `subtype` | *Optional\<String>* | :heavy_minus_sign: | A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip. | clip |
|
||||
| `summary` | *String* | :heavy_check_mark: | A synopsis of the media item. | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.<br/>Once a familiar threat returns to finish what was previously started, Jake must<br/>work with Neytiri and the army of the Na'vi race to protect their home.<br/> |
|
||||
| `tagline` | *String* | :heavy_check_mark: | A brief tagline for the media item. | Return to Pandora. |
|
||||
| `theme` | *String* | :heavy_check_mark: | The theme URL for the media item. | /library/metadata/1/theme/1705636920 |
|
||||
| `thumb` | *String* | :heavy_check_mark: | The thumbnail image URL for the media item. | /library/metadata/58683/thumb/1703239236 |
|
||||
| `titleSort` | *String* | :heavy_check_mark: | The sort title used for ordering media items. | Whale |
|
||||
| `title` | *String* | :heavy_check_mark: | The title of the media item. | Avatar: The Way of Water |
|
||||
| `type` | [GetRecentlyAddedHubsType](../../models/operations/GetRecentlyAddedHubsType.md) | :heavy_check_mark: | N/A | movie |
|
||||
| `updatedAt` | *Optional\<Long>* | :heavy_minus_sign: | Unix epoch datetime in seconds | 1556281940 |
|
||||
| `audienceRatingImage` | *Optional\<String>* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright |
|
||||
| `chapterSource` | *Optional\<String>* | :heavy_minus_sign: | N/A | media |
|
||||
| `primaryExtraKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/58684 |
|
||||
| `ratingImage` | *Optional\<String>* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe |
|
||||
| `grandparentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | 66 |
|
||||
| `grandparentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 |
|
||||
| `grandparentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/66 |
|
||||
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Caprica |
|
||||
| `grandparentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 |
|
||||
| `parentSlug` | *Optional\<String>* | :heavy_minus_sign: | N/A | alice-in-borderland-2020 |
|
||||
| `grandparentSlug` | *Optional\<String>* | :heavy_minus_sign: | N/A | alice-in-borderland-2020 |
|
||||
| `grandparentArt` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 |
|
||||
| `grandparentTheme` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 |
|
||||
| `media` | List\<[Media](../../models/operations/Media.md)> | :heavy_minus_sign: | The Media object is only included when type query is `4` or higher.<br/> | |
|
||||
| `userRating` | *Optional\<Float>* | :heavy_minus_sign: | The rating provided by a user for the item. This value is expressed as a decimal number. | 10 |
|
||||
| `viewCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of times this media item has been viewed. | 1 |
|
||||
| `viewOffset` | *Optional\<Integer>* | :heavy_minus_sign: | The current playback offset (in milliseconds). | 5222500 |
|
||||
| `viewedLeafCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of leaf items that have been viewed. | 0 |
|
||||
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | The release year of the media item. | 2022 |
|
||||
| `image` | List\<[GetRecentlyAddedImage](../../models/operations/GetRecentlyAddedImage.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `ultraBlurColors` | [Optional\<UltraBlurColors>](../../models/operations/UltraBlurColors.md) | :heavy_minus_sign: | N/A | |
|
||||
| `media` | List\<[Media](../../models/operations/Media.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `genre` | List\<[Genre](../../models/operations/Genre.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `country` | List\<[Country](../../models/operations/Country.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `director` | List\<[Director](../../models/operations/Director.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `writer` | List\<[Writer](../../models/operations/Writer.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `collection` | List\<[Collection](../../models/operations/Collection.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `role` | List\<[Role](../../models/operations/Role.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `producer` | List\<[Producer](../../models/operations/Producer.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `rating1` | List\<[Rating](../../models/operations/Rating.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `similar` | List\<[Similar](../../models/operations/Similar.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `location` | List\<[Location](../../models/operations/Location.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `mediaGuid` | List\<[MediaGuid](../../models/operations/MediaGuid.md)> | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||
| `ultraBlurColors` | [Optional\<UltraBlurColors>](../../models/operations/UltraBlurColors.md) | :heavy_minus_sign: | N/A | |
|
||||
| `metaDataRating` | List\<[MetaDataRating](../../models/operations/MetaDataRating.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `image` | List\<[GetRecentlyAddedImage](../../models/operations/GetRecentlyAddedImage.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `titleSort` | *Optional\<String>* | :heavy_minus_sign: | N/A | Whale |
|
||||
| `viewCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `lastViewedAt` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1682752242 |
|
||||
| `originalTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | 映画 ブラッククローバー 魔法帝の剣 |
|
||||
| `viewOffset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 5222500 |
|
||||
| `skipCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `index` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `theme` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/1/theme/1705636920 |
|
||||
| `leafCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 14 |
|
||||
| `viewedLeafCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 0 |
|
||||
| `childCount` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `hasPremiumExtras` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `hasPremiumPrimaryExtra` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `parentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | The rating key of the parent item.<br/> | 66 |
|
||||
| `parentGuid` | *Optional\<String>* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 |
|
||||
| `parentStudio` | *Optional\<String>* | :heavy_minus_sign: | N/A | UCP |
|
||||
| `parentKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/66 |
|
||||
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | N/A | Caprica |
|
||||
| `parentIndex` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `parentYear` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2010 |
|
||||
| `parentThumb` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 |
|
||||
| `parentTheme` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 |
|
||||
| `guids` | List\<[Guids](../../models/operations/Guids.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `collection` | List\<[Collection](../../models/operations/Collection.md)> | :heavy_minus_sign: | N/A | |
|
||||
@@ -0,0 +1,4 @@
|
||||
# GetRecentlyAddedOptimizedForStreaming
|
||||
|
||||
Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# GetRecentlyAddedOptimizedForStreaming1
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `ZERO` | 0 |
|
||||
| `ONE` | 1 |
|
||||
@@ -1,5 +1,7 @@
|
||||
# HasThumbnail
|
||||
|
||||
Indicates if the part has a thumbnail.
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
# Location
|
||||
|
||||
The folder path for the media item.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
|
||||
| `path` | *Optional\<String>* | :heavy_minus_sign: | N/A | /TV Shows/House |
|
||||
| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- |
|
||||
| `path` | *String* | :heavy_check_mark: | N/A | /TV Shows/Clarkson's Farm |
|
||||
@@ -5,21 +5,22 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
||||
| `id` | *int* | :heavy_check_mark: | N/A | 119534 |
|
||||
| `duration` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 11558112 |
|
||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 25025 |
|
||||
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 3840 |
|
||||
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 2072 |
|
||||
| `aspectRatio` | *Optional\<Double>* | :heavy_minus_sign: | N/A | 1.85 |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | dts |
|
||||
| `audioChannels` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 6 |
|
||||
| `audioCodec` | *Optional\<String>* | :heavy_minus_sign: | N/A | eac3 |
|
||||
| `videoCodec` | *Optional\<String>* | :heavy_minus_sign: | N/A | hevc |
|
||||
| `videoResolution` | *Optional\<String>* | :heavy_minus_sign: | N/A | 4k |
|
||||
| `container` | *String* | :heavy_check_mark: | N/A | mkv |
|
||||
| `videoFrameRate` | *Optional\<String>* | :heavy_minus_sign: | N/A | 24p |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | main 10 |
|
||||
| `hasVoiceActivity` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `optimizedForStreaming` | [Optional\<OptimizedForStreaming>](../../models/operations/OptimizedForStreaming.md) | :heavy_minus_sign: | N/A | 1 |
|
||||
| `id` | *long* | :heavy_check_mark: | Unique media identifier. | 387322 |
|
||||
| `duration` | *Optional\<Integer>* | :heavy_minus_sign: | Duration of the media in milliseconds. | 9610350 |
|
||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate in bits per second. | 25512 |
|
||||
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Video width in pixels. | 3840 |
|
||||
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Video height in pixels. | 1602 |
|
||||
| `aspectRatio` | *Optional\<Float>* | :heavy_minus_sign: | Aspect ratio of the video. | 2.35 |
|
||||
| `audioChannels` | *Optional\<Integer>* | :heavy_minus_sign: | Number of audio channels. | 6 |
|
||||
| `displayOffset` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 50 |
|
||||
| `audioCodec` | *Optional\<String>* | :heavy_minus_sign: | Audio codec used. | eac3 |
|
||||
| `videoCodec` | *Optional\<String>* | :heavy_minus_sign: | Video codec used. | hevc |
|
||||
| `videoResolution` | *Optional\<String>* | :heavy_minus_sign: | Video resolution (e.g., 4k). | 4k |
|
||||
| `container` | *Optional\<String>* | :heavy_minus_sign: | File container type. | mkv |
|
||||
| `videoFrameRate` | *Optional\<String>* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p<br/> | 24p |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 |
|
||||
| `hasVoiceActivity` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether voice activity is detected. | false |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
||||
| `optimizedForStreaming` | [Optional\<OptimizedForStreaming>](../../models/operations/OptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
||||
| `has64bitOffsets` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `part` | List\<[Part](../../models/operations/Part.md)> | :heavy_check_mark: | N/A | |
|
||||
| `part` | List\<[Part](../../models/operations/Part.md)> | :heavy_minus_sign: | An array of parts for this media item. | |
|
||||
@@ -1,9 +1,4 @@
|
||||
# OptimizedForStreaming
|
||||
|
||||
Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| --------- | --------- |
|
||||
| `Disable` | 0 |
|
||||
| `Enable` | 1 |
|
||||
@@ -5,16 +5,19 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | *int* | :heavy_check_mark: | N/A | 119542 |
|
||||
| `key` | *String* | :heavy_check_mark: | N/A | /library/parts/119542/1680457526/file.mkv |
|
||||
| `duration` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 11558112 |
|
||||
| `file` | *String* | :heavy_check_mark: | N/A | /movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv |
|
||||
| `size` | *long* | :heavy_check_mark: | N/A | 36158371307 |
|
||||
| `container` | *String* | :heavy_check_mark: | The container format of the media file.<br/> | mkv |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | dts |
|
||||
| `has64bitOffsets` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `optimizedForStreaming` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | N/A | main 10 |
|
||||
| `accessible` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the part is accessible. | true |
|
||||
| `exists` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the part exists. | true |
|
||||
| `id` | *long* | :heavy_check_mark: | Unique part identifier. | 418385 |
|
||||
| `key` | *String* | :heavy_check_mark: | Key to access this part. | /library/parts/418385/1735864239/file.mkv |
|
||||
| `indexes` | *Optional\<String>* | :heavy_minus_sign: | N/A | sd |
|
||||
| `duration` | *Optional\<Integer>* | :heavy_minus_sign: | Duration of the part in milliseconds. | 9610350 |
|
||||
| `file` | *String* | :heavy_check_mark: | File path for the part. | /mnt/Movies_1/W/Wicked (2024).mkv |
|
||||
| `size` | *long* | :heavy_check_mark: | File size in bytes. | 30649952104 |
|
||||
| `packetLength` | *Optional\<Integer>* | :heavy_minus_sign: | N/A | 188 |
|
||||
| `container` | *Optional\<String>* | :heavy_minus_sign: | Container format of the part. | mkv |
|
||||
| `videoProfile` | *Optional\<String>* | :heavy_minus_sign: | Video profile for the part. | main 10 |
|
||||
| `audioProfile` | *Optional\<String>* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
||||
| `has64bitOffsets` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `optimizedForStreaming` | [Optional\<GetRecentlyAddedOptimizedForStreaming>](../../models/operations/GetRecentlyAddedOptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
||||
| `hasThumbnail` | [Optional\<HasThumbnail>](../../models/operations/HasThumbnail.md) | :heavy_minus_sign: | N/A | 1 |
|
||||
| `stream` | List\<[Stream](../../models/operations/Stream.md)> | :heavy_minus_sign: | N/A | |
|
||||
| `stream` | List\<[Stream](../../models/operations/Stream.md)> | :heavy_minus_sign: | An array of streams for this part. | |
|
||||
@@ -4,10 +4,9 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | The unique role identifier. | 109501 |
|
||||
| `filter` | *String* | :heavy_check_mark: | The filter string for the role. | actor=109501 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The actor's name. | Bob Odenkirk |
|
||||
| `tagKey` | *String* | :heavy_check_mark: | A key associated with the actor tag. | 5d77683254f42c001f8c3f69 |
|
||||
| `role` | *Optional\<String>* | :heavy_minus_sign: | The character name or role. | Jimmy McGill |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | URL for the role thumbnail image. | https://metadata-static.plex.tv/f/people/f2ca7b474cc984efbdd5c503a096285a.jpg |
|
||||
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | Unique identifier for the producer. | 126522 |
|
||||
| `filter` | *String* | :heavy_check_mark: | The filter string used to query this producer. | producer=126522 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The name of the producer | Amelia Knapp |
|
||||
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the producer's tag, used for internal identification. | 5d77683d85719b001f3a535e |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | The URL of the thumbnail image for the actor. | https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg |
|
||||
12
docs/models/operations/Rating.md
Normal file
12
docs/models/operations/Rating.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# Rating
|
||||
|
||||
The type of rating, for example 'audience' or 'critic'.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
|
||||
| `image` | *String* | :heavy_check_mark: | N/A | imdb://image.rating |
|
||||
| `value` | *double* | :heavy_check_mark: | N/A | 5.1 |
|
||||
| `type` | *String* | :heavy_check_mark: | N/A | audience |
|
||||
@@ -4,10 +4,10 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `id` | *Optional\<Long>* | :heavy_minus_sign: | The ID of the tag or actor. | 294129 |
|
||||
| `filter` | *Optional\<String>* | :heavy_minus_sign: | The filter used to find the actor or tag. | actor=294129 |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | The thumbnail of the actor | https://metadata-static.plex.tv/2/people/27b85844536c39f3f9ac943aaad46608.jpg |
|
||||
| `tag` | *Optional\<String>* | :heavy_minus_sign: | The name of the tag or actor. | Mike Smith |
|
||||
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | Unique identifier for the tag. | 668e7e7b22bcad9064350c91 |
|
||||
| `role` | *Optional\<String>* | :heavy_minus_sign: | The role of the actor or tag in the media. | Self |
|
||||
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | Unique identifier for the actor or role. | 126522 |
|
||||
| `filter` | *String* | :heavy_check_mark: | The filter string used to query this actor. For example, it may indicate that this is an actor with a given key. | actor=126522 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The display tag for the actor (typically the actor's name). | Teller |
|
||||
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the actor's tag, used for internal identification. | 5d77683d85719b001f3a535e |
|
||||
| `role` | *Optional\<String>* | :heavy_minus_sign: | The role played by the actor in the media item. | Self - Judge |
|
||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | The URL of the thumbnail image for the actor. | https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg |
|
||||
@@ -1,10 +1,12 @@
|
||||
# Similar
|
||||
|
||||
The display tag for the similar item, typically the title.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | The unique similar item identifier. | 26 |
|
||||
| `filter` | *String* | :heavy_check_mark: | The filter string for similar items. | similar=26 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The tag or title of the similar content. | Breaking Bad |
|
||||
| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | N/A | 259 |
|
||||
| `filter` | *String* | :heavy_check_mark: | N/A | similar=259 |
|
||||
| `tag` | *String* | :heavy_check_mark: | N/A | Criss Angel Mindfreak |
|
||||
@@ -4,42 +4,53 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | N/A | 272796 |
|
||||
| `streamType` | *long* | :heavy_check_mark: | Type of stream (1 = video, 2 = audio, 3 = subtitle) | 1 |
|
||||
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the default stream | true |
|
||||
| `selected` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream is selected | true |
|
||||
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream | h264 |
|
||||
| `index` | *long* | :heavy_check_mark: | The index of the stream | 0 |
|
||||
| `bitrate` | *Optional\<Long>* | :heavy_minus_sign: | The bitrate of the stream in kbps | 6273 |
|
||||
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | The color primaries of the video stream | bt709 |
|
||||
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | The color range of the video stream | tv |
|
||||
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | The color space of the video stream | bt709 |
|
||||
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | The transfer characteristics (TRC) of the video stream | bt709 |
|
||||
| `bitDepth` | *Optional\<Long>* | :heavy_minus_sign: | The bit depth of the video stream | 8 |
|
||||
| `chromaLocation` | *Optional\<String>* | :heavy_minus_sign: | The chroma location of the video stream | left |
|
||||
| `streamIdentifier` | *Optional\<String>* | :heavy_minus_sign: | The identifier of the video stream | 2 |
|
||||
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | The chroma subsampling format | 4:2:0 |
|
||||
| `codedHeight` | *Optional\<Long>* | :heavy_minus_sign: | The coded height of the video stream | 1088 |
|
||||
| `codedWidth` | *Optional\<Long>* | :heavy_minus_sign: | The coded width of the video stream | 1920 |
|
||||
| `frameRate` | *Optional\<Double>* | :heavy_minus_sign: | The frame rate of the video stream | 29.97 |
|
||||
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream has a scaling matrix | false |
|
||||
| `hearingImpaired` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `height` | *Optional\<Long>* | :heavy_minus_sign: | The height of the video stream | 1080 |
|
||||
| `level` | *Optional\<Long>* | :heavy_minus_sign: | The level of the video codec | 40 |
|
||||
| `profile` | *Optional\<String>* | :heavy_minus_sign: | The profile of the video codec | main |
|
||||
| `refFrames` | *Optional\<Long>* | :heavy_minus_sign: | Number of reference frames | 4 |
|
||||
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | The scan type (progressive or interlaced) | progressive |
|
||||
| `width` | *Optional\<Long>* | :heavy_minus_sign: | The width of the video stream | 1920 |
|
||||
| `displayTitle` | *Optional\<String>* | :heavy_minus_sign: | Display title of the stream | 1080p (H.264) |
|
||||
| `extendedDisplayTitle` | *Optional\<String>* | :heavy_minus_sign: | Extended display title of the stream | 1080p (H.264) |
|
||||
| `channels` | *Optional\<Long>* | :heavy_minus_sign: | Number of audio channels (for audio streams) | 2 |
|
||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | The language of the stream (for audio/subtitle streams) | English |
|
||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag of the stream | en |
|
||||
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | Language code of the stream | eng |
|
||||
| `audioChannelLayout` | *Optional\<String>* | :heavy_minus_sign: | The audio channel layout | stereo |
|
||||
| `samplingRate` | *Optional\<Long>* | :heavy_minus_sign: | Sampling rate of the audio stream in Hz | 48000 |
|
||||
| `title` | *Optional\<String>* | :heavy_minus_sign: | Title of the subtitle track (for subtitle streams) | English |
|
||||
| `canAutoSync` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the subtitle stream can auto-sync | false |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | Unique stream identifier. | 1002625 |
|
||||
| `streamType` | *int* | :heavy_check_mark: | Stream type (1=video, 2=audio, 3=subtitle). | 1 |
|
||||
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is default. | true |
|
||||
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
||||
| `index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
||||
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | ISO language code. | eng |
|
||||
| `headerCompression` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
||||
| `doviblCompatID` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
||||
| `doviblPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
||||
| `dovielPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision EL is present. | false |
|
||||
| `doviLevel` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision level. | 6 |
|
||||
| `doviPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision is present. | true |
|
||||
| `doviProfile` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision profile. | 8 |
|
||||
| `dovirpuPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision RPU is present. | true |
|
||||
| `doviVersion` | *Optional\<String>* | :heavy_minus_sign: | Dolby Vision version. | 1.0 |
|
||||
| `bitDepth` | *Optional\<Integer>* | :heavy_minus_sign: | Bit depth of the video stream. | 10 |
|
||||
| `chromaLocation` | *Optional\<String>* | :heavy_minus_sign: | Chroma sample location. | topleft |
|
||||
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
||||
| `codedHeight` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video height. | 1608 |
|
||||
| `codedWidth` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video width. | 3840 |
|
||||
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
||||
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
||||
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
||||
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 |
|
||||
| `frameRate` | *Optional\<Float>* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 |
|
||||
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Height of the video stream. | 1602 |
|
||||
| `level` | *Optional\<Integer>* | :heavy_minus_sign: | Video level. | 150 |
|
||||
| `original` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the original stream. | true |
|
||||
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||
| `profile` | *Optional\<String>* | :heavy_minus_sign: | Video profile. | main 10 |
|
||||
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||
| `refFrames` | *Optional\<Integer>* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
||||
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
||||
| `displayTitle` | *String* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||
| `extendedDisplayTitle` | *String* | :heavy_check_mark: | Extended display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||
| `selected` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is selected (applicable for audio streams). | true |
|
||||
| `forced` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||
| `channels` | *Optional\<Integer>* | :heavy_minus_sign: | Number of audio channels (for audio streams). | 6 |
|
||||
| `audioChannelLayout` | *Optional\<String>* | :heavy_minus_sign: | Audio channel layout. | 5.1(side) |
|
||||
| `samplingRate` | *Optional\<Integer>* | :heavy_minus_sign: | Sampling rate for the audio stream. | 48000 |
|
||||
| `canAutoSync` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream can auto-sync. | false |
|
||||
| `hearingImpaired` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream is for the hearing impaired. | true |
|
||||
| `dub` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream is a dub. | true |
|
||||
| `title` | *Optional\<String>* | :heavy_minus_sign: | Optional title for the stream (e.g., language variant). | SDH |
|
||||
@@ -4,5 +4,8 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
|
||||
| `tag` | *Optional\<String>* | :heavy_minus_sign: | N/A | James Cameron |
|
||||
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||
| `id` | *long* | :heavy_check_mark: | Unique identifier for the writer. | 126522 |
|
||||
| `filter` | *String* | :heavy_check_mark: | The filter string used to query this writer. | writer=126522 |
|
||||
| `tag` | *String* | :heavy_check_mark: | The role of Writer | Jamie P. Hanson |
|
||||
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the writers tag, used for internal identification. | 5d77683d85719b001f3a535e |
|
||||
@@ -24,7 +24,6 @@ API Calls interacting with Plex Media Server Libraries
|
||||
* [getMediaMetaData](#getmediametadata) - Get Media Metadata
|
||||
* [getMetadataChildren](#getmetadatachildren) - Get Items Children
|
||||
* [getTopWatchedContent](#gettopwatchedcontent) - Get Top Watched Content
|
||||
* [getOnDeck](#getondeck) - Get On Deck
|
||||
|
||||
## getFileHash
|
||||
|
||||
@@ -1029,49 +1028,3 @@ public class Application {
|
||||
| models/errors/GetTopWatchedContentBadRequest | 400 | application/json |
|
||||
| models/errors/GetTopWatchedContentUnauthorized | 401 | application/json |
|
||||
| models/errors/SDKError | 4XX, 5XX | \*/\* |
|
||||
|
||||
## getOnDeck
|
||||
|
||||
This endpoint will return the on deck content.
|
||||
|
||||
|
||||
### Example Usage
|
||||
|
||||
```java
|
||||
package hello.world;
|
||||
|
||||
import dev.plexapi.sdk.PlexAPI;
|
||||
import dev.plexapi.sdk.models.errors.GetOnDeckBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetOnDeckUnauthorized;
|
||||
import dev.plexapi.sdk.models.operations.GetOnDeckResponse;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) throws GetOnDeckBadRequest, GetOnDeckUnauthorized, Exception {
|
||||
|
||||
PlexAPI sdk = PlexAPI.builder()
|
||||
.accessToken("<YOUR_API_KEY_HERE>")
|
||||
.build();
|
||||
|
||||
GetOnDeckResponse res = sdk.library().getOnDeck()
|
||||
.call();
|
||||
|
||||
if (res.object().isPresent()) {
|
||||
// handle response
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Response
|
||||
|
||||
**[GetOnDeckResponse](../../models/operations/GetOnDeckResponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Type | Status Code | Content Type |
|
||||
| ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
||||
| models/errors/GetOnDeckBadRequest | 400 | application/json |
|
||||
| models/errors/GetOnDeckUnauthorized | 401 | application/json |
|
||||
| models/errors/SDKError | 4XX, 5XX | \*/\* |
|
||||
@@ -27,8 +27,6 @@ import dev.plexapi.sdk.models.errors.GetMediaMetaDataBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetMediaMetaDataUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetMetadataChildrenBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetMetadataChildrenUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetOnDeckBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetOnDeckUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryBadRequest;
|
||||
import dev.plexapi.sdk.models.errors.GetRecentlyAddedLibraryUnauthorized;
|
||||
import dev.plexapi.sdk.models.errors.GetRefreshLibraryMetadataBadRequest;
|
||||
@@ -85,9 +83,6 @@ import dev.plexapi.sdk.models.operations.GetMetadataChildrenRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetMetadataChildrenRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetMetadataChildrenResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetMetadataChildrenResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetOnDeckRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetOnDeckResponse;
|
||||
import dev.plexapi.sdk.models.operations.GetOnDeckResponseBody;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequest;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryRequestBuilder;
|
||||
import dev.plexapi.sdk.models.operations.GetRecentlyAddedLibraryResponse;
|
||||
@@ -147,8 +142,7 @@ public class Library implements
|
||||
MethodCallGetSearchAllLibraries,
|
||||
MethodCallGetMediaMetaData,
|
||||
MethodCallGetMetadataChildren,
|
||||
MethodCallGetTopWatchedContent,
|
||||
MethodCallGetOnDeck {
|
||||
MethodCallGetTopWatchedContent {
|
||||
|
||||
private final SDKConfiguration sdkConfiguration;
|
||||
|
||||
@@ -3160,161 +3154,4 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get On Deck
|
||||
* This endpoint will return the on deck content.
|
||||
*
|
||||
* @return The call builder
|
||||
*/
|
||||
public GetOnDeckRequestBuilder getOnDeck() {
|
||||
return new GetOnDeckRequestBuilder(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get On Deck
|
||||
* This endpoint will return the on deck content.
|
||||
*
|
||||
* @return The response from the API call
|
||||
* @throws Exception if the API call fails
|
||||
*/
|
||||
public GetOnDeckResponse getOnDeckDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/library/onDeck");
|
||||
|
||||
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(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
_req.build());
|
||||
HttpResponse<InputStream> _httpRes;
|
||||
try {
|
||||
_httpRes = _client.send(_r);
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
Optional.of(_httpRes),
|
||||
Optional.empty());
|
||||
} else {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
_httpRes);
|
||||
}
|
||||
} catch (Exception _e) {
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
"getOnDeck",
|
||||
Optional.of(List.of()),
|
||||
_hookSecuritySource),
|
||||
Optional.empty(),
|
||||
Optional.of(_e));
|
||||
}
|
||||
String _contentType = _httpRes
|
||||
.headers()
|
||||
.firstValue("Content-Type")
|
||||
.orElse("application/octet-stream");
|
||||
GetOnDeckResponse.Builder _resBuilder =
|
||||
GetOnDeckResponse
|
||||
.builder()
|
||||
.contentType(_contentType)
|
||||
.statusCode(_httpRes.statusCode())
|
||||
.rawResponse(_httpRes);
|
||||
|
||||
GetOnDeckResponse _res = _resBuilder.build();
|
||||
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||
GetOnDeckResponseBody _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetOnDeckResponseBody>() {});
|
||||
_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")) {
|
||||
GetOnDeckBadRequest _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetOnDeckBadRequest>() {});
|
||||
_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")) {
|
||||
GetOnDeckUnauthorized _out = Utils.mapper().readValue(
|
||||
Utils.toUtf8AndClose(_httpRes.body()),
|
||||
new TypeReference<GetOnDeckUnauthorized>() {});
|
||||
_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(), "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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -43,8 +43,8 @@ class SDKConfiguration {
|
||||
} };
|
||||
private static final String LANGUAGE = "java";
|
||||
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
||||
public static final String SDK_VERSION = "0.13.0";
|
||||
public static final String GEN_VERSION = "2.545.2";
|
||||
public static final String SDK_VERSION = "0.13.1";
|
||||
public static final String GEN_VERSION = "2.545.4";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
|
||||
@@ -1,172 +0,0 @@
|
||||
/*
|
||||
* 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;
|
||||
/**
|
||||
* GetOnDeckBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetOnDeckBadRequest extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetOnDeckErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("RawResponse")
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetOnDeckErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.errors = errors;
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetOnDeckBadRequest() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetOnDeckErrors>> errors(){
|
||||
return (Optional<List<GetOnDeckErrors>>) 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 GetOnDeckBadRequest withErrors(List<GetOnDeckErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckBadRequest withErrors(Optional<? extends List<GetOnDeckErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetOnDeckBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetOnDeckBadRequest 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;
|
||||
}
|
||||
GetOnDeckBadRequest other = (GetOnDeckBadRequest) 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(GetOnDeckBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetOnDeckErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetOnDeckErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetOnDeckErrors>> 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 GetOnDeckBadRequest build() {
|
||||
return new GetOnDeckBadRequest(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,192 +0,0 @@
|
||||
/*
|
||||
* 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 GetOnDeckErrors {
|
||||
|
||||
@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 GetOnDeckErrors(
|
||||
@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 GetOnDeckErrors() {
|
||||
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 GetOnDeckErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckErrors 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;
|
||||
}
|
||||
GetOnDeckErrors other = (GetOnDeckErrors) 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(GetOnDeckErrors.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 GetOnDeckErrors build() {
|
||||
return new GetOnDeckErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,192 +0,0 @@
|
||||
/*
|
||||
* 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 GetOnDeckLibraryErrors {
|
||||
|
||||
@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 GetOnDeckLibraryErrors(
|
||||
@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 GetOnDeckLibraryErrors() {
|
||||
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 GetOnDeckLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckLibraryErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckLibraryErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckLibraryErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckLibraryErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckLibraryErrors 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;
|
||||
}
|
||||
GetOnDeckLibraryErrors other = (GetOnDeckLibraryErrors) 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(GetOnDeckLibraryErrors.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 GetOnDeckLibraryErrors build() {
|
||||
return new GetOnDeckLibraryErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,172 +0,0 @@
|
||||
/*
|
||||
* 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;
|
||||
/**
|
||||
* GetOnDeckUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetOnDeckUnauthorized extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetOnDeckLibraryErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("RawResponse")
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckUnauthorized(
|
||||
@JsonProperty("errors") Optional<? extends List<GetOnDeckLibraryErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.errors = errors;
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetOnDeckUnauthorized() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Optional<List<GetOnDeckLibraryErrors>> errors(){
|
||||
return (Optional<List<GetOnDeckLibraryErrors>>) 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 GetOnDeckUnauthorized withErrors(List<GetOnDeckLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckUnauthorized withErrors(Optional<? extends List<GetOnDeckLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetOnDeckUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetOnDeckUnauthorized 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;
|
||||
}
|
||||
GetOnDeckUnauthorized other = (GetOnDeckUnauthorized) 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(GetOnDeckUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetOnDeckLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetOnDeckLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetOnDeckLibraryErrors>> 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 GetOnDeckUnauthorized build() {
|
||||
return new GetOnDeckUnauthorized(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,34 +6,32 @@
|
||||
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.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class Collection {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The user-made collection this media item belongs to
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public Collection(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public Collection() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The user-made collection this media item belongs to
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
@@ -41,13 +39,10 @@ public class Collection {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The user-made collection this media item belongs to
|
||||
*/
|
||||
public Collection withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Collection withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -80,19 +75,16 @@ public class Collection {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The user-made collection this media item belongs to
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
|
||||
@@ -10,49 +10,98 @@ 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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
/**
|
||||
* Country - The filter query string for country media items.
|
||||
*/
|
||||
|
||||
public class Country {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
|
||||
@JsonCreator
|
||||
public Country(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("filter") Optional<String> filter) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.id = id;
|
||||
this.tag = tag;
|
||||
this.filter = filter;
|
||||
}
|
||||
|
||||
public Country() {
|
||||
this(Optional.empty());
|
||||
public Country(
|
||||
long id,
|
||||
String tag) {
|
||||
this(id, tag, Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Country withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
public Country withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Country withTag(Optional<String> tag) {
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
*/
|
||||
public Country withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Country withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Country withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -63,44 +112,71 @@ public class Country {
|
||||
}
|
||||
Country other = (Country) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.filter, other.filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
id,
|
||||
tag,
|
||||
filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Country.class,
|
||||
"tag", tag);
|
||||
"id", id,
|
||||
"tag", tag,
|
||||
"filter", filter);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private Long id;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Country build() {
|
||||
return new Country(
|
||||
tag);
|
||||
id,
|
||||
tag,
|
||||
filter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,34 +6,32 @@
|
||||
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.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class Director {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public Director(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public Director() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
@@ -41,13 +39,10 @@ public class Director {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
public Director withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Director withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -80,19 +75,16 @@ public class Director {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
|
||||
@@ -6,34 +6,60 @@
|
||||
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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
/**
|
||||
* Genre - The filter query string for similar items.
|
||||
*/
|
||||
|
||||
public class Genre {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public Genre(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public Genre() {
|
||||
this(Optional.empty());
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
@@ -41,13 +67,23 @@ public class Genre {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Genre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
public Genre withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Genre withTag(Optional<String> tag) {
|
||||
public Genre withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
public Genre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -63,36 +99,56 @@ public class Genre {
|
||||
}
|
||||
Genre other = (Genre) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Genre.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
private Long id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -100,6 +156,8 @@ public class Genre {
|
||||
|
||||
public Genre build() {
|
||||
return new Genre(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ import java.util.Objects;
|
||||
public class GetAllMediaLibraryGenre {
|
||||
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
@@ -28,7 +29,8 @@ public class GetAllMediaLibraryGenre {
|
||||
}
|
||||
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
@@ -40,7 +42,8 @@ public class GetAllMediaLibraryGenre {
|
||||
}
|
||||
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
public GetAllMediaLibraryGenre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
@@ -82,7 +85,8 @@ public class GetAllMediaLibraryGenre {
|
||||
}
|
||||
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
* The genre name of this media-item
|
||||
*
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
|
||||
@@ -15,23 +15,31 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetOnDeckGuids {
|
||||
public class GetAllMediaLibraryGuids {
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<String> id;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckGuids(
|
||||
public GetAllMediaLibraryGuids(
|
||||
@JsonProperty("id") Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public GetOnDeckGuids() {
|
||||
public GetAllMediaLibraryGuids() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> id() {
|
||||
return id;
|
||||
@@ -41,13 +49,21 @@ public class GetOnDeckGuids {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetOnDeckGuids withId(String id) {
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*
|
||||
*/
|
||||
public GetAllMediaLibraryGuids withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckGuids withId(Optional<String> id) {
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*
|
||||
*/
|
||||
public GetAllMediaLibraryGuids withId(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -61,7 +77,7 @@ public class GetOnDeckGuids {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetOnDeckGuids other = (GetOnDeckGuids) o;
|
||||
GetAllMediaLibraryGuids other = (GetAllMediaLibraryGuids) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id);
|
||||
}
|
||||
@@ -74,7 +90,7 @@ public class GetOnDeckGuids {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetOnDeckGuids.class,
|
||||
return Utils.toString(GetAllMediaLibraryGuids.class,
|
||||
"id", id);
|
||||
}
|
||||
|
||||
@@ -86,20 +102,28 @@ public class GetOnDeckGuids {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*
|
||||
*/
|
||||
public Builder id(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckGuids build() {
|
||||
return new GetOnDeckGuids(
|
||||
public GetAllMediaLibraryGuids build() {
|
||||
return new GetAllMediaLibraryGuids(
|
||||
id);
|
||||
}
|
||||
}
|
||||
@@ -121,8 +121,9 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasVoiceActivity")
|
||||
private boolean hasVoiceActivity;
|
||||
private Optional<Boolean> hasVoiceActivity;
|
||||
|
||||
/**
|
||||
* The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
@@ -145,8 +146,9 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Part")
|
||||
private List<GetAllMediaLibraryPart> part;
|
||||
private Optional<? extends List<GetAllMediaLibraryPart>> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryMedia(
|
||||
@@ -164,11 +166,11 @@ public class GetAllMediaLibraryMedia {
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoFrameRate") Optional<String> videoFrameRate,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("hasVoiceActivity") boolean hasVoiceActivity,
|
||||
@JsonProperty("hasVoiceActivity") Optional<Boolean> hasVoiceActivity,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends GetAllMediaLibraryOptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("Part") List<GetAllMediaLibraryPart> part) {
|
||||
@JsonProperty("Part") Optional<? extends List<GetAllMediaLibraryPart>> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
@@ -210,10 +212,8 @@ public class GetAllMediaLibraryMedia {
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMedia(
|
||||
long id,
|
||||
boolean hasVoiceActivity,
|
||||
List<GetAllMediaLibraryPart> part) {
|
||||
this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), hasVoiceActivity, Optional.empty(), Optional.empty(), Optional.empty(), part);
|
||||
long id) {
|
||||
this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -330,7 +330,7 @@ public class GetAllMediaLibraryMedia {
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean hasVoiceActivity() {
|
||||
public Optional<Boolean> hasVoiceActivity() {
|
||||
return hasVoiceActivity;
|
||||
}
|
||||
|
||||
@@ -359,9 +359,10 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public List<GetAllMediaLibraryPart> part() {
|
||||
return part;
|
||||
public Optional<List<GetAllMediaLibraryPart>> part() {
|
||||
return (Optional<List<GetAllMediaLibraryPart>>) part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -611,6 +612,15 @@ public class GetAllMediaLibraryMedia {
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withHasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withHasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
@@ -668,6 +678,15 @@ public class GetAllMediaLibraryMedia {
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withPart(List<GetAllMediaLibraryPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withPart(Optional<? extends List<GetAllMediaLibraryPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
@@ -782,7 +801,7 @@ public class GetAllMediaLibraryMedia {
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Boolean hasVoiceActivity;
|
||||
private Optional<Boolean> hasVoiceActivity = Optional.empty();
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
@@ -790,7 +809,7 @@ public class GetAllMediaLibraryMedia {
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private List<GetAllMediaLibraryPart> part;
|
||||
private Optional<? extends List<GetAllMediaLibraryPart>> part = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -1039,6 +1058,15 @@ public class GetAllMediaLibraryMedia {
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public Builder hasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public Builder hasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
@@ -1096,6 +1124,15 @@ public class GetAllMediaLibraryMedia {
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public Builder part(List<GetAllMediaLibraryPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public Builder part(Optional<? extends List<GetAllMediaLibraryPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
|
||||
@@ -102,8 +102,9 @@ public class GetAllMediaLibraryMetadata {
|
||||
/**
|
||||
* The release year of the media item.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("year")
|
||||
private int year;
|
||||
private Optional<Integer> year;
|
||||
|
||||
/**
|
||||
* A brief tagline for the media item.
|
||||
@@ -413,7 +414,7 @@ public class GetAllMediaLibraryMetadata {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Guid")
|
||||
private Optional<? extends List<Guids>> guids;
|
||||
private Optional<? extends List<GetAllMediaLibraryGuids>> guids;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Collection")
|
||||
@@ -433,7 +434,7 @@ public class GetAllMediaLibraryMetadata {
|
||||
@JsonProperty("summary") String summary,
|
||||
@JsonProperty("rating") float rating,
|
||||
@JsonProperty("audienceRating") double audienceRating,
|
||||
@JsonProperty("year") int year,
|
||||
@JsonProperty("year") Optional<Integer> year,
|
||||
@JsonProperty("tagline") String tagline,
|
||||
@JsonProperty("thumb") String thumb,
|
||||
@JsonProperty("art") String art,
|
||||
@@ -483,7 +484,7 @@ public class GetAllMediaLibraryMetadata {
|
||||
@JsonProperty("Director") Optional<? extends List<GetAllMediaLibraryDirector>> director,
|
||||
@JsonProperty("Writer") Optional<? extends List<GetAllMediaLibraryWriter>> writer,
|
||||
@JsonProperty("Role") Optional<? extends List<GetAllMediaLibraryRole>> role,
|
||||
@JsonProperty("Guid") Optional<? extends List<Guids>> guids,
|
||||
@JsonProperty("Guid") Optional<? extends List<GetAllMediaLibraryGuids>> guids,
|
||||
@JsonProperty("Collection") Optional<? extends List<GetAllMediaLibraryCollection>> collection) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
Utils.checkNotNull(key, "key");
|
||||
@@ -626,7 +627,6 @@ public class GetAllMediaLibraryMetadata {
|
||||
String summary,
|
||||
float rating,
|
||||
double audienceRating,
|
||||
int year,
|
||||
String tagline,
|
||||
String thumb,
|
||||
String art,
|
||||
@@ -637,7 +637,7 @@ public class GetAllMediaLibraryMetadata {
|
||||
int duration,
|
||||
LocalDate originallyAvailableAt,
|
||||
long addedAt) {
|
||||
this(ratingKey, key, guid, slug, Optional.empty(), type, title, titleSort, Optional.empty(), summary, rating, audienceRating, year, tagline, thumb, art, theme, index, Optional.empty(), Optional.empty(), childCount, seasonCount, duration, originallyAvailableAt, 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());
|
||||
this(ratingKey, key, guid, slug, Optional.empty(), type, title, titleSort, Optional.empty(), summary, rating, audienceRating, Optional.empty(), tagline, thumb, art, theme, index, Optional.empty(), Optional.empty(), childCount, seasonCount, duration, originallyAvailableAt, 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());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -737,7 +737,7 @@ public class GetAllMediaLibraryMetadata {
|
||||
* The release year of the media item.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public int year() {
|
||||
public Optional<Integer> year() {
|
||||
return year;
|
||||
}
|
||||
|
||||
@@ -1116,8 +1116,8 @@ public class GetAllMediaLibraryMetadata {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Guids>> guids() {
|
||||
return (Optional<List<Guids>>) guids;
|
||||
public Optional<List<GetAllMediaLibraryGuids>> guids() {
|
||||
return (Optional<List<GetAllMediaLibraryGuids>>) guids;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1257,6 +1257,15 @@ public class GetAllMediaLibraryMetadata {
|
||||
* The release year of the media item.
|
||||
*/
|
||||
public GetAllMediaLibraryMetadata withYear(int year) {
|
||||
Utils.checkNotNull(year, "year");
|
||||
this.year = Optional.ofNullable(year);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The release year of the media item.
|
||||
*/
|
||||
public GetAllMediaLibraryMetadata withYear(Optional<Integer> year) {
|
||||
Utils.checkNotNull(year, "year");
|
||||
this.year = year;
|
||||
return this;
|
||||
@@ -2003,13 +2012,13 @@ public class GetAllMediaLibraryMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMetadata withGuids(List<Guids> guids) {
|
||||
public GetAllMediaLibraryMetadata withGuids(List<GetAllMediaLibraryGuids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMetadata withGuids(Optional<? extends List<Guids>> guids) {
|
||||
public GetAllMediaLibraryMetadata withGuids(Optional<? extends List<GetAllMediaLibraryGuids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
@@ -2267,7 +2276,7 @@ public class GetAllMediaLibraryMetadata {
|
||||
|
||||
private Double audienceRating;
|
||||
|
||||
private Integer year;
|
||||
private Optional<Integer> year = Optional.empty();
|
||||
|
||||
private String tagline;
|
||||
|
||||
@@ -2367,7 +2376,7 @@ public class GetAllMediaLibraryMetadata {
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryRole>> role = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Guids>> guids = Optional.empty();
|
||||
private Optional<? extends List<GetAllMediaLibraryGuids>> guids = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryCollection>> collection = Optional.empty();
|
||||
|
||||
@@ -2502,6 +2511,15 @@ public class GetAllMediaLibraryMetadata {
|
||||
* The release year of the media item.
|
||||
*/
|
||||
public Builder year(int year) {
|
||||
Utils.checkNotNull(year, "year");
|
||||
this.year = Optional.ofNullable(year);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The release year of the media item.
|
||||
*/
|
||||
public Builder year(Optional<Integer> year) {
|
||||
Utils.checkNotNull(year, "year");
|
||||
this.year = year;
|
||||
return this;
|
||||
@@ -3248,13 +3266,13 @@ public class GetAllMediaLibraryMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(List<Guids> guids) {
|
||||
public Builder guids(List<GetAllMediaLibraryGuids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(Optional<? extends List<Guids>> guids) {
|
||||
public Builder guids(Optional<? extends List<GetAllMediaLibraryGuids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
|
||||
@@ -31,9 +31,9 @@ public class GetAllMediaLibraryOptimizedForStreaming {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static GetAllMediaLibraryOptimizedForStreaming of(One value) {
|
||||
public static GetAllMediaLibraryOptimizedForStreaming of(OptimizedForStreaming1 value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new GetAllMediaLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<One>(){}));
|
||||
return new GetAllMediaLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<OptimizedForStreaming1>(){}));
|
||||
}
|
||||
|
||||
public static GetAllMediaLibraryOptimizedForStreaming of(boolean value) {
|
||||
@@ -44,7 +44,7 @@ public class GetAllMediaLibraryOptimizedForStreaming {
|
||||
/**
|
||||
* Returns an instance of one of these types:
|
||||
* <ul>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.One}</li>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.OptimizedForStreaming1}</li>
|
||||
* <li>{@code boolean}</li>
|
||||
* </ul>
|
||||
*
|
||||
@@ -86,7 +86,7 @@ public class GetAllMediaLibraryOptimizedForStreaming {
|
||||
public _Deserializer() {
|
||||
super(GetAllMediaLibraryOptimizedForStreaming.class, false,
|
||||
TypeReferenceWithShape.of(new TypeReference<Boolean>() {}, JsonShape.DEFAULT),
|
||||
TypeReferenceWithShape.of(new TypeReference<One>() {}, JsonShape.DEFAULT));
|
||||
TypeReferenceWithShape.of(new TypeReference<OptimizedForStreaming1>() {}, JsonShape.DEFAULT));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.Objects;
|
||||
public class GetAllMediaLibraryRole {
|
||||
|
||||
/**
|
||||
* The name of the actor for this role
|
||||
* The display tag for the actor (typically the actor's name).
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
@@ -28,7 +28,7 @@ public class GetAllMediaLibraryRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the actor for this role
|
||||
* The display tag for the actor (typically the actor's name).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
@@ -40,7 +40,7 @@ public class GetAllMediaLibraryRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the actor for this role
|
||||
* The display tag for the actor (typically the actor's name).
|
||||
*/
|
||||
public GetAllMediaLibraryRole withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
@@ -82,7 +82,7 @@ public class GetAllMediaLibraryRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the actor for this role
|
||||
* The display tag for the actor (typically the actor's name).
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
|
||||
@@ -62,20 +62,23 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("language")
|
||||
private String language;
|
||||
private Optional<String> language;
|
||||
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("languageTag")
|
||||
private String languageTag;
|
||||
private Optional<String> languageTag;
|
||||
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("languageCode")
|
||||
private String languageCode;
|
||||
private Optional<String> languageCode;
|
||||
|
||||
/**
|
||||
* Indicates whether header compression is enabled.
|
||||
@@ -175,6 +178,10 @@ public class GetAllMediaLibraryStream {
|
||||
@JsonProperty("codedWidth")
|
||||
private Optional<Integer> codedWidth;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("closedCaptions")
|
||||
private Optional<Boolean> closedCaptions;
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -246,6 +253,10 @@ public class GetAllMediaLibraryStream {
|
||||
@JsonProperty("scanType")
|
||||
private Optional<String> scanType;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("embeddedInVideo")
|
||||
private Optional<String> embeddedInVideo;
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -340,9 +351,9 @@ public class GetAllMediaLibraryStream {
|
||||
@JsonProperty("codec") String codec,
|
||||
@JsonProperty("index") int index,
|
||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||
@JsonProperty("language") String language,
|
||||
@JsonProperty("languageTag") String languageTag,
|
||||
@JsonProperty("languageCode") String languageCode,
|
||||
@JsonProperty("language") Optional<String> language,
|
||||
@JsonProperty("languageTag") Optional<String> languageTag,
|
||||
@JsonProperty("languageCode") Optional<String> languageCode,
|
||||
@JsonProperty("headerCompression") Optional<Boolean> headerCompression,
|
||||
@JsonProperty("DOVIBLCompatID") Optional<Integer> doviblCompatID,
|
||||
@JsonProperty("DOVIBLPresent") Optional<Boolean> doviblPresent,
|
||||
@@ -357,6 +368,7 @@ public class GetAllMediaLibraryStream {
|
||||
@JsonProperty("chromaSubsampling") Optional<String> chromaSubsampling,
|
||||
@JsonProperty("codedHeight") Optional<Integer> codedHeight,
|
||||
@JsonProperty("codedWidth") Optional<Integer> codedWidth,
|
||||
@JsonProperty("closedCaptions") Optional<Boolean> closedCaptions,
|
||||
@JsonProperty("colorPrimaries") Optional<String> colorPrimaries,
|
||||
@JsonProperty("colorRange") Optional<String> colorRange,
|
||||
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
||||
@@ -368,6 +380,7 @@ public class GetAllMediaLibraryStream {
|
||||
@JsonProperty("hasScalingMatrix") Optional<Boolean> hasScalingMatrix,
|
||||
@JsonProperty("profile") Optional<String> profile,
|
||||
@JsonProperty("scanType") Optional<String> scanType,
|
||||
@JsonProperty("embeddedInVideo") Optional<String> embeddedInVideo,
|
||||
@JsonProperty("refFrames") Optional<Integer> refFrames,
|
||||
@JsonProperty("width") Optional<Integer> width,
|
||||
@JsonProperty("displayTitle") String displayTitle,
|
||||
@@ -404,6 +417,7 @@ public class GetAllMediaLibraryStream {
|
||||
Utils.checkNotNull(chromaSubsampling, "chromaSubsampling");
|
||||
Utils.checkNotNull(codedHeight, "codedHeight");
|
||||
Utils.checkNotNull(codedWidth, "codedWidth");
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
Utils.checkNotNull(colorPrimaries, "colorPrimaries");
|
||||
Utils.checkNotNull(colorRange, "colorRange");
|
||||
Utils.checkNotNull(colorSpace, "colorSpace");
|
||||
@@ -415,6 +429,7 @@ public class GetAllMediaLibraryStream {
|
||||
Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix");
|
||||
Utils.checkNotNull(profile, "profile");
|
||||
Utils.checkNotNull(scanType, "scanType");
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
Utils.checkNotNull(refFrames, "refFrames");
|
||||
Utils.checkNotNull(width, "width");
|
||||
Utils.checkNotNull(displayTitle, "displayTitle");
|
||||
@@ -451,6 +466,7 @@ public class GetAllMediaLibraryStream {
|
||||
this.chromaSubsampling = chromaSubsampling;
|
||||
this.codedHeight = codedHeight;
|
||||
this.codedWidth = codedWidth;
|
||||
this.closedCaptions = closedCaptions;
|
||||
this.colorPrimaries = colorPrimaries;
|
||||
this.colorRange = colorRange;
|
||||
this.colorSpace = colorSpace;
|
||||
@@ -462,6 +478,7 @@ public class GetAllMediaLibraryStream {
|
||||
this.hasScalingMatrix = hasScalingMatrix;
|
||||
this.profile = profile;
|
||||
this.scanType = scanType;
|
||||
this.embeddedInVideo = embeddedInVideo;
|
||||
this.refFrames = refFrames;
|
||||
this.width = width;
|
||||
this.displayTitle = displayTitle;
|
||||
@@ -482,12 +499,9 @@ public class GetAllMediaLibraryStream {
|
||||
int streamType,
|
||||
String codec,
|
||||
int index,
|
||||
String language,
|
||||
String languageTag,
|
||||
String languageCode,
|
||||
String displayTitle,
|
||||
String extendedDisplayTitle) {
|
||||
this(id, streamType, Optional.empty(), codec, index, Optional.empty(), language, languageTag, languageCode, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), displayTitle, extendedDisplayTitle, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(id, streamType, Optional.empty(), codec, index, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), displayTitle, extendedDisplayTitle, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -542,7 +556,7 @@ public class GetAllMediaLibraryStream {
|
||||
* Language of the stream.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String language() {
|
||||
public Optional<String> language() {
|
||||
return language;
|
||||
}
|
||||
|
||||
@@ -550,7 +564,7 @@ public class GetAllMediaLibraryStream {
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String languageTag() {
|
||||
public Optional<String> languageTag() {
|
||||
return languageTag;
|
||||
}
|
||||
|
||||
@@ -558,7 +572,7 @@ public class GetAllMediaLibraryStream {
|
||||
* ISO language code.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String languageCode() {
|
||||
public Optional<String> languageCode() {
|
||||
return languageCode;
|
||||
}
|
||||
|
||||
@@ -674,6 +688,11 @@ public class GetAllMediaLibraryStream {
|
||||
return codedWidth;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> closedCaptions() {
|
||||
return closedCaptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -756,6 +775,11 @@ public class GetAllMediaLibraryStream {
|
||||
return scanType;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> embeddedInVideo() {
|
||||
return embeddedInVideo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -937,6 +961,15 @@ public class GetAllMediaLibraryStream {
|
||||
* Language of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguage(String language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = Optional.ofNullable(language);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguage(Optional<String> language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = language;
|
||||
return this;
|
||||
@@ -946,6 +979,15 @@ public class GetAllMediaLibraryStream {
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageTag(String languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = Optional.ofNullable(languageTag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageTag(Optional<String> languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = languageTag;
|
||||
return this;
|
||||
@@ -955,6 +997,15 @@ public class GetAllMediaLibraryStream {
|
||||
* ISO language code.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageCode(String languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = Optional.ofNullable(languageCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageCode(Optional<String> languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = languageCode;
|
||||
return this;
|
||||
@@ -1212,6 +1263,18 @@ public class GetAllMediaLibraryStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withClosedCaptions(boolean closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = Optional.ofNullable(closedCaptions);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withClosedCaptions(Optional<Boolean> closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = closedCaptions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -1398,6 +1461,18 @@ public class GetAllMediaLibraryStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withEmbeddedInVideo(String embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = Optional.ofNullable(embeddedInVideo);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withEmbeddedInVideo(Optional<String> embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = embeddedInVideo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -1641,6 +1716,7 @@ public class GetAllMediaLibraryStream {
|
||||
Objects.deepEquals(this.chromaSubsampling, other.chromaSubsampling) &&
|
||||
Objects.deepEquals(this.codedHeight, other.codedHeight) &&
|
||||
Objects.deepEquals(this.codedWidth, other.codedWidth) &&
|
||||
Objects.deepEquals(this.closedCaptions, other.closedCaptions) &&
|
||||
Objects.deepEquals(this.colorPrimaries, other.colorPrimaries) &&
|
||||
Objects.deepEquals(this.colorRange, other.colorRange) &&
|
||||
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
||||
@@ -1652,6 +1728,7 @@ public class GetAllMediaLibraryStream {
|
||||
Objects.deepEquals(this.hasScalingMatrix, other.hasScalingMatrix) &&
|
||||
Objects.deepEquals(this.profile, other.profile) &&
|
||||
Objects.deepEquals(this.scanType, other.scanType) &&
|
||||
Objects.deepEquals(this.embeddedInVideo, other.embeddedInVideo) &&
|
||||
Objects.deepEquals(this.refFrames, other.refFrames) &&
|
||||
Objects.deepEquals(this.width, other.width) &&
|
||||
Objects.deepEquals(this.displayTitle, other.displayTitle) &&
|
||||
@@ -1693,6 +1770,7 @@ public class GetAllMediaLibraryStream {
|
||||
chromaSubsampling,
|
||||
codedHeight,
|
||||
codedWidth,
|
||||
closedCaptions,
|
||||
colorPrimaries,
|
||||
colorRange,
|
||||
colorSpace,
|
||||
@@ -1704,6 +1782,7 @@ public class GetAllMediaLibraryStream {
|
||||
hasScalingMatrix,
|
||||
profile,
|
||||
scanType,
|
||||
embeddedInVideo,
|
||||
refFrames,
|
||||
width,
|
||||
displayTitle,
|
||||
@@ -1745,6 +1824,7 @@ public class GetAllMediaLibraryStream {
|
||||
"chromaSubsampling", chromaSubsampling,
|
||||
"codedHeight", codedHeight,
|
||||
"codedWidth", codedWidth,
|
||||
"closedCaptions", closedCaptions,
|
||||
"colorPrimaries", colorPrimaries,
|
||||
"colorRange", colorRange,
|
||||
"colorSpace", colorSpace,
|
||||
@@ -1756,6 +1836,7 @@ public class GetAllMediaLibraryStream {
|
||||
"hasScalingMatrix", hasScalingMatrix,
|
||||
"profile", profile,
|
||||
"scanType", scanType,
|
||||
"embeddedInVideo", embeddedInVideo,
|
||||
"refFrames", refFrames,
|
||||
"width", width,
|
||||
"displayTitle", displayTitle,
|
||||
@@ -1785,11 +1866,11 @@ public class GetAllMediaLibraryStream {
|
||||
|
||||
private Optional<Integer> bitrate = Optional.empty();
|
||||
|
||||
private String language;
|
||||
private Optional<String> language = Optional.empty();
|
||||
|
||||
private String languageTag;
|
||||
private Optional<String> languageTag = Optional.empty();
|
||||
|
||||
private String languageCode;
|
||||
private Optional<String> languageCode = Optional.empty();
|
||||
|
||||
private Optional<Boolean> headerCompression = Optional.empty();
|
||||
|
||||
@@ -1819,6 +1900,8 @@ public class GetAllMediaLibraryStream {
|
||||
|
||||
private Optional<Integer> codedWidth = Optional.empty();
|
||||
|
||||
private Optional<Boolean> closedCaptions = Optional.empty();
|
||||
|
||||
private Optional<String> colorPrimaries = Optional.empty();
|
||||
|
||||
private Optional<String> colorRange = Optional.empty();
|
||||
@@ -1841,6 +1924,8 @@ public class GetAllMediaLibraryStream {
|
||||
|
||||
private Optional<String> scanType = Optional.empty();
|
||||
|
||||
private Optional<String> embeddedInVideo = Optional.empty();
|
||||
|
||||
private Optional<Integer> refFrames = Optional.empty();
|
||||
|
||||
private Optional<Integer> width = Optional.empty();
|
||||
@@ -1947,6 +2032,15 @@ public class GetAllMediaLibraryStream {
|
||||
* Language of the stream.
|
||||
*/
|
||||
public Builder language(String language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = Optional.ofNullable(language);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
public Builder language(Optional<String> language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = language;
|
||||
return this;
|
||||
@@ -1956,6 +2050,15 @@ public class GetAllMediaLibraryStream {
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public Builder languageTag(String languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = Optional.ofNullable(languageTag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public Builder languageTag(Optional<String> languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = languageTag;
|
||||
return this;
|
||||
@@ -1965,6 +2068,15 @@ public class GetAllMediaLibraryStream {
|
||||
* ISO language code.
|
||||
*/
|
||||
public Builder languageCode(String languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = Optional.ofNullable(languageCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
public Builder languageCode(Optional<String> languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = languageCode;
|
||||
return this;
|
||||
@@ -2222,6 +2334,18 @@ public class GetAllMediaLibraryStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder closedCaptions(boolean closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = Optional.ofNullable(closedCaptions);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder closedCaptions(Optional<Boolean> closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = closedCaptions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -2408,6 +2532,18 @@ public class GetAllMediaLibraryStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder embeddedInVideo(String embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = Optional.ofNullable(embeddedInVideo);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder embeddedInVideo(Optional<String> embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = embeddedInVideo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -2643,6 +2779,7 @@ public class GetAllMediaLibraryStream {
|
||||
chromaSubsampling,
|
||||
codedHeight,
|
||||
codedWidth,
|
||||
closedCaptions,
|
||||
colorPrimaries,
|
||||
colorRange,
|
||||
colorSpace,
|
||||
@@ -2654,6 +2791,7 @@ public class GetAllMediaLibraryStream {
|
||||
hasScalingMatrix,
|
||||
profile,
|
||||
scanType,
|
||||
embeddedInVideo,
|
||||
refFrames,
|
||||
width,
|
||||
displayTitle,
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* 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();
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
/*
|
||||
* 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();
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
/*
|
||||
* 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;
|
||||
/**
|
||||
* GetLibraryItemsFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public enum GetLibraryItemsFlattenSeasons {
|
||||
LibraryDefault("-1"),
|
||||
Hide("0"),
|
||||
Show("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsFlattenSeasons(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsFlattenSeasons> fromValue(String value) {
|
||||
for (GetLibraryItemsFlattenSeasons o: GetLibraryItemsFlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
/*
|
||||
* 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 GetLibraryItemsMediaGuid {
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsMediaGuid(
|
||||
@JsonProperty("id") String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMediaGuid withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsMediaGuid other = (GetLibraryItemsMediaGuid) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsMediaGuid.class,
|
||||
"id", id);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String id;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be one of the following formats:
|
||||
* imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
*
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaGuid build() {
|
||||
return new GetLibraryItemsMediaGuid(
|
||||
id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,21 +104,21 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("flattenSeasons")
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
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 GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show.
|
||||
@@ -131,7 +131,7 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("showOrdering")
|
||||
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering;
|
||||
private Optional<? extends ShowOrdering> showOrdering;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
@@ -260,7 +260,7 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Guid")
|
||||
private Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid;
|
||||
private Optional<? extends List<MediaGuid>> mediaGuid;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("UltraBlurColors")
|
||||
@@ -268,7 +268,7 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Rating")
|
||||
private Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating;
|
||||
private Optional<? extends List<MetaDataRating>> metaDataRating;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Image")
|
||||
@@ -386,10 +386,10 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("year") Optional<Integer> year,
|
||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||
@JsonProperty("tagline") Optional<String> tagline,
|
||||
@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("flattenSeasons") Optional<? extends FlattenSeasons> flattenSeasons,
|
||||
@JsonProperty("episodeSort") Optional<? extends EpisodeSort> episodeSort,
|
||||
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
|
||||
@JsonProperty("showOrdering") Optional<? extends ShowOrdering> showOrdering,
|
||||
@JsonProperty("thumb") Optional<String> thumb,
|
||||
@JsonProperty("art") Optional<String> art,
|
||||
@JsonProperty("banner") Optional<String> banner,
|
||||
@@ -418,9 +418,9 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("Collection") Optional<? extends List<GetLibraryItemsCollection>> collection,
|
||||
@JsonProperty("Role") Optional<? extends List<GetLibraryItemsRole>> role,
|
||||
@JsonProperty("Location") Optional<? extends List<GetLibraryItemsLocation>> location,
|
||||
@JsonProperty("Guid") Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid,
|
||||
@JsonProperty("Guid") Optional<? extends List<MediaGuid>> mediaGuid,
|
||||
@JsonProperty("UltraBlurColors") Optional<? extends GetLibraryItemsUltraBlurColors> ultraBlurColors,
|
||||
@JsonProperty("Rating") Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating,
|
||||
@JsonProperty("Rating") Optional<? extends List<MetaDataRating>> metaDataRating,
|
||||
@JsonProperty("Image") Optional<? extends List<GetLibraryItemsImage>> image,
|
||||
@JsonProperty("titleSort") Optional<String> titleSort,
|
||||
@JsonProperty("viewCount") Optional<Integer> viewCount,
|
||||
@@ -713,8 +713,8 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsFlattenSeasons> flattenSeasons() {
|
||||
return (Optional<GetLibraryItemsFlattenSeasons>) flattenSeasons;
|
||||
public Optional<FlattenSeasons> flattenSeasons() {
|
||||
return (Optional<FlattenSeasons>) flattenSeasons;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -722,8 +722,8 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsEpisodeSort> episodeSort() {
|
||||
return (Optional<GetLibraryItemsEpisodeSort>) episodeSort;
|
||||
public Optional<EpisodeSort> episodeSort() {
|
||||
return (Optional<EpisodeSort>) episodeSort;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -731,8 +731,8 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||
return (Optional<GetLibraryItemsEnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||
public Optional<EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||
return (Optional<EnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -746,8 +746,8 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsShowOrdering> showOrdering() {
|
||||
return (Optional<GetLibraryItemsShowOrdering>) showOrdering;
|
||||
public Optional<ShowOrdering> showOrdering() {
|
||||
return (Optional<ShowOrdering>) showOrdering;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -914,8 +914,8 @@ public class GetLibraryItemsMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsMediaGuid>> mediaGuid() {
|
||||
return (Optional<List<GetLibraryItemsMediaGuid>>) mediaGuid;
|
||||
public Optional<List<MediaGuid>> mediaGuid() {
|
||||
return (Optional<List<MediaGuid>>) mediaGuid;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -926,8 +926,8 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsMetaDataRating>> metaDataRating() {
|
||||
return (Optional<List<GetLibraryItemsMetaDataRating>>) metaDataRating;
|
||||
public Optional<List<MetaDataRating>> metaDataRating() {
|
||||
return (Optional<List<MetaDataRating>>) metaDataRating;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1246,7 +1246,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* 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(FlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
@@ -1255,7 +1255,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* 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 FlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
@@ -1264,7 +1264,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withEpisodeSort(GetLibraryItemsEpisodeSort episodeSort) {
|
||||
public GetLibraryItemsMetadata withEpisodeSort(EpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
@@ -1273,7 +1273,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* 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) {
|
||||
public GetLibraryItemsMetadata withEpisodeSort(Optional<? extends EpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
@@ -1282,7 +1282,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
@@ -1291,7 +1291,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
@@ -1306,7 +1306,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
public GetLibraryItemsMetadata withShowOrdering(ShowOrdering showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = Optional.ofNullable(showOrdering);
|
||||
return this;
|
||||
@@ -1321,7 +1321,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = showOrdering;
|
||||
return this;
|
||||
@@ -1678,7 +1678,7 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withMediaGuid(List<GetLibraryItemsMediaGuid> mediaGuid) {
|
||||
public GetLibraryItemsMetadata withMediaGuid(List<MediaGuid> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = Optional.ofNullable(mediaGuid);
|
||||
return this;
|
||||
@@ -1688,7 +1688,7 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withMediaGuid(Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid) {
|
||||
public GetLibraryItemsMetadata withMediaGuid(Optional<? extends List<MediaGuid>> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = mediaGuid;
|
||||
return this;
|
||||
@@ -1706,13 +1706,13 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withMetaDataRating(List<GetLibraryItemsMetaDataRating> metaDataRating) {
|
||||
public GetLibraryItemsMetadata withMetaDataRating(List<MetaDataRating> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = Optional.ofNullable(metaDataRating);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata withMetaDataRating(Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating) {
|
||||
public GetLibraryItemsMetadata withMetaDataRating(Optional<? extends List<MetaDataRating>> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = metaDataRating;
|
||||
return this;
|
||||
@@ -2290,13 +2290,13 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
private Optional<String> tagline = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons = Optional.empty();
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsEpisodeSort> episodeSort = Optional.empty();
|
||||
private Optional<? extends EpisodeSort> episodeSort = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering = Optional.empty();
|
||||
private Optional<? extends ShowOrdering> showOrdering = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -2354,11 +2354,11 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsLocation>> location = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid = Optional.empty();
|
||||
private Optional<? extends List<MediaGuid>> mediaGuid = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsUltraBlurColors> ultraBlurColors = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating = Optional.empty();
|
||||
private Optional<? extends List<MetaDataRating>> metaDataRating = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsImage>> image = Optional.empty();
|
||||
|
||||
@@ -2602,7 +2602,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* 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(FlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
@@ -2611,7 +2611,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* 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 FlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
@@ -2620,7 +2620,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public Builder episodeSort(GetLibraryItemsEpisodeSort episodeSort) {
|
||||
public Builder episodeSort(EpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
@@ -2629,7 +2629,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* 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) {
|
||||
public Builder episodeSort(Optional<? extends EpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
@@ -2638,7 +2638,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
public Builder enableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
@@ -2647,7 +2647,7 @@ public class GetLibraryItemsMetadata {
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
public Builder enableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
@@ -2662,7 +2662,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
public Builder showOrdering(ShowOrdering showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = Optional.ofNullable(showOrdering);
|
||||
return this;
|
||||
@@ -2677,7 +2677,7 @@ public class GetLibraryItemsMetadata {
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
public Builder showOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
this.showOrdering = showOrdering;
|
||||
return this;
|
||||
@@ -3034,7 +3034,7 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder mediaGuid(List<GetLibraryItemsMediaGuid> mediaGuid) {
|
||||
public Builder mediaGuid(List<MediaGuid> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = Optional.ofNullable(mediaGuid);
|
||||
return this;
|
||||
@@ -3044,7 +3044,7 @@ public class GetLibraryItemsMetadata {
|
||||
* The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
*
|
||||
*/
|
||||
public Builder mediaGuid(Optional<? extends List<GetLibraryItemsMediaGuid>> mediaGuid) {
|
||||
public Builder mediaGuid(Optional<? extends List<MediaGuid>> mediaGuid) {
|
||||
Utils.checkNotNull(mediaGuid, "mediaGuid");
|
||||
this.mediaGuid = mediaGuid;
|
||||
return this;
|
||||
@@ -3062,13 +3062,13 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metaDataRating(List<GetLibraryItemsMetaDataRating> metaDataRating) {
|
||||
public Builder metaDataRating(List<MetaDataRating> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = Optional.ofNullable(metaDataRating);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metaDataRating(Optional<? extends List<GetLibraryItemsMetaDataRating>> metaDataRating) {
|
||||
public Builder metaDataRating(Optional<? extends List<MetaDataRating>> metaDataRating) {
|
||||
Utils.checkNotNull(metaDataRating, "metaDataRating");
|
||||
this.metaDataRating = metaDataRating;
|
||||
return this;
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* 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;
|
||||
/**
|
||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show.
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
TvdbAired("aired"),
|
||||
TvdbDvd("dvd"),
|
||||
TvdbAbsolute("absolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsShowOrdering(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsShowOrdering> fromValue(String value) {
|
||||
for (GetLibraryItemsShowOrdering o: GetLibraryItemsShowOrdering.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,9 @@ public class GetMediaMetaDataLibraryOptimizedForStreaming {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static GetMediaMetaDataLibraryOptimizedForStreaming of(GetMediaMetaDataOptimizedForStreaming1 value) {
|
||||
public static GetMediaMetaDataLibraryOptimizedForStreaming of(GetMediaMetaDataOptimizedForStreamingLibrary1 value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new GetMediaMetaDataLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<GetMediaMetaDataOptimizedForStreaming1>(){}));
|
||||
return new GetMediaMetaDataLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<GetMediaMetaDataOptimizedForStreamingLibrary1>(){}));
|
||||
}
|
||||
|
||||
public static GetMediaMetaDataLibraryOptimizedForStreaming of(boolean value) {
|
||||
@@ -44,7 +44,7 @@ public class GetMediaMetaDataLibraryOptimizedForStreaming {
|
||||
/**
|
||||
* Returns an instance of one of these types:
|
||||
* <ul>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.GetMediaMetaDataOptimizedForStreaming1}</li>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.GetMediaMetaDataOptimizedForStreamingLibrary1}</li>
|
||||
* <li>{@code boolean}</li>
|
||||
* </ul>
|
||||
*
|
||||
@@ -86,7 +86,7 @@ public class GetMediaMetaDataLibraryOptimizedForStreaming {
|
||||
public _Deserializer() {
|
||||
super(GetMediaMetaDataLibraryOptimizedForStreaming.class, false,
|
||||
TypeReferenceWithShape.of(new TypeReference<Boolean>() {}, JsonShape.DEFAULT),
|
||||
TypeReferenceWithShape.of(new TypeReference<GetMediaMetaDataOptimizedForStreaming1>() {}, JsonShape.DEFAULT));
|
||||
TypeReferenceWithShape.of(new TypeReference<GetMediaMetaDataOptimizedForStreamingLibrary1>() {}, JsonShape.DEFAULT));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,8 +121,9 @@ public class GetMediaMetaDataMedia {
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasVoiceActivity")
|
||||
private boolean hasVoiceActivity;
|
||||
private Optional<Boolean> hasVoiceActivity;
|
||||
|
||||
/**
|
||||
* The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
@@ -145,8 +146,9 @@ public class GetMediaMetaDataMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Part")
|
||||
private List<GetMediaMetaDataPart> part;
|
||||
private Optional<? extends List<GetMediaMetaDataPart>> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataMedia(
|
||||
@@ -164,11 +166,11 @@ public class GetMediaMetaDataMedia {
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoFrameRate") Optional<String> videoFrameRate,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("hasVoiceActivity") boolean hasVoiceActivity,
|
||||
@JsonProperty("hasVoiceActivity") Optional<Boolean> hasVoiceActivity,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends GetMediaMetaDataOptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("Part") List<GetMediaMetaDataPart> part) {
|
||||
@JsonProperty("Part") Optional<? extends List<GetMediaMetaDataPart>> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
@@ -210,10 +212,8 @@ public class GetMediaMetaDataMedia {
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMedia(
|
||||
long id,
|
||||
boolean hasVoiceActivity,
|
||||
List<GetMediaMetaDataPart> part) {
|
||||
this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), hasVoiceActivity, Optional.empty(), Optional.empty(), Optional.empty(), part);
|
||||
long id) {
|
||||
this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -330,7 +330,7 @@ public class GetMediaMetaDataMedia {
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean hasVoiceActivity() {
|
||||
public Optional<Boolean> hasVoiceActivity() {
|
||||
return hasVoiceActivity;
|
||||
}
|
||||
|
||||
@@ -359,9 +359,10 @@ public class GetMediaMetaDataMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public List<GetMediaMetaDataPart> part() {
|
||||
return part;
|
||||
public Optional<List<GetMediaMetaDataPart>> part() {
|
||||
return (Optional<List<GetMediaMetaDataPart>>) part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -611,6 +612,15 @@ public class GetMediaMetaDataMedia {
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withHasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withHasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
@@ -668,6 +678,15 @@ public class GetMediaMetaDataMedia {
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withPart(List<GetMediaMetaDataPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public GetMediaMetaDataMedia withPart(Optional<? extends List<GetMediaMetaDataPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
@@ -782,7 +801,7 @@ public class GetMediaMetaDataMedia {
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Boolean hasVoiceActivity;
|
||||
private Optional<Boolean> hasVoiceActivity = Optional.empty();
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
@@ -790,7 +809,7 @@ public class GetMediaMetaDataMedia {
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private List<GetMediaMetaDataPart> part;
|
||||
private Optional<? extends List<GetMediaMetaDataPart>> part = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -1039,6 +1058,15 @@ public class GetMediaMetaDataMedia {
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public Builder hasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public Builder hasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
@@ -1096,6 +1124,15 @@ public class GetMediaMetaDataMedia {
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public Builder part(List<GetMediaMetaDataPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public Builder part(Optional<? extends List<GetMediaMetaDataPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
|
||||
@@ -399,14 +399,14 @@ public class GetMediaMetaDataMetadata {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Producer")
|
||||
private Optional<? extends List<Producer>> producer;
|
||||
private Optional<? extends List<GetMediaMetaDataProducer>> producer;
|
||||
|
||||
/**
|
||||
* An array of similar content objects.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Similar")
|
||||
private Optional<? extends List<Similar>> similar;
|
||||
private Optional<? extends List<GetMediaMetaDataSimilar>> similar;
|
||||
|
||||
/**
|
||||
* An array of location objects.
|
||||
@@ -475,8 +475,8 @@ public class GetMediaMetaDataMetadata {
|
||||
@JsonProperty("Role") Optional<? extends List<GetMediaMetaDataRole>> role,
|
||||
@JsonProperty("Director") Optional<? extends List<GetMediaMetaDataDirector>> director,
|
||||
@JsonProperty("Writer") Optional<? extends List<GetMediaMetaDataWriter>> writer,
|
||||
@JsonProperty("Producer") Optional<? extends List<Producer>> producer,
|
||||
@JsonProperty("Similar") Optional<? extends List<Similar>> similar,
|
||||
@JsonProperty("Producer") Optional<? extends List<GetMediaMetaDataProducer>> producer,
|
||||
@JsonProperty("Similar") Optional<? extends List<GetMediaMetaDataSimilar>> similar,
|
||||
@JsonProperty("Location") Optional<? extends List<GetMediaMetaDataLocation>> location) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
Utils.checkNotNull(parentRatingKey, "parentRatingKey");
|
||||
@@ -1082,8 +1082,8 @@ public class GetMediaMetaDataMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Producer>> producer() {
|
||||
return (Optional<List<Producer>>) producer;
|
||||
public Optional<List<GetMediaMetaDataProducer>> producer() {
|
||||
return (Optional<List<GetMediaMetaDataProducer>>) producer;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1091,8 +1091,8 @@ public class GetMediaMetaDataMetadata {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Similar>> similar() {
|
||||
return (Optional<List<Similar>>) similar;
|
||||
public Optional<List<GetMediaMetaDataSimilar>> similar() {
|
||||
return (Optional<List<GetMediaMetaDataSimilar>>) similar;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1975,7 +1975,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of Writer roles.
|
||||
*/
|
||||
public GetMediaMetaDataMetadata withProducer(List<Producer> producer) {
|
||||
public GetMediaMetaDataMetadata withProducer(List<GetMediaMetaDataProducer> producer) {
|
||||
Utils.checkNotNull(producer, "producer");
|
||||
this.producer = Optional.ofNullable(producer);
|
||||
return this;
|
||||
@@ -1984,7 +1984,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of Writer roles.
|
||||
*/
|
||||
public GetMediaMetaDataMetadata withProducer(Optional<? extends List<Producer>> producer) {
|
||||
public GetMediaMetaDataMetadata withProducer(Optional<? extends List<GetMediaMetaDataProducer>> producer) {
|
||||
Utils.checkNotNull(producer, "producer");
|
||||
this.producer = producer;
|
||||
return this;
|
||||
@@ -1993,7 +1993,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of similar content objects.
|
||||
*/
|
||||
public GetMediaMetaDataMetadata withSimilar(List<Similar> similar) {
|
||||
public GetMediaMetaDataMetadata withSimilar(List<GetMediaMetaDataSimilar> similar) {
|
||||
Utils.checkNotNull(similar, "similar");
|
||||
this.similar = Optional.ofNullable(similar);
|
||||
return this;
|
||||
@@ -2002,7 +2002,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of similar content objects.
|
||||
*/
|
||||
public GetMediaMetaDataMetadata withSimilar(Optional<? extends List<Similar>> similar) {
|
||||
public GetMediaMetaDataMetadata withSimilar(Optional<? extends List<GetMediaMetaDataSimilar>> similar) {
|
||||
Utils.checkNotNull(similar, "similar");
|
||||
this.similar = similar;
|
||||
return this;
|
||||
@@ -2349,9 +2349,9 @@ public class GetMediaMetaDataMetadata {
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataWriter>> writer = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Producer>> producer = Optional.empty();
|
||||
private Optional<? extends List<GetMediaMetaDataProducer>> producer = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Similar>> similar = Optional.empty();
|
||||
private Optional<? extends List<GetMediaMetaDataSimilar>> similar = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataLocation>> location = Optional.empty();
|
||||
|
||||
@@ -3226,7 +3226,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of Writer roles.
|
||||
*/
|
||||
public Builder producer(List<Producer> producer) {
|
||||
public Builder producer(List<GetMediaMetaDataProducer> producer) {
|
||||
Utils.checkNotNull(producer, "producer");
|
||||
this.producer = Optional.ofNullable(producer);
|
||||
return this;
|
||||
@@ -3235,7 +3235,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of Writer roles.
|
||||
*/
|
||||
public Builder producer(Optional<? extends List<Producer>> producer) {
|
||||
public Builder producer(Optional<? extends List<GetMediaMetaDataProducer>> producer) {
|
||||
Utils.checkNotNull(producer, "producer");
|
||||
this.producer = producer;
|
||||
return this;
|
||||
@@ -3244,7 +3244,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of similar content objects.
|
||||
*/
|
||||
public Builder similar(List<Similar> similar) {
|
||||
public Builder similar(List<GetMediaMetaDataSimilar> similar) {
|
||||
Utils.checkNotNull(similar, "similar");
|
||||
this.similar = Optional.ofNullable(similar);
|
||||
return this;
|
||||
@@ -3253,7 +3253,7 @@ public class GetMediaMetaDataMetadata {
|
||||
/**
|
||||
* An array of similar content objects.
|
||||
*/
|
||||
public Builder similar(Optional<? extends List<Similar>> similar) {
|
||||
public Builder similar(Optional<? extends List<GetMediaMetaDataSimilar>> similar) {
|
||||
Utils.checkNotNull(similar, "similar");
|
||||
this.similar = similar;
|
||||
return this;
|
||||
|
||||
@@ -31,9 +31,9 @@ public class GetMediaMetaDataOptimizedForStreaming {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static GetMediaMetaDataOptimizedForStreaming of(OptimizedForStreaming1 value) {
|
||||
public static GetMediaMetaDataOptimizedForStreaming of(GetMediaMetaDataOptimizedForStreaming1 value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new GetMediaMetaDataOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<OptimizedForStreaming1>(){}));
|
||||
return new GetMediaMetaDataOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<GetMediaMetaDataOptimizedForStreaming1>(){}));
|
||||
}
|
||||
|
||||
public static GetMediaMetaDataOptimizedForStreaming of(boolean value) {
|
||||
@@ -44,7 +44,7 @@ public class GetMediaMetaDataOptimizedForStreaming {
|
||||
/**
|
||||
* Returns an instance of one of these types:
|
||||
* <ul>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.OptimizedForStreaming1}</li>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.GetMediaMetaDataOptimizedForStreaming1}</li>
|
||||
* <li>{@code boolean}</li>
|
||||
* </ul>
|
||||
*
|
||||
@@ -86,7 +86,7 @@ public class GetMediaMetaDataOptimizedForStreaming {
|
||||
public _Deserializer() {
|
||||
super(GetMediaMetaDataOptimizedForStreaming.class, false,
|
||||
TypeReferenceWithShape.of(new TypeReference<Boolean>() {}, JsonShape.DEFAULT),
|
||||
TypeReferenceWithShape.of(new TypeReference<OptimizedForStreaming1>() {}, JsonShape.DEFAULT));
|
||||
TypeReferenceWithShape.of(new TypeReference<GetMediaMetaDataOptimizedForStreaming1>() {}, JsonShape.DEFAULT));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
public enum GetMediaMetaDataOptimizedForStreamingLibrary1 {
|
||||
ZERO(0),
|
||||
ONE(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private GetMediaMetaDataOptimizedForStreamingLibrary1(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetMediaMetaDataOptimizedForStreamingLibrary1> fromValue(int value) {
|
||||
for (GetMediaMetaDataOptimizedForStreamingLibrary1 o: GetMediaMetaDataOptimizedForStreamingLibrary1.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,354 @@
|
||||
/*
|
||||
* 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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetMediaMetaDataProducer {
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonProperty("tagKey")
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("role")
|
||||
private Optional<String> role;
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataProducer(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("role") Optional<String> role,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
Utils.checkNotNull(role, "role");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
this.tagKey = tagKey;
|
||||
this.role = role;
|
||||
this.thumb = thumb;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataProducer(
|
||||
long id,
|
||||
String filter,
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> role() {
|
||||
return role;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withRole(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withRole(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public GetMediaMetaDataProducer withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMediaMetaDataProducer other = (GetMediaMetaDataProducer) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||
Objects.deepEquals(this.role, other.role) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataProducer.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag,
|
||||
"tagKey", tagKey,
|
||||
"role", role,
|
||||
"thumb", thumb);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique role identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for the role.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The actor's name.
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A key associated with the actor tag.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(String role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = Optional.ofNullable(role);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The character name or role.
|
||||
*/
|
||||
public Builder role(Optional<String> role) {
|
||||
Utils.checkNotNull(role, "role");
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* URL for the role thumbnail image.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataProducer build() {
|
||||
return new GetMediaMetaDataProducer(
|
||||
id,
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
role,
|
||||
thumb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
/*
|
||||
* 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.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetMediaMetaDataSimilar {
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataSimilar(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
public GetMediaMetaDataSimilar withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
public GetMediaMetaDataSimilar withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
public GetMediaMetaDataSimilar withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetMediaMetaDataSimilar other = (GetMediaMetaDataSimilar) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetMediaMetaDataSimilar.class,
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique similar item identifier.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string for similar items.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The tag or title of the similar content.
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataSimilar build() {
|
||||
return new GetMediaMetaDataSimilar(
|
||||
id,
|
||||
filter,
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,20 +62,23 @@ public class GetMediaMetaDataStream {
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("language")
|
||||
private String language;
|
||||
private Optional<String> language;
|
||||
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("languageTag")
|
||||
private String languageTag;
|
||||
private Optional<String> languageTag;
|
||||
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("languageCode")
|
||||
private String languageCode;
|
||||
private Optional<String> languageCode;
|
||||
|
||||
/**
|
||||
* Indicates whether header compression is enabled.
|
||||
@@ -175,6 +178,10 @@ public class GetMediaMetaDataStream {
|
||||
@JsonProperty("codedWidth")
|
||||
private Optional<Integer> codedWidth;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("closedCaptions")
|
||||
private Optional<Boolean> closedCaptions;
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -246,6 +253,10 @@ public class GetMediaMetaDataStream {
|
||||
@JsonProperty("scanType")
|
||||
private Optional<String> scanType;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("embeddedInVideo")
|
||||
private Optional<String> embeddedInVideo;
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -340,9 +351,9 @@ public class GetMediaMetaDataStream {
|
||||
@JsonProperty("codec") String codec,
|
||||
@JsonProperty("index") int index,
|
||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||
@JsonProperty("language") String language,
|
||||
@JsonProperty("languageTag") String languageTag,
|
||||
@JsonProperty("languageCode") String languageCode,
|
||||
@JsonProperty("language") Optional<String> language,
|
||||
@JsonProperty("languageTag") Optional<String> languageTag,
|
||||
@JsonProperty("languageCode") Optional<String> languageCode,
|
||||
@JsonProperty("headerCompression") Optional<Boolean> headerCompression,
|
||||
@JsonProperty("DOVIBLCompatID") Optional<Integer> doviblCompatID,
|
||||
@JsonProperty("DOVIBLPresent") Optional<Boolean> doviblPresent,
|
||||
@@ -357,6 +368,7 @@ public class GetMediaMetaDataStream {
|
||||
@JsonProperty("chromaSubsampling") Optional<String> chromaSubsampling,
|
||||
@JsonProperty("codedHeight") Optional<Integer> codedHeight,
|
||||
@JsonProperty("codedWidth") Optional<Integer> codedWidth,
|
||||
@JsonProperty("closedCaptions") Optional<Boolean> closedCaptions,
|
||||
@JsonProperty("colorPrimaries") Optional<String> colorPrimaries,
|
||||
@JsonProperty("colorRange") Optional<String> colorRange,
|
||||
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
||||
@@ -368,6 +380,7 @@ public class GetMediaMetaDataStream {
|
||||
@JsonProperty("hasScalingMatrix") Optional<Boolean> hasScalingMatrix,
|
||||
@JsonProperty("profile") Optional<String> profile,
|
||||
@JsonProperty("scanType") Optional<String> scanType,
|
||||
@JsonProperty("embeddedInVideo") Optional<String> embeddedInVideo,
|
||||
@JsonProperty("refFrames") Optional<Integer> refFrames,
|
||||
@JsonProperty("width") Optional<Integer> width,
|
||||
@JsonProperty("displayTitle") String displayTitle,
|
||||
@@ -404,6 +417,7 @@ public class GetMediaMetaDataStream {
|
||||
Utils.checkNotNull(chromaSubsampling, "chromaSubsampling");
|
||||
Utils.checkNotNull(codedHeight, "codedHeight");
|
||||
Utils.checkNotNull(codedWidth, "codedWidth");
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
Utils.checkNotNull(colorPrimaries, "colorPrimaries");
|
||||
Utils.checkNotNull(colorRange, "colorRange");
|
||||
Utils.checkNotNull(colorSpace, "colorSpace");
|
||||
@@ -415,6 +429,7 @@ public class GetMediaMetaDataStream {
|
||||
Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix");
|
||||
Utils.checkNotNull(profile, "profile");
|
||||
Utils.checkNotNull(scanType, "scanType");
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
Utils.checkNotNull(refFrames, "refFrames");
|
||||
Utils.checkNotNull(width, "width");
|
||||
Utils.checkNotNull(displayTitle, "displayTitle");
|
||||
@@ -451,6 +466,7 @@ public class GetMediaMetaDataStream {
|
||||
this.chromaSubsampling = chromaSubsampling;
|
||||
this.codedHeight = codedHeight;
|
||||
this.codedWidth = codedWidth;
|
||||
this.closedCaptions = closedCaptions;
|
||||
this.colorPrimaries = colorPrimaries;
|
||||
this.colorRange = colorRange;
|
||||
this.colorSpace = colorSpace;
|
||||
@@ -462,6 +478,7 @@ public class GetMediaMetaDataStream {
|
||||
this.hasScalingMatrix = hasScalingMatrix;
|
||||
this.profile = profile;
|
||||
this.scanType = scanType;
|
||||
this.embeddedInVideo = embeddedInVideo;
|
||||
this.refFrames = refFrames;
|
||||
this.width = width;
|
||||
this.displayTitle = displayTitle;
|
||||
@@ -482,12 +499,9 @@ public class GetMediaMetaDataStream {
|
||||
int streamType,
|
||||
String codec,
|
||||
int index,
|
||||
String language,
|
||||
String languageTag,
|
||||
String languageCode,
|
||||
String displayTitle,
|
||||
String extendedDisplayTitle) {
|
||||
this(id, streamType, Optional.empty(), codec, index, Optional.empty(), language, languageTag, languageCode, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), displayTitle, extendedDisplayTitle, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(id, streamType, Optional.empty(), codec, index, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), displayTitle, extendedDisplayTitle, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -542,7 +556,7 @@ public class GetMediaMetaDataStream {
|
||||
* Language of the stream.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String language() {
|
||||
public Optional<String> language() {
|
||||
return language;
|
||||
}
|
||||
|
||||
@@ -550,7 +564,7 @@ public class GetMediaMetaDataStream {
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String languageTag() {
|
||||
public Optional<String> languageTag() {
|
||||
return languageTag;
|
||||
}
|
||||
|
||||
@@ -558,7 +572,7 @@ public class GetMediaMetaDataStream {
|
||||
* ISO language code.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String languageCode() {
|
||||
public Optional<String> languageCode() {
|
||||
return languageCode;
|
||||
}
|
||||
|
||||
@@ -674,6 +688,11 @@ public class GetMediaMetaDataStream {
|
||||
return codedWidth;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> closedCaptions() {
|
||||
return closedCaptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -756,6 +775,11 @@ public class GetMediaMetaDataStream {
|
||||
return scanType;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> embeddedInVideo() {
|
||||
return embeddedInVideo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -937,6 +961,15 @@ public class GetMediaMetaDataStream {
|
||||
* Language of the stream.
|
||||
*/
|
||||
public GetMediaMetaDataStream withLanguage(String language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = Optional.ofNullable(language);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
public GetMediaMetaDataStream withLanguage(Optional<String> language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = language;
|
||||
return this;
|
||||
@@ -946,6 +979,15 @@ public class GetMediaMetaDataStream {
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public GetMediaMetaDataStream withLanguageTag(String languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = Optional.ofNullable(languageTag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public GetMediaMetaDataStream withLanguageTag(Optional<String> languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = languageTag;
|
||||
return this;
|
||||
@@ -955,6 +997,15 @@ public class GetMediaMetaDataStream {
|
||||
* ISO language code.
|
||||
*/
|
||||
public GetMediaMetaDataStream withLanguageCode(String languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = Optional.ofNullable(languageCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
public GetMediaMetaDataStream withLanguageCode(Optional<String> languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = languageCode;
|
||||
return this;
|
||||
@@ -1212,6 +1263,18 @@ public class GetMediaMetaDataStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataStream withClosedCaptions(boolean closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = Optional.ofNullable(closedCaptions);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataStream withClosedCaptions(Optional<Boolean> closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = closedCaptions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -1398,6 +1461,18 @@ public class GetMediaMetaDataStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataStream withEmbeddedInVideo(String embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = Optional.ofNullable(embeddedInVideo);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataStream withEmbeddedInVideo(Optional<String> embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = embeddedInVideo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -1641,6 +1716,7 @@ public class GetMediaMetaDataStream {
|
||||
Objects.deepEquals(this.chromaSubsampling, other.chromaSubsampling) &&
|
||||
Objects.deepEquals(this.codedHeight, other.codedHeight) &&
|
||||
Objects.deepEquals(this.codedWidth, other.codedWidth) &&
|
||||
Objects.deepEquals(this.closedCaptions, other.closedCaptions) &&
|
||||
Objects.deepEquals(this.colorPrimaries, other.colorPrimaries) &&
|
||||
Objects.deepEquals(this.colorRange, other.colorRange) &&
|
||||
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
||||
@@ -1652,6 +1728,7 @@ public class GetMediaMetaDataStream {
|
||||
Objects.deepEquals(this.hasScalingMatrix, other.hasScalingMatrix) &&
|
||||
Objects.deepEquals(this.profile, other.profile) &&
|
||||
Objects.deepEquals(this.scanType, other.scanType) &&
|
||||
Objects.deepEquals(this.embeddedInVideo, other.embeddedInVideo) &&
|
||||
Objects.deepEquals(this.refFrames, other.refFrames) &&
|
||||
Objects.deepEquals(this.width, other.width) &&
|
||||
Objects.deepEquals(this.displayTitle, other.displayTitle) &&
|
||||
@@ -1693,6 +1770,7 @@ public class GetMediaMetaDataStream {
|
||||
chromaSubsampling,
|
||||
codedHeight,
|
||||
codedWidth,
|
||||
closedCaptions,
|
||||
colorPrimaries,
|
||||
colorRange,
|
||||
colorSpace,
|
||||
@@ -1704,6 +1782,7 @@ public class GetMediaMetaDataStream {
|
||||
hasScalingMatrix,
|
||||
profile,
|
||||
scanType,
|
||||
embeddedInVideo,
|
||||
refFrames,
|
||||
width,
|
||||
displayTitle,
|
||||
@@ -1745,6 +1824,7 @@ public class GetMediaMetaDataStream {
|
||||
"chromaSubsampling", chromaSubsampling,
|
||||
"codedHeight", codedHeight,
|
||||
"codedWidth", codedWidth,
|
||||
"closedCaptions", closedCaptions,
|
||||
"colorPrimaries", colorPrimaries,
|
||||
"colorRange", colorRange,
|
||||
"colorSpace", colorSpace,
|
||||
@@ -1756,6 +1836,7 @@ public class GetMediaMetaDataStream {
|
||||
"hasScalingMatrix", hasScalingMatrix,
|
||||
"profile", profile,
|
||||
"scanType", scanType,
|
||||
"embeddedInVideo", embeddedInVideo,
|
||||
"refFrames", refFrames,
|
||||
"width", width,
|
||||
"displayTitle", displayTitle,
|
||||
@@ -1785,11 +1866,11 @@ public class GetMediaMetaDataStream {
|
||||
|
||||
private Optional<Integer> bitrate = Optional.empty();
|
||||
|
||||
private String language;
|
||||
private Optional<String> language = Optional.empty();
|
||||
|
||||
private String languageTag;
|
||||
private Optional<String> languageTag = Optional.empty();
|
||||
|
||||
private String languageCode;
|
||||
private Optional<String> languageCode = Optional.empty();
|
||||
|
||||
private Optional<Boolean> headerCompression = Optional.empty();
|
||||
|
||||
@@ -1819,6 +1900,8 @@ public class GetMediaMetaDataStream {
|
||||
|
||||
private Optional<Integer> codedWidth = Optional.empty();
|
||||
|
||||
private Optional<Boolean> closedCaptions = Optional.empty();
|
||||
|
||||
private Optional<String> colorPrimaries = Optional.empty();
|
||||
|
||||
private Optional<String> colorRange = Optional.empty();
|
||||
@@ -1841,6 +1924,8 @@ public class GetMediaMetaDataStream {
|
||||
|
||||
private Optional<String> scanType = Optional.empty();
|
||||
|
||||
private Optional<String> embeddedInVideo = Optional.empty();
|
||||
|
||||
private Optional<Integer> refFrames = Optional.empty();
|
||||
|
||||
private Optional<Integer> width = Optional.empty();
|
||||
@@ -1947,6 +2032,15 @@ public class GetMediaMetaDataStream {
|
||||
* Language of the stream.
|
||||
*/
|
||||
public Builder language(String language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = Optional.ofNullable(language);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
public Builder language(Optional<String> language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = language;
|
||||
return this;
|
||||
@@ -1956,6 +2050,15 @@ public class GetMediaMetaDataStream {
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public Builder languageTag(String languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = Optional.ofNullable(languageTag);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public Builder languageTag(Optional<String> languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = languageTag;
|
||||
return this;
|
||||
@@ -1965,6 +2068,15 @@ public class GetMediaMetaDataStream {
|
||||
* ISO language code.
|
||||
*/
|
||||
public Builder languageCode(String languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = Optional.ofNullable(languageCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
public Builder languageCode(Optional<String> languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = languageCode;
|
||||
return this;
|
||||
@@ -2222,6 +2334,18 @@ public class GetMediaMetaDataStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder closedCaptions(boolean closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = Optional.ofNullable(closedCaptions);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder closedCaptions(Optional<Boolean> closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = closedCaptions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
@@ -2408,6 +2532,18 @@ public class GetMediaMetaDataStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder embeddedInVideo(String embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = Optional.ofNullable(embeddedInVideo);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder embeddedInVideo(Optional<String> embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = embeddedInVideo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
@@ -2643,6 +2779,7 @@ public class GetMediaMetaDataStream {
|
||||
chromaSubsampling,
|
||||
codedHeight,
|
||||
codedWidth,
|
||||
closedCaptions,
|
||||
colorPrimaries,
|
||||
colorRange,
|
||||
colorSpace,
|
||||
@@ -2654,6 +2791,7 @@ public class GetMediaMetaDataStream {
|
||||
hasScalingMatrix,
|
||||
profile,
|
||||
scanType,
|
||||
embeddedInVideo,
|
||||
refFrames,
|
||||
width,
|
||||
displayTitle,
|
||||
|
||||
@@ -1,699 +0,0 @@
|
||||
/*
|
||||
* 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.Double;
|
||||
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 GetOnDeckMedia {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Double> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Double> duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("bitrate")
|
||||
private Optional<Double> bitrate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("width")
|
||||
private Optional<Double> width;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("height")
|
||||
private Optional<Double> height;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("aspectRatio")
|
||||
private Optional<Double> aspectRatio;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioChannels")
|
||||
private Optional<Double> audioChannels;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioCodec")
|
||||
private Optional<String> audioCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoCodec")
|
||||
private Optional<String> videoCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoResolution")
|
||||
private Optional<String> videoResolution;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoFrameRate")
|
||||
private Optional<String> videoFrameRate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Part")
|
||||
private Optional<? extends List<GetOnDeckPart>> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckMedia(
|
||||
@JsonProperty("id") Optional<Double> id,
|
||||
@JsonProperty("duration") Optional<Double> duration,
|
||||
@JsonProperty("bitrate") Optional<Double> bitrate,
|
||||
@JsonProperty("width") Optional<Double> width,
|
||||
@JsonProperty("height") Optional<Double> height,
|
||||
@JsonProperty("aspectRatio") Optional<Double> aspectRatio,
|
||||
@JsonProperty("audioChannels") Optional<Double> audioChannels,
|
||||
@JsonProperty("audioCodec") Optional<String> audioCodec,
|
||||
@JsonProperty("videoCodec") Optional<String> videoCodec,
|
||||
@JsonProperty("videoResolution") Optional<String> videoResolution,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoFrameRate") Optional<String> videoFrameRate,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Part") Optional<? extends List<GetOnDeckPart>> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
Utils.checkNotNull(width, "width");
|
||||
Utils.checkNotNull(height, "height");
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.id = id;
|
||||
this.duration = duration;
|
||||
this.bitrate = bitrate;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.aspectRatio = aspectRatio;
|
||||
this.audioChannels = audioChannels;
|
||||
this.audioCodec = audioCodec;
|
||||
this.videoCodec = videoCodec;
|
||||
this.videoResolution = videoResolution;
|
||||
this.container = container;
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
this.audioProfile = audioProfile;
|
||||
this.videoProfile = videoProfile;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia() {
|
||||
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());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> bitrate() {
|
||||
return bitrate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> width() {
|
||||
return width;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> height() {
|
||||
return height;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> aspectRatio() {
|
||||
return aspectRatio;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> audioChannels() {
|
||||
return audioChannels;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioCodec() {
|
||||
return audioCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoCodec() {
|
||||
return videoCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoResolution() {
|
||||
return videoResolution;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoFrameRate() {
|
||||
return videoFrameRate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetOnDeckPart>> part() {
|
||||
return (Optional<List<GetOnDeckPart>>) part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withId(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withId(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withDuration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withDuration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withBitrate(double bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withBitrate(Optional<Double> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withWidth(double width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withWidth(Optional<Double> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withHeight(double height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withHeight(Optional<Double> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAudioChannels(double audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAudioChannels(Optional<Double> audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAudioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAudioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoResolution(Optional<String> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withPart(List<GetOnDeckPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia withPart(Optional<? extends List<GetOnDeckPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetOnDeckMedia other = (GetOnDeckMedia) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.duration, other.duration) &&
|
||||
Objects.deepEquals(this.bitrate, other.bitrate) &&
|
||||
Objects.deepEquals(this.width, other.width) &&
|
||||
Objects.deepEquals(this.height, other.height) &&
|
||||
Objects.deepEquals(this.aspectRatio, other.aspectRatio) &&
|
||||
Objects.deepEquals(this.audioChannels, other.audioChannels) &&
|
||||
Objects.deepEquals(this.audioCodec, other.audioCodec) &&
|
||||
Objects.deepEquals(this.videoCodec, other.videoCodec) &&
|
||||
Objects.deepEquals(this.videoResolution, other.videoResolution) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) &&
|
||||
Objects.deepEquals(this.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.part, other.part);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
audioProfile,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetOnDeckMedia.class,
|
||||
"id", id,
|
||||
"duration", duration,
|
||||
"bitrate", bitrate,
|
||||
"width", width,
|
||||
"height", height,
|
||||
"aspectRatio", aspectRatio,
|
||||
"audioChannels", audioChannels,
|
||||
"audioCodec", audioCodec,
|
||||
"videoCodec", videoCodec,
|
||||
"videoResolution", videoResolution,
|
||||
"container", container,
|
||||
"videoFrameRate", videoFrameRate,
|
||||
"audioProfile", audioProfile,
|
||||
"videoProfile", videoProfile,
|
||||
"part", part);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> id = Optional.empty();
|
||||
|
||||
private Optional<Double> duration = Optional.empty();
|
||||
|
||||
private Optional<Double> bitrate = Optional.empty();
|
||||
|
||||
private Optional<Double> width = Optional.empty();
|
||||
|
||||
private Optional<Double> height = Optional.empty();
|
||||
|
||||
private Optional<Double> aspectRatio = Optional.empty();
|
||||
|
||||
private Optional<Double> audioChannels = Optional.empty();
|
||||
|
||||
private Optional<String> audioCodec = Optional.empty();
|
||||
|
||||
private Optional<String> videoCodec = Optional.empty();
|
||||
|
||||
private Optional<String> videoResolution = Optional.empty();
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
|
||||
private Optional<String> videoFrameRate = Optional.empty();
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetOnDeckPart>> part = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(double bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(Optional<Double> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(double width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(Optional<Double> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(double height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(Optional<Double> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(double audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(Optional<Double> audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(Optional<String> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(List<GetOnDeckPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(Optional<? extends List<GetOnDeckPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMedia build() {
|
||||
return new GetOnDeckMedia(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
videoResolution,
|
||||
container,
|
||||
videoFrameRate,
|
||||
audioProfile,
|
||||
videoProfile,
|
||||
part);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,364 +0,0 @@
|
||||
/*
|
||||
* 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.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetOnDeckMediaContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Double> size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("allowSync")
|
||||
private Optional<Boolean> allowSync;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("identifier")
|
||||
private Optional<String> identifier;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagPrefix")
|
||||
private Optional<String> mediaTagPrefix;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mediaTagVersion")
|
||||
private Optional<Double> mediaTagVersion;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("mixedParents")
|
||||
private Optional<Boolean> mixedParents;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
private Optional<? extends List<GetOnDeckMetadata>> metadata;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckMediaContainer(
|
||||
@JsonProperty("size") Optional<Double> size,
|
||||
@JsonProperty("allowSync") Optional<Boolean> allowSync,
|
||||
@JsonProperty("identifier") Optional<String> identifier,
|
||||
@JsonProperty("mediaTagPrefix") Optional<String> mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") Optional<Double> mediaTagVersion,
|
||||
@JsonProperty("mixedParents") Optional<Boolean> mixedParents,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetOnDeckMetadata>> metadata) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.size = size;
|
||||
this.allowSync = allowSync;
|
||||
this.identifier = identifier;
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
this.mixedParents = mixedParents;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> mediaTagPrefix() {
|
||||
return mediaTagPrefix;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> mediaTagVersion() {
|
||||
return mediaTagVersion;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> mixedParents() {
|
||||
return mixedParents;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetOnDeckMetadata>> metadata() {
|
||||
return (Optional<List<GetOnDeckMetadata>>) metadata;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withSize(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withAllowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withIdentifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMediaTagVersion(double mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMediaTagVersion(Optional<Double> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMixedParents(boolean mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = Optional.ofNullable(mixedParents);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMixedParents(Optional<Boolean> mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = mixedParents;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMetadata(List<GetOnDeckMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer withMetadata(Optional<? extends List<GetOnDeckMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetOnDeckMediaContainer other = (GetOnDeckMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.mediaTagPrefix, other.mediaTagPrefix) &&
|
||||
Objects.deepEquals(this.mediaTagVersion, other.mediaTagVersion) &&
|
||||
Objects.deepEquals(this.mixedParents, other.mixedParents) &&
|
||||
Objects.deepEquals(this.metadata, other.metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
mixedParents,
|
||||
metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetOnDeckMediaContainer.class,
|
||||
"size", size,
|
||||
"allowSync", allowSync,
|
||||
"identifier", identifier,
|
||||
"mediaTagPrefix", mediaTagPrefix,
|
||||
"mediaTagVersion", mediaTagVersion,
|
||||
"mixedParents", mixedParents,
|
||||
"metadata", metadata);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> size = Optional.empty();
|
||||
|
||||
private Optional<Boolean> allowSync = Optional.empty();
|
||||
|
||||
private Optional<String> identifier = Optional.empty();
|
||||
|
||||
private Optional<String> mediaTagPrefix = Optional.empty();
|
||||
|
||||
private Optional<Double> mediaTagVersion = Optional.empty();
|
||||
|
||||
private Optional<Boolean> mixedParents = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetOnDeckMetadata>> metadata = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder identifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder identifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(double mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(Optional<Double> mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mixedParents(boolean mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = Optional.ofNullable(mixedParents);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mixedParents(Optional<Boolean> mixedParents) {
|
||||
Utils.checkNotNull(mixedParents, "mixedParents");
|
||||
this.mixedParents = mixedParents;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metadata(List<GetOnDeckMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metadata(Optional<? extends List<GetOnDeckMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckMediaContainer build() {
|
||||
return new GetOnDeckMediaContainer(
|
||||
size,
|
||||
allowSync,
|
||||
identifier,
|
||||
mediaTagPrefix,
|
||||
mediaTagVersion,
|
||||
mixedParents,
|
||||
metadata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,447 +0,0 @@
|
||||
/*
|
||||
* 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.Double;
|
||||
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 GetOnDeckPart {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Double> id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Double> duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("file")
|
||||
private Optional<String> file;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Double> size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Stream")
|
||||
private Optional<? extends List<GetOnDeckStream>> stream;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckPart(
|
||||
@JsonProperty("id") Optional<Double> id,
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("duration") Optional<Double> duration,
|
||||
@JsonProperty("file") Optional<String> file,
|
||||
@JsonProperty("size") Optional<Double> size,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Stream") Optional<? extends List<GetOnDeckStream>> stream) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(file, "file");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
this.duration = duration;
|
||||
this.file = file;
|
||||
this.size = size;
|
||||
this.audioProfile = audioProfile;
|
||||
this.container = container;
|
||||
this.videoProfile = videoProfile;
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
public GetOnDeckPart() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> file() {
|
||||
return file;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetOnDeckStream>> stream() {
|
||||
return (Optional<List<GetOnDeckStream>>) stream;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetOnDeckPart withId(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withId(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withDuration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withDuration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withFile(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withFile(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withSize(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withSize(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withStream(List<GetOnDeckStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart withStream(Optional<? extends List<GetOnDeckStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetOnDeckPart other = (GetOnDeckPart) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.duration, other.duration) &&
|
||||
Objects.deepEquals(this.file, other.file) &&
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.stream, other.stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
audioProfile,
|
||||
container,
|
||||
videoProfile,
|
||||
stream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetOnDeckPart.class,
|
||||
"id", id,
|
||||
"key", key,
|
||||
"duration", duration,
|
||||
"file", file,
|
||||
"size", size,
|
||||
"audioProfile", audioProfile,
|
||||
"container", container,
|
||||
"videoProfile", videoProfile,
|
||||
"stream", stream);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Double> id = Optional.empty();
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<Double> duration = Optional.empty();
|
||||
|
||||
private Optional<String> file = Optional.empty();
|
||||
|
||||
private Optional<Double> size = Optional.empty();
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetOnDeckStream>> stream = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(double id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Double> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(double duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Double> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(double size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Double> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(List<GetOnDeckStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder stream(Optional<? extends List<GetOnDeckStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckPart build() {
|
||||
return new GetOnDeckPart(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
audioProfile,
|
||||
container,
|
||||
videoProfile,
|
||||
stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
public class GetOnDeckRequestBuilder {
|
||||
|
||||
private final SDKMethodInterfaces.MethodCallGetOnDeck sdk;
|
||||
|
||||
public GetOnDeckRequestBuilder(SDKMethodInterfaces.MethodCallGetOnDeck sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetOnDeckResponse call() throws Exception {
|
||||
|
||||
return sdk.getOnDeckDirect();
|
||||
}
|
||||
}
|
||||
@@ -1,249 +0,0 @@
|
||||
/*
|
||||
* 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 GetOnDeckResponse 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;
|
||||
|
||||
/**
|
||||
* The on Deck content
|
||||
*/
|
||||
private Optional<? extends GetOnDeckResponseBody> object;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse,
|
||||
Optional<? extends GetOnDeckResponseBody> 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 GetOnDeckResponse(
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* The on Deck content
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetOnDeckResponseBody> object() {
|
||||
return (Optional<GetOnDeckResponseBody>) object;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
public GetOnDeckResponse withContentType(String contentType) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
this.contentType = contentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
public GetOnDeckResponse withStatusCode(int statusCode) {
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
this.statusCode = statusCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetOnDeckResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The on Deck content
|
||||
*/
|
||||
public GetOnDeckResponse withObject(GetOnDeckResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The on Deck content
|
||||
*/
|
||||
public GetOnDeckResponse withObject(Optional<? extends GetOnDeckResponseBody> 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;
|
||||
}
|
||||
GetOnDeckResponse other = (GetOnDeckResponse) 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(GetOnDeckResponse.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 GetOnDeckResponseBody> 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* The on Deck content
|
||||
*/
|
||||
public Builder object(GetOnDeckResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The on Deck content
|
||||
*/
|
||||
public Builder object(Optional<? extends GetOnDeckResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckResponse build() {
|
||||
return new GetOnDeckResponse(
|
||||
contentType,
|
||||
statusCode,
|
||||
rawResponse,
|
||||
object);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,112 +0,0 @@
|
||||
/*
|
||||
* 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;
|
||||
/**
|
||||
* GetOnDeckResponseBody - The on Deck content
|
||||
*/
|
||||
|
||||
public class GetOnDeckResponseBody {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("MediaContainer")
|
||||
private Optional<? extends GetOnDeckMediaContainer> mediaContainer;
|
||||
|
||||
@JsonCreator
|
||||
public GetOnDeckResponseBody(
|
||||
@JsonProperty("MediaContainer") Optional<? extends GetOnDeckMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
}
|
||||
|
||||
public GetOnDeckResponseBody() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetOnDeckMediaContainer> mediaContainer() {
|
||||
return (Optional<GetOnDeckMediaContainer>) mediaContainer;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetOnDeckResponseBody withMediaContainer(GetOnDeckMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckResponseBody withMediaContainer(Optional<? extends GetOnDeckMediaContainer> 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;
|
||||
}
|
||||
GetOnDeckResponseBody other = (GetOnDeckResponseBody) o;
|
||||
return
|
||||
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
mediaContainer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetOnDeckResponseBody.class,
|
||||
"mediaContainer", mediaContainer);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends GetOnDeckMediaContainer> mediaContainer = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder mediaContainer(GetOnDeckMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaContainer(Optional<? extends GetOnDeckMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetOnDeckResponseBody build() {
|
||||
return new GetOnDeckResponseBody(
|
||||
mediaContainer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -22,24 +22,35 @@ import java.util.Optional;
|
||||
|
||||
public class GetRecentlyAddedMediaContainer {
|
||||
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
@JsonProperty("size")
|
||||
private long size;
|
||||
private int size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("offset")
|
||||
private Optional<Integer> offset;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* Total number of media items in the library.
|
||||
*/
|
||||
@JsonProperty("totalSize")
|
||||
private Optional<Integer> totalSize;
|
||||
private int totalSize;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("identifier")
|
||||
private Optional<String> identifier;
|
||||
/**
|
||||
* Offset value for pagination.
|
||||
*/
|
||||
@JsonProperty("offset")
|
||||
private long offset;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonProperty("allowSync")
|
||||
private Optional<Boolean> allowSync;
|
||||
private boolean allowSync;
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonProperty("identifier")
|
||||
private String identifier;
|
||||
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
@@ -49,65 +60,87 @@ public class GetRecentlyAddedMediaContainer {
|
||||
@JsonProperty("Meta")
|
||||
private Optional<? extends Meta> meta;
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
private Optional<? extends List<GetRecentlyAddedMetadata>> metadata;
|
||||
|
||||
@JsonCreator
|
||||
public GetRecentlyAddedMediaContainer(
|
||||
@JsonProperty("size") long size,
|
||||
@JsonProperty("offset") Optional<Integer> offset,
|
||||
@JsonProperty("totalSize") Optional<Integer> totalSize,
|
||||
@JsonProperty("identifier") Optional<String> identifier,
|
||||
@JsonProperty("allowSync") Optional<Boolean> allowSync,
|
||||
@JsonProperty("size") int size,
|
||||
@JsonProperty("totalSize") int totalSize,
|
||||
@JsonProperty("offset") long offset,
|
||||
@JsonProperty("allowSync") boolean allowSync,
|
||||
@JsonProperty("identifier") String identifier,
|
||||
@JsonProperty("Meta") Optional<? extends Meta> meta,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetRecentlyAddedMetadata>> metadata) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.size = size;
|
||||
this.offset = offset;
|
||||
this.totalSize = totalSize;
|
||||
this.identifier = identifier;
|
||||
this.offset = offset;
|
||||
this.allowSync = allowSync;
|
||||
this.identifier = identifier;
|
||||
this.meta = meta;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer(
|
||||
long size) {
|
||||
this(size, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
int size,
|
||||
int totalSize,
|
||||
long offset,
|
||||
boolean allowSync,
|
||||
String identifier) {
|
||||
this(size, totalSize, offset, allowSync, identifier, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long size() {
|
||||
public int size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total number of media items in the library.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> offset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> totalSize() {
|
||||
public int totalSize() {
|
||||
return totalSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* Offset value for pagination.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> identifier() {
|
||||
return identifier;
|
||||
public long offset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> allowSync() {
|
||||
public boolean allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*
|
||||
@@ -118,6 +151,9 @@ public class GetRecentlyAddedMediaContainer {
|
||||
return (Optional<Meta>) meta;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetRecentlyAddedMetadata>> metadata() {
|
||||
@@ -128,57 +164,48 @@ public class GetRecentlyAddedMediaContainer {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withSize(long size) {
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withSize(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withOffset(int offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = Optional.ofNullable(offset);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withOffset(Optional<Integer> offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total number of media items in the library.
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withTotalSize(int totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = Optional.ofNullable(totalSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withTotalSize(Optional<Integer> totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = totalSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withIdentifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
/**
|
||||
* Offset value for pagination.
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withOffset(long offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMediaContainer withAllowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -202,12 +229,18 @@ public class GetRecentlyAddedMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withMetadata(List<GetRecentlyAddedMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public GetRecentlyAddedMediaContainer withMetadata(Optional<? extends List<GetRecentlyAddedMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
@@ -225,10 +258,10 @@ public class GetRecentlyAddedMediaContainer {
|
||||
GetRecentlyAddedMediaContainer other = (GetRecentlyAddedMediaContainer) 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.offset, other.offset) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.meta, other.meta) &&
|
||||
Objects.deepEquals(this.metadata, other.metadata);
|
||||
}
|
||||
@@ -237,10 +270,10 @@ public class GetRecentlyAddedMediaContainer {
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
size,
|
||||
offset,
|
||||
totalSize,
|
||||
identifier,
|
||||
offset,
|
||||
allowSync,
|
||||
identifier,
|
||||
meta,
|
||||
metadata);
|
||||
}
|
||||
@@ -249,25 +282,25 @@ public class GetRecentlyAddedMediaContainer {
|
||||
public String toString() {
|
||||
return Utils.toString(GetRecentlyAddedMediaContainer.class,
|
||||
"size", size,
|
||||
"offset", offset,
|
||||
"totalSize", totalSize,
|
||||
"identifier", identifier,
|
||||
"offset", offset,
|
||||
"allowSync", allowSync,
|
||||
"identifier", identifier,
|
||||
"meta", meta,
|
||||
"metadata", metadata);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long size;
|
||||
private Integer size;
|
||||
|
||||
private Optional<Integer> offset = Optional.empty();
|
||||
private Integer totalSize;
|
||||
|
||||
private Optional<Integer> totalSize = Optional.empty();
|
||||
private Long offset;
|
||||
|
||||
private Optional<String> identifier = Optional.empty();
|
||||
private Boolean allowSync;
|
||||
|
||||
private Optional<Boolean> allowSync = Optional.empty();
|
||||
private String identifier;
|
||||
|
||||
private Optional<? extends Meta> meta = Optional.empty();
|
||||
|
||||
@@ -277,57 +310,48 @@ public class GetRecentlyAddedMediaContainer {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder size(long size) {
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
public Builder size(int 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Total number of media items in the library.
|
||||
*/
|
||||
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 = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder identifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
/**
|
||||
* Offset value for pagination.
|
||||
*/
|
||||
public Builder offset(long offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public Builder identifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -351,12 +375,18 @@ public class GetRecentlyAddedMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public Builder metadata(List<GetRecentlyAddedMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public Builder metadata(Optional<? extends List<GetRecentlyAddedMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
@@ -366,10 +396,10 @@ public class GetRecentlyAddedMediaContainer {
|
||||
public GetRecentlyAddedMediaContainer build() {
|
||||
return new GetRecentlyAddedMediaContainer(
|
||||
size,
|
||||
offset,
|
||||
totalSize,
|
||||
identifier,
|
||||
offset,
|
||||
allowSync,
|
||||
identifier,
|
||||
meta,
|
||||
metadata);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user