mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.541.2
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
**/.speakeasy/temp/
|
||||||
|
**/.speakeasy/logs/
|
||||||
.speakeasy/reports
|
.speakeasy/reports
|
||||||
# Ignore Gradle project-specific cache directory
|
# Ignore Gradle project-specific cache directory
|
||||||
.gradle
|
.gradle
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -11,11 +11,12 @@ generation:
|
|||||||
parameterOrderingFeb2024: true
|
parameterOrderingFeb2024: true
|
||||||
requestResponseComponentNamesFeb2024: true
|
requestResponseComponentNamesFeb2024: true
|
||||||
securityFeb2025: false
|
securityFeb2025: false
|
||||||
|
sharedErrorComponentsApr2025: false
|
||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
java:
|
java:
|
||||||
version: 0.16.0
|
version: 0.16.1
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
additionalPlugins: []
|
additionalPlugins: []
|
||||||
artifactID: plexapi
|
artifactID: plexapi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.535.1
|
speakeasyVersion: 1.541.2
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -8,19 +8,19 @@ sources:
|
|||||||
- latest
|
- latest
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:b2f9599237ceb13cf8f9c1693e38b290177b65fb389cebf0c3c60b8ef4778615
|
sourceRevisionDigest: sha256:31ab7b2e65ccf1e0349bcd8b35791d1ce80091313481874749163fc0c80fd8ed
|
||||||
sourceBlobDigest: sha256:f8df9ef88ada992cd981d601e6c0b45cc82db76aba3d915c2f9d08f90c81ced9
|
sourceBlobDigest: sha256:d971fff9723c626fe70403a2a83d813c396a20b06ccd6b899263762038cfdbb0
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1745022464
|
- speakeasy-sdk-regen-1746059587
|
||||||
targets:
|
targets:
|
||||||
plexjava:
|
plexjava:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:b2f9599237ceb13cf8f9c1693e38b290177b65fb389cebf0c3c60b8ef4778615
|
sourceRevisionDigest: sha256:31ab7b2e65ccf1e0349bcd8b35791d1ce80091313481874749163fc0c80fd8ed
|
||||||
sourceBlobDigest: sha256:f8df9ef88ada992cd981d601e6c0b45cc82db76aba3d915c2f9d08f90c81ced9
|
sourceBlobDigest: sha256:d971fff9723c626fe70403a2a83d813c396a20b06ccd6b899263762038cfdbb0
|
||||||
codeSamplesNamespace: code-samples-java-plexjava
|
codeSamplesNamespace: code-samples-java-plexjava
|
||||||
codeSamplesRevisionDigest: sha256:7d8c3b846b1e7bfd87558d16b7a6daceae1f8e2a3628296155e438ed1cd72721
|
codeSamplesRevisionDigest: sha256:7014061698c081192d583b95c5cdcb4120fd314b9e0963b81fb16e74b320b426
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ The samples below show how a published SDK artifact is used:
|
|||||||
|
|
||||||
Gradle:
|
Gradle:
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'dev.plexapi:plexapi:0.16.0'
|
implementation 'dev.plexapi:plexapi:0.16.1'
|
||||||
```
|
```
|
||||||
|
|
||||||
Maven:
|
Maven:
|
||||||
@@ -77,7 +77,7 @@ Maven:
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.plexapi</groupId>
|
<groupId>dev.plexapi</groupId>
|
||||||
<artifactId>plexapi</artifactId>
|
<artifactId>plexapi</artifactId>
|
||||||
<version>0.16.0</version>
|
<version>0.16.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -329,3 +329,13 @@ Based on:
|
|||||||
- [java v0.16.0] .
|
- [java v0.16.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.16.0 - .
|
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.16.0 - .
|
||||||
|
|
||||||
|
## 2025-05-01 00:32:51
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.541.2 (2.595.4) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [java v0.16.1] .
|
||||||
|
### Releases
|
||||||
|
- [Maven Central v0.16.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.16.1 - .
|
||||||
@@ -103,7 +103,7 @@ publishing {
|
|||||||
// https://github.com/gradle/gradle/issues/18619
|
// https://github.com/gradle/gradle/issues/18619
|
||||||
groupId = "dev.plexapi"
|
groupId = "dev.plexapi"
|
||||||
artifactId = "plexapi"
|
artifactId = "plexapi"
|
||||||
version = "0.16.0"
|
version = "0.16.1"
|
||||||
|
|
||||||
from components.java
|
from components.java
|
||||||
|
|
||||||
|
|||||||
11
docs/models/operations/Attributes.md
Normal file
11
docs/models/operations/Attributes.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Attributes
|
||||||
|
|
||||||
|
Attributes associated with the marker.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
|
||||||
|
| `id` | *long* | :heavy_check_mark: | The identifier for the attributes. | 306970 |
|
||||||
|
| `version` | *Optional\<Long>* | :heavy_minus_sign: | The version number of the marker attributes. | 4 |
|
||||||
15
docs/models/operations/Chapter.md
Normal file
15
docs/models/operations/Chapter.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Chapter
|
||||||
|
|
||||||
|
The thumbnail for the chapter
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
||||||
|
| `id` | *long* | :heavy_check_mark: | N/A | 4 |
|
||||||
|
| `filter` | *String* | :heavy_check_mark: | N/A | thumb=4 |
|
||||||
|
| `index` | *long* | :heavy_check_mark: | N/A | 1 |
|
||||||
|
| `startTimeOffset` | *long* | :heavy_check_mark: | N/A | 0 |
|
||||||
|
| `endTimeOffset` | *long* | :heavy_check_mark: | N/A | 100100 |
|
||||||
|
| `thumb` | *String* | :heavy_check_mark: | N/A | /library/media/46883/chapterImages/1 |
|
||||||
@@ -7,6 +7,6 @@ The filter query string for country media items.
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | N/A | 259 |
|
| `id` | *int* | :heavy_check_mark: | N/A | 259 |
|
||||||
| `tag` | *String* | :heavy_check_mark: | The country of origin of this media item | United States of America |
|
| `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 |
|
| `filter` | *Optional\<String>* | :heavy_minus_sign: | N/A | country=19 |
|
||||||
8
docs/models/operations/Extras.md
Normal file
8
docs/models/operations/Extras.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Extras
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- |
|
||||||
|
| `size` | *Optional\<Long>* | :heavy_minus_sign: | The size of the extras. | 1 |
|
||||||
@@ -3,54 +3,56 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | Unique stream identifier. | 1002625 |
|
| `id` | *long* | :heavy_check_mark: | Unique stream identifier. | 1002625 |
|
||||||
| `streamType` | *int* | :heavy_check_mark: | Stream type (1=video, 2=audio, 3=subtitle). | 1 |
|
| `streamType` | [GetAllMediaLibraryStreamType](../../models/operations/GetAllMediaLibraryStreamType.md) | :heavy_check_mark: | Stream type:<br/> - 1 = video<br/> - 2 = audio<br/> - 3 = subtitle<br/> | 1 |
|
||||||
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is default. | true |
|
| `format` | *Optional\<String>* | :heavy_minus_sign: | Format of the stream (e.g., srt). | srt |
|
||||||
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is default. | true |
|
||||||
| `index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
||||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
| `index` | *Optional\<Integer>* | :heavy_minus_sign: | Index of the stream. | 0 |
|
||||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
||||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
||||||
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | ISO language code. | eng |
|
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
||||||
| `headerCompression` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | ISO language code. | eng |
|
||||||
| `doviblCompatID` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
| `headerCompression` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
||||||
| `doviblPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
| `doviblCompatID` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
||||||
| `dovielPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision EL is present. | false |
|
| `doviblPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
||||||
| `doviLevel` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision level. | 6 |
|
| `dovielPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision EL is present. | false |
|
||||||
| `doviPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision is present. | true |
|
| `doviLevel` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision level. | 6 |
|
||||||
| `doviProfile` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision profile. | 8 |
|
| `doviPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision is present. | true |
|
||||||
| `dovirpuPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision RPU is present. | true |
|
| `doviProfile` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision profile. | 8 |
|
||||||
| `doviVersion` | *Optional\<String>* | :heavy_minus_sign: | Dolby Vision version. | 1.0 |
|
| `dovirpuPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision RPU is present. | true |
|
||||||
| `bitDepth` | *Optional\<Integer>* | :heavy_minus_sign: | Bit depth of the video stream. | 10 |
|
| `doviVersion` | *Optional\<String>* | :heavy_minus_sign: | Dolby Vision version. | 1.0 |
|
||||||
| `chromaLocation` | *Optional\<String>* | :heavy_minus_sign: | Chroma sample location. | topleft |
|
| `bitDepth` | *Optional\<Integer>* | :heavy_minus_sign: | Bit depth of the video stream. | 10 |
|
||||||
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
| `chromaLocation` | *Optional\<String>* | :heavy_minus_sign: | Chroma sample location. | topleft |
|
||||||
| `codedHeight` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video height. | 1608 |
|
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
||||||
| `codedWidth` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video width. | 3840 |
|
| `codedHeight` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video height. | 1608 |
|
||||||
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
| `codedWidth` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video width. | 3840 |
|
||||||
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||||
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
||||||
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
||||||
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 |
|
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
||||||
| `frameRate` | *Optional\<Float>* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 |
|
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 |
|
||||||
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Height of the video stream. | 1602 |
|
| `frameRate` | *Optional\<Float>* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 |
|
||||||
| `level` | *Optional\<Integer>* | :heavy_minus_sign: | Video level. | 150 |
|
| `key` | *Optional\<String>* | :heavy_minus_sign: | Key to access this stream part. | /library/streams/216389 |
|
||||||
| `original` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the original stream. | true |
|
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Height of the video stream. | 1602 |
|
||||||
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
| `level` | *Optional\<Integer>* | :heavy_minus_sign: | Video level. | 150 |
|
||||||
| `profile` | *Optional\<String>* | :heavy_minus_sign: | Video profile. | main 10 |
|
| `original` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the original stream. | true |
|
||||||
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||||
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
| `profile` | *Optional\<String>* | :heavy_minus_sign: | Video profile. | main 10 |
|
||||||
| `refFrames` | *Optional\<Integer>* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||||
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||||
| `displayTitle` | *String* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
| `refFrames` | *Optional\<Integer>* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
||||||
| `extendedDisplayTitle` | *String* | :heavy_check_mark: | Extended display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
||||||
| `selected` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is selected (applicable for audio streams). | true |
|
| `displayTitle` | *String* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||||
| `forced` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
| `extendedDisplayTitle` | *String* | :heavy_check_mark: | Extended display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||||
| `channels` | *Optional\<Integer>* | :heavy_minus_sign: | Number of audio channels (for audio streams). | 6 |
|
| `selected` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is selected (applicable for audio streams). | true |
|
||||||
| `audioChannelLayout` | *Optional\<String>* | :heavy_minus_sign: | Audio channel layout. | 5.1(side) |
|
| `forced` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||||
| `samplingRate` | *Optional\<Integer>* | :heavy_minus_sign: | Sampling rate for the audio stream. | 48000 |
|
| `channels` | *Optional\<Integer>* | :heavy_minus_sign: | Number of audio channels (for audio streams). | 6 |
|
||||||
| `canAutoSync` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream can auto-sync. | false |
|
| `audioChannelLayout` | *Optional\<String>* | :heavy_minus_sign: | Audio channel layout. | 5.1(side) |
|
||||||
| `hearingImpaired` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream is for the hearing impaired. | true |
|
| `samplingRate` | *Optional\<Integer>* | :heavy_minus_sign: | Sampling rate for the audio stream. | 48000 |
|
||||||
| `dub` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream is a dub. | true |
|
| `canAutoSync` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream can auto-sync. | false |
|
||||||
| `title` | *Optional\<String>* | :heavy_minus_sign: | Optional title for the stream (e.g., language variant). | SDH |
|
| `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 |
|
||||||
16
docs/models/operations/GetAllMediaLibraryStreamType.md
Normal file
16
docs/models/operations/GetAllMediaLibraryStreamType.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# GetAllMediaLibraryStreamType
|
||||||
|
|
||||||
|
Stream type:
|
||||||
|
- 1 = video
|
||||||
|
- 2 = audio
|
||||||
|
- 3 = subtitle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------- | ---------- |
|
||||||
|
| `Video` | 1 |
|
||||||
|
| `Audio` | 2 |
|
||||||
|
| `Subtitle` | 3 |
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
# GetMediaMetaDataCountry
|
# GetMediaMetaDataCountry
|
||||||
|
|
||||||
|
The filter query string for country media items.
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
||||||
| `id` | *int* | :heavy_check_mark: | The unique country identifier. | 58591 |
|
| `id` | *int* | :heavy_check_mark: | N/A | 259 |
|
||||||
| `filter` | *String* | :heavy_check_mark: | The filter string for the country. | country=58591 |
|
| `tag` | *String* | :heavy_check_mark: | The country of origin of this media item | United States of America |
|
||||||
| `tag` | *String* | :heavy_check_mark: | The country name. | United States of America |
|
| `filter` | *Optional\<String>* | :heavy_minus_sign: | N/A | country=19 |
|
||||||
@@ -3,11 +3,10 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | The unique role identifier. | 109501 |
|
| `id` | *int* | :heavy_check_mark: | Unique identifier for the director. | 126522 |
|
||||||
| `filter` | *String* | :heavy_check_mark: | The filter string for the role. | actor=109501 |
|
| `tag` | *String* | :heavy_check_mark: | The role of Director | Danny Boyle |
|
||||||
| `tag` | *String* | :heavy_check_mark: | The actor's name. | Bob Odenkirk |
|
| `filter` | *String* | :heavy_check_mark: | The filter string used to query this director. | director=235876 |
|
||||||
| `tagKey` | *String* | :heavy_check_mark: | A key associated with the actor tag. | 5d77683254f42c001f8c3f69 |
|
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the director's tag, used for internal identification. | 5d776831151a60001f24d031 |
|
||||||
| `role` | *Optional\<String>* | :heavy_minus_sign: | The character name or role. | Jimmy McGill |
|
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | The URL of the thumbnail image for the director. | https://metadata-static.plex.tv/8/people/8d65fa96804802e08f2de09fe014408e.jpg |
|
||||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | URL for the role thumbnail image. | https://metadata-static.plex.tv/f/people/f2ca7b474cc984efbdd5c503a096285a.jpg |
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
# GetMediaMetaDataGenre
|
# GetMediaMetaDataGenre
|
||||||
|
|
||||||
|
The filter query string for similar items.
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- |
|
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | The unique genre identifier. | 1057 |
|
| `id` | *long* | :heavy_check_mark: | N/A | 259 |
|
||||||
| `filter` | *String* | :heavy_check_mark: | The filter string for the genre. | genre=1057 |
|
| `tag` | *String* | :heavy_check_mark: | The genre name of this media-item<br/> | Crime |
|
||||||
| `tag` | *String* | :heavy_check_mark: | The genre name. | Crime |
|
| `filter` | *String* | :heavy_check_mark: | N/A | genre=19 |
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||||
| `alt` | *String* | :heavy_check_mark: | Alternate text for the image. | Better Call Saul |
|
| `alt` | *String* | :heavy_check_mark: | N/A | Episode 1 |
|
||||||
| `type` | *String* | :heavy_check_mark: | The type of image (e.g., coverPoster, background, clearLogo). | coverPoster |
|
| `type` | [GetMediaMetaDataLibraryType](../../models/operations/GetMediaMetaDataLibraryType.md) | :heavy_check_mark: | N/A | background |
|
||||||
| `url` | *String* | :heavy_check_mark: | The URL of the image. | /library/metadata/44288/thumb/1736487993 |
|
| `url` | *String* | :heavy_check_mark: | N/A | /library/metadata/45521/thumb/1644710589 |
|
||||||
11
docs/models/operations/GetMediaMetaDataLibraryType.md
Normal file
11
docs/models/operations/GetMediaMetaDataLibraryType.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GetMediaMetaDataLibraryType
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| -------------- | -------------- |
|
||||||
|
| `COVER_POSTER` | coverPoster |
|
||||||
|
| `BACKGROUND` | background |
|
||||||
|
| `SNAPSHOT` | snapshot |
|
||||||
|
| `CLEAR_LOGO` | clearLogo |
|
||||||
@@ -1,68 +1,83 @@
|
|||||||
# GetMediaMetaDataMetadata
|
# GetMediaMetaDataMetadata
|
||||||
|
|
||||||
|
Unknown
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `ratingKey` | *String* | :heavy_check_mark: | The rating key of the metadata item. | 44288 |
|
| `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 |
|
||||||
| `parentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | The rating key of the parent of this metadata item. | 48047 |
|
| `key` | *String* | :heavy_check_mark: | The unique key for the media item. | /library/metadata/58683 |
|
||||||
| `grandparentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | The rating key of the grandparent of this metadata item. | 45520 |
|
| `guid` | *String* | :heavy_check_mark: | The globally unique identifier for the media item. | plex://movie/5d7768ba96b655001fdc0408 |
|
||||||
| `parentGuid` | *Optional\<String>* | :heavy_minus_sign: | A GUID identifying the parent entity (e.g., season) for the item. | plex://season/618b89208dde18df707ad15c |
|
| `slug` | *String* | :heavy_check_mark: | A URL‐friendly version of the media title. | 4-for-texas |
|
||||||
| `grandparentGuid` | *Optional\<String>* | :heavy_minus_sign: | A GUID identifying the grandparent entity (e.g., show). | plex://show/5e16253691c20300412003a8 |
|
| `studio` | *Optional\<String>* | :heavy_minus_sign: | The studio that produced the media item. | 20th Century Studios |
|
||||||
| `grandparentSlug` | *Optional\<String>* | :heavy_minus_sign: | A URL-friendly identifier (slug) for the grandparent entity. | alice-in-borderland-2020 |
|
| `type` | [GetMediaMetaDataType](../../models/operations/GetMediaMetaDataType.md) | :heavy_check_mark: | N/A | movie |
|
||||||
| `grandparentKey` | *Optional\<String>* | :heavy_minus_sign: | A key identifying the grandparent metadata in the library. | /library/metadata/45520 |
|
| `title` | *String* | :heavy_check_mark: | The title of the media item. | Avatar: The Way of Water |
|
||||||
| `parentKey` | *Optional\<String>* | :heavy_minus_sign: | A key identifying the parent metadata in the library. | /library/metadata/48047 |
|
| `titleSort` | *String* | :heavy_check_mark: | The sort title used for ordering media items. | Whale |
|
||||||
| `key` | *String* | :heavy_check_mark: | The API key to access metadata details. | /library/metadata/44288/children |
|
| `contentRating` | *Optional\<String>* | :heavy_minus_sign: | The content rating for the media item. | PG-13 |
|
||||||
| `guid` | *String* | :heavy_check_mark: | The globally unique identifier for the item. | plex://show/5d9c08254eefaa001f5d6dcb |
|
| `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/> |
|
||||||
| `slug` | *Optional\<String>* | :heavy_minus_sign: | A URL-friendly identifier for the item. | better-call-saul |
|
| `rating` | *float* | :heavy_check_mark: | The critic rating for the media item. | 7.6 |
|
||||||
| `studio` | *Optional\<String>* | :heavy_minus_sign: | The studio that produced the content. | Sony Pictures Television |
|
| `audienceRating` | *double* | :heavy_check_mark: | The audience rating for the media item. | 9.2 |
|
||||||
| `type` | *String* | :heavy_check_mark: | The type of content (e.g., show, movie). | show |
|
| `year` | *Optional\<Integer>* | :heavy_minus_sign: | The release year of the media item. | 2022 |
|
||||||
| `title` | *String* | :heavy_check_mark: | The title of the content. | Better Call Saul |
|
| `tagline` | *String* | :heavy_check_mark: | A brief tagline for the media item. | Return to Pandora. |
|
||||||
| `originalTitle` | *Optional\<String>* | :heavy_minus_sign: | The original title of the content. | Wicked: Part I |
|
| `thumb` | *String* | :heavy_check_mark: | The thumbnail image URL for the media item. | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `librarySectionTitle` | *String* | :heavy_check_mark: | The title of the library section. | TV Series |
|
| `art` | *String* | :heavy_check_mark: | The art image URL for the media item. | /library/metadata/58683/art/1703239236 |
|
||||||
| `librarySectionID` | *long* | :heavy_check_mark: | The ID of the library section. | 2 |
|
| `theme` | *String* | :heavy_check_mark: | The theme URL for the media item. | /library/metadata/1/theme/1705636920 |
|
||||||
| `librarySectionKey` | *String* | :heavy_check_mark: | The key of the library section. | /library/sections/2 |
|
| `index` | *int* | :heavy_check_mark: | The index position of the media item. | 1 |
|
||||||
| `contentRating` | *Optional\<String>* | :heavy_minus_sign: | The content rating (e.g., TV-MA). | TV-MA |
|
| `leafCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of leaf items (end nodes) under this media item. | 14 |
|
||||||
| `summary` | *String* | :heavy_check_mark: | A summary of the content. | Before Saul Goodman, he was Jimmy McGill. And if you're calling Jimmy, you're in real trouble. The prequel to "Breaking Bad" follows small-time attorney, Jimmy McGill, as he transforms into Walter White's morally challenged lawyer, Saul Goodman. |
|
| `viewedLeafCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of leaf items that have been viewed. | 0 |
|
||||||
| `index` | *Optional\<Long>* | :heavy_minus_sign: | The index or order of the item. | 1 |
|
| `childCount` | *int* | :heavy_check_mark: | The number of child items associated with this media item. | 1 |
|
||||||
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | The title of the grandparent entity (typically the show's title). | Alice in Borderland |
|
| `seasonCount` | *int* | :heavy_check_mark: | The total number of seasons (for TV shows). | 2022 |
|
||||||
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | The title of the parent entity (typically the season's title). | Season 2 |
|
| `duration` | *int* | :heavy_check_mark: | The duration of the media item in milliseconds. | 11558112 |
|
||||||
| `audienceRating` | *Optional\<Float>* | :heavy_minus_sign: | The audience rating for the content. | 8.7 |
|
| `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 |
|
||||||
| `viewCount` | *Optional\<Long>* | :heavy_minus_sign: | The number of times the item has been viewed. | 4 |
|
| `addedAt` | *long* | :heavy_check_mark: | N/A | 1556281940 |
|
||||||
| `skipCount` | *Optional\<Long>* | :heavy_minus_sign: | The number of times the item has been skipped. | 1 |
|
| `updatedAt` | *Optional\<Long>* | :heavy_minus_sign: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `lastViewedAt` | *Optional\<Long>* | :heavy_minus_sign: | Unix timestamp of when the item was last viewed. | 1625764795 |
|
| `audienceRatingImage` | *Optional\<String>* | :heavy_minus_sign: | The URL for the audience rating image. | rottentomatoes://image.rating.upright |
|
||||||
| `year` | *int* | :heavy_check_mark: | The release year. | 2015 |
|
| `chapterSource` | *Optional\<String>* | :heavy_minus_sign: | The source from which chapter data is derived. | media |
|
||||||
| `rating` | *Optional\<Float>* | :heavy_minus_sign: | The general rating | 6 |
|
| `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 or identifier for the rating image (e.g., Rotten Tomatoes rating image). | rottentomatoes://image.rating.ripe |
|
| `originalTitle` | *Optional\<String>* | :heavy_minus_sign: | The original title of the media item (if different). | 映画 ブラッククローバー 魔法帝の剣 |
|
||||||
| `tagline` | *Optional\<String>* | :heavy_minus_sign: | The tagline of the content. | Make the call |
|
| `parentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | The rating key of the parent media item. | 66 |
|
||||||
| `chapterSource` | *Optional\<String>* | :heavy_minus_sign: | N/A | media |
|
| `grandparentRatingKey` | *Optional\<String>* | :heavy_minus_sign: | The rating key of the grandparent media item. | 66 |
|
||||||
| `primaryExtraKey` | *Optional\<String>* | :heavy_minus_sign: | N/A | /library/metadata/134704 |
|
| `parentGuid` | *Optional\<String>* | :heavy_minus_sign: | The GUID of the parent media item. | plex://show/5d9c081b170e24001f2a7be4 |
|
||||||
| `thumb` | *String* | :heavy_check_mark: | URL of the thumbnail image. | /library/metadata/44288/thumb/1736487993 |
|
| `grandparentGuid` | *Optional\<String>* | :heavy_minus_sign: | The GUID of the grandparent media item. | plex://show/5d9c081b170e24001f2a7be4 |
|
||||||
| `art` | *String* | :heavy_check_mark: | URL of the art image. | /library/metadata/44288/art/1736487993 |
|
| `grandparentSlug` | *Optional\<String>* | :heavy_minus_sign: | The slug for the grandparent media item. | alice-in-borderland-2020 |
|
||||||
| `theme` | *Optional\<String>* | :heavy_minus_sign: | URL of the theme image. | /library/metadata/44288/theme/1736487993 |
|
| `grandparentKey` | *Optional\<String>* | :heavy_minus_sign: | The key of the grandparent media item. | /library/metadata/66 |
|
||||||
| `duration` | *int* | :heavy_check_mark: | Duration of the content in milliseconds. | 2700000 |
|
| `parentKey` | *Optional\<String>* | :heavy_minus_sign: | The key of the parent media item. | /library/metadata/66 |
|
||||||
| `originallyAvailableAt` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | The original release date. | 2015-02-08 |
|
| `grandparentTitle` | *Optional\<String>* | :heavy_minus_sign: | The title of the grandparent media item. | Caprica |
|
||||||
| `leafCount` | *Optional\<Long>* | :heavy_minus_sign: | The total number of episodes (or leaves). | 63 |
|
| `grandparentThumb` | *Optional\<String>* | :heavy_minus_sign: | The thumbnail URL for the grandparent media item. | /library/metadata/66/thumb/1705716261 |
|
||||||
| `viewedLeafCount` | *Optional\<Long>* | :heavy_minus_sign: | The number of episodes that have been viewed. | 4 |
|
| `grandparentTheme` | *Optional\<String>* | :heavy_minus_sign: | The theme URL for the grandparent media item. | /library/metadata/66/theme/1705716261 |
|
||||||
| `childCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of child items. | 6 |
|
| `grandparentArt` | *Optional\<String>* | :heavy_minus_sign: | The art URL for the grandparent media item. | /library/metadata/66/art/1705716261 |
|
||||||
| `addedAt` | *long* | :heavy_check_mark: | N/A | 1556281940 |
|
| `parentTitle` | *Optional\<String>* | :heavy_minus_sign: | The title of the parent media item. | Caprica |
|
||||||
| `updatedAt` | *long* | :heavy_check_mark: | N/A | 1556281940 |
|
| `parentIndex` | *Optional\<Integer>* | :heavy_minus_sign: | The index position of the parent media item. | 1 |
|
||||||
| `audienceRatingImage` | *Optional\<String>* | :heavy_minus_sign: | The URL for the audience rating image. | themoviedb://image.rating |
|
| `parentThumb` | *Optional\<String>* | :heavy_minus_sign: | The thumbnail URL for the parent media item. | /library/metadata/66/thumb/1705716261 |
|
||||||
| `parentIndex` | *Optional\<Long>* | :heavy_minus_sign: | The index number of the parent entity, which could indicate its order or position. | 2 |
|
| `ratingImage` | *Optional\<String>* | :heavy_minus_sign: | The URL for the rating image. | rottentomatoes://image.rating.ripe |
|
||||||
| `parentThumb` | *Optional\<String>* | :heavy_minus_sign: | The URL of the parent's thumbnail image. | /library/metadata/48047/thumb/1671800243 |
|
| `viewCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of times this media item has been viewed. | 1 |
|
||||||
| `grandparentThumb` | *Optional\<String>* | :heavy_minus_sign: | The URL of the grandparent's thumbnail image. | /library/metadata/45520/thumb/1736488003 |
|
| `viewOffset` | *Optional\<Integer>* | :heavy_minus_sign: | The current playback offset (in milliseconds). | 5222500 |
|
||||||
| `grandparentArt` | *Optional\<String>* | :heavy_minus_sign: | The URL of the grandparent's art image. | /library/metadata/45520/art/1736488003 |
|
| `skipCount` | *Optional\<Integer>* | :heavy_minus_sign: | The number of times this media item has been skipped. | 1 |
|
||||||
| `media` | List\<[GetMediaMetaDataMedia](../../models/operations/GetMediaMetaDataMedia.md)> | :heavy_minus_sign: | N/A | |
|
| `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 |
|
||||||
| `image` | List\<[GetMediaMetaDataImage](../../models/operations/GetMediaMetaDataImage.md)> | :heavy_check_mark: | An array of image objects. | |
|
| `lastRatedAt` | *Optional\<Long>* | :heavy_minus_sign: | The Unix timestamp representing the last time the item was rated. | 1721813113 |
|
||||||
| `ultraBlurColors` | [GetMediaMetaDataUltraBlurColors](../../models/operations/GetMediaMetaDataUltraBlurColors.md) | :heavy_check_mark: | N/A | |
|
| `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 |
|
||||||
| `genre` | List\<[GetMediaMetaDataGenre](../../models/operations/GetMediaMetaDataGenre.md)> | :heavy_minus_sign: | An array of genre tags. | |
|
| `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 |
|
||||||
| `country` | List\<[GetMediaMetaDataCountry](../../models/operations/GetMediaMetaDataCountry.md)> | :heavy_minus_sign: | An array of country tags. | |
|
| `lastViewedAt` | *Optional\<Integer>* | :heavy_minus_sign: | Unix timestamp for when the media item was last viewed. | 1682752242 |
|
||||||
| `guids` | List\<[GetMediaMetaDataGuids](../../models/operations/GetMediaMetaDataGuids.md)> | :heavy_minus_sign: | An array of GUID objects. | |
|
| `userRating` | *Optional\<Float>* | :heavy_minus_sign: | The rating provided by a user for the item. This value is expressed as a decimal number. | 10 |
|
||||||
| `ratings` | List\<[Ratings](../../models/operations/Ratings.md)> | :heavy_minus_sign: | An array of rating objects. | |
|
| `image` | List\<[GetMediaMetaDataImage](../../models/operations/GetMediaMetaDataImage.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `role` | List\<[GetMediaMetaDataRole](../../models/operations/GetMediaMetaDataRole.md)> | :heavy_minus_sign: | An array of Actor roles. | |
|
| `ultraBlurColors` | [Optional\<GetMediaMetaDataUltraBlurColors>](../../models/operations/GetMediaMetaDataUltraBlurColors.md) | :heavy_minus_sign: | N/A | |
|
||||||
| `director` | List\<[GetMediaMetaDataDirector](../../models/operations/GetMediaMetaDataDirector.md)> | :heavy_minus_sign: | An array of Director roles. | |
|
| `librarySectionID` | *long* | :heavy_check_mark: | The identifier for the library section. | 1 |
|
||||||
| `writer` | List\<[GetMediaMetaDataWriter](../../models/operations/GetMediaMetaDataWriter.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
| `librarySectionTitle` | *String* | :heavy_check_mark: | The title of the library section. | Movies |
|
||||||
| `producer` | List\<[GetMediaMetaDataProducer](../../models/operations/GetMediaMetaDataProducer.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
| `librarySectionKey` | *String* | :heavy_check_mark: | The key corresponding to the library section. | /library/sections/1 |
|
||||||
| `similar` | List\<[GetMediaMetaDataSimilar](../../models/operations/GetMediaMetaDataSimilar.md)> | :heavy_minus_sign: | An array of similar content objects. | |
|
| `media` | List\<[GetMediaMetaDataMedia](../../models/operations/GetMediaMetaDataMedia.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `location` | List\<[GetMediaMetaDataLocation](../../models/operations/GetMediaMetaDataLocation.md)> | :heavy_minus_sign: | An array of location objects. | |
|
| `genre` | List\<[GetMediaMetaDataGenre](../../models/operations/GetMediaMetaDataGenre.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `country` | List\<[GetMediaMetaDataCountry](../../models/operations/GetMediaMetaDataCountry.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `director` | List\<[GetMediaMetaDataDirector](../../models/operations/GetMediaMetaDataDirector.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `writer` | List\<[GetMediaMetaDataWriter](../../models/operations/GetMediaMetaDataWriter.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `producer` | List\<[GetMediaMetaDataProducer](../../models/operations/GetMediaMetaDataProducer.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `role` | List\<[GetMediaMetaDataRole](../../models/operations/GetMediaMetaDataRole.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `guids` | List\<[GetMediaMetaDataGuids](../../models/operations/GetMediaMetaDataGuids.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `ratings` | List\<[Ratings](../../models/operations/Ratings.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `similar` | List\<[GetMediaMetaDataSimilar](../../models/operations/GetMediaMetaDataSimilar.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `location` | List\<[GetMediaMetaDataLocation](../../models/operations/GetMediaMetaDataLocation.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `chapter` | List\<[Chapter](../../models/operations/Chapter.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `marker` | List\<[Marker](../../models/operations/Marker.md)> | :heavy_minus_sign: | N/A | |
|
||||||
|
| `extras` | [Optional\<Extras>](../../models/operations/Extras.md) | :heavy_minus_sign: | N/A | |
|
||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | The unique role identifier. | 109501 |
|
| `id` | *long* | :heavy_check_mark: | Unique identifier for the actor or role. | 126522 |
|
||||||
| `filter` | *String* | :heavy_check_mark: | The filter string for the role. | actor=109501 |
|
| `tag` | *String* | :heavy_check_mark: | The display tag for the actor (typically the actor's name). | Teller |
|
||||||
| `tag` | *String* | :heavy_check_mark: | The actor's name. | Bob Odenkirk |
|
| `role` | *Optional\<String>* | :heavy_minus_sign: | The role played by the actor in the media item. | Self - Judge |
|
||||||
| `tagKey` | *String* | :heavy_check_mark: | A key associated with the actor tag. | 5d77683254f42c001f8c3f69 |
|
| `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 |
|
||||||
| `role` | *Optional\<String>* | :heavy_minus_sign: | The character name or role. | Jimmy McGill |
|
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the actor's tag, used for internal identification. | 5d77683d85719b001f3a535e |
|
||||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | URL for the role thumbnail image. | https://metadata-static.plex.tv/f/people/f2ca7b474cc984efbdd5c503a096285a.jpg |
|
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | The URL of the thumbnail image for the actor. | https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg |
|
||||||
@@ -3,54 +3,56 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | Unique stream identifier. | 1002625 |
|
| `id` | *long* | :heavy_check_mark: | Unique stream identifier. | 1002625 |
|
||||||
| `streamType` | *int* | :heavy_check_mark: | Stream type (1=video, 2=audio, 3=subtitle). | 1 |
|
| `streamType` | [GetMediaMetaDataStreamType](../../models/operations/GetMediaMetaDataStreamType.md) | :heavy_check_mark: | Stream type:<br/> - 1 = video<br/> - 2 = audio<br/> - 3 = subtitle<br/> | 1 |
|
||||||
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is default. | true |
|
| `format` | *Optional\<String>* | :heavy_minus_sign: | Format of the stream (e.g., srt). | srt |
|
||||||
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is default. | true |
|
||||||
| `index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
||||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
| `index` | *Optional\<Integer>* | :heavy_minus_sign: | Index of the stream. | 0 |
|
||||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
||||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
||||||
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | ISO language code. | eng |
|
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
||||||
| `headerCompression` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
| `languageCode` | *Optional\<String>* | :heavy_minus_sign: | ISO language code. | eng |
|
||||||
| `doviblCompatID` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
| `headerCompression` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
||||||
| `doviblPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
| `doviblCompatID` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
||||||
| `dovielPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision EL is present. | false |
|
| `doviblPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
||||||
| `doviLevel` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision level. | 6 |
|
| `dovielPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision EL is present. | false |
|
||||||
| `doviPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision is present. | true |
|
| `doviLevel` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision level. | 6 |
|
||||||
| `doviProfile` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision profile. | 8 |
|
| `doviPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision is present. | true |
|
||||||
| `dovirpuPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision RPU is present. | true |
|
| `doviProfile` | *Optional\<Integer>* | :heavy_minus_sign: | Dolby Vision profile. | 8 |
|
||||||
| `doviVersion` | *Optional\<String>* | :heavy_minus_sign: | Dolby Vision version. | 1.0 |
|
| `dovirpuPresent` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if Dolby Vision RPU is present. | true |
|
||||||
| `bitDepth` | *Optional\<Integer>* | :heavy_minus_sign: | Bit depth of the video stream. | 10 |
|
| `doviVersion` | *Optional\<String>* | :heavy_minus_sign: | Dolby Vision version. | 1.0 |
|
||||||
| `chromaLocation` | *Optional\<String>* | :heavy_minus_sign: | Chroma sample location. | topleft |
|
| `bitDepth` | *Optional\<Integer>* | :heavy_minus_sign: | Bit depth of the video stream. | 10 |
|
||||||
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
| `chromaLocation` | *Optional\<String>* | :heavy_minus_sign: | Chroma sample location. | topleft |
|
||||||
| `codedHeight` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video height. | 1608 |
|
| `chromaSubsampling` | *Optional\<String>* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
||||||
| `codedWidth` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video width. | 3840 |
|
| `codedHeight` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video height. | 1608 |
|
||||||
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
| `codedWidth` | *Optional\<Integer>* | :heavy_minus_sign: | Coded video width. | 3840 |
|
||||||
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
| `closedCaptions` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||||
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
| `colorPrimaries` | *Optional\<String>* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
||||||
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
| `colorRange` | *Optional\<String>* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
||||||
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 |
|
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
||||||
| `frameRate` | *Optional\<Float>* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 |
|
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 |
|
||||||
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Height of the video stream. | 1602 |
|
| `frameRate` | *Optional\<Float>* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 |
|
||||||
| `level` | *Optional\<Integer>* | :heavy_minus_sign: | Video level. | 150 |
|
| `key` | *Optional\<String>* | :heavy_minus_sign: | Key to access this stream part. | /library/streams/216389 |
|
||||||
| `original` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the original stream. | true |
|
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Height of the video stream. | 1602 |
|
||||||
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
| `level` | *Optional\<Integer>* | :heavy_minus_sign: | Video level. | 150 |
|
||||||
| `profile` | *Optional\<String>* | :heavy_minus_sign: | Video profile. | main 10 |
|
| `original` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the original stream. | true |
|
||||||
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
| `hasScalingMatrix` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | false |
|
||||||
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
| `profile` | *Optional\<String>* | :heavy_minus_sign: | Video profile. | main 10 |
|
||||||
| `refFrames` | *Optional\<Integer>* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
| `scanType` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||||
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
| `embeddedInVideo` | *Optional\<String>* | :heavy_minus_sign: | N/A | progressive |
|
||||||
| `displayTitle` | *String* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
| `refFrames` | *Optional\<Integer>* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
||||||
| `extendedDisplayTitle` | *String* | :heavy_check_mark: | Extended display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
| `width` | *Optional\<Integer>* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
||||||
| `selected` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is selected (applicable for audio streams). | true |
|
| `displayTitle` | *String* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||||
| `forced` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
| `extendedDisplayTitle` | *String* | :heavy_check_mark: | Extended display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||||
| `channels` | *Optional\<Integer>* | :heavy_minus_sign: | Number of audio channels (for audio streams). | 6 |
|
| `selected` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is selected (applicable for audio streams). | true |
|
||||||
| `audioChannelLayout` | *Optional\<String>* | :heavy_minus_sign: | Audio channel layout. | 5.1(side) |
|
| `forced` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||||
| `samplingRate` | *Optional\<Integer>* | :heavy_minus_sign: | Sampling rate for the audio stream. | 48000 |
|
| `channels` | *Optional\<Integer>* | :heavy_minus_sign: | Number of audio channels (for audio streams). | 6 |
|
||||||
| `canAutoSync` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream can auto-sync. | false |
|
| `audioChannelLayout` | *Optional\<String>* | :heavy_minus_sign: | Audio channel layout. | 5.1(side) |
|
||||||
| `hearingImpaired` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream is for the hearing impaired. | true |
|
| `samplingRate` | *Optional\<Integer>* | :heavy_minus_sign: | Sampling rate for the audio stream. | 48000 |
|
||||||
| `dub` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream is a dub. | true |
|
| `canAutoSync` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if the stream can auto-sync. | false |
|
||||||
| `title` | *Optional\<String>* | :heavy_minus_sign: | Optional title for the stream (e.g., language variant). | SDH |
|
| `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 |
|
||||||
16
docs/models/operations/GetMediaMetaDataStreamType.md
Normal file
16
docs/models/operations/GetMediaMetaDataStreamType.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# GetMediaMetaDataStreamType
|
||||||
|
|
||||||
|
Stream type:
|
||||||
|
- 1 = video
|
||||||
|
- 2 = audio
|
||||||
|
- 3 = subtitle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------- | ---------- |
|
||||||
|
| `Video` | 1 |
|
||||||
|
| `Audio` | 2 |
|
||||||
|
| `Subtitle` | 3 |
|
||||||
16
docs/models/operations/GetMediaMetaDataType.md
Normal file
16
docs/models/operations/GetMediaMetaDataType.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# GetMediaMetaDataType
|
||||||
|
|
||||||
|
The type of media content
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| --------- | --------- |
|
||||||
|
| `Movie` | movie |
|
||||||
|
| `TvShow` | show |
|
||||||
|
| `Season` | season |
|
||||||
|
| `Episode` | episode |
|
||||||
|
| `Artist` | artist |
|
||||||
|
| `Album` | album |
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- |
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
| `topLeft` | *String* | :heavy_check_mark: | The top-left color value. | 11333a |
|
| `topLeft` | *String* | :heavy_check_mark: | N/A | 11333b |
|
||||||
| `topRight` | *String* | :heavy_check_mark: | The top-right color value. | 1d2721 |
|
| `topRight` | *String* | :heavy_check_mark: | N/A | 0a232d |
|
||||||
| `bottomRight` | *String* | :heavy_check_mark: | The bottom-right color value. | 5c451d |
|
| `bottomRight` | *String* | :heavy_check_mark: | N/A | 73958 |
|
||||||
| `bottomLeft` | *String* | :heavy_check_mark: | The bottom-left color value. | 372c10 |
|
| `bottomLeft` | *String* | :heavy_check_mark: | N/A | 1f5066 |
|
||||||
@@ -3,11 +3,10 @@
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | The unique role identifier. | 109501 |
|
| `id` | *int* | :heavy_check_mark: | Unique identifier for the writer. | 126522 |
|
||||||
| `filter` | *String* | :heavy_check_mark: | The filter string for the role. | actor=109501 |
|
| `tag` | *String* | :heavy_check_mark: | The role of Writer | Jamie P. Hanson |
|
||||||
| `tag` | *String* | :heavy_check_mark: | The actor's name. | Bob Odenkirk |
|
| `filter` | *String* | :heavy_check_mark: | The filter string used to query this writer. | writer=126522 |
|
||||||
| `tagKey` | *String* | :heavy_check_mark: | A key associated with the actor tag. | 5d77683254f42c001f8c3f69 |
|
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | The URL of the thumbnail image for the writer. | https://metadata-static.plex.tv/8/people/8d65fa96804802e08f2de09fe014408e.jpg |
|
||||||
| `role` | *Optional\<String>* | :heavy_minus_sign: | The character name or role. | Jimmy McGill |
|
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the writers tag, used for internal identification. | 5d77683d85719b001f3a535e |
|
||||||
| `thumb` | *Optional\<String>* | :heavy_minus_sign: | URL for the role thumbnail image. | https://metadata-static.plex.tv/f/people/f2ca7b474cc984efbdd5c503a096285a.jpg |
|
|
||||||
15
docs/models/operations/Marker.md
Normal file
15
docs/models/operations/Marker.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Marker
|
||||||
|
|
||||||
|
The final status of the marker
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
|
||||||
|
| `id` | *long* | :heavy_check_mark: | N/A | 306970 |
|
||||||
|
| `type` | *String* | :heavy_check_mark: | N/A | credits |
|
||||||
|
| `startTimeOffset` | *long* | :heavy_check_mark: | N/A | 4176050 |
|
||||||
|
| `endTimeOffset` | *long* | :heavy_check_mark: | N/A | 4393389 |
|
||||||
|
| `final_` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A | true |
|
||||||
|
| `attributes` | [Optional\<Attributes>](../../models/operations/Attributes.md) | :heavy_minus_sign: | Attributes associated with the marker. | |
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | Unique identifier for the producer. | 126522 |
|
| `id` | *int* | :heavy_check_mark: | Unique identifier for the producer. | 126522 |
|
||||||
| `filter` | *String* | :heavy_check_mark: | The filter string used to query this producer. | 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 |
|
| `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 |
|
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the producer's tag, used for internal identification. | 5d77683d85719b001f3a535e |
|
||||||
|
|||||||
@@ -6,10 +6,11 @@
|
|||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | Unique stream identifier. | 1002625 |
|
| `id` | *long* | :heavy_check_mark: | Unique stream identifier. | 1002625 |
|
||||||
| `streamType` | *int* | :heavy_check_mark: | Stream type (1=video, 2=audio, 3=subtitle). | 1 |
|
| `streamType` | [StreamType](../../models/operations/StreamType.md) | :heavy_check_mark: | Stream type:<br/> - 1 = video<br/> - 2 = audio<br/> - 3 = subtitle<br/> | 1 |
|
||||||
|
| `format` | *Optional\<String>* | :heavy_minus_sign: | Format of the stream (e.g., srt). | srt |
|
||||||
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is default. | true |
|
| `default_` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this stream is default. | true |
|
||||||
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
| `codec` | *String* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
||||||
| `index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
| `index` | *Optional\<Integer>* | :heavy_minus_sign: | Index of the stream. | 0 |
|
||||||
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
| `bitrate` | *Optional\<Integer>* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
||||||
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
| `language` | *Optional\<String>* | :heavy_minus_sign: | Language of the stream. | English |
|
||||||
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
| `languageTag` | *Optional\<String>* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
| `colorSpace` | *Optional\<String>* | :heavy_minus_sign: | Color space. | bt2020nc |
|
||||||
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 |
|
| `colorTrc` | *Optional\<String>* | :heavy_minus_sign: | Color transfer characteristics. | smpte2084 |
|
||||||
| `frameRate` | *Optional\<Float>* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 |
|
| `frameRate` | *Optional\<Float>* | :heavy_minus_sign: | Frame rate of the stream. | 23.976 |
|
||||||
|
| `key` | *Optional\<String>* | :heavy_minus_sign: | Key to access this stream part. | /library/streams/216389 |
|
||||||
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Height of the video stream. | 1602 |
|
| `height` | *Optional\<Integer>* | :heavy_minus_sign: | Height of the video stream. | 1602 |
|
||||||
| `level` | *Optional\<Integer>* | :heavy_minus_sign: | Video level. | 150 |
|
| `level` | *Optional\<Integer>* | :heavy_minus_sign: | Video level. | 150 |
|
||||||
| `original` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the original stream. | true |
|
| `original` | *Optional\<Boolean>* | :heavy_minus_sign: | Indicates if this is the original stream. | true |
|
||||||
|
|||||||
16
docs/models/operations/StreamType.md
Normal file
16
docs/models/operations/StreamType.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# StreamType
|
||||||
|
|
||||||
|
Stream type:
|
||||||
|
- 1 = video
|
||||||
|
- 2 = audio
|
||||||
|
- 3 = subtitle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------- | ---------- |
|
||||||
|
| `Video` | 1 |
|
||||||
|
| `Audio` | 2 |
|
||||||
|
| `Subtitle` | 3 |
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | Unique identifier for the writer. | 126522 |
|
| `id` | *int* | :heavy_check_mark: | Unique identifier for the writer. | 126522 |
|
||||||
| `filter` | *String* | :heavy_check_mark: | The filter string used to query this writer. | 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 |
|
| `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 |
|
| `tagKey` | *Optional\<String>* | :heavy_minus_sign: | A unique key associated with the writers tag, used for internal identification. | 5d77683d85719b001f3a535e |
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
groupId=dev.plexapi
|
groupId=dev.plexapi
|
||||||
artifactId=plexapi
|
artifactId=plexapi
|
||||||
version=0.16.0
|
version=0.16.1
|
||||||
@@ -52,7 +52,7 @@ public class PlexAPI {
|
|||||||
/**
|
/**
|
||||||
* The full address of your Plex Server
|
* The full address of your Plex Server
|
||||||
*/
|
*/
|
||||||
"https://10.10.10.47:32400",
|
"{protocol}://{ip}:{port}",
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ class SDKConfiguration {
|
|||||||
} };
|
} };
|
||||||
private static final String LANGUAGE = "java";
|
private static final String LANGUAGE = "java";
|
||||||
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
||||||
public static final String SDK_VERSION = "0.16.0";
|
public static final String SDK_VERSION = "0.16.1";
|
||||||
public static final String GEN_VERSION = "2.585.2";
|
public static final String GEN_VERSION = "2.595.4";
|
||||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||||
public static final String USER_AGENT =
|
public static final String USER_AGENT =
|
||||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||||
|
|||||||
172
src/main/java/dev/plexapi/sdk/models/operations/Attributes.java
Normal file
172
src/main/java/dev/plexapi/sdk/models/operations/Attributes.java
Normal file
@@ -0,0 +1,172 @@
|
|||||||
|
/*
|
||||||
|
* 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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attributes
|
||||||
|
*
|
||||||
|
* <p>Attributes associated with the marker.
|
||||||
|
*/
|
||||||
|
public class Attributes {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The identifier for the attributes.
|
||||||
|
*/
|
||||||
|
@JsonProperty("id")
|
||||||
|
private long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The version number of the marker attributes.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("version")
|
||||||
|
private Optional<Long> version;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public Attributes(
|
||||||
|
@JsonProperty("id") long id,
|
||||||
|
@JsonProperty("version") Optional<Long> version) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
Utils.checkNotNull(version, "version");
|
||||||
|
this.id = id;
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Attributes(
|
||||||
|
long id) {
|
||||||
|
this(id, Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The identifier for the attributes.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public long id() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The version number of the marker attributes.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Long> version() {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The identifier for the attributes.
|
||||||
|
*/
|
||||||
|
public Attributes withId(long id) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The version number of the marker attributes.
|
||||||
|
*/
|
||||||
|
public Attributes withVersion(long version) {
|
||||||
|
Utils.checkNotNull(version, "version");
|
||||||
|
this.version = Optional.ofNullable(version);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The version number of the marker attributes.
|
||||||
|
*/
|
||||||
|
public Attributes withVersion(Optional<Long> version) {
|
||||||
|
Utils.checkNotNull(version, "version");
|
||||||
|
this.version = version;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Attributes other = (Attributes) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
|
Objects.deepEquals(this.version, other.version);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
id,
|
||||||
|
version);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(Attributes.class,
|
||||||
|
"id", id,
|
||||||
|
"version", version);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private Optional<Long> version = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The identifier for the attributes.
|
||||||
|
*/
|
||||||
|
public Builder id(long id) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The version number of the marker attributes.
|
||||||
|
*/
|
||||||
|
public Builder version(long version) {
|
||||||
|
Utils.checkNotNull(version, "version");
|
||||||
|
this.version = Optional.ofNullable(version);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The version number of the marker attributes.
|
||||||
|
*/
|
||||||
|
public Builder version(Optional<Long> version) {
|
||||||
|
Utils.checkNotNull(version, "version");
|
||||||
|
this.version = version;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Attributes build() {
|
||||||
|
return new Attributes(
|
||||||
|
id,
|
||||||
|
version);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
237
src/main/java/dev/plexapi/sdk/models/operations/Chapter.java
Normal file
237
src/main/java/dev/plexapi/sdk/models/operations/Chapter.java
Normal file
@@ -0,0 +1,237 @@
|
|||||||
|
/*
|
||||||
|
* 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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chapter
|
||||||
|
*
|
||||||
|
* <p>The thumbnail for the chapter
|
||||||
|
*/
|
||||||
|
public class Chapter {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private long id;
|
||||||
|
|
||||||
|
@JsonProperty("filter")
|
||||||
|
private String filter;
|
||||||
|
|
||||||
|
@JsonProperty("index")
|
||||||
|
private long index;
|
||||||
|
|
||||||
|
@JsonProperty("startTimeOffset")
|
||||||
|
private long startTimeOffset;
|
||||||
|
|
||||||
|
@JsonProperty("endTimeOffset")
|
||||||
|
private long endTimeOffset;
|
||||||
|
|
||||||
|
@JsonProperty("thumb")
|
||||||
|
private String thumb;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public Chapter(
|
||||||
|
@JsonProperty("id") long id,
|
||||||
|
@JsonProperty("filter") String filter,
|
||||||
|
@JsonProperty("index") long index,
|
||||||
|
@JsonProperty("startTimeOffset") long startTimeOffset,
|
||||||
|
@JsonProperty("endTimeOffset") long endTimeOffset,
|
||||||
|
@JsonProperty("thumb") String thumb) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
Utils.checkNotNull(startTimeOffset, "startTimeOffset");
|
||||||
|
Utils.checkNotNull(endTimeOffset, "endTimeOffset");
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
this.id = id;
|
||||||
|
this.filter = filter;
|
||||||
|
this.index = index;
|
||||||
|
this.startTimeOffset = startTimeOffset;
|
||||||
|
this.endTimeOffset = endTimeOffset;
|
||||||
|
this.thumb = thumb;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long id() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String filter() {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long index() {
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long startTimeOffset() {
|
||||||
|
return startTimeOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long endTimeOffset() {
|
||||||
|
return endTimeOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String thumb() {
|
||||||
|
return thumb;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Chapter withId(long id) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Chapter withFilter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Chapter withIndex(long index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = index;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Chapter withStartTimeOffset(long startTimeOffset) {
|
||||||
|
Utils.checkNotNull(startTimeOffset, "startTimeOffset");
|
||||||
|
this.startTimeOffset = startTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Chapter withEndTimeOffset(long endTimeOffset) {
|
||||||
|
Utils.checkNotNull(endTimeOffset, "endTimeOffset");
|
||||||
|
this.endTimeOffset = endTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Chapter withThumb(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;
|
||||||
|
}
|
||||||
|
Chapter other = (Chapter) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
|
Objects.deepEquals(this.filter, other.filter) &&
|
||||||
|
Objects.deepEquals(this.index, other.index) &&
|
||||||
|
Objects.deepEquals(this.startTimeOffset, other.startTimeOffset) &&
|
||||||
|
Objects.deepEquals(this.endTimeOffset, other.endTimeOffset) &&
|
||||||
|
Objects.deepEquals(this.thumb, other.thumb);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
id,
|
||||||
|
filter,
|
||||||
|
index,
|
||||||
|
startTimeOffset,
|
||||||
|
endTimeOffset,
|
||||||
|
thumb);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(Chapter.class,
|
||||||
|
"id", id,
|
||||||
|
"filter", filter,
|
||||||
|
"index", index,
|
||||||
|
"startTimeOffset", startTimeOffset,
|
||||||
|
"endTimeOffset", endTimeOffset,
|
||||||
|
"thumb", thumb);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String filter;
|
||||||
|
|
||||||
|
private Long index;
|
||||||
|
|
||||||
|
private Long startTimeOffset;
|
||||||
|
|
||||||
|
private Long endTimeOffset;
|
||||||
|
|
||||||
|
private String thumb;
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder id(long id) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder filter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder index(long index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = index;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder startTimeOffset(long startTimeOffset) {
|
||||||
|
Utils.checkNotNull(startTimeOffset, "startTimeOffset");
|
||||||
|
this.startTimeOffset = startTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder endTimeOffset(long endTimeOffset) {
|
||||||
|
Utils.checkNotNull(endTimeOffset, "endTimeOffset");
|
||||||
|
this.endTimeOffset = endTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder thumb(String thumb) {
|
||||||
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
this.thumb = thumb;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Chapter build() {
|
||||||
|
return new Chapter(
|
||||||
|
id,
|
||||||
|
filter,
|
||||||
|
index,
|
||||||
|
startTimeOffset,
|
||||||
|
endTimeOffset,
|
||||||
|
thumb);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Long;
|
import java.lang.Integer;
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -23,7 +23,7 @@ import java.util.Optional;
|
|||||||
public class Country {
|
public class Country {
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private long id;
|
private int id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The country of origin of this media item
|
* The country of origin of this media item
|
||||||
@@ -37,7 +37,7 @@ public class Country {
|
|||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public Country(
|
public Country(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") int id,
|
||||||
@JsonProperty("tag") String tag,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("filter") Optional<String> filter) {
|
@JsonProperty("filter") Optional<String> filter) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
@@ -49,13 +49,13 @@ public class Country {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Country(
|
public Country(
|
||||||
long id,
|
int id,
|
||||||
String tag) {
|
String tag) {
|
||||||
this(id, tag, Optional.empty());
|
this(id, tag, Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long id() {
|
public int id() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ public class Country {
|
|||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Country withId(long id) {
|
public Country withId(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
@@ -137,7 +137,7 @@ public class Country {
|
|||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Long id;
|
private Integer id;
|
||||||
|
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ public class Country {
|
|||||||
// force use of static builder() method
|
// force use of static builder() method
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder id(long id) {
|
public Builder id(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
125
src/main/java/dev/plexapi/sdk/models/operations/Extras.java
Normal file
125
src/main/java/dev/plexapi/sdk/models/operations/Extras.java
Normal file
@@ -0,0 +1,125 @@
|
|||||||
|
/*
|
||||||
|
* 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 Extras {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The size of the extras.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("size")
|
||||||
|
private Optional<Long> size;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public Extras(
|
||||||
|
@JsonProperty("size") Optional<Long> size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Extras() {
|
||||||
|
this(Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The size of the extras.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Long> size() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The size of the extras.
|
||||||
|
*/
|
||||||
|
public Extras withSize(long size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = Optional.ofNullable(size);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The size of the extras.
|
||||||
|
*/
|
||||||
|
public Extras withSize(Optional<Long> size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Extras other = (Extras) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.size, other.size);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
size);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(Extras.class,
|
||||||
|
"size", size);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Optional<Long> size = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The size of the extras.
|
||||||
|
*/
|
||||||
|
public Builder size(long size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = Optional.ofNullable(size);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The size of the extras.
|
||||||
|
*/
|
||||||
|
public Builder size(Optional<Long> size) {
|
||||||
|
Utils.checkNotNull(size, "size");
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Extras build() {
|
||||||
|
return new Extras(
|
||||||
|
size);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -27,10 +27,20 @@ public class GetAllMediaLibraryStream {
|
|||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
@JsonProperty("streamType")
|
@JsonProperty("streamType")
|
||||||
private int streamType;
|
private GetAllMediaLibraryStreamType streamType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("format")
|
||||||
|
private Optional<String> format;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
@@ -48,8 +58,9 @@ public class GetAllMediaLibraryStream {
|
|||||||
/**
|
/**
|
||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("index")
|
@JsonProperty("index")
|
||||||
private int index;
|
private Optional<Integer> index;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitrate of the stream.
|
* Bitrate of the stream.
|
||||||
@@ -216,6 +227,13 @@ public class GetAllMediaLibraryStream {
|
|||||||
@JsonProperty("frameRate")
|
@JsonProperty("frameRate")
|
||||||
private Optional<Float> frameRate;
|
private Optional<Float> frameRate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("key")
|
||||||
|
private Optional<String> key;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -345,10 +363,11 @@ public class GetAllMediaLibraryStream {
|
|||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetAllMediaLibraryStream(
|
public GetAllMediaLibraryStream(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") long id,
|
||||||
@JsonProperty("streamType") int streamType,
|
@JsonProperty("streamType") GetAllMediaLibraryStreamType streamType,
|
||||||
|
@JsonProperty("format") Optional<String> format,
|
||||||
@JsonProperty("default") Optional<Boolean> default_,
|
@JsonProperty("default") Optional<Boolean> default_,
|
||||||
@JsonProperty("codec") String codec,
|
@JsonProperty("codec") String codec,
|
||||||
@JsonProperty("index") int index,
|
@JsonProperty("index") Optional<Integer> index,
|
||||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||||
@JsonProperty("language") Optional<String> language,
|
@JsonProperty("language") Optional<String> language,
|
||||||
@JsonProperty("languageTag") Optional<String> languageTag,
|
@JsonProperty("languageTag") Optional<String> languageTag,
|
||||||
@@ -373,6 +392,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
||||||
@JsonProperty("colorTrc") Optional<String> colorTrc,
|
@JsonProperty("colorTrc") Optional<String> colorTrc,
|
||||||
@JsonProperty("frameRate") Optional<Float> frameRate,
|
@JsonProperty("frameRate") Optional<Float> frameRate,
|
||||||
|
@JsonProperty("key") Optional<String> key,
|
||||||
@JsonProperty("height") Optional<Integer> height,
|
@JsonProperty("height") Optional<Integer> height,
|
||||||
@JsonProperty("level") Optional<Integer> level,
|
@JsonProperty("level") Optional<Integer> level,
|
||||||
@JsonProperty("original") Optional<Boolean> original,
|
@JsonProperty("original") Optional<Boolean> original,
|
||||||
@@ -395,6 +415,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
@JsonProperty("title") Optional<String> title) {
|
@JsonProperty("title") Optional<String> title) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
Utils.checkNotNull(default_, "default_");
|
Utils.checkNotNull(default_, "default_");
|
||||||
Utils.checkNotNull(codec, "codec");
|
Utils.checkNotNull(codec, "codec");
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
@@ -422,6 +443,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
Utils.checkNotNull(colorSpace, "colorSpace");
|
Utils.checkNotNull(colorSpace, "colorSpace");
|
||||||
Utils.checkNotNull(colorTrc, "colorTrc");
|
Utils.checkNotNull(colorTrc, "colorTrc");
|
||||||
Utils.checkNotNull(frameRate, "frameRate");
|
Utils.checkNotNull(frameRate, "frameRate");
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
Utils.checkNotNull(height, "height");
|
Utils.checkNotNull(height, "height");
|
||||||
Utils.checkNotNull(level, "level");
|
Utils.checkNotNull(level, "level");
|
||||||
Utils.checkNotNull(original, "original");
|
Utils.checkNotNull(original, "original");
|
||||||
@@ -444,6 +466,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
Utils.checkNotNull(title, "title");
|
Utils.checkNotNull(title, "title");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
|
this.format = format;
|
||||||
this.default_ = default_;
|
this.default_ = default_;
|
||||||
this.codec = codec;
|
this.codec = codec;
|
||||||
this.index = index;
|
this.index = index;
|
||||||
@@ -471,6 +494,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
this.colorSpace = colorSpace;
|
this.colorSpace = colorSpace;
|
||||||
this.colorTrc = colorTrc;
|
this.colorTrc = colorTrc;
|
||||||
this.frameRate = frameRate;
|
this.frameRate = frameRate;
|
||||||
|
this.key = key;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
this.level = level;
|
this.level = level;
|
||||||
this.original = original;
|
this.original = original;
|
||||||
@@ -495,12 +519,11 @@ public class GetAllMediaLibraryStream {
|
|||||||
|
|
||||||
public GetAllMediaLibraryStream(
|
public GetAllMediaLibraryStream(
|
||||||
long id,
|
long id,
|
||||||
int streamType,
|
GetAllMediaLibraryStreamType streamType,
|
||||||
String codec,
|
String codec,
|
||||||
int index,
|
|
||||||
String displayTitle,
|
String displayTitle,
|
||||||
String extendedDisplayTitle) {
|
String extendedDisplayTitle) {
|
||||||
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());
|
this(id, streamType, Optional.empty(), Optional.empty(), codec, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), 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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -512,13 +535,24 @@ public class GetAllMediaLibraryStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public int streamType() {
|
public GetAllMediaLibraryStreamType streamType() {
|
||||||
return streamType;
|
return streamType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> format() {
|
||||||
|
return format;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -539,7 +573,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public int index() {
|
public Optional<Integer> index() {
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -732,6 +766,14 @@ public class GetAllMediaLibraryStream {
|
|||||||
return frameRate;
|
return frameRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> key() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -894,14 +936,35 @@ public class GetAllMediaLibraryStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
public GetAllMediaLibraryStream withStreamType(int streamType) {
|
public GetAllMediaLibraryStream withStreamType(GetAllMediaLibraryStreamType streamType) {
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public GetAllMediaLibraryStream withFormat(String format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = Optional.ofNullable(format);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public GetAllMediaLibraryStream withFormat(Optional<String> format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = format;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -933,6 +996,15 @@ public class GetAllMediaLibraryStream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
public GetAllMediaLibraryStream withIndex(int index) {
|
public GetAllMediaLibraryStream withIndex(int index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = Optional.ofNullable(index);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Index of the stream.
|
||||||
|
*/
|
||||||
|
public GetAllMediaLibraryStream withIndex(Optional<Integer> index) {
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
this.index = index;
|
this.index = index;
|
||||||
return this;
|
return this;
|
||||||
@@ -1364,6 +1436,24 @@ public class GetAllMediaLibraryStream {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public GetAllMediaLibraryStream withKey(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = Optional.ofNullable(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public GetAllMediaLibraryStream withKey(Optional<String> key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -1695,6 +1785,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.streamType, other.streamType) &&
|
Objects.deepEquals(this.streamType, other.streamType) &&
|
||||||
|
Objects.deepEquals(this.format, other.format) &&
|
||||||
Objects.deepEquals(this.default_, other.default_) &&
|
Objects.deepEquals(this.default_, other.default_) &&
|
||||||
Objects.deepEquals(this.codec, other.codec) &&
|
Objects.deepEquals(this.codec, other.codec) &&
|
||||||
Objects.deepEquals(this.index, other.index) &&
|
Objects.deepEquals(this.index, other.index) &&
|
||||||
@@ -1722,6 +1813,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
||||||
Objects.deepEquals(this.colorTrc, other.colorTrc) &&
|
Objects.deepEquals(this.colorTrc, other.colorTrc) &&
|
||||||
Objects.deepEquals(this.frameRate, other.frameRate) &&
|
Objects.deepEquals(this.frameRate, other.frameRate) &&
|
||||||
|
Objects.deepEquals(this.key, other.key) &&
|
||||||
Objects.deepEquals(this.height, other.height) &&
|
Objects.deepEquals(this.height, other.height) &&
|
||||||
Objects.deepEquals(this.level, other.level) &&
|
Objects.deepEquals(this.level, other.level) &&
|
||||||
Objects.deepEquals(this.original, other.original) &&
|
Objects.deepEquals(this.original, other.original) &&
|
||||||
@@ -1749,6 +1841,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
streamType,
|
streamType,
|
||||||
|
format,
|
||||||
default_,
|
default_,
|
||||||
codec,
|
codec,
|
||||||
index,
|
index,
|
||||||
@@ -1776,6 +1869,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
colorSpace,
|
colorSpace,
|
||||||
colorTrc,
|
colorTrc,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
key,
|
||||||
height,
|
height,
|
||||||
level,
|
level,
|
||||||
original,
|
original,
|
||||||
@@ -1803,6 +1897,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
return Utils.toString(GetAllMediaLibraryStream.class,
|
return Utils.toString(GetAllMediaLibraryStream.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"streamType", streamType,
|
"streamType", streamType,
|
||||||
|
"format", format,
|
||||||
"default_", default_,
|
"default_", default_,
|
||||||
"codec", codec,
|
"codec", codec,
|
||||||
"index", index,
|
"index", index,
|
||||||
@@ -1830,6 +1925,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
"colorSpace", colorSpace,
|
"colorSpace", colorSpace,
|
||||||
"colorTrc", colorTrc,
|
"colorTrc", colorTrc,
|
||||||
"frameRate", frameRate,
|
"frameRate", frameRate,
|
||||||
|
"key", key,
|
||||||
"height", height,
|
"height", height,
|
||||||
"level", level,
|
"level", level,
|
||||||
"original", original,
|
"original", original,
|
||||||
@@ -1856,13 +1952,15 @@ public class GetAllMediaLibraryStream {
|
|||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private Integer streamType;
|
private GetAllMediaLibraryStreamType streamType;
|
||||||
|
|
||||||
|
private Optional<String> format = Optional.empty();
|
||||||
|
|
||||||
private Optional<Boolean> default_ = Optional.empty();
|
private Optional<Boolean> default_ = Optional.empty();
|
||||||
|
|
||||||
private String codec;
|
private String codec;
|
||||||
|
|
||||||
private Integer index;
|
private Optional<Integer> index = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> bitrate = Optional.empty();
|
private Optional<Integer> bitrate = Optional.empty();
|
||||||
|
|
||||||
@@ -1912,6 +2010,8 @@ public class GetAllMediaLibraryStream {
|
|||||||
|
|
||||||
private Optional<Float> frameRate = Optional.empty();
|
private Optional<Float> frameRate = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> key = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> height = Optional.empty();
|
private Optional<Integer> height = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> level = Optional.empty();
|
private Optional<Integer> level = Optional.empty();
|
||||||
@@ -1966,14 +2066,35 @@ public class GetAllMediaLibraryStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
public Builder streamType(int streamType) {
|
public Builder streamType(GetAllMediaLibraryStreamType streamType) {
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Builder format(String format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = Optional.ofNullable(format);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Builder format(Optional<String> format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = format;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -2005,6 +2126,15 @@ public class GetAllMediaLibraryStream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
public Builder index(int index) {
|
public Builder index(int index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = Optional.ofNullable(index);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Index of the stream.
|
||||||
|
*/
|
||||||
|
public Builder index(Optional<Integer> index) {
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
this.index = index;
|
this.index = index;
|
||||||
return this;
|
return this;
|
||||||
@@ -2436,6 +2566,24 @@ public class GetAllMediaLibraryStream {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Builder key(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = Optional.ofNullable(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Builder key(Optional<String> key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -2758,6 +2906,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
return new GetAllMediaLibraryStream(
|
return new GetAllMediaLibraryStream(
|
||||||
id,
|
id,
|
||||||
streamType,
|
streamType,
|
||||||
|
format,
|
||||||
default_,
|
default_,
|
||||||
codec,
|
codec,
|
||||||
index,
|
index,
|
||||||
@@ -2785,6 +2934,7 @@ public class GetAllMediaLibraryStream {
|
|||||||
colorSpace,
|
colorSpace,
|
||||||
colorTrc,
|
colorTrc,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
key,
|
||||||
height,
|
height,
|
||||||
level,
|
level,
|
||||||
original,
|
original,
|
||||||
|
|||||||
@@ -0,0 +1,192 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JacksonException;
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Wrapper class for an "open" enum. "Open" enums are those that are expected
|
||||||
|
* to evolve (particularly with the addition of enum members over time). If an
|
||||||
|
* open enum is used then the appearance of unexpected enum values (say in a
|
||||||
|
* response from an updated an API) will not bring about a runtime error thus
|
||||||
|
* ensuring that non-updated client versions can continue to work without error.
|
||||||
|
*
|
||||||
|
* <p>Note that instances are immutable and are singletons (an internal thread-safe
|
||||||
|
* cache is maintained to ensure that). As a consequence instances created with the
|
||||||
|
* same value will satisfy reference equality (via {@code ==}).
|
||||||
|
*
|
||||||
|
* <p>This class is intended to emulate an enum (in terms of common usage and with
|
||||||
|
* reference equality) but with the ability to carry unknown values. Unfortunately
|
||||||
|
* Java does not permit the use of an instance in a switch expression but you can
|
||||||
|
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* GetAllMediaLibraryStreamType
|
||||||
|
*
|
||||||
|
* <p>Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
|
*/
|
||||||
|
@JsonDeserialize(using = GetAllMediaLibraryStreamType._Deserializer.class)
|
||||||
|
@JsonSerialize(using = GetAllMediaLibraryStreamType._Serializer.class)
|
||||||
|
public class GetAllMediaLibraryStreamType {
|
||||||
|
|
||||||
|
public static final GetAllMediaLibraryStreamType Video = new GetAllMediaLibraryStreamType(1);
|
||||||
|
public static final GetAllMediaLibraryStreamType Audio = new GetAllMediaLibraryStreamType(2);
|
||||||
|
public static final GetAllMediaLibraryStreamType Subtitle = new GetAllMediaLibraryStreamType(3);
|
||||||
|
|
||||||
|
// This map will grow whenever a Color gets created with a new
|
||||||
|
// unrecognized value (a potential memory leak if the user is not
|
||||||
|
// careful). Keep this field lower case to avoid clashing with
|
||||||
|
// generated member names which will always be upper cased (Java
|
||||||
|
// convention)
|
||||||
|
private static final Map<Integer, GetAllMediaLibraryStreamType> values = createValuesMap();
|
||||||
|
private static final Map<Integer, GetAllMediaLibraryStreamTypeEnum> enums = createEnumsMap();
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
private GetAllMediaLibraryStreamType(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a GetAllMediaLibraryStreamType with the given value. For a specific value the
|
||||||
|
* returned object will always be a singleton so reference equality
|
||||||
|
* is satisfied when the values are the same.
|
||||||
|
*
|
||||||
|
* @param value value to be wrapped as GetAllMediaLibraryStreamType
|
||||||
|
*/
|
||||||
|
public static GetAllMediaLibraryStreamType of(int value) {
|
||||||
|
synchronized (GetAllMediaLibraryStreamType.class) {
|
||||||
|
return values.computeIfAbsent(value, v -> new GetAllMediaLibraryStreamType(v));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Optional<GetAllMediaLibraryStreamTypeEnum> asEnum() {
|
||||||
|
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isKnown() {
|
||||||
|
return asEnum().isPresent();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
GetAllMediaLibraryStreamType other = (GetAllMediaLibraryStreamType) obj;
|
||||||
|
return Objects.equals(value, other.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "GetAllMediaLibraryStreamType [value=" + value + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
// return an array just like an enum
|
||||||
|
public static GetAllMediaLibraryStreamType[] values() {
|
||||||
|
synchronized (GetAllMediaLibraryStreamType.class) {
|
||||||
|
return values.values().toArray(new GetAllMediaLibraryStreamType[] {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Integer, GetAllMediaLibraryStreamType> createValuesMap() {
|
||||||
|
Map<Integer, GetAllMediaLibraryStreamType> map = new LinkedHashMap<>();
|
||||||
|
map.put(1, Video);
|
||||||
|
map.put(2, Audio);
|
||||||
|
map.put(3, Subtitle);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Integer, GetAllMediaLibraryStreamTypeEnum> createEnumsMap() {
|
||||||
|
Map<Integer, GetAllMediaLibraryStreamTypeEnum> map = new HashMap<>();
|
||||||
|
map.put(1, GetAllMediaLibraryStreamTypeEnum.Video);
|
||||||
|
map.put(2, GetAllMediaLibraryStreamTypeEnum.Audio);
|
||||||
|
map.put(3, GetAllMediaLibraryStreamTypeEnum.Subtitle);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Serializer extends StdSerializer<GetAllMediaLibraryStreamType> {
|
||||||
|
|
||||||
|
protected _Serializer() {
|
||||||
|
super(GetAllMediaLibraryStreamType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize(GetAllMediaLibraryStreamType value, JsonGenerator g, SerializerProvider provider)
|
||||||
|
throws IOException, JsonProcessingException {
|
||||||
|
g.writeObject(value.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Deserializer extends StdDeserializer<GetAllMediaLibraryStreamType> {
|
||||||
|
|
||||||
|
protected _Deserializer() {
|
||||||
|
super(GetAllMediaLibraryStreamType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetAllMediaLibraryStreamType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||||
|
throws IOException, JacksonException {
|
||||||
|
int v = p.readValueAs(new TypeReference<Integer>() {});
|
||||||
|
// use the factory method to ensure we get singletons
|
||||||
|
return GetAllMediaLibraryStreamType.of(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum GetAllMediaLibraryStreamTypeEnum {
|
||||||
|
|
||||||
|
Video(1),
|
||||||
|
Audio(2),
|
||||||
|
Subtitle(3),;
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
private GetAllMediaLibraryStreamTypeEnum(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -5,77 +5,77 @@ package dev.plexapi.sdk.models.operations;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
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 com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Integer;
|
import java.lang.Integer;
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetMediaMetaDataCountry
|
||||||
|
*
|
||||||
|
* <p>The filter query string for country media items.
|
||||||
|
*/
|
||||||
public class GetMediaMetaDataCountry {
|
public class GetMediaMetaDataCountry {
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique country identifier.
|
|
||||||
*/
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the country.
|
* The country of origin of this media item
|
||||||
*/
|
|
||||||
@JsonProperty("filter")
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The country name.
|
|
||||||
*/
|
*/
|
||||||
@JsonProperty("tag")
|
@JsonProperty("tag")
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("filter")
|
||||||
|
private Optional<String> filter;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetMediaMetaDataCountry(
|
public GetMediaMetaDataCountry(
|
||||||
@JsonProperty("id") int id,
|
@JsonProperty("id") int id,
|
||||||
@JsonProperty("filter") String filter,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("tag") String tag) {
|
@JsonProperty("filter") Optional<String> filter) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.filter = filter;
|
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
|
this.filter = filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetMediaMetaDataCountry(
|
||||||
|
int id,
|
||||||
|
String tag) {
|
||||||
|
this(id, tag, Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique country identifier.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public int id() {
|
public int id() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the country.
|
* The country of origin of this media item
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public String filter() {
|
|
||||||
return filter;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The country name.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String tag() {
|
public String tag() {
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> filter() {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
public final static Builder builder() {
|
public final static Builder builder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique country identifier.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataCountry withId(int id) {
|
public GetMediaMetaDataCountry withId(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
@@ -83,16 +83,7 @@ public class GetMediaMetaDataCountry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the country.
|
* The country of origin of this media item
|
||||||
*/
|
|
||||||
public GetMediaMetaDataCountry withFilter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The country name.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataCountry withTag(String tag) {
|
public GetMediaMetaDataCountry withTag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -100,6 +91,18 @@ public class GetMediaMetaDataCountry {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GetMediaMetaDataCountry withFilter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = Optional.ofNullable(filter);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetMediaMetaDataCountry withFilter(Optional<String> filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@@ -112,41 +115,38 @@ public class GetMediaMetaDataCountry {
|
|||||||
GetMediaMetaDataCountry other = (GetMediaMetaDataCountry) o;
|
GetMediaMetaDataCountry other = (GetMediaMetaDataCountry) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.filter, other.filter) &&
|
Objects.deepEquals(this.tag, other.tag) &&
|
||||||
Objects.deepEquals(this.tag, other.tag);
|
Objects.deepEquals(this.filter, other.filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
filter,
|
tag,
|
||||||
tag);
|
filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetMediaMetaDataCountry.class,
|
return Utils.toString(GetMediaMetaDataCountry.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"filter", filter,
|
"tag", tag,
|
||||||
"tag", tag);
|
"filter", filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
|
private Optional<String> filter = Optional.empty();
|
||||||
|
|
||||||
private Builder() {
|
private Builder() {
|
||||||
// force use of static builder() method
|
// force use of static builder() method
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique country identifier.
|
|
||||||
*/
|
|
||||||
public Builder id(int id) {
|
public Builder id(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
@@ -154,16 +154,7 @@ public class GetMediaMetaDataCountry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the country.
|
* The country of origin of this media item
|
||||||
*/
|
|
||||||
public Builder filter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The country name.
|
|
||||||
*/
|
*/
|
||||||
public Builder tag(String tag) {
|
public Builder tag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -171,11 +162,23 @@ public class GetMediaMetaDataCountry {
|
|||||||
return this;
|
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 GetMediaMetaDataCountry build() {
|
public GetMediaMetaDataCountry build() {
|
||||||
return new GetMediaMetaDataCountry(
|
return new GetMediaMetaDataCountry(
|
||||||
id,
|
id,
|
||||||
filter,
|
tag,
|
||||||
tag);
|
filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Long;
|
import java.lang.Integer;
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -18,38 +18,32 @@ import java.util.Optional;
|
|||||||
public class GetMediaMetaDataDirector {
|
public class GetMediaMetaDataDirector {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the director.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private long id;
|
private int id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Director
|
||||||
*/
|
|
||||||
@JsonProperty("filter")
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
@JsonProperty("tag")
|
@JsonProperty("tag")
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this director.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("tagKey")
|
@JsonProperty("filter")
|
||||||
private String tagKey;
|
private String filter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* A unique key associated with the director's tag, used for internal identification.
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("role")
|
@JsonProperty("tagKey")
|
||||||
private Optional<String> role;
|
private Optional<String> tagKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The URL of the thumbnail image for the director.
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("thumb")
|
@JsonProperty("thumb")
|
||||||
@@ -57,52 +51,40 @@ public class GetMediaMetaDataDirector {
|
|||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetMediaMetaDataDirector(
|
public GetMediaMetaDataDirector(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") int id,
|
||||||
@JsonProperty("filter") String filter,
|
|
||||||
@JsonProperty("tag") String tag,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("tagKey") String tagKey,
|
@JsonProperty("filter") String filter,
|
||||||
@JsonProperty("role") Optional<String> role,
|
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||||
@JsonProperty("thumb") Optional<String> thumb) {
|
@JsonProperty("thumb") Optional<String> thumb) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
Utils.checkNotNull(role, "role");
|
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.filter = filter;
|
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
|
this.filter = filter;
|
||||||
this.tagKey = tagKey;
|
this.tagKey = tagKey;
|
||||||
this.role = role;
|
|
||||||
this.thumb = thumb;
|
this.thumb = thumb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetMediaMetaDataDirector(
|
public GetMediaMetaDataDirector(
|
||||||
long id,
|
int id,
|
||||||
String filter,
|
|
||||||
String tag,
|
String tag,
|
||||||
String tagKey) {
|
String filter) {
|
||||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
this(id, tag, filter, Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the director.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long id() {
|
public int id() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Director
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public String filter() {
|
|
||||||
return filter;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String tag() {
|
public String tag() {
|
||||||
@@ -110,23 +92,23 @@ public class GetMediaMetaDataDirector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this director.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String tagKey() {
|
public String filter() {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the director's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> tagKey() {
|
||||||
return tagKey;
|
return tagKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The URL of the thumbnail image for the director.
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public Optional<String> role() {
|
|
||||||
return role;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* URL for the role thumbnail image.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> thumb() {
|
public Optional<String> thumb() {
|
||||||
@@ -138,25 +120,16 @@ public class GetMediaMetaDataDirector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the director.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataDirector withId(long id) {
|
public GetMediaMetaDataDirector withId(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Director
|
||||||
*/
|
|
||||||
public GetMediaMetaDataDirector withFilter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataDirector withTag(String tag) {
|
public GetMediaMetaDataDirector withTag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -165,34 +138,34 @@ public class GetMediaMetaDataDirector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this director.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataDirector withFilter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the director's tag, used for internal identification.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataDirector withTagKey(String tagKey) {
|
public GetMediaMetaDataDirector withTagKey(String tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = Optional.ofNullable(tagKey);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the director's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataDirector withTagKey(Optional<String> tagKey) {
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
this.tagKey = tagKey;
|
this.tagKey = tagKey;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The URL of the thumbnail image for the director.
|
||||||
*/
|
|
||||||
public GetMediaMetaDataDirector withRole(String role) {
|
|
||||||
Utils.checkNotNull(role, "role");
|
|
||||||
this.role = Optional.ofNullable(role);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The character name or role.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataDirector withRole(Optional<String> role) {
|
|
||||||
Utils.checkNotNull(role, "role");
|
|
||||||
this.role = role;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* URL for the role thumbnail image.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataDirector withThumb(String thumb) {
|
public GetMediaMetaDataDirector withThumb(String thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -201,7 +174,7 @@ public class GetMediaMetaDataDirector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The URL of the thumbnail image for the director.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataDirector withThumb(Optional<String> thumb) {
|
public GetMediaMetaDataDirector withThumb(Optional<String> thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -221,10 +194,9 @@ public class GetMediaMetaDataDirector {
|
|||||||
GetMediaMetaDataDirector other = (GetMediaMetaDataDirector) o;
|
GetMediaMetaDataDirector other = (GetMediaMetaDataDirector) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.filter, other.filter) &&
|
|
||||||
Objects.deepEquals(this.tag, other.tag) &&
|
Objects.deepEquals(this.tag, other.tag) &&
|
||||||
|
Objects.deepEquals(this.filter, other.filter) &&
|
||||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||||
Objects.deepEquals(this.role, other.role) &&
|
|
||||||
Objects.deepEquals(this.thumb, other.thumb);
|
Objects.deepEquals(this.thumb, other.thumb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,10 +204,9 @@ public class GetMediaMetaDataDirector {
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
filter,
|
|
||||||
tag,
|
tag,
|
||||||
|
filter,
|
||||||
tagKey,
|
tagKey,
|
||||||
role,
|
|
||||||
thumb);
|
thumb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -243,24 +214,21 @@ public class GetMediaMetaDataDirector {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetMediaMetaDataDirector.class,
|
return Utils.toString(GetMediaMetaDataDirector.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"filter", filter,
|
|
||||||
"tag", tag,
|
"tag", tag,
|
||||||
|
"filter", filter,
|
||||||
"tagKey", tagKey,
|
"tagKey", tagKey,
|
||||||
"role", role,
|
|
||||||
"thumb", thumb);
|
"thumb", thumb);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Long id;
|
private Integer id;
|
||||||
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
private String tagKey;
|
private String filter;
|
||||||
|
|
||||||
private Optional<String> role = Optional.empty();
|
private Optional<String> tagKey = Optional.empty();
|
||||||
|
|
||||||
private Optional<String> thumb = Optional.empty();
|
private Optional<String> thumb = Optional.empty();
|
||||||
|
|
||||||
@@ -269,25 +237,16 @@ public class GetMediaMetaDataDirector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the director.
|
||||||
*/
|
*/
|
||||||
public Builder id(long id) {
|
public Builder id(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Director
|
||||||
*/
|
|
||||||
public Builder filter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
public Builder tag(String tag) {
|
public Builder tag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -296,34 +255,34 @@ public class GetMediaMetaDataDirector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this director.
|
||||||
|
*/
|
||||||
|
public Builder filter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the director's tag, used for internal identification.
|
||||||
*/
|
*/
|
||||||
public Builder tagKey(String tagKey) {
|
public Builder tagKey(String tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = Optional.ofNullable(tagKey);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the director's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public Builder tagKey(Optional<String> tagKey) {
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
this.tagKey = tagKey;
|
this.tagKey = tagKey;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The URL of the thumbnail image for the director.
|
||||||
*/
|
|
||||||
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) {
|
public Builder thumb(String thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -332,7 +291,7 @@ public class GetMediaMetaDataDirector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The URL of the thumbnail image for the director.
|
||||||
*/
|
*/
|
||||||
public Builder thumb(Optional<String> thumb) {
|
public Builder thumb(Optional<String> thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -343,10 +302,9 @@ public class GetMediaMetaDataDirector {
|
|||||||
public GetMediaMetaDataDirector build() {
|
public GetMediaMetaDataDirector build() {
|
||||||
return new GetMediaMetaDataDirector(
|
return new GetMediaMetaDataDirector(
|
||||||
id,
|
id,
|
||||||
filter,
|
|
||||||
tag,
|
tag,
|
||||||
|
filter,
|
||||||
tagKey,
|
tagKey,
|
||||||
role,
|
|
||||||
thumb);
|
thumb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,70 +12,60 @@ import java.lang.Override;
|
|||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetMediaMetaDataGenre
|
||||||
|
*
|
||||||
|
* <p>The filter query string for similar items.
|
||||||
|
*/
|
||||||
public class GetMediaMetaDataGenre {
|
public class GetMediaMetaDataGenre {
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique genre identifier.
|
|
||||||
*/
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the genre.
|
* The genre name of this media-item
|
||||||
*/
|
|
||||||
@JsonProperty("filter")
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The genre name.
|
|
||||||
*/
|
*/
|
||||||
@JsonProperty("tag")
|
@JsonProperty("tag")
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
|
@JsonProperty("filter")
|
||||||
|
private String filter;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetMediaMetaDataGenre(
|
public GetMediaMetaDataGenre(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") long id,
|
||||||
@JsonProperty("filter") String filter,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("tag") String tag) {
|
@JsonProperty("filter") String filter) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.filter = filter;
|
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
|
this.filter = filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique genre identifier.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long id() {
|
public long id() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the genre.
|
* The genre name of this media-item
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public String filter() {
|
|
||||||
return filter;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The genre name.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String tag() {
|
public String tag() {
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String filter() {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
public final static Builder builder() {
|
public final static Builder builder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique genre identifier.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataGenre withId(long id) {
|
public GetMediaMetaDataGenre withId(long id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
@@ -83,16 +73,7 @@ public class GetMediaMetaDataGenre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the genre.
|
* The genre name of this media-item
|
||||||
*/
|
|
||||||
public GetMediaMetaDataGenre withFilter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The genre name.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataGenre withTag(String tag) {
|
public GetMediaMetaDataGenre withTag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -100,6 +81,12 @@ public class GetMediaMetaDataGenre {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GetMediaMetaDataGenre withFilter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@@ -112,41 +99,38 @@ public class GetMediaMetaDataGenre {
|
|||||||
GetMediaMetaDataGenre other = (GetMediaMetaDataGenre) o;
|
GetMediaMetaDataGenre other = (GetMediaMetaDataGenre) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.filter, other.filter) &&
|
Objects.deepEquals(this.tag, other.tag) &&
|
||||||
Objects.deepEquals(this.tag, other.tag);
|
Objects.deepEquals(this.filter, other.filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
filter,
|
tag,
|
||||||
tag);
|
filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetMediaMetaDataGenre.class,
|
return Utils.toString(GetMediaMetaDataGenre.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"filter", filter,
|
"tag", tag,
|
||||||
"tag", tag);
|
"filter", filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
|
private String filter;
|
||||||
|
|
||||||
private Builder() {
|
private Builder() {
|
||||||
// force use of static builder() method
|
// force use of static builder() method
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The unique genre identifier.
|
|
||||||
*/
|
|
||||||
public Builder id(long id) {
|
public Builder id(long id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
@@ -154,16 +138,7 @@ public class GetMediaMetaDataGenre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the genre.
|
* The genre name of this media-item
|
||||||
*/
|
|
||||||
public Builder filter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The genre name.
|
|
||||||
*/
|
*/
|
||||||
public Builder tag(String tag) {
|
public Builder tag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -171,11 +146,17 @@ public class GetMediaMetaDataGenre {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder filter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public GetMediaMetaDataGenre build() {
|
public GetMediaMetaDataGenre build() {
|
||||||
return new GetMediaMetaDataGenre(
|
return new GetMediaMetaDataGenre(
|
||||||
id,
|
id,
|
||||||
filter,
|
tag,
|
||||||
tag);
|
filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,28 +13,19 @@ import java.util.Objects;
|
|||||||
|
|
||||||
public class GetMediaMetaDataImage {
|
public class GetMediaMetaDataImage {
|
||||||
|
|
||||||
/**
|
|
||||||
* Alternate text for the image.
|
|
||||||
*/
|
|
||||||
@JsonProperty("alt")
|
@JsonProperty("alt")
|
||||||
private String alt;
|
private String alt;
|
||||||
|
|
||||||
/**
|
|
||||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
|
||||||
*/
|
|
||||||
@JsonProperty("type")
|
@JsonProperty("type")
|
||||||
private String type;
|
private GetMediaMetaDataLibraryType type;
|
||||||
|
|
||||||
/**
|
|
||||||
* The URL of the image.
|
|
||||||
*/
|
|
||||||
@JsonProperty("url")
|
@JsonProperty("url")
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetMediaMetaDataImage(
|
public GetMediaMetaDataImage(
|
||||||
@JsonProperty("alt") String alt,
|
@JsonProperty("alt") String alt,
|
||||||
@JsonProperty("type") String type,
|
@JsonProperty("type") GetMediaMetaDataLibraryType type,
|
||||||
@JsonProperty("url") String url) {
|
@JsonProperty("url") String url) {
|
||||||
Utils.checkNotNull(alt, "alt");
|
Utils.checkNotNull(alt, "alt");
|
||||||
Utils.checkNotNull(type, "type");
|
Utils.checkNotNull(type, "type");
|
||||||
@@ -44,25 +35,16 @@ public class GetMediaMetaDataImage {
|
|||||||
this.url = url;
|
this.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Alternate text for the image.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String alt() {
|
public String alt() {
|
||||||
return alt;
|
return alt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String type() {
|
public GetMediaMetaDataLibraryType type() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The URL of the image.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String url() {
|
public String url() {
|
||||||
return url;
|
return url;
|
||||||
@@ -72,27 +54,18 @@ public class GetMediaMetaDataImage {
|
|||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Alternate text for the image.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataImage withAlt(String alt) {
|
public GetMediaMetaDataImage withAlt(String alt) {
|
||||||
Utils.checkNotNull(alt, "alt");
|
Utils.checkNotNull(alt, "alt");
|
||||||
this.alt = alt;
|
this.alt = alt;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public GetMediaMetaDataImage withType(GetMediaMetaDataLibraryType type) {
|
||||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataImage withType(String type) {
|
|
||||||
Utils.checkNotNull(type, "type");
|
Utils.checkNotNull(type, "type");
|
||||||
this.type = type;
|
this.type = type;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The URL of the image.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataImage withUrl(String url) {
|
public GetMediaMetaDataImage withUrl(String url) {
|
||||||
Utils.checkNotNull(url, "url");
|
Utils.checkNotNull(url, "url");
|
||||||
this.url = url;
|
this.url = url;
|
||||||
@@ -135,7 +108,7 @@ public class GetMediaMetaDataImage {
|
|||||||
|
|
||||||
private String alt;
|
private String alt;
|
||||||
|
|
||||||
private String type;
|
private GetMediaMetaDataLibraryType type;
|
||||||
|
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
@@ -143,27 +116,18 @@ public class GetMediaMetaDataImage {
|
|||||||
// force use of static builder() method
|
// force use of static builder() method
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Alternate text for the image.
|
|
||||||
*/
|
|
||||||
public Builder alt(String alt) {
|
public Builder alt(String alt) {
|
||||||
Utils.checkNotNull(alt, "alt");
|
Utils.checkNotNull(alt, "alt");
|
||||||
this.alt = alt;
|
this.alt = alt;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public Builder type(GetMediaMetaDataLibraryType type) {
|
||||||
* The type of image (e.g., coverPoster, background, clearLogo).
|
|
||||||
*/
|
|
||||||
public Builder type(String type) {
|
|
||||||
Utils.checkNotNull(type, "type");
|
Utils.checkNotNull(type, "type");
|
||||||
this.type = type;
|
this.type = type;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The URL of the image.
|
|
||||||
*/
|
|
||||||
public Builder url(String url) {
|
public Builder url(String url) {
|
||||||
Utils.checkNotNull(url, "url");
|
Utils.checkNotNull(url, "url");
|
||||||
this.url = url;
|
this.url = url;
|
||||||
|
|||||||
@@ -0,0 +1,187 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JacksonException;
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Wrapper class for an "open" enum. "Open" enums are those that are expected
|
||||||
|
* to evolve (particularly with the addition of enum members over time). If an
|
||||||
|
* open enum is used then the appearance of unexpected enum values (say in a
|
||||||
|
* response from an updated an API) will not bring about a runtime error thus
|
||||||
|
* ensuring that non-updated client versions can continue to work without error.
|
||||||
|
*
|
||||||
|
* <p>Note that instances are immutable and are singletons (an internal thread-safe
|
||||||
|
* cache is maintained to ensure that). As a consequence instances created with the
|
||||||
|
* same value will satisfy reference equality (via {@code ==}).
|
||||||
|
*
|
||||||
|
* <p>This class is intended to emulate an enum (in terms of common usage and with
|
||||||
|
* reference equality) but with the ability to carry unknown values. Unfortunately
|
||||||
|
* Java does not permit the use of an instance in a switch expression but you can
|
||||||
|
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@JsonDeserialize(using = GetMediaMetaDataLibraryType._Deserializer.class)
|
||||||
|
@JsonSerialize(using = GetMediaMetaDataLibraryType._Serializer.class)
|
||||||
|
public class GetMediaMetaDataLibraryType {
|
||||||
|
|
||||||
|
public static final GetMediaMetaDataLibraryType COVER_POSTER = new GetMediaMetaDataLibraryType("coverPoster");
|
||||||
|
public static final GetMediaMetaDataLibraryType BACKGROUND = new GetMediaMetaDataLibraryType("background");
|
||||||
|
public static final GetMediaMetaDataLibraryType SNAPSHOT = new GetMediaMetaDataLibraryType("snapshot");
|
||||||
|
public static final GetMediaMetaDataLibraryType CLEAR_LOGO = new GetMediaMetaDataLibraryType("clearLogo");
|
||||||
|
|
||||||
|
// This map will grow whenever a Color gets created with a new
|
||||||
|
// unrecognized value (a potential memory leak if the user is not
|
||||||
|
// careful). Keep this field lower case to avoid clashing with
|
||||||
|
// generated member names which will always be upper cased (Java
|
||||||
|
// convention)
|
||||||
|
private static final Map<String, GetMediaMetaDataLibraryType> values = createValuesMap();
|
||||||
|
private static final Map<String, GetMediaMetaDataLibraryTypeEnum> enums = createEnumsMap();
|
||||||
|
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetMediaMetaDataLibraryType(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a GetMediaMetaDataLibraryType with the given value. For a specific value the
|
||||||
|
* returned object will always be a singleton so reference equality
|
||||||
|
* is satisfied when the values are the same.
|
||||||
|
*
|
||||||
|
* @param value value to be wrapped as GetMediaMetaDataLibraryType
|
||||||
|
*/
|
||||||
|
public static GetMediaMetaDataLibraryType of(String value) {
|
||||||
|
synchronized (GetMediaMetaDataLibraryType.class) {
|
||||||
|
return values.computeIfAbsent(value, v -> new GetMediaMetaDataLibraryType(v));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Optional<GetMediaMetaDataLibraryTypeEnum> asEnum() {
|
||||||
|
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isKnown() {
|
||||||
|
return asEnum().isPresent();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
GetMediaMetaDataLibraryType other = (GetMediaMetaDataLibraryType) obj;
|
||||||
|
return Objects.equals(value, other.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "GetMediaMetaDataLibraryType [value=" + value + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
// return an array just like an enum
|
||||||
|
public static GetMediaMetaDataLibraryType[] values() {
|
||||||
|
synchronized (GetMediaMetaDataLibraryType.class) {
|
||||||
|
return values.values().toArray(new GetMediaMetaDataLibraryType[] {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<String, GetMediaMetaDataLibraryType> createValuesMap() {
|
||||||
|
Map<String, GetMediaMetaDataLibraryType> map = new LinkedHashMap<>();
|
||||||
|
map.put("coverPoster", COVER_POSTER);
|
||||||
|
map.put("background", BACKGROUND);
|
||||||
|
map.put("snapshot", SNAPSHOT);
|
||||||
|
map.put("clearLogo", CLEAR_LOGO);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<String, GetMediaMetaDataLibraryTypeEnum> createEnumsMap() {
|
||||||
|
Map<String, GetMediaMetaDataLibraryTypeEnum> map = new HashMap<>();
|
||||||
|
map.put("coverPoster", GetMediaMetaDataLibraryTypeEnum.COVER_POSTER);
|
||||||
|
map.put("background", GetMediaMetaDataLibraryTypeEnum.BACKGROUND);
|
||||||
|
map.put("snapshot", GetMediaMetaDataLibraryTypeEnum.SNAPSHOT);
|
||||||
|
map.put("clearLogo", GetMediaMetaDataLibraryTypeEnum.CLEAR_LOGO);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Serializer extends StdSerializer<GetMediaMetaDataLibraryType> {
|
||||||
|
|
||||||
|
protected _Serializer() {
|
||||||
|
super(GetMediaMetaDataLibraryType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize(GetMediaMetaDataLibraryType value, JsonGenerator g, SerializerProvider provider)
|
||||||
|
throws IOException, JsonProcessingException {
|
||||||
|
g.writeObject(value.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Deserializer extends StdDeserializer<GetMediaMetaDataLibraryType> {
|
||||||
|
|
||||||
|
protected _Deserializer() {
|
||||||
|
super(GetMediaMetaDataLibraryType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetMediaMetaDataLibraryType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||||
|
throws IOException, JacksonException {
|
||||||
|
String v = p.readValueAs(new TypeReference<String>() {});
|
||||||
|
// use the factory method to ensure we get singletons
|
||||||
|
return GetMediaMetaDataLibraryType.of(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum GetMediaMetaDataLibraryTypeEnum {
|
||||||
|
|
||||||
|
COVER_POSTER("coverPoster"),
|
||||||
|
BACKGROUND("background"),
|
||||||
|
SNAPSHOT("snapshot"),
|
||||||
|
CLEAR_LOGO("clearLogo"),;
|
||||||
|
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetMediaMetaDataLibraryTypeEnum(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -18,38 +18,39 @@ import java.util.Optional;
|
|||||||
public class GetMediaMetaDataRole {
|
public class GetMediaMetaDataRole {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the actor or role.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The display tag for the actor (typically the actor's name).
|
||||||
*/
|
|
||||||
@JsonProperty("filter")
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
@JsonProperty("tag")
|
@JsonProperty("tag")
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The role played by the actor in the media item.
|
||||||
*/
|
|
||||||
@JsonProperty("tagKey")
|
|
||||||
private String tagKey;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The character name or role.
|
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("role")
|
@JsonProperty("role")
|
||||||
private Optional<String> role;
|
private Optional<String> role;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||||
|
*/
|
||||||
|
@JsonProperty("filter")
|
||||||
|
private String filter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the actor's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("tagKey")
|
||||||
|
private Optional<String> tagKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The URL of the thumbnail image for the actor.
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("thumb")
|
@JsonProperty("thumb")
|
||||||
@@ -58,35 +59,34 @@ public class GetMediaMetaDataRole {
|
|||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetMediaMetaDataRole(
|
public GetMediaMetaDataRole(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") long id,
|
||||||
@JsonProperty("filter") String filter,
|
|
||||||
@JsonProperty("tag") String tag,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("tagKey") String tagKey,
|
|
||||||
@JsonProperty("role") Optional<String> role,
|
@JsonProperty("role") Optional<String> role,
|
||||||
|
@JsonProperty("filter") String filter,
|
||||||
|
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||||
@JsonProperty("thumb") Optional<String> thumb) {
|
@JsonProperty("thumb") Optional<String> thumb) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
|
||||||
Utils.checkNotNull(role, "role");
|
Utils.checkNotNull(role, "role");
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.filter = filter;
|
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
this.tagKey = tagKey;
|
|
||||||
this.role = role;
|
this.role = role;
|
||||||
|
this.filter = filter;
|
||||||
|
this.tagKey = tagKey;
|
||||||
this.thumb = thumb;
|
this.thumb = thumb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetMediaMetaDataRole(
|
public GetMediaMetaDataRole(
|
||||||
long id,
|
long id,
|
||||||
String filter,
|
|
||||||
String tag,
|
String tag,
|
||||||
String tagKey) {
|
String filter) {
|
||||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
this(id, tag, Optional.empty(), filter, Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the actor or role.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long id() {
|
public long id() {
|
||||||
@@ -94,15 +94,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The display tag for the actor (typically the actor's name).
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public String filter() {
|
|
||||||
return filter;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String tag() {
|
public String tag() {
|
||||||
@@ -110,15 +102,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The role played by the actor in the media item.
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public String tagKey() {
|
|
||||||
return tagKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The character name or role.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> role() {
|
public Optional<String> role() {
|
||||||
@@ -126,7 +110,23 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public String filter() {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the actor's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> tagKey() {
|
||||||
|
return tagKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The URL of the thumbnail image for the actor.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> thumb() {
|
public Optional<String> thumb() {
|
||||||
@@ -138,7 +138,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the actor or role.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataRole withId(long id) {
|
public GetMediaMetaDataRole withId(long id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
@@ -147,16 +147,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The display tag for the actor (typically the actor's name).
|
||||||
*/
|
|
||||||
public GetMediaMetaDataRole withFilter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataRole withTag(String tag) {
|
public GetMediaMetaDataRole withTag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -165,16 +156,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The role played by the actor in the media item.
|
||||||
*/
|
|
||||||
public GetMediaMetaDataRole withTagKey(String tagKey) {
|
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
|
||||||
this.tagKey = tagKey;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The character name or role.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataRole withRole(String role) {
|
public GetMediaMetaDataRole withRole(String role) {
|
||||||
Utils.checkNotNull(role, "role");
|
Utils.checkNotNull(role, "role");
|
||||||
@@ -183,7 +165,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The role played by the actor in the media item.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataRole withRole(Optional<String> role) {
|
public GetMediaMetaDataRole withRole(Optional<String> role) {
|
||||||
Utils.checkNotNull(role, "role");
|
Utils.checkNotNull(role, "role");
|
||||||
@@ -192,7 +174,34 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataRole withFilter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the actor's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataRole withTagKey(String tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = Optional.ofNullable(tagKey);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the actor's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataRole withTagKey(Optional<String> tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = tagKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The URL of the thumbnail image for the actor.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataRole withThumb(String thumb) {
|
public GetMediaMetaDataRole withThumb(String thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -201,7 +210,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The URL of the thumbnail image for the actor.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataRole withThumb(Optional<String> thumb) {
|
public GetMediaMetaDataRole withThumb(Optional<String> thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -221,10 +230,10 @@ public class GetMediaMetaDataRole {
|
|||||||
GetMediaMetaDataRole other = (GetMediaMetaDataRole) o;
|
GetMediaMetaDataRole other = (GetMediaMetaDataRole) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.filter, other.filter) &&
|
|
||||||
Objects.deepEquals(this.tag, other.tag) &&
|
Objects.deepEquals(this.tag, other.tag) &&
|
||||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
|
||||||
Objects.deepEquals(this.role, other.role) &&
|
Objects.deepEquals(this.role, other.role) &&
|
||||||
|
Objects.deepEquals(this.filter, other.filter) &&
|
||||||
|
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||||
Objects.deepEquals(this.thumb, other.thumb);
|
Objects.deepEquals(this.thumb, other.thumb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,10 +241,10 @@ public class GetMediaMetaDataRole {
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
filter,
|
|
||||||
tag,
|
tag,
|
||||||
tagKey,
|
|
||||||
role,
|
role,
|
||||||
|
filter,
|
||||||
|
tagKey,
|
||||||
thumb);
|
thumb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -243,10 +252,10 @@ public class GetMediaMetaDataRole {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetMediaMetaDataRole.class,
|
return Utils.toString(GetMediaMetaDataRole.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"filter", filter,
|
|
||||||
"tag", tag,
|
"tag", tag,
|
||||||
"tagKey", tagKey,
|
|
||||||
"role", role,
|
"role", role,
|
||||||
|
"filter", filter,
|
||||||
|
"tagKey", tagKey,
|
||||||
"thumb", thumb);
|
"thumb", thumb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,14 +263,14 @@ public class GetMediaMetaDataRole {
|
|||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
private String tagKey;
|
|
||||||
|
|
||||||
private Optional<String> role = Optional.empty();
|
private Optional<String> role = Optional.empty();
|
||||||
|
|
||||||
|
private String filter;
|
||||||
|
|
||||||
|
private Optional<String> tagKey = Optional.empty();
|
||||||
|
|
||||||
private Optional<String> thumb = Optional.empty();
|
private Optional<String> thumb = Optional.empty();
|
||||||
|
|
||||||
private Builder() {
|
private Builder() {
|
||||||
@@ -269,7 +278,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the actor or role.
|
||||||
*/
|
*/
|
||||||
public Builder id(long id) {
|
public Builder id(long id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
@@ -278,16 +287,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The display tag for the actor (typically the actor's name).
|
||||||
*/
|
|
||||||
public Builder filter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
public Builder tag(String tag) {
|
public Builder tag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -296,16 +296,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The role played by the actor in the media item.
|
||||||
*/
|
|
||||||
public Builder tagKey(String tagKey) {
|
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
|
||||||
this.tagKey = tagKey;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The character name or role.
|
|
||||||
*/
|
*/
|
||||||
public Builder role(String role) {
|
public Builder role(String role) {
|
||||||
Utils.checkNotNull(role, "role");
|
Utils.checkNotNull(role, "role");
|
||||||
@@ -314,7 +305,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The role played by the actor in the media item.
|
||||||
*/
|
*/
|
||||||
public Builder role(Optional<String> role) {
|
public Builder role(Optional<String> role) {
|
||||||
Utils.checkNotNull(role, "role");
|
Utils.checkNotNull(role, "role");
|
||||||
@@ -323,7 +314,34 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||||
|
*/
|
||||||
|
public Builder filter(String filter) {
|
||||||
|
Utils.checkNotNull(filter, "filter");
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the actor's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public Builder tagKey(String tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = Optional.ofNullable(tagKey);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the actor's tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public Builder tagKey(Optional<String> tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = tagKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The URL of the thumbnail image for the actor.
|
||||||
*/
|
*/
|
||||||
public Builder thumb(String thumb) {
|
public Builder thumb(String thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -332,7 +350,7 @@ public class GetMediaMetaDataRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The URL of the thumbnail image for the actor.
|
||||||
*/
|
*/
|
||||||
public Builder thumb(Optional<String> thumb) {
|
public Builder thumb(Optional<String> thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -343,10 +361,10 @@ public class GetMediaMetaDataRole {
|
|||||||
public GetMediaMetaDataRole build() {
|
public GetMediaMetaDataRole build() {
|
||||||
return new GetMediaMetaDataRole(
|
return new GetMediaMetaDataRole(
|
||||||
id,
|
id,
|
||||||
filter,
|
|
||||||
tag,
|
tag,
|
||||||
tagKey,
|
|
||||||
role,
|
role,
|
||||||
|
filter,
|
||||||
|
tagKey,
|
||||||
thumb);
|
thumb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,10 +27,20 @@ public class GetMediaMetaDataStream {
|
|||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
@JsonProperty("streamType")
|
@JsonProperty("streamType")
|
||||||
private int streamType;
|
private GetMediaMetaDataStreamType streamType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("format")
|
||||||
|
private Optional<String> format;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
@@ -48,8 +58,9 @@ public class GetMediaMetaDataStream {
|
|||||||
/**
|
/**
|
||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("index")
|
@JsonProperty("index")
|
||||||
private int index;
|
private Optional<Integer> index;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitrate of the stream.
|
* Bitrate of the stream.
|
||||||
@@ -216,6 +227,13 @@ public class GetMediaMetaDataStream {
|
|||||||
@JsonProperty("frameRate")
|
@JsonProperty("frameRate")
|
||||||
private Optional<Float> frameRate;
|
private Optional<Float> frameRate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("key")
|
||||||
|
private Optional<String> key;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -345,10 +363,11 @@ public class GetMediaMetaDataStream {
|
|||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetMediaMetaDataStream(
|
public GetMediaMetaDataStream(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") long id,
|
||||||
@JsonProperty("streamType") int streamType,
|
@JsonProperty("streamType") GetMediaMetaDataStreamType streamType,
|
||||||
|
@JsonProperty("format") Optional<String> format,
|
||||||
@JsonProperty("default") Optional<Boolean> default_,
|
@JsonProperty("default") Optional<Boolean> default_,
|
||||||
@JsonProperty("codec") String codec,
|
@JsonProperty("codec") String codec,
|
||||||
@JsonProperty("index") int index,
|
@JsonProperty("index") Optional<Integer> index,
|
||||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||||
@JsonProperty("language") Optional<String> language,
|
@JsonProperty("language") Optional<String> language,
|
||||||
@JsonProperty("languageTag") Optional<String> languageTag,
|
@JsonProperty("languageTag") Optional<String> languageTag,
|
||||||
@@ -373,6 +392,7 @@ public class GetMediaMetaDataStream {
|
|||||||
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
||||||
@JsonProperty("colorTrc") Optional<String> colorTrc,
|
@JsonProperty("colorTrc") Optional<String> colorTrc,
|
||||||
@JsonProperty("frameRate") Optional<Float> frameRate,
|
@JsonProperty("frameRate") Optional<Float> frameRate,
|
||||||
|
@JsonProperty("key") Optional<String> key,
|
||||||
@JsonProperty("height") Optional<Integer> height,
|
@JsonProperty("height") Optional<Integer> height,
|
||||||
@JsonProperty("level") Optional<Integer> level,
|
@JsonProperty("level") Optional<Integer> level,
|
||||||
@JsonProperty("original") Optional<Boolean> original,
|
@JsonProperty("original") Optional<Boolean> original,
|
||||||
@@ -395,6 +415,7 @@ public class GetMediaMetaDataStream {
|
|||||||
@JsonProperty("title") Optional<String> title) {
|
@JsonProperty("title") Optional<String> title) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
Utils.checkNotNull(default_, "default_");
|
Utils.checkNotNull(default_, "default_");
|
||||||
Utils.checkNotNull(codec, "codec");
|
Utils.checkNotNull(codec, "codec");
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
@@ -422,6 +443,7 @@ public class GetMediaMetaDataStream {
|
|||||||
Utils.checkNotNull(colorSpace, "colorSpace");
|
Utils.checkNotNull(colorSpace, "colorSpace");
|
||||||
Utils.checkNotNull(colorTrc, "colorTrc");
|
Utils.checkNotNull(colorTrc, "colorTrc");
|
||||||
Utils.checkNotNull(frameRate, "frameRate");
|
Utils.checkNotNull(frameRate, "frameRate");
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
Utils.checkNotNull(height, "height");
|
Utils.checkNotNull(height, "height");
|
||||||
Utils.checkNotNull(level, "level");
|
Utils.checkNotNull(level, "level");
|
||||||
Utils.checkNotNull(original, "original");
|
Utils.checkNotNull(original, "original");
|
||||||
@@ -444,6 +466,7 @@ public class GetMediaMetaDataStream {
|
|||||||
Utils.checkNotNull(title, "title");
|
Utils.checkNotNull(title, "title");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
|
this.format = format;
|
||||||
this.default_ = default_;
|
this.default_ = default_;
|
||||||
this.codec = codec;
|
this.codec = codec;
|
||||||
this.index = index;
|
this.index = index;
|
||||||
@@ -471,6 +494,7 @@ public class GetMediaMetaDataStream {
|
|||||||
this.colorSpace = colorSpace;
|
this.colorSpace = colorSpace;
|
||||||
this.colorTrc = colorTrc;
|
this.colorTrc = colorTrc;
|
||||||
this.frameRate = frameRate;
|
this.frameRate = frameRate;
|
||||||
|
this.key = key;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
this.level = level;
|
this.level = level;
|
||||||
this.original = original;
|
this.original = original;
|
||||||
@@ -495,12 +519,11 @@ public class GetMediaMetaDataStream {
|
|||||||
|
|
||||||
public GetMediaMetaDataStream(
|
public GetMediaMetaDataStream(
|
||||||
long id,
|
long id,
|
||||||
int streamType,
|
GetMediaMetaDataStreamType streamType,
|
||||||
String codec,
|
String codec,
|
||||||
int index,
|
|
||||||
String displayTitle,
|
String displayTitle,
|
||||||
String extendedDisplayTitle) {
|
String extendedDisplayTitle) {
|
||||||
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());
|
this(id, streamType, Optional.empty(), Optional.empty(), codec, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), 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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -512,13 +535,24 @@ public class GetMediaMetaDataStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public int streamType() {
|
public GetMediaMetaDataStreamType streamType() {
|
||||||
return streamType;
|
return streamType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> format() {
|
||||||
|
return format;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -539,7 +573,7 @@ public class GetMediaMetaDataStream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public int index() {
|
public Optional<Integer> index() {
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -732,6 +766,14 @@ public class GetMediaMetaDataStream {
|
|||||||
return frameRate;
|
return frameRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> key() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -894,14 +936,35 @@ public class GetMediaMetaDataStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataStream withStreamType(int streamType) {
|
public GetMediaMetaDataStream withStreamType(GetMediaMetaDataStreamType streamType) {
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataStream withFormat(String format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = Optional.ofNullable(format);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataStream withFormat(Optional<String> format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = format;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -933,6 +996,15 @@ public class GetMediaMetaDataStream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataStream withIndex(int index) {
|
public GetMediaMetaDataStream withIndex(int index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = Optional.ofNullable(index);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Index of the stream.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataStream withIndex(Optional<Integer> index) {
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
this.index = index;
|
this.index = index;
|
||||||
return this;
|
return this;
|
||||||
@@ -1364,6 +1436,24 @@ public class GetMediaMetaDataStream {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataStream withKey(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = Optional.ofNullable(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataStream withKey(Optional<String> key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -1695,6 +1785,7 @@ public class GetMediaMetaDataStream {
|
|||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.streamType, other.streamType) &&
|
Objects.deepEquals(this.streamType, other.streamType) &&
|
||||||
|
Objects.deepEquals(this.format, other.format) &&
|
||||||
Objects.deepEquals(this.default_, other.default_) &&
|
Objects.deepEquals(this.default_, other.default_) &&
|
||||||
Objects.deepEquals(this.codec, other.codec) &&
|
Objects.deepEquals(this.codec, other.codec) &&
|
||||||
Objects.deepEquals(this.index, other.index) &&
|
Objects.deepEquals(this.index, other.index) &&
|
||||||
@@ -1722,6 +1813,7 @@ public class GetMediaMetaDataStream {
|
|||||||
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
||||||
Objects.deepEquals(this.colorTrc, other.colorTrc) &&
|
Objects.deepEquals(this.colorTrc, other.colorTrc) &&
|
||||||
Objects.deepEquals(this.frameRate, other.frameRate) &&
|
Objects.deepEquals(this.frameRate, other.frameRate) &&
|
||||||
|
Objects.deepEquals(this.key, other.key) &&
|
||||||
Objects.deepEquals(this.height, other.height) &&
|
Objects.deepEquals(this.height, other.height) &&
|
||||||
Objects.deepEquals(this.level, other.level) &&
|
Objects.deepEquals(this.level, other.level) &&
|
||||||
Objects.deepEquals(this.original, other.original) &&
|
Objects.deepEquals(this.original, other.original) &&
|
||||||
@@ -1749,6 +1841,7 @@ public class GetMediaMetaDataStream {
|
|||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
streamType,
|
streamType,
|
||||||
|
format,
|
||||||
default_,
|
default_,
|
||||||
codec,
|
codec,
|
||||||
index,
|
index,
|
||||||
@@ -1776,6 +1869,7 @@ public class GetMediaMetaDataStream {
|
|||||||
colorSpace,
|
colorSpace,
|
||||||
colorTrc,
|
colorTrc,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
key,
|
||||||
height,
|
height,
|
||||||
level,
|
level,
|
||||||
original,
|
original,
|
||||||
@@ -1803,6 +1897,7 @@ public class GetMediaMetaDataStream {
|
|||||||
return Utils.toString(GetMediaMetaDataStream.class,
|
return Utils.toString(GetMediaMetaDataStream.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"streamType", streamType,
|
"streamType", streamType,
|
||||||
|
"format", format,
|
||||||
"default_", default_,
|
"default_", default_,
|
||||||
"codec", codec,
|
"codec", codec,
|
||||||
"index", index,
|
"index", index,
|
||||||
@@ -1830,6 +1925,7 @@ public class GetMediaMetaDataStream {
|
|||||||
"colorSpace", colorSpace,
|
"colorSpace", colorSpace,
|
||||||
"colorTrc", colorTrc,
|
"colorTrc", colorTrc,
|
||||||
"frameRate", frameRate,
|
"frameRate", frameRate,
|
||||||
|
"key", key,
|
||||||
"height", height,
|
"height", height,
|
||||||
"level", level,
|
"level", level,
|
||||||
"original", original,
|
"original", original,
|
||||||
@@ -1856,13 +1952,15 @@ public class GetMediaMetaDataStream {
|
|||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private Integer streamType;
|
private GetMediaMetaDataStreamType streamType;
|
||||||
|
|
||||||
|
private Optional<String> format = Optional.empty();
|
||||||
|
|
||||||
private Optional<Boolean> default_ = Optional.empty();
|
private Optional<Boolean> default_ = Optional.empty();
|
||||||
|
|
||||||
private String codec;
|
private String codec;
|
||||||
|
|
||||||
private Integer index;
|
private Optional<Integer> index = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> bitrate = Optional.empty();
|
private Optional<Integer> bitrate = Optional.empty();
|
||||||
|
|
||||||
@@ -1912,6 +2010,8 @@ public class GetMediaMetaDataStream {
|
|||||||
|
|
||||||
private Optional<Float> frameRate = Optional.empty();
|
private Optional<Float> frameRate = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> key = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> height = Optional.empty();
|
private Optional<Integer> height = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> level = Optional.empty();
|
private Optional<Integer> level = Optional.empty();
|
||||||
@@ -1966,14 +2066,35 @@ public class GetMediaMetaDataStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
public Builder streamType(int streamType) {
|
public Builder streamType(GetMediaMetaDataStreamType streamType) {
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Builder format(String format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = Optional.ofNullable(format);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Builder format(Optional<String> format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = format;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -2005,6 +2126,15 @@ public class GetMediaMetaDataStream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
public Builder index(int index) {
|
public Builder index(int index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = Optional.ofNullable(index);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Index of the stream.
|
||||||
|
*/
|
||||||
|
public Builder index(Optional<Integer> index) {
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
this.index = index;
|
this.index = index;
|
||||||
return this;
|
return this;
|
||||||
@@ -2436,6 +2566,24 @@ public class GetMediaMetaDataStream {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Builder key(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = Optional.ofNullable(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Builder key(Optional<String> key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -2758,6 +2906,7 @@ public class GetMediaMetaDataStream {
|
|||||||
return new GetMediaMetaDataStream(
|
return new GetMediaMetaDataStream(
|
||||||
id,
|
id,
|
||||||
streamType,
|
streamType,
|
||||||
|
format,
|
||||||
default_,
|
default_,
|
||||||
codec,
|
codec,
|
||||||
index,
|
index,
|
||||||
@@ -2785,6 +2934,7 @@ public class GetMediaMetaDataStream {
|
|||||||
colorSpace,
|
colorSpace,
|
||||||
colorTrc,
|
colorTrc,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
key,
|
||||||
height,
|
height,
|
||||||
level,
|
level,
|
||||||
original,
|
original,
|
||||||
|
|||||||
@@ -0,0 +1,192 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JacksonException;
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Wrapper class for an "open" enum. "Open" enums are those that are expected
|
||||||
|
* to evolve (particularly with the addition of enum members over time). If an
|
||||||
|
* open enum is used then the appearance of unexpected enum values (say in a
|
||||||
|
* response from an updated an API) will not bring about a runtime error thus
|
||||||
|
* ensuring that non-updated client versions can continue to work without error.
|
||||||
|
*
|
||||||
|
* <p>Note that instances are immutable and are singletons (an internal thread-safe
|
||||||
|
* cache is maintained to ensure that). As a consequence instances created with the
|
||||||
|
* same value will satisfy reference equality (via {@code ==}).
|
||||||
|
*
|
||||||
|
* <p>This class is intended to emulate an enum (in terms of common usage and with
|
||||||
|
* reference equality) but with the ability to carry unknown values. Unfortunately
|
||||||
|
* Java does not permit the use of an instance in a switch expression but you can
|
||||||
|
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* GetMediaMetaDataStreamType
|
||||||
|
*
|
||||||
|
* <p>Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
|
*/
|
||||||
|
@JsonDeserialize(using = GetMediaMetaDataStreamType._Deserializer.class)
|
||||||
|
@JsonSerialize(using = GetMediaMetaDataStreamType._Serializer.class)
|
||||||
|
public class GetMediaMetaDataStreamType {
|
||||||
|
|
||||||
|
public static final GetMediaMetaDataStreamType Video = new GetMediaMetaDataStreamType(1);
|
||||||
|
public static final GetMediaMetaDataStreamType Audio = new GetMediaMetaDataStreamType(2);
|
||||||
|
public static final GetMediaMetaDataStreamType Subtitle = new GetMediaMetaDataStreamType(3);
|
||||||
|
|
||||||
|
// This map will grow whenever a Color gets created with a new
|
||||||
|
// unrecognized value (a potential memory leak if the user is not
|
||||||
|
// careful). Keep this field lower case to avoid clashing with
|
||||||
|
// generated member names which will always be upper cased (Java
|
||||||
|
// convention)
|
||||||
|
private static final Map<Integer, GetMediaMetaDataStreamType> values = createValuesMap();
|
||||||
|
private static final Map<Integer, GetMediaMetaDataStreamTypeEnum> enums = createEnumsMap();
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
private GetMediaMetaDataStreamType(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a GetMediaMetaDataStreamType with the given value. For a specific value the
|
||||||
|
* returned object will always be a singleton so reference equality
|
||||||
|
* is satisfied when the values are the same.
|
||||||
|
*
|
||||||
|
* @param value value to be wrapped as GetMediaMetaDataStreamType
|
||||||
|
*/
|
||||||
|
public static GetMediaMetaDataStreamType of(int value) {
|
||||||
|
synchronized (GetMediaMetaDataStreamType.class) {
|
||||||
|
return values.computeIfAbsent(value, v -> new GetMediaMetaDataStreamType(v));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Optional<GetMediaMetaDataStreamTypeEnum> asEnum() {
|
||||||
|
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isKnown() {
|
||||||
|
return asEnum().isPresent();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
GetMediaMetaDataStreamType other = (GetMediaMetaDataStreamType) obj;
|
||||||
|
return Objects.equals(value, other.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "GetMediaMetaDataStreamType [value=" + value + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
// return an array just like an enum
|
||||||
|
public static GetMediaMetaDataStreamType[] values() {
|
||||||
|
synchronized (GetMediaMetaDataStreamType.class) {
|
||||||
|
return values.values().toArray(new GetMediaMetaDataStreamType[] {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Integer, GetMediaMetaDataStreamType> createValuesMap() {
|
||||||
|
Map<Integer, GetMediaMetaDataStreamType> map = new LinkedHashMap<>();
|
||||||
|
map.put(1, Video);
|
||||||
|
map.put(2, Audio);
|
||||||
|
map.put(3, Subtitle);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Integer, GetMediaMetaDataStreamTypeEnum> createEnumsMap() {
|
||||||
|
Map<Integer, GetMediaMetaDataStreamTypeEnum> map = new HashMap<>();
|
||||||
|
map.put(1, GetMediaMetaDataStreamTypeEnum.Video);
|
||||||
|
map.put(2, GetMediaMetaDataStreamTypeEnum.Audio);
|
||||||
|
map.put(3, GetMediaMetaDataStreamTypeEnum.Subtitle);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Serializer extends StdSerializer<GetMediaMetaDataStreamType> {
|
||||||
|
|
||||||
|
protected _Serializer() {
|
||||||
|
super(GetMediaMetaDataStreamType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize(GetMediaMetaDataStreamType value, JsonGenerator g, SerializerProvider provider)
|
||||||
|
throws IOException, JsonProcessingException {
|
||||||
|
g.writeObject(value.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Deserializer extends StdDeserializer<GetMediaMetaDataStreamType> {
|
||||||
|
|
||||||
|
protected _Deserializer() {
|
||||||
|
super(GetMediaMetaDataStreamType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetMediaMetaDataStreamType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||||
|
throws IOException, JacksonException {
|
||||||
|
int v = p.readValueAs(new TypeReference<Integer>() {});
|
||||||
|
// use the factory method to ensure we get singletons
|
||||||
|
return GetMediaMetaDataStreamType.of(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum GetMediaMetaDataStreamTypeEnum {
|
||||||
|
|
||||||
|
Video(1),
|
||||||
|
Audio(2),
|
||||||
|
Subtitle(3),;
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
private GetMediaMetaDataStreamTypeEnum(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,200 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JacksonException;
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Wrapper class for an "open" enum. "Open" enums are those that are expected
|
||||||
|
* to evolve (particularly with the addition of enum members over time). If an
|
||||||
|
* open enum is used then the appearance of unexpected enum values (say in a
|
||||||
|
* response from an updated an API) will not bring about a runtime error thus
|
||||||
|
* ensuring that non-updated client versions can continue to work without error.
|
||||||
|
*
|
||||||
|
* <p>Note that instances are immutable and are singletons (an internal thread-safe
|
||||||
|
* cache is maintained to ensure that). As a consequence instances created with the
|
||||||
|
* same value will satisfy reference equality (via {@code ==}).
|
||||||
|
*
|
||||||
|
* <p>This class is intended to emulate an enum (in terms of common usage and with
|
||||||
|
* reference equality) but with the ability to carry unknown values. Unfortunately
|
||||||
|
* Java does not permit the use of an instance in a switch expression but you can
|
||||||
|
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* GetMediaMetaDataType
|
||||||
|
*
|
||||||
|
* <p>The type of media content
|
||||||
|
*/
|
||||||
|
@JsonDeserialize(using = GetMediaMetaDataType._Deserializer.class)
|
||||||
|
@JsonSerialize(using = GetMediaMetaDataType._Serializer.class)
|
||||||
|
public class GetMediaMetaDataType {
|
||||||
|
|
||||||
|
public static final GetMediaMetaDataType Movie = new GetMediaMetaDataType("movie");
|
||||||
|
public static final GetMediaMetaDataType TvShow = new GetMediaMetaDataType("show");
|
||||||
|
public static final GetMediaMetaDataType Season = new GetMediaMetaDataType("season");
|
||||||
|
public static final GetMediaMetaDataType Episode = new GetMediaMetaDataType("episode");
|
||||||
|
public static final GetMediaMetaDataType Artist = new GetMediaMetaDataType("artist");
|
||||||
|
public static final GetMediaMetaDataType Album = new GetMediaMetaDataType("album");
|
||||||
|
|
||||||
|
// This map will grow whenever a Color gets created with a new
|
||||||
|
// unrecognized value (a potential memory leak if the user is not
|
||||||
|
// careful). Keep this field lower case to avoid clashing with
|
||||||
|
// generated member names which will always be upper cased (Java
|
||||||
|
// convention)
|
||||||
|
private static final Map<String, GetMediaMetaDataType> values = createValuesMap();
|
||||||
|
private static final Map<String, GetMediaMetaDataTypeEnum> enums = createEnumsMap();
|
||||||
|
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetMediaMetaDataType(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a GetMediaMetaDataType with the given value. For a specific value the
|
||||||
|
* returned object will always be a singleton so reference equality
|
||||||
|
* is satisfied when the values are the same.
|
||||||
|
*
|
||||||
|
* @param value value to be wrapped as GetMediaMetaDataType
|
||||||
|
*/
|
||||||
|
public static GetMediaMetaDataType of(String value) {
|
||||||
|
synchronized (GetMediaMetaDataType.class) {
|
||||||
|
return values.computeIfAbsent(value, v -> new GetMediaMetaDataType(v));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Optional<GetMediaMetaDataTypeEnum> asEnum() {
|
||||||
|
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isKnown() {
|
||||||
|
return asEnum().isPresent();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
GetMediaMetaDataType other = (GetMediaMetaDataType) obj;
|
||||||
|
return Objects.equals(value, other.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "GetMediaMetaDataType [value=" + value + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
// return an array just like an enum
|
||||||
|
public static GetMediaMetaDataType[] values() {
|
||||||
|
synchronized (GetMediaMetaDataType.class) {
|
||||||
|
return values.values().toArray(new GetMediaMetaDataType[] {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<String, GetMediaMetaDataType> createValuesMap() {
|
||||||
|
Map<String, GetMediaMetaDataType> map = new LinkedHashMap<>();
|
||||||
|
map.put("movie", Movie);
|
||||||
|
map.put("show", TvShow);
|
||||||
|
map.put("season", Season);
|
||||||
|
map.put("episode", Episode);
|
||||||
|
map.put("artist", Artist);
|
||||||
|
map.put("album", Album);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<String, GetMediaMetaDataTypeEnum> createEnumsMap() {
|
||||||
|
Map<String, GetMediaMetaDataTypeEnum> map = new HashMap<>();
|
||||||
|
map.put("movie", GetMediaMetaDataTypeEnum.Movie);
|
||||||
|
map.put("show", GetMediaMetaDataTypeEnum.TvShow);
|
||||||
|
map.put("season", GetMediaMetaDataTypeEnum.Season);
|
||||||
|
map.put("episode", GetMediaMetaDataTypeEnum.Episode);
|
||||||
|
map.put("artist", GetMediaMetaDataTypeEnum.Artist);
|
||||||
|
map.put("album", GetMediaMetaDataTypeEnum.Album);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Serializer extends StdSerializer<GetMediaMetaDataType> {
|
||||||
|
|
||||||
|
protected _Serializer() {
|
||||||
|
super(GetMediaMetaDataType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize(GetMediaMetaDataType value, JsonGenerator g, SerializerProvider provider)
|
||||||
|
throws IOException, JsonProcessingException {
|
||||||
|
g.writeObject(value.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Deserializer extends StdDeserializer<GetMediaMetaDataType> {
|
||||||
|
|
||||||
|
protected _Deserializer() {
|
||||||
|
super(GetMediaMetaDataType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetMediaMetaDataType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||||
|
throws IOException, JacksonException {
|
||||||
|
String v = p.readValueAs(new TypeReference<String>() {});
|
||||||
|
// use the factory method to ensure we get singletons
|
||||||
|
return GetMediaMetaDataType.of(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum GetMediaMetaDataTypeEnum {
|
||||||
|
|
||||||
|
Movie("movie"),
|
||||||
|
TvShow("show"),
|
||||||
|
Season("season"),
|
||||||
|
Episode("episode"),
|
||||||
|
Artist("artist"),
|
||||||
|
Album("album"),;
|
||||||
|
|
||||||
|
private final String value;
|
||||||
|
|
||||||
|
private GetMediaMetaDataTypeEnum(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -13,27 +13,15 @@ import java.util.Objects;
|
|||||||
|
|
||||||
public class GetMediaMetaDataUltraBlurColors {
|
public class GetMediaMetaDataUltraBlurColors {
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-left color value.
|
|
||||||
*/
|
|
||||||
@JsonProperty("topLeft")
|
@JsonProperty("topLeft")
|
||||||
private String topLeft;
|
private String topLeft;
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-right color value.
|
|
||||||
*/
|
|
||||||
@JsonProperty("topRight")
|
@JsonProperty("topRight")
|
||||||
private String topRight;
|
private String topRight;
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-right color value.
|
|
||||||
*/
|
|
||||||
@JsonProperty("bottomRight")
|
@JsonProperty("bottomRight")
|
||||||
private String bottomRight;
|
private String bottomRight;
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-left color value.
|
|
||||||
*/
|
|
||||||
@JsonProperty("bottomLeft")
|
@JsonProperty("bottomLeft")
|
||||||
private String bottomLeft;
|
private String bottomLeft;
|
||||||
|
|
||||||
@@ -53,33 +41,21 @@ public class GetMediaMetaDataUltraBlurColors {
|
|||||||
this.bottomLeft = bottomLeft;
|
this.bottomLeft = bottomLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-left color value.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String topLeft() {
|
public String topLeft() {
|
||||||
return topLeft;
|
return topLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-right color value.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String topRight() {
|
public String topRight() {
|
||||||
return topRight;
|
return topRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-right color value.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String bottomRight() {
|
public String bottomRight() {
|
||||||
return bottomRight;
|
return bottomRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-left color value.
|
|
||||||
*/
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String bottomLeft() {
|
public String bottomLeft() {
|
||||||
return bottomLeft;
|
return bottomLeft;
|
||||||
@@ -89,36 +65,24 @@ public class GetMediaMetaDataUltraBlurColors {
|
|||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-left color value.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataUltraBlurColors withTopLeft(String topLeft) {
|
public GetMediaMetaDataUltraBlurColors withTopLeft(String topLeft) {
|
||||||
Utils.checkNotNull(topLeft, "topLeft");
|
Utils.checkNotNull(topLeft, "topLeft");
|
||||||
this.topLeft = topLeft;
|
this.topLeft = topLeft;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-right color value.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataUltraBlurColors withTopRight(String topRight) {
|
public GetMediaMetaDataUltraBlurColors withTopRight(String topRight) {
|
||||||
Utils.checkNotNull(topRight, "topRight");
|
Utils.checkNotNull(topRight, "topRight");
|
||||||
this.topRight = topRight;
|
this.topRight = topRight;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-right color value.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataUltraBlurColors withBottomRight(String bottomRight) {
|
public GetMediaMetaDataUltraBlurColors withBottomRight(String bottomRight) {
|
||||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||||
this.bottomRight = bottomRight;
|
this.bottomRight = bottomRight;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-left color value.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataUltraBlurColors withBottomLeft(String bottomLeft) {
|
public GetMediaMetaDataUltraBlurColors withBottomLeft(String bottomLeft) {
|
||||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||||
this.bottomLeft = bottomLeft;
|
this.bottomLeft = bottomLeft;
|
||||||
@@ -174,36 +138,24 @@ public class GetMediaMetaDataUltraBlurColors {
|
|||||||
// force use of static builder() method
|
// force use of static builder() method
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-left color value.
|
|
||||||
*/
|
|
||||||
public Builder topLeft(String topLeft) {
|
public Builder topLeft(String topLeft) {
|
||||||
Utils.checkNotNull(topLeft, "topLeft");
|
Utils.checkNotNull(topLeft, "topLeft");
|
||||||
this.topLeft = topLeft;
|
this.topLeft = topLeft;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The top-right color value.
|
|
||||||
*/
|
|
||||||
public Builder topRight(String topRight) {
|
public Builder topRight(String topRight) {
|
||||||
Utils.checkNotNull(topRight, "topRight");
|
Utils.checkNotNull(topRight, "topRight");
|
||||||
this.topRight = topRight;
|
this.topRight = topRight;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-right color value.
|
|
||||||
*/
|
|
||||||
public Builder bottomRight(String bottomRight) {
|
public Builder bottomRight(String bottomRight) {
|
||||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||||
this.bottomRight = bottomRight;
|
this.bottomRight = bottomRight;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The bottom-left color value.
|
|
||||||
*/
|
|
||||||
public Builder bottomLeft(String bottomLeft) {
|
public Builder bottomLeft(String bottomLeft) {
|
||||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||||
this.bottomLeft = bottomLeft;
|
this.bottomLeft = bottomLeft;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Long;
|
import java.lang.Integer;
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -18,91 +18,73 @@ import java.util.Optional;
|
|||||||
public class GetMediaMetaDataWriter {
|
public class GetMediaMetaDataWriter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private long id;
|
private int id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Writer
|
||||||
*/
|
|
||||||
@JsonProperty("filter")
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
@JsonProperty("tag")
|
@JsonProperty("tag")
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this writer.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("tagKey")
|
@JsonProperty("filter")
|
||||||
private String tagKey;
|
private String filter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The URL of the thumbnail image for the writer.
|
||||||
*/
|
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
|
||||||
@JsonProperty("role")
|
|
||||||
private Optional<String> role;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* URL for the role thumbnail image.
|
|
||||||
*/
|
*/
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("thumb")
|
@JsonProperty("thumb")
|
||||||
private Optional<String> thumb;
|
private Optional<String> thumb;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the writers tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("tagKey")
|
||||||
|
private Optional<String> tagKey;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetMediaMetaDataWriter(
|
public GetMediaMetaDataWriter(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") int id,
|
||||||
@JsonProperty("filter") String filter,
|
|
||||||
@JsonProperty("tag") String tag,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("tagKey") String tagKey,
|
@JsonProperty("filter") String filter,
|
||||||
@JsonProperty("role") Optional<String> role,
|
@JsonProperty("thumb") Optional<String> thumb,
|
||||||
@JsonProperty("thumb") Optional<String> thumb) {
|
@JsonProperty("tagKey") Optional<String> tagKey) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
Utils.checkNotNull(filter, "filter");
|
||||||
Utils.checkNotNull(role, "role");
|
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.filter = filter;
|
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
this.tagKey = tagKey;
|
this.filter = filter;
|
||||||
this.role = role;
|
|
||||||
this.thumb = thumb;
|
this.thumb = thumb;
|
||||||
|
this.tagKey = tagKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetMediaMetaDataWriter(
|
public GetMediaMetaDataWriter(
|
||||||
long id,
|
int id,
|
||||||
String filter,
|
|
||||||
String tag,
|
String tag,
|
||||||
String tagKey) {
|
String filter) {
|
||||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
this(id, tag, filter, Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long id() {
|
public int id() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Writer
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public String filter() {
|
|
||||||
return filter;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String tag() {
|
public String tag() {
|
||||||
@@ -110,53 +92,44 @@ public class GetMediaMetaDataWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this writer.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public String tagKey() {
|
public String filter() {
|
||||||
return tagKey;
|
return filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The URL of the thumbnail image for the writer.
|
||||||
*/
|
|
||||||
@JsonIgnore
|
|
||||||
public Optional<String> role() {
|
|
||||||
return role;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* URL for the role thumbnail image.
|
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> thumb() {
|
public Optional<String> thumb() {
|
||||||
return thumb;
|
return thumb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the writers tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> tagKey() {
|
||||||
|
return tagKey;
|
||||||
|
}
|
||||||
|
|
||||||
public final static Builder builder() {
|
public final static Builder builder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataWriter withId(long id) {
|
public GetMediaMetaDataWriter withId(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Writer
|
||||||
*/
|
|
||||||
public GetMediaMetaDataWriter withFilter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataWriter withTag(String tag) {
|
public GetMediaMetaDataWriter withTag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -165,34 +138,16 @@ public class GetMediaMetaDataWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this writer.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataWriter withTagKey(String tagKey) {
|
public GetMediaMetaDataWriter withFilter(String filter) {
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
Utils.checkNotNull(filter, "filter");
|
||||||
this.tagKey = tagKey;
|
this.filter = filter;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The URL of the thumbnail image for the writer.
|
||||||
*/
|
|
||||||
public GetMediaMetaDataWriter withRole(String role) {
|
|
||||||
Utils.checkNotNull(role, "role");
|
|
||||||
this.role = Optional.ofNullable(role);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The character name or role.
|
|
||||||
*/
|
|
||||||
public GetMediaMetaDataWriter withRole(Optional<String> role) {
|
|
||||||
Utils.checkNotNull(role, "role");
|
|
||||||
this.role = role;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* URL for the role thumbnail image.
|
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataWriter withThumb(String thumb) {
|
public GetMediaMetaDataWriter withThumb(String thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -201,7 +156,7 @@ public class GetMediaMetaDataWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The URL of the thumbnail image for the writer.
|
||||||
*/
|
*/
|
||||||
public GetMediaMetaDataWriter withThumb(Optional<String> thumb) {
|
public GetMediaMetaDataWriter withThumb(Optional<String> thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -209,6 +164,24 @@ public class GetMediaMetaDataWriter {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the writers tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataWriter withTagKey(String tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = Optional.ofNullable(tagKey);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the writers tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public GetMediaMetaDataWriter withTagKey(Optional<String> tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = tagKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@@ -221,73 +194,59 @@ public class GetMediaMetaDataWriter {
|
|||||||
GetMediaMetaDataWriter other = (GetMediaMetaDataWriter) o;
|
GetMediaMetaDataWriter other = (GetMediaMetaDataWriter) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.filter, other.filter) &&
|
|
||||||
Objects.deepEquals(this.tag, other.tag) &&
|
Objects.deepEquals(this.tag, other.tag) &&
|
||||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
Objects.deepEquals(this.filter, other.filter) &&
|
||||||
Objects.deepEquals(this.role, other.role) &&
|
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||||
Objects.deepEquals(this.thumb, other.thumb);
|
Objects.deepEquals(this.tagKey, other.tagKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
filter,
|
|
||||||
tag,
|
tag,
|
||||||
tagKey,
|
filter,
|
||||||
role,
|
thumb,
|
||||||
thumb);
|
tagKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetMediaMetaDataWriter.class,
|
return Utils.toString(GetMediaMetaDataWriter.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"filter", filter,
|
|
||||||
"tag", tag,
|
"tag", tag,
|
||||||
"tagKey", tagKey,
|
"filter", filter,
|
||||||
"role", role,
|
"thumb", thumb,
|
||||||
"thumb", thumb);
|
"tagKey", tagKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Long id;
|
private Integer id;
|
||||||
|
|
||||||
private String filter;
|
|
||||||
|
|
||||||
private String tag;
|
private String tag;
|
||||||
|
|
||||||
private String tagKey;
|
private String filter;
|
||||||
|
|
||||||
private Optional<String> role = Optional.empty();
|
|
||||||
|
|
||||||
private Optional<String> thumb = Optional.empty();
|
private Optional<String> thumb = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> tagKey = Optional.empty();
|
||||||
|
|
||||||
private Builder() {
|
private Builder() {
|
||||||
// force use of static builder() method
|
// force use of static builder() method
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique role identifier.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
public Builder id(long id) {
|
public Builder id(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string for the role.
|
* The role of Writer
|
||||||
*/
|
|
||||||
public Builder filter(String filter) {
|
|
||||||
Utils.checkNotNull(filter, "filter");
|
|
||||||
this.filter = filter;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The actor's name.
|
|
||||||
*/
|
*/
|
||||||
public Builder tag(String tag) {
|
public Builder tag(String tag) {
|
||||||
Utils.checkNotNull(tag, "tag");
|
Utils.checkNotNull(tag, "tag");
|
||||||
@@ -296,34 +255,16 @@ public class GetMediaMetaDataWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key associated with the actor tag.
|
* The filter string used to query this writer.
|
||||||
*/
|
*/
|
||||||
public Builder tagKey(String tagKey) {
|
public Builder filter(String filter) {
|
||||||
Utils.checkNotNull(tagKey, "tagKey");
|
Utils.checkNotNull(filter, "filter");
|
||||||
this.tagKey = tagKey;
|
this.filter = filter;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The character name or role.
|
* The URL of the thumbnail image for the writer.
|
||||||
*/
|
|
||||||
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) {
|
public Builder thumb(String thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -332,7 +273,7 @@ public class GetMediaMetaDataWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL for the role thumbnail image.
|
* The URL of the thumbnail image for the writer.
|
||||||
*/
|
*/
|
||||||
public Builder thumb(Optional<String> thumb) {
|
public Builder thumb(Optional<String> thumb) {
|
||||||
Utils.checkNotNull(thumb, "thumb");
|
Utils.checkNotNull(thumb, "thumb");
|
||||||
@@ -340,14 +281,31 @@ public class GetMediaMetaDataWriter {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the writers tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public Builder tagKey(String tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = Optional.ofNullable(tagKey);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A unique key associated with the writers tag, used for internal identification.
|
||||||
|
*/
|
||||||
|
public Builder tagKey(Optional<String> tagKey) {
|
||||||
|
Utils.checkNotNull(tagKey, "tagKey");
|
||||||
|
this.tagKey = tagKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public GetMediaMetaDataWriter build() {
|
public GetMediaMetaDataWriter build() {
|
||||||
return new GetMediaMetaDataWriter(
|
return new GetMediaMetaDataWriter(
|
||||||
id,
|
id,
|
||||||
filter,
|
|
||||||
tag,
|
tag,
|
||||||
tagKey,
|
filter,
|
||||||
role,
|
thumb,
|
||||||
thumb);
|
tagKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
295
src/main/java/dev/plexapi/sdk/models/operations/Marker.java
Normal file
295
src/main/java/dev/plexapi/sdk/models/operations/Marker.java
Normal file
@@ -0,0 +1,295 @@
|
|||||||
|
/*
|
||||||
|
* 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.Long;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Marker
|
||||||
|
*
|
||||||
|
* <p>The final status of the marker
|
||||||
|
*/
|
||||||
|
public class Marker {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private long id;
|
||||||
|
|
||||||
|
@JsonProperty("type")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
@JsonProperty("startTimeOffset")
|
||||||
|
private long startTimeOffset;
|
||||||
|
|
||||||
|
@JsonProperty("endTimeOffset")
|
||||||
|
private long endTimeOffset;
|
||||||
|
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("final")
|
||||||
|
private Optional<Boolean> final_;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attributes associated with the marker.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("Attributes")
|
||||||
|
private Optional<? extends Attributes> attributes;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public Marker(
|
||||||
|
@JsonProperty("id") long id,
|
||||||
|
@JsonProperty("type") String type,
|
||||||
|
@JsonProperty("startTimeOffset") long startTimeOffset,
|
||||||
|
@JsonProperty("endTimeOffset") long endTimeOffset,
|
||||||
|
@JsonProperty("final") Optional<Boolean> final_,
|
||||||
|
@JsonProperty("Attributes") Optional<? extends Attributes> attributes) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
Utils.checkNotNull(type, "type");
|
||||||
|
Utils.checkNotNull(startTimeOffset, "startTimeOffset");
|
||||||
|
Utils.checkNotNull(endTimeOffset, "endTimeOffset");
|
||||||
|
Utils.checkNotNull(final_, "final_");
|
||||||
|
Utils.checkNotNull(attributes, "attributes");
|
||||||
|
this.id = id;
|
||||||
|
this.type = type;
|
||||||
|
this.startTimeOffset = startTimeOffset;
|
||||||
|
this.endTimeOffset = endTimeOffset;
|
||||||
|
this.final_ = final_;
|
||||||
|
this.attributes = attributes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker(
|
||||||
|
long id,
|
||||||
|
String type,
|
||||||
|
long startTimeOffset,
|
||||||
|
long endTimeOffset) {
|
||||||
|
this(id, type, startTimeOffset, endTimeOffset, Optional.empty(), Optional.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long id() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public String type() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long startTimeOffset() {
|
||||||
|
return startTimeOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public long endTimeOffset() {
|
||||||
|
return endTimeOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Boolean> final_() {
|
||||||
|
return final_;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attributes associated with the marker.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<Attributes> attributes() {
|
||||||
|
return (Optional<Attributes>) attributes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static Builder builder() {
|
||||||
|
return new Builder();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker withId(long id) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker withType(String type) {
|
||||||
|
Utils.checkNotNull(type, "type");
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker withStartTimeOffset(long startTimeOffset) {
|
||||||
|
Utils.checkNotNull(startTimeOffset, "startTimeOffset");
|
||||||
|
this.startTimeOffset = startTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker withEndTimeOffset(long endTimeOffset) {
|
||||||
|
Utils.checkNotNull(endTimeOffset, "endTimeOffset");
|
||||||
|
this.endTimeOffset = endTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker withFinal(boolean final_) {
|
||||||
|
Utils.checkNotNull(final_, "final_");
|
||||||
|
this.final_ = Optional.ofNullable(final_);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker withFinal(Optional<Boolean> final_) {
|
||||||
|
Utils.checkNotNull(final_, "final_");
|
||||||
|
this.final_ = final_;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attributes associated with the marker.
|
||||||
|
*/
|
||||||
|
public Marker withAttributes(Attributes attributes) {
|
||||||
|
Utils.checkNotNull(attributes, "attributes");
|
||||||
|
this.attributes = Optional.ofNullable(attributes);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attributes associated with the marker.
|
||||||
|
*/
|
||||||
|
public Marker withAttributes(Optional<? extends Attributes> attributes) {
|
||||||
|
Utils.checkNotNull(attributes, "attributes");
|
||||||
|
this.attributes = attributes;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Marker other = (Marker) o;
|
||||||
|
return
|
||||||
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
|
Objects.deepEquals(this.type, other.type) &&
|
||||||
|
Objects.deepEquals(this.startTimeOffset, other.startTimeOffset) &&
|
||||||
|
Objects.deepEquals(this.endTimeOffset, other.endTimeOffset) &&
|
||||||
|
Objects.deepEquals(this.final_, other.final_) &&
|
||||||
|
Objects.deepEquals(this.attributes, other.attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(
|
||||||
|
id,
|
||||||
|
type,
|
||||||
|
startTimeOffset,
|
||||||
|
endTimeOffset,
|
||||||
|
final_,
|
||||||
|
attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Utils.toString(Marker.class,
|
||||||
|
"id", id,
|
||||||
|
"type", type,
|
||||||
|
"startTimeOffset", startTimeOffset,
|
||||||
|
"endTimeOffset", endTimeOffset,
|
||||||
|
"final_", final_,
|
||||||
|
"attributes", attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final static class Builder {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private Long startTimeOffset;
|
||||||
|
|
||||||
|
private Long endTimeOffset;
|
||||||
|
|
||||||
|
private Optional<Boolean> final_ = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<? extends Attributes> attributes = Optional.empty();
|
||||||
|
|
||||||
|
private Builder() {
|
||||||
|
// force use of static builder() method
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder id(long id) {
|
||||||
|
Utils.checkNotNull(id, "id");
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder type(String type) {
|
||||||
|
Utils.checkNotNull(type, "type");
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder startTimeOffset(long startTimeOffset) {
|
||||||
|
Utils.checkNotNull(startTimeOffset, "startTimeOffset");
|
||||||
|
this.startTimeOffset = startTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder endTimeOffset(long endTimeOffset) {
|
||||||
|
Utils.checkNotNull(endTimeOffset, "endTimeOffset");
|
||||||
|
this.endTimeOffset = endTimeOffset;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder final_(boolean final_) {
|
||||||
|
Utils.checkNotNull(final_, "final_");
|
||||||
|
this.final_ = Optional.ofNullable(final_);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder final_(Optional<Boolean> final_) {
|
||||||
|
Utils.checkNotNull(final_, "final_");
|
||||||
|
this.final_ = final_;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attributes associated with the marker.
|
||||||
|
*/
|
||||||
|
public Builder attributes(Attributes attributes) {
|
||||||
|
Utils.checkNotNull(attributes, "attributes");
|
||||||
|
this.attributes = Optional.ofNullable(attributes);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attributes associated with the marker.
|
||||||
|
*/
|
||||||
|
public Builder attributes(Optional<? extends Attributes> attributes) {
|
||||||
|
Utils.checkNotNull(attributes, "attributes");
|
||||||
|
this.attributes = attributes;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Marker build() {
|
||||||
|
return new Marker(
|
||||||
|
id,
|
||||||
|
type,
|
||||||
|
startTimeOffset,
|
||||||
|
endTimeOffset,
|
||||||
|
final_,
|
||||||
|
attributes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Long;
|
import java.lang.Integer;
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -21,7 +21,7 @@ public class Producer {
|
|||||||
* Unique identifier for the producer.
|
* Unique identifier for the producer.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private long id;
|
private int id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string used to query this producer.
|
* The filter string used to query this producer.
|
||||||
@@ -51,7 +51,7 @@ public class Producer {
|
|||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public Producer(
|
public Producer(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") int id,
|
||||||
@JsonProperty("filter") String filter,
|
@JsonProperty("filter") String filter,
|
||||||
@JsonProperty("tag") String tag,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||||
@@ -69,7 +69,7 @@ public class Producer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Producer(
|
public Producer(
|
||||||
long id,
|
int id,
|
||||||
String filter,
|
String filter,
|
||||||
String tag) {
|
String tag) {
|
||||||
this(id, filter, tag, Optional.empty(), Optional.empty());
|
this(id, filter, tag, Optional.empty(), Optional.empty());
|
||||||
@@ -79,7 +79,7 @@ public class Producer {
|
|||||||
* Unique identifier for the producer.
|
* Unique identifier for the producer.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long id() {
|
public int id() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ public class Producer {
|
|||||||
/**
|
/**
|
||||||
* Unique identifier for the producer.
|
* Unique identifier for the producer.
|
||||||
*/
|
*/
|
||||||
public Producer withId(long id) {
|
public Producer withId(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
@@ -222,7 +222,7 @@ public class Producer {
|
|||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Long id;
|
private Integer id;
|
||||||
|
|
||||||
private String filter;
|
private String filter;
|
||||||
|
|
||||||
@@ -239,7 +239,7 @@ public class Producer {
|
|||||||
/**
|
/**
|
||||||
* Unique identifier for the producer.
|
* Unique identifier for the producer.
|
||||||
*/
|
*/
|
||||||
public Builder id(long id) {
|
public Builder id(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -27,10 +27,20 @@ public class Stream {
|
|||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
@JsonProperty("streamType")
|
@JsonProperty("streamType")
|
||||||
private int streamType;
|
private StreamType streamType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("format")
|
||||||
|
private Optional<String> format;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
@@ -48,8 +58,9 @@ public class Stream {
|
|||||||
/**
|
/**
|
||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("index")
|
@JsonProperty("index")
|
||||||
private int index;
|
private Optional<Integer> index;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitrate of the stream.
|
* Bitrate of the stream.
|
||||||
@@ -216,6 +227,13 @@ public class Stream {
|
|||||||
@JsonProperty("frameRate")
|
@JsonProperty("frameRate")
|
||||||
private Optional<Float> frameRate;
|
private Optional<Float> frameRate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
|
@JsonProperty("key")
|
||||||
|
private Optional<String> key;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -345,10 +363,11 @@ public class Stream {
|
|||||||
@JsonCreator
|
@JsonCreator
|
||||||
public Stream(
|
public Stream(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") long id,
|
||||||
@JsonProperty("streamType") int streamType,
|
@JsonProperty("streamType") StreamType streamType,
|
||||||
|
@JsonProperty("format") Optional<String> format,
|
||||||
@JsonProperty("default") Optional<Boolean> default_,
|
@JsonProperty("default") Optional<Boolean> default_,
|
||||||
@JsonProperty("codec") String codec,
|
@JsonProperty("codec") String codec,
|
||||||
@JsonProperty("index") int index,
|
@JsonProperty("index") Optional<Integer> index,
|
||||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||||
@JsonProperty("language") Optional<String> language,
|
@JsonProperty("language") Optional<String> language,
|
||||||
@JsonProperty("languageTag") Optional<String> languageTag,
|
@JsonProperty("languageTag") Optional<String> languageTag,
|
||||||
@@ -373,6 +392,7 @@ public class Stream {
|
|||||||
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
@JsonProperty("colorSpace") Optional<String> colorSpace,
|
||||||
@JsonProperty("colorTrc") Optional<String> colorTrc,
|
@JsonProperty("colorTrc") Optional<String> colorTrc,
|
||||||
@JsonProperty("frameRate") Optional<Float> frameRate,
|
@JsonProperty("frameRate") Optional<Float> frameRate,
|
||||||
|
@JsonProperty("key") Optional<String> key,
|
||||||
@JsonProperty("height") Optional<Integer> height,
|
@JsonProperty("height") Optional<Integer> height,
|
||||||
@JsonProperty("level") Optional<Integer> level,
|
@JsonProperty("level") Optional<Integer> level,
|
||||||
@JsonProperty("original") Optional<Boolean> original,
|
@JsonProperty("original") Optional<Boolean> original,
|
||||||
@@ -395,6 +415,7 @@ public class Stream {
|
|||||||
@JsonProperty("title") Optional<String> title) {
|
@JsonProperty("title") Optional<String> title) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
Utils.checkNotNull(default_, "default_");
|
Utils.checkNotNull(default_, "default_");
|
||||||
Utils.checkNotNull(codec, "codec");
|
Utils.checkNotNull(codec, "codec");
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
@@ -422,6 +443,7 @@ public class Stream {
|
|||||||
Utils.checkNotNull(colorSpace, "colorSpace");
|
Utils.checkNotNull(colorSpace, "colorSpace");
|
||||||
Utils.checkNotNull(colorTrc, "colorTrc");
|
Utils.checkNotNull(colorTrc, "colorTrc");
|
||||||
Utils.checkNotNull(frameRate, "frameRate");
|
Utils.checkNotNull(frameRate, "frameRate");
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
Utils.checkNotNull(height, "height");
|
Utils.checkNotNull(height, "height");
|
||||||
Utils.checkNotNull(level, "level");
|
Utils.checkNotNull(level, "level");
|
||||||
Utils.checkNotNull(original, "original");
|
Utils.checkNotNull(original, "original");
|
||||||
@@ -444,6 +466,7 @@ public class Stream {
|
|||||||
Utils.checkNotNull(title, "title");
|
Utils.checkNotNull(title, "title");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
|
this.format = format;
|
||||||
this.default_ = default_;
|
this.default_ = default_;
|
||||||
this.codec = codec;
|
this.codec = codec;
|
||||||
this.index = index;
|
this.index = index;
|
||||||
@@ -471,6 +494,7 @@ public class Stream {
|
|||||||
this.colorSpace = colorSpace;
|
this.colorSpace = colorSpace;
|
||||||
this.colorTrc = colorTrc;
|
this.colorTrc = colorTrc;
|
||||||
this.frameRate = frameRate;
|
this.frameRate = frameRate;
|
||||||
|
this.key = key;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
this.level = level;
|
this.level = level;
|
||||||
this.original = original;
|
this.original = original;
|
||||||
@@ -495,12 +519,11 @@ public class Stream {
|
|||||||
|
|
||||||
public Stream(
|
public Stream(
|
||||||
long id,
|
long id,
|
||||||
int streamType,
|
StreamType streamType,
|
||||||
String codec,
|
String codec,
|
||||||
int index,
|
|
||||||
String displayTitle,
|
String displayTitle,
|
||||||
String extendedDisplayTitle) {
|
String extendedDisplayTitle) {
|
||||||
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());
|
this(id, streamType, Optional.empty(), Optional.empty(), codec, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), 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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -512,13 +535,24 @@ public class Stream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public int streamType() {
|
public StreamType streamType() {
|
||||||
return streamType;
|
return streamType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> format() {
|
||||||
|
return format;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -539,7 +573,7 @@ public class Stream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public int index() {
|
public Optional<Integer> index() {
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -732,6 +766,14 @@ public class Stream {
|
|||||||
return frameRate;
|
return frameRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> key() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -894,14 +936,35 @@ public class Stream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
public Stream withStreamType(int streamType) {
|
public Stream withStreamType(StreamType streamType) {
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Stream withFormat(String format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = Optional.ofNullable(format);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Stream withFormat(Optional<String> format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = format;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -933,6 +996,15 @@ public class Stream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
public Stream withIndex(int index) {
|
public Stream withIndex(int index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = Optional.ofNullable(index);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Index of the stream.
|
||||||
|
*/
|
||||||
|
public Stream withIndex(Optional<Integer> index) {
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
this.index = index;
|
this.index = index;
|
||||||
return this;
|
return this;
|
||||||
@@ -1364,6 +1436,24 @@ public class Stream {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Stream withKey(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = Optional.ofNullable(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Stream withKey(Optional<String> key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -1695,6 +1785,7 @@ public class Stream {
|
|||||||
return
|
return
|
||||||
Objects.deepEquals(this.id, other.id) &&
|
Objects.deepEquals(this.id, other.id) &&
|
||||||
Objects.deepEquals(this.streamType, other.streamType) &&
|
Objects.deepEquals(this.streamType, other.streamType) &&
|
||||||
|
Objects.deepEquals(this.format, other.format) &&
|
||||||
Objects.deepEquals(this.default_, other.default_) &&
|
Objects.deepEquals(this.default_, other.default_) &&
|
||||||
Objects.deepEquals(this.codec, other.codec) &&
|
Objects.deepEquals(this.codec, other.codec) &&
|
||||||
Objects.deepEquals(this.index, other.index) &&
|
Objects.deepEquals(this.index, other.index) &&
|
||||||
@@ -1722,6 +1813,7 @@ public class Stream {
|
|||||||
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
Objects.deepEquals(this.colorSpace, other.colorSpace) &&
|
||||||
Objects.deepEquals(this.colorTrc, other.colorTrc) &&
|
Objects.deepEquals(this.colorTrc, other.colorTrc) &&
|
||||||
Objects.deepEquals(this.frameRate, other.frameRate) &&
|
Objects.deepEquals(this.frameRate, other.frameRate) &&
|
||||||
|
Objects.deepEquals(this.key, other.key) &&
|
||||||
Objects.deepEquals(this.height, other.height) &&
|
Objects.deepEquals(this.height, other.height) &&
|
||||||
Objects.deepEquals(this.level, other.level) &&
|
Objects.deepEquals(this.level, other.level) &&
|
||||||
Objects.deepEquals(this.original, other.original) &&
|
Objects.deepEquals(this.original, other.original) &&
|
||||||
@@ -1749,6 +1841,7 @@ public class Stream {
|
|||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
id,
|
id,
|
||||||
streamType,
|
streamType,
|
||||||
|
format,
|
||||||
default_,
|
default_,
|
||||||
codec,
|
codec,
|
||||||
index,
|
index,
|
||||||
@@ -1776,6 +1869,7 @@ public class Stream {
|
|||||||
colorSpace,
|
colorSpace,
|
||||||
colorTrc,
|
colorTrc,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
key,
|
||||||
height,
|
height,
|
||||||
level,
|
level,
|
||||||
original,
|
original,
|
||||||
@@ -1803,6 +1897,7 @@ public class Stream {
|
|||||||
return Utils.toString(Stream.class,
|
return Utils.toString(Stream.class,
|
||||||
"id", id,
|
"id", id,
|
||||||
"streamType", streamType,
|
"streamType", streamType,
|
||||||
|
"format", format,
|
||||||
"default_", default_,
|
"default_", default_,
|
||||||
"codec", codec,
|
"codec", codec,
|
||||||
"index", index,
|
"index", index,
|
||||||
@@ -1830,6 +1925,7 @@ public class Stream {
|
|||||||
"colorSpace", colorSpace,
|
"colorSpace", colorSpace,
|
||||||
"colorTrc", colorTrc,
|
"colorTrc", colorTrc,
|
||||||
"frameRate", frameRate,
|
"frameRate", frameRate,
|
||||||
|
"key", key,
|
||||||
"height", height,
|
"height", height,
|
||||||
"level", level,
|
"level", level,
|
||||||
"original", original,
|
"original", original,
|
||||||
@@ -1856,13 +1952,15 @@ public class Stream {
|
|||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private Integer streamType;
|
private StreamType streamType;
|
||||||
|
|
||||||
|
private Optional<String> format = Optional.empty();
|
||||||
|
|
||||||
private Optional<Boolean> default_ = Optional.empty();
|
private Optional<Boolean> default_ = Optional.empty();
|
||||||
|
|
||||||
private String codec;
|
private String codec;
|
||||||
|
|
||||||
private Integer index;
|
private Optional<Integer> index = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> bitrate = Optional.empty();
|
private Optional<Integer> bitrate = Optional.empty();
|
||||||
|
|
||||||
@@ -1912,6 +2010,8 @@ public class Stream {
|
|||||||
|
|
||||||
private Optional<Float> frameRate = Optional.empty();
|
private Optional<Float> frameRate = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> key = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> height = Optional.empty();
|
private Optional<Integer> height = Optional.empty();
|
||||||
|
|
||||||
private Optional<Integer> level = Optional.empty();
|
private Optional<Integer> level = Optional.empty();
|
||||||
@@ -1966,14 +2066,35 @@ public class Stream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream type (1=video, 2=audio, 3=subtitle).
|
* Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
*/
|
*/
|
||||||
public Builder streamType(int streamType) {
|
public Builder streamType(StreamType streamType) {
|
||||||
Utils.checkNotNull(streamType, "streamType");
|
Utils.checkNotNull(streamType, "streamType");
|
||||||
this.streamType = streamType;
|
this.streamType = streamType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Builder format(String format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = Optional.ofNullable(format);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format of the stream (e.g., srt).
|
||||||
|
*/
|
||||||
|
public Builder format(Optional<String> format) {
|
||||||
|
Utils.checkNotNull(format, "format");
|
||||||
|
this.format = format;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this stream is default.
|
* Indicates if this stream is default.
|
||||||
*/
|
*/
|
||||||
@@ -2005,6 +2126,15 @@ public class Stream {
|
|||||||
* Index of the stream.
|
* Index of the stream.
|
||||||
*/
|
*/
|
||||||
public Builder index(int index) {
|
public Builder index(int index) {
|
||||||
|
Utils.checkNotNull(index, "index");
|
||||||
|
this.index = Optional.ofNullable(index);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Index of the stream.
|
||||||
|
*/
|
||||||
|
public Builder index(Optional<Integer> index) {
|
||||||
Utils.checkNotNull(index, "index");
|
Utils.checkNotNull(index, "index");
|
||||||
this.index = index;
|
this.index = index;
|
||||||
return this;
|
return this;
|
||||||
@@ -2436,6 +2566,24 @@ public class Stream {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Builder key(String key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = Optional.ofNullable(key);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to access this stream part.
|
||||||
|
*/
|
||||||
|
public Builder key(Optional<String> key) {
|
||||||
|
Utils.checkNotNull(key, "key");
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height of the video stream.
|
* Height of the video stream.
|
||||||
*/
|
*/
|
||||||
@@ -2758,6 +2906,7 @@ public class Stream {
|
|||||||
return new Stream(
|
return new Stream(
|
||||||
id,
|
id,
|
||||||
streamType,
|
streamType,
|
||||||
|
format,
|
||||||
default_,
|
default_,
|
||||||
codec,
|
codec,
|
||||||
index,
|
index,
|
||||||
@@ -2785,6 +2934,7 @@ public class Stream {
|
|||||||
colorSpace,
|
colorSpace,
|
||||||
colorTrc,
|
colorTrc,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
key,
|
||||||
height,
|
height,
|
||||||
level,
|
level,
|
||||||
original,
|
original,
|
||||||
|
|||||||
192
src/main/java/dev/plexapi/sdk/models/operations/StreamType.java
Normal file
192
src/main/java/dev/plexapi/sdk/models/operations/StreamType.java
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JacksonException;
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.Integer;
|
||||||
|
import java.lang.Override;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.SuppressWarnings;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Wrapper class for an "open" enum. "Open" enums are those that are expected
|
||||||
|
* to evolve (particularly with the addition of enum members over time). If an
|
||||||
|
* open enum is used then the appearance of unexpected enum values (say in a
|
||||||
|
* response from an updated an API) will not bring about a runtime error thus
|
||||||
|
* ensuring that non-updated client versions can continue to work without error.
|
||||||
|
*
|
||||||
|
* <p>Note that instances are immutable and are singletons (an internal thread-safe
|
||||||
|
* cache is maintained to ensure that). As a consequence instances created with the
|
||||||
|
* same value will satisfy reference equality (via {@code ==}).
|
||||||
|
*
|
||||||
|
* <p>This class is intended to emulate an enum (in terms of common usage and with
|
||||||
|
* reference equality) but with the ability to carry unknown values. Unfortunately
|
||||||
|
* Java does not permit the use of an instance in a switch expression but you can
|
||||||
|
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* StreamType
|
||||||
|
*
|
||||||
|
* <p>Stream type:
|
||||||
|
* - 1 = video
|
||||||
|
* - 2 = audio
|
||||||
|
* - 3 = subtitle
|
||||||
|
*/
|
||||||
|
@JsonDeserialize(using = StreamType._Deserializer.class)
|
||||||
|
@JsonSerialize(using = StreamType._Serializer.class)
|
||||||
|
public class StreamType {
|
||||||
|
|
||||||
|
public static final StreamType Video = new StreamType(1);
|
||||||
|
public static final StreamType Audio = new StreamType(2);
|
||||||
|
public static final StreamType Subtitle = new StreamType(3);
|
||||||
|
|
||||||
|
// This map will grow whenever a Color gets created with a new
|
||||||
|
// unrecognized value (a potential memory leak if the user is not
|
||||||
|
// careful). Keep this field lower case to avoid clashing with
|
||||||
|
// generated member names which will always be upper cased (Java
|
||||||
|
// convention)
|
||||||
|
private static final Map<Integer, StreamType> values = createValuesMap();
|
||||||
|
private static final Map<Integer, StreamTypeEnum> enums = createEnumsMap();
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
private StreamType(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a StreamType with the given value. For a specific value the
|
||||||
|
* returned object will always be a singleton so reference equality
|
||||||
|
* is satisfied when the values are the same.
|
||||||
|
*
|
||||||
|
* @param value value to be wrapped as StreamType
|
||||||
|
*/
|
||||||
|
public static StreamType of(int value) {
|
||||||
|
synchronized (StreamType.class) {
|
||||||
|
return values.computeIfAbsent(value, v -> new StreamType(v));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Optional<StreamTypeEnum> asEnum() {
|
||||||
|
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isKnown() {
|
||||||
|
return asEnum().isPresent();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
StreamType other = (StreamType) obj;
|
||||||
|
return Objects.equals(value, other.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "StreamType [value=" + value + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
// return an array just like an enum
|
||||||
|
public static StreamType[] values() {
|
||||||
|
synchronized (StreamType.class) {
|
||||||
|
return values.values().toArray(new StreamType[] {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Integer, StreamType> createValuesMap() {
|
||||||
|
Map<Integer, StreamType> map = new LinkedHashMap<>();
|
||||||
|
map.put(1, Video);
|
||||||
|
map.put(2, Audio);
|
||||||
|
map.put(3, Subtitle);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Integer, StreamTypeEnum> createEnumsMap() {
|
||||||
|
Map<Integer, StreamTypeEnum> map = new HashMap<>();
|
||||||
|
map.put(1, StreamTypeEnum.Video);
|
||||||
|
map.put(2, StreamTypeEnum.Audio);
|
||||||
|
map.put(3, StreamTypeEnum.Subtitle);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Serializer extends StdSerializer<StreamType> {
|
||||||
|
|
||||||
|
protected _Serializer() {
|
||||||
|
super(StreamType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize(StreamType value, JsonGenerator g, SerializerProvider provider)
|
||||||
|
throws IOException, JsonProcessingException {
|
||||||
|
g.writeObject(value.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public static final class _Deserializer extends StdDeserializer<StreamType> {
|
||||||
|
|
||||||
|
protected _Deserializer() {
|
||||||
|
super(StreamType.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StreamType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||||
|
throws IOException, JacksonException {
|
||||||
|
int v = p.readValueAs(new TypeReference<Integer>() {});
|
||||||
|
// use the factory method to ensure we get singletons
|
||||||
|
return StreamType.of(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum StreamTypeEnum {
|
||||||
|
|
||||||
|
Video(1),
|
||||||
|
Audio(2),
|
||||||
|
Subtitle(3),;
|
||||||
|
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
private StreamTypeEnum(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Long;
|
import java.lang.Integer;
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -21,7 +21,7 @@ public class Writer {
|
|||||||
* Unique identifier for the writer.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private long id;
|
private int id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The filter string used to query this writer.
|
* The filter string used to query this writer.
|
||||||
@@ -44,7 +44,7 @@ public class Writer {
|
|||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public Writer(
|
public Writer(
|
||||||
@JsonProperty("id") long id,
|
@JsonProperty("id") int id,
|
||||||
@JsonProperty("filter") String filter,
|
@JsonProperty("filter") String filter,
|
||||||
@JsonProperty("tag") String tag,
|
@JsonProperty("tag") String tag,
|
||||||
@JsonProperty("tagKey") Optional<String> tagKey) {
|
@JsonProperty("tagKey") Optional<String> tagKey) {
|
||||||
@@ -59,7 +59,7 @@ public class Writer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Writer(
|
public Writer(
|
||||||
long id,
|
int id,
|
||||||
String filter,
|
String filter,
|
||||||
String tag) {
|
String tag) {
|
||||||
this(id, filter, tag, Optional.empty());
|
this(id, filter, tag, Optional.empty());
|
||||||
@@ -69,7 +69,7 @@ public class Writer {
|
|||||||
* Unique identifier for the writer.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long id() {
|
public int id() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ public class Writer {
|
|||||||
/**
|
/**
|
||||||
* Unique identifier for the writer.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
public Writer withId(long id) {
|
public Writer withId(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
@@ -183,7 +183,7 @@ public class Writer {
|
|||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Long id;
|
private Integer id;
|
||||||
|
|
||||||
private String filter;
|
private String filter;
|
||||||
|
|
||||||
@@ -198,7 +198,7 @@ public class Writer {
|
|||||||
/**
|
/**
|
||||||
* Unique identifier for the writer.
|
* Unique identifier for the writer.
|
||||||
*/
|
*/
|
||||||
public Builder id(long id) {
|
public Builder id(int id) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user