mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 04:20:49 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.459.2
This commit is contained in:
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum ActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<ActiveDirection> fromValue(String value) {
|
||||
for (ActiveDirection o: ActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
@@ -23,4 +25,13 @@ public enum AutoSelectSubtitle {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<AutoSelectSubtitle> fromValue(int value) {
|
||||
for (AutoSelectSubtitle o: AutoSelectSubtitle.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* CreatePlaylistQueryParamType - type of playlist to create
|
||||
@@ -25,4 +27,13 @@ public enum CreatePlaylistQueryParamType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<CreatePlaylistQueryParamType> fromValue(String value) {
|
||||
for (CreatePlaylistQueryParamType o: CreatePlaylistQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum DefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultDirection> fromValue(String value) {
|
||||
for (DefaultDirection o: DefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum DefaultSubtitleAccessibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultSubtitleAccessibility> fromValue(int value) {
|
||||
for (DefaultSubtitleAccessibility o: DefaultSubtitleAccessibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum DefaultSubtitleForced {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<DefaultSubtitleForced> fromValue(int value) {
|
||||
for (DefaultSubtitleForced o: DefaultSubtitleForced.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Download - Indicate that you want to start download any updates found.
|
||||
@@ -23,4 +25,13 @@ public enum Download {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Download> fromValue(long value) {
|
||||
for (Download o: Download.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Filter - Filter
|
||||
@@ -25,4 +27,13 @@ public enum Filter {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Filter> fromValue(String value) {
|
||||
for (Filter o: Filter.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum FlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum FlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<FlattenSeasons> fromValue(String value) {
|
||||
for (FlattenSeasons o: FlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Force - Force the refresh even if the library is already being refreshed.
|
||||
@@ -23,4 +25,13 @@ public enum Force {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Force> fromValue(long value) {
|
||||
for (Force o: Force.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsActiveDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsActiveDirection o: GetLibraryItemsActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsDefaultDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsDefaultDirection o: GetLibraryItemsDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsFlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetLibraryItemsFlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsFlattenSeasons> fromValue(String value) {
|
||||
for (GetLibraryItemsFlattenSeasons o: GetLibraryItemsFlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsHasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetLibraryItemsHasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsHasThumbnail> fromValue(String value) {
|
||||
for (GetLibraryItemsHasThumbnail o: GetLibraryItemsHasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsLibraryActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryActiveDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryActiveDirection o: GetLibraryItemsLibraryActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetLibraryItemsLibraryDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryDefaultDirection> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryDefaultDirection o: GetLibraryItemsLibraryDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsLibraryResponse200Type {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetLibraryItemsLibraryResponse200Type {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryResponse200Type> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryResponse200Type o: GetLibraryItemsLibraryResponse200Type.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsLibraryType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetLibraryItemsLibraryType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsLibraryType> fromValue(String value) {
|
||||
for (GetLibraryItemsLibraryType o: GetLibraryItemsLibraryType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,12 +108,12 @@ public class GetLibraryItemsMetadata {
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -696,12 +696,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1216,12 +1216,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
@@ -1231,12 +1231,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsMetadata withShowOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
@@ -2520,12 +2520,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(GetLibraryItemsShowOrdering showOrdering) {
|
||||
@@ -2535,12 +2535,12 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends GetLibraryItemsShowOrdering> showOrdering) {
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetLibraryItemsOptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum GetLibraryItemsOptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsOptimizedForStreaming> fromValue(int value) {
|
||||
for (GetLibraryItemsOptimizedForStreaming o: GetLibraryItemsOptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response
|
||||
@@ -24,4 +26,13 @@ public enum GetLibraryItemsQueryParamIncludeMeta {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsQueryParamIncludeMeta> fromValue(int value) {
|
||||
for (GetLibraryItemsQueryParamIncludeMeta o: GetLibraryItemsQueryParamIncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetLibraryItemsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetLibraryItemsQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsQueryParamType> fromValue(long value) {
|
||||
for (GetLibraryItemsQueryParamType o: GetLibraryItemsQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,24 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
TvdbAiring("tvdbAiring"),
|
||||
TvdbDvd("tvdbDvd"),
|
||||
TvdbAbsolute("tvdbAbsolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
@@ -33,4 +35,13 @@ public enum GetLibraryItemsShowOrdering {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsShowOrdering> fromValue(String value) {
|
||||
for (GetLibraryItemsShowOrdering o: GetLibraryItemsShowOrdering.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -60,6 +61,41 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
@JsonProperty("librarySectionKey")
|
||||
private Optional<String> librarySectionKey;
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("grandparentTitle")
|
||||
private Optional<String> grandparentTitle;
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("parentTitle")
|
||||
private Optional<String> parentTitle;
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("originalTitle")
|
||||
private Optional<String> originalTitle;
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("index")
|
||||
private Optional<Long> index;
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("parentIndex")
|
||||
private Optional<Long> parentIndex;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("contentRating")
|
||||
private Optional<String> contentRating;
|
||||
@@ -167,6 +203,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
@JsonProperty("librarySectionTitle") Optional<String> librarySectionTitle,
|
||||
@JsonProperty("librarySectionID") Optional<Integer> librarySectionID,
|
||||
@JsonProperty("librarySectionKey") Optional<String> librarySectionKey,
|
||||
@JsonProperty("grandparentTitle") Optional<String> grandparentTitle,
|
||||
@JsonProperty("parentTitle") Optional<String> parentTitle,
|
||||
@JsonProperty("originalTitle") Optional<String> originalTitle,
|
||||
@JsonProperty("index") Optional<Long> index,
|
||||
@JsonProperty("parentIndex") Optional<Long> parentIndex,
|
||||
@JsonProperty("contentRating") Optional<String> contentRating,
|
||||
@JsonProperty("summary") Optional<String> summary,
|
||||
@JsonProperty("rating") Optional<Double> rating,
|
||||
@@ -200,6 +241,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
Utils.checkNotNull(index, "index");
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
Utils.checkNotNull(summary, "summary");
|
||||
Utils.checkNotNull(rating, "rating");
|
||||
@@ -233,6 +279,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
this.librarySectionID = librarySectionID;
|
||||
this.librarySectionKey = librarySectionKey;
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
this.parentTitle = parentTitle;
|
||||
this.originalTitle = originalTitle;
|
||||
this.index = index;
|
||||
this.parentIndex = parentIndex;
|
||||
this.contentRating = contentRating;
|
||||
this.summary = summary;
|
||||
this.rating = rating;
|
||||
@@ -260,7 +311,7 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMetadata() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -308,6 +359,46 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return librarySectionKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> grandparentTitle() {
|
||||
return grandparentTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> parentTitle() {
|
||||
return parentTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> originalTitle() {
|
||||
return originalTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> index() {
|
||||
return index;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> parentIndex() {
|
||||
return parentIndex;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> contentRating() {
|
||||
return contentRating;
|
||||
@@ -549,6 +640,96 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(String grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withGrandparentTitle(Optional<String> grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentTitle(String parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = Optional.ofNullable(parentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentTitle(Optional<String> parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = parentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withOriginalTitle(String originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withOriginalTitle(Optional<String> originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = originalTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withIndex(long index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = Optional.ofNullable(index);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withIndex(Optional<Long> index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = index;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentIndex(long parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = Optional.ofNullable(parentIndex);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public GetMetaDataByRatingKeyMetadata withParentIndex(Optional<Long> parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = parentIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMetaDataByRatingKeyMetadata withContentRating(String contentRating) {
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
this.contentRating = Optional.ofNullable(contentRating);
|
||||
@@ -856,6 +1037,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
|
||||
Objects.deepEquals(this.grandparentTitle, other.grandparentTitle) &&
|
||||
Objects.deepEquals(this.parentTitle, other.parentTitle) &&
|
||||
Objects.deepEquals(this.originalTitle, other.originalTitle) &&
|
||||
Objects.deepEquals(this.index, other.index) &&
|
||||
Objects.deepEquals(this.parentIndex, other.parentIndex) &&
|
||||
Objects.deepEquals(this.contentRating, other.contentRating) &&
|
||||
Objects.deepEquals(this.summary, other.summary) &&
|
||||
Objects.deepEquals(this.rating, other.rating) &&
|
||||
@@ -894,6 +1080,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
librarySectionTitle,
|
||||
librarySectionID,
|
||||
librarySectionKey,
|
||||
grandparentTitle,
|
||||
parentTitle,
|
||||
originalTitle,
|
||||
index,
|
||||
parentIndex,
|
||||
contentRating,
|
||||
summary,
|
||||
rating,
|
||||
@@ -932,6 +1123,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
"librarySectionTitle", librarySectionTitle,
|
||||
"librarySectionID", librarySectionID,
|
||||
"librarySectionKey", librarySectionKey,
|
||||
"grandparentTitle", grandparentTitle,
|
||||
"parentTitle", parentTitle,
|
||||
"originalTitle", originalTitle,
|
||||
"index", index,
|
||||
"parentIndex", parentIndex,
|
||||
"contentRating", contentRating,
|
||||
"summary", summary,
|
||||
"rating", rating,
|
||||
@@ -978,6 +1174,16 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
|
||||
private Optional<String> librarySectionKey = Optional.empty();
|
||||
|
||||
private Optional<String> grandparentTitle = Optional.empty();
|
||||
|
||||
private Optional<String> parentTitle = Optional.empty();
|
||||
|
||||
private Optional<String> originalTitle = Optional.empty();
|
||||
|
||||
private Optional<Long> index = Optional.empty();
|
||||
|
||||
private Optional<Long> parentIndex = Optional.empty();
|
||||
|
||||
private Optional<String> contentRating = Optional.empty();
|
||||
|
||||
private Optional<String> summary = Optional.empty();
|
||||
@@ -1138,6 +1344,96 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public Builder grandparentTitle(String grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = Optional.ofNullable(grandparentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
||||
*/
|
||||
public Builder grandparentTitle(Optional<String> grandparentTitle) {
|
||||
Utils.checkNotNull(grandparentTitle, "grandparentTitle");
|
||||
this.grandparentTitle = grandparentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public Builder parentTitle(String parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = Optional.ofNullable(parentTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
||||
*/
|
||||
public Builder parentTitle(Optional<String> parentTitle) {
|
||||
Utils.checkNotNull(parentTitle, "parentTitle");
|
||||
this.parentTitle = parentTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public Builder originalTitle(String originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = Optional.ofNullable(originalTitle);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The orginal untranslated name of the media item when non-english.
|
||||
*/
|
||||
public Builder originalTitle(Optional<String> originalTitle) {
|
||||
Utils.checkNotNull(originalTitle, "originalTitle");
|
||||
this.originalTitle = originalTitle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public Builder index(long index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = Optional.ofNullable(index);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The index starting from 0 of this media item in the MetaData array.
|
||||
*/
|
||||
public Builder index(Optional<Long> index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = index;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public Builder parentIndex(long parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = Optional.ofNullable(parentIndex);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The parent index starting from 0 of this media item in the parent MetaData array.
|
||||
*/
|
||||
public Builder parentIndex(Optional<Long> parentIndex) {
|
||||
Utils.checkNotNull(parentIndex, "parentIndex");
|
||||
this.parentIndex = parentIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder contentRating(String contentRating) {
|
||||
Utils.checkNotNull(contentRating, "contentRating");
|
||||
this.contentRating = Optional.ofNullable(contentRating);
|
||||
@@ -1437,6 +1733,11 @@ public class GetMetaDataByRatingKeyMetadata {
|
||||
librarySectionTitle,
|
||||
librarySectionID,
|
||||
librarySectionKey,
|
||||
grandparentTitle,
|
||||
parentTitle,
|
||||
originalTitle,
|
||||
index,
|
||||
parentIndex,
|
||||
contentRating,
|
||||
summary,
|
||||
rating,
|
||||
|
||||
@@ -33,7 +33,7 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
@@ -62,7 +62,7 @@ public class GetPinRequest {
|
||||
@JsonCreator
|
||||
public GetPinRequest(
|
||||
Optional<Boolean> strong,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceNickname,
|
||||
Optional<String> clientVersion,
|
||||
@@ -81,8 +81,9 @@ public class GetPinRequest {
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
public GetPinRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetPinRequest(
|
||||
String clientID) {
|
||||
this(Optional.empty(), clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,7 +101,7 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -168,15 +169,6 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetPinRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetPinRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -298,7 +290,7 @@ public class GetPinRequest {
|
||||
|
||||
private Optional<Boolean> strong;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
@@ -340,15 +332,6 @@ public class GetPinRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetPlaylistContentsQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetPlaylistContentsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetPlaylistContentsQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetPlaylistContentsQueryParamType> fromValue(long value) {
|
||||
for (GetPlaylistContentsQueryParamType o: GetPlaylistContentsQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetRecentlyAddedActiveDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedActiveDirection> fromValue(String value) {
|
||||
for (GetRecentlyAddedActiveDirection o: GetRecentlyAddedActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
@@ -25,4 +27,13 @@ public enum GetRecentlyAddedDefaultDirection {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedDefaultDirection> fromValue(String value) {
|
||||
for (GetRecentlyAddedDefaultDirection o: GetRecentlyAddedDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetRecentlyAddedHubsResponseType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetRecentlyAddedHubsResponseType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedHubsResponseType> fromValue(String value) {
|
||||
for (GetRecentlyAddedHubsResponseType o: GetRecentlyAddedHubsResponseType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetRecentlyAddedHubsType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetRecentlyAddedHubsType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetRecentlyAddedHubsType> fromValue(String value) {
|
||||
for (GetRecentlyAddedHubsType o: GetRecentlyAddedHubsType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,12 +108,12 @@ public class GetRecentlyAddedMetadata {
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -696,12 +696,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1216,12 +1216,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withShowOrdering(ShowOrdering showOrdering) {
|
||||
@@ -1231,12 +1231,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withShowOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
@@ -2520,12 +2520,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(ShowOrdering showOrdering) {
|
||||
@@ -2535,12 +2535,12 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends ShowOrdering> showOrdering) {
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesFlattenSeasons {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetSearchAllLibrariesFlattenSeasons {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesFlattenSeasons> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesFlattenSeasons o: GetSearchAllLibrariesFlattenSeasons.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesHasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum GetSearchAllLibrariesHasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesHasThumbnail> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesHasThumbnail o: GetSearchAllLibrariesHasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesLibraryType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
@@ -23,4 +25,13 @@ public enum GetSearchAllLibrariesLibraryType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesLibraryType> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesLibraryType o: GetSearchAllLibrariesLibraryType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,12 +108,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@@ -696,12 +696,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1216,12 +1216,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withShowOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||
@@ -1231,12 +1231,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withShowOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||
@@ -2520,12 +2520,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(GetSearchAllLibrariesShowOrdering showOrdering) {
|
||||
@@ -2535,12 +2535,12 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public Builder showOrdering(Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering) {
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetSearchAllLibrariesOptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum GetSearchAllLibrariesOptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesOptimizedForStreaming> fromValue(int value) {
|
||||
for (GetSearchAllLibrariesOptimizedForStreaming o: GetSearchAllLibrariesOptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* Limit the number of results returned.
|
||||
@@ -62,7 +62,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
@JsonCreator
|
||||
public GetSearchAllLibrariesRequest(
|
||||
String query,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<Long> limit,
|
||||
Optional<? extends List<SearchTypes>> searchTypes,
|
||||
Optional<? extends QueryParamIncludeCollections> includeCollections,
|
||||
@@ -82,8 +82,9 @@ public class GetSearchAllLibrariesRequest {
|
||||
}
|
||||
|
||||
public GetSearchAllLibrariesRequest(
|
||||
String query) {
|
||||
this(query, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
String query,
|
||||
String clientID) {
|
||||
this(query, clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +99,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -155,15 +156,6 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetSearchAllLibrariesRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetSearchAllLibrariesRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -287,7 +279,7 @@ public class GetSearchAllLibrariesRequest {
|
||||
|
||||
private String query;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<Long> limit = Optional.empty();
|
||||
|
||||
@@ -314,15 +306,6 @@ public class GetSearchAllLibrariesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -6,22 +6,24 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum GetSearchAllLibrariesShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
TvdbAiring("tvdbAiring"),
|
||||
TvdbDvd("tvdbDvd"),
|
||||
TvdbAbsolute("tvdbAbsolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
@@ -33,4 +35,13 @@ public enum GetSearchAllLibrariesShowOrdering {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesShowOrdering> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesShowOrdering o: GetSearchAllLibrariesShowOrdering.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchAllLibrariesType - The type of media content
|
||||
@@ -27,4 +29,13 @@ public enum GetSearchAllLibrariesType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesType> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesType o: GetSearchAllLibrariesType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchLibraryQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetSearchLibraryQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetSearchLibraryQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchLibraryQueryParamType> fromValue(long value) {
|
||||
for (GetSearchLibraryQueryParamType o: GetSearchLibraryQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,14 +44,14 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
@JsonCreator
|
||||
public GetServerResourcesRequest(
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6,
|
||||
Optional<String> clientID) {
|
||||
String clientID) {
|
||||
Utils.checkNotNull(includeHttps, "includeHttps");
|
||||
Utils.checkNotNull(includeRelay, "includeRelay");
|
||||
Utils.checkNotNull(includeIPv6, "includeIPv6");
|
||||
@@ -62,8 +62,9 @@ public class GetServerResourcesRequest {
|
||||
this.clientID = clientID;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetServerResourcesRequest(
|
||||
String clientID) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), clientID);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -99,7 +100,7 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -169,15 +170,6 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetServerResourcesRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetServerResourcesRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -225,7 +217,7 @@ public class GetServerResourcesRequest {
|
||||
|
||||
private Optional<? extends IncludeIPv6> includeIPv6;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -293,15 +285,6 @@ public class GetServerResourcesRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -24,7 +24,7 @@ public class GetServerResourcesRequestBuilder {
|
||||
"includeIPv6",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends IncludeIPv6>>() {});
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
private Optional<String> serverURL = Optional.empty();
|
||||
private final SDKMethodInterfaces.MethodCallGetServerResources sdk;
|
||||
|
||||
@@ -67,14 +67,8 @@ public class GetServerResourcesRequestBuilder {
|
||||
this.includeIPv6 = includeIPv6;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequestBuilder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.of(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetServerResourcesRequestBuilder clientID(Optional<String> clientID) {
|
||||
public GetServerResourcesRequestBuilder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -28,7 +28,7 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
@@ -57,7 +57,7 @@ public class GetTokenByPinIdRequest {
|
||||
@JsonCreator
|
||||
public GetTokenByPinIdRequest(
|
||||
long pinID,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceNickname,
|
||||
Optional<String> clientVersion,
|
||||
@@ -77,8 +77,9 @@ public class GetTokenByPinIdRequest {
|
||||
}
|
||||
|
||||
public GetTokenByPinIdRequest(
|
||||
long pinID) {
|
||||
this(pinID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
long pinID,
|
||||
String clientID) {
|
||||
this(pinID, clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -93,7 +94,7 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -146,15 +147,6 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetTokenByPinIdRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public GetTokenByPinIdRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -276,7 +268,7 @@ public class GetTokenByPinIdRequest {
|
||||
|
||||
private Long pinID;
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
@@ -303,15 +295,6 @@ public class GetTokenByPinIdRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum GetTokenDetailsAuthenticationResponseStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTokenDetailsAuthenticationResponseStatus> fromValue(String value) {
|
||||
for (GetTokenDetailsAuthenticationResponseStatus o: GetTokenDetailsAuthenticationResponseStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum GetTokenDetailsAuthenticationStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTokenDetailsAuthenticationStatus> fromValue(String value) {
|
||||
for (GetTokenDetailsAuthenticationStatus o: GetTokenDetailsAuthenticationStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetTokenDetailsStatus {
|
||||
ONLINE("online"),
|
||||
@@ -21,4 +23,13 @@ public enum GetTokenDetailsStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTokenDetailsStatus> fromValue(String value) {
|
||||
for (GetTokenDetailsStatus o: GetTokenDetailsStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTopWatchedContentQueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum GetTopWatchedContentQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum GetTopWatchedContentQueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTopWatchedContentQueryParamType> fromValue(long value) {
|
||||
for (GetTopWatchedContentQueryParamType o: GetTopWatchedContentQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTransientTokenQueryParamType - `delegation` - This is the only supported `type` parameter.
|
||||
@@ -23,4 +25,13 @@ public enum GetTransientTokenQueryParamType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTransientTokenQueryParamType> fromValue(String value) {
|
||||
for (GetTransientTokenQueryParamType o: GetTransientTokenQueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum HasThumbnail {
|
||||
False("0"),
|
||||
@@ -21,4 +23,13 @@ public enum HasThumbnail {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<HasThumbnail> fromValue(String value) {
|
||||
for (HasThumbnail o: HasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeCollections - include collections in the results
|
||||
@@ -24,4 +26,13 @@ public enum IncludeCollections {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeCollections> fromValue(long value) {
|
||||
for (IncludeCollections o: IncludeCollections.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeDetails - Whether or not to include details for a section (types, filters, and sorts).
|
||||
@@ -25,4 +27,13 @@ public enum IncludeDetails {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeDetails> fromValue(long value) {
|
||||
for (IncludeDetails o: IncludeDetails.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeExternalMedia - include external media in the results
|
||||
@@ -24,4 +26,13 @@ public enum IncludeExternalMedia {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeExternalMedia> fromValue(long value) {
|
||||
for (IncludeExternalMedia o: IncludeExternalMedia.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeGuids - Adds the Guids object to the response
|
||||
@@ -24,4 +26,13 @@ public enum IncludeGuids {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeGuids> fromValue(int value) {
|
||||
for (IncludeGuids o: IncludeGuids.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeHttps - Include Https entries in the results
|
||||
@@ -23,4 +25,13 @@ public enum IncludeHttps {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeHttps> fromValue(int value) {
|
||||
for (IncludeHttps o: IncludeHttps.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeIPv6 - Include IPv6 entries in the results
|
||||
@@ -23,4 +25,13 @@ public enum IncludeIPv6 {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeIPv6> fromValue(int value) {
|
||||
for (IncludeIPv6 o: IncludeIPv6.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeMeta - Adds the Meta object to the response
|
||||
@@ -24,4 +26,13 @@ public enum IncludeMeta {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeMeta> fromValue(int value) {
|
||||
for (IncludeMeta o: IncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* IncludeRelay - Include Relay addresses in the results
|
||||
@@ -25,4 +27,13 @@ public enum IncludeRelay {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<IncludeRelay> fromValue(int value) {
|
||||
for (IncludeRelay o: IncludeRelay.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Level - An integer log level to write to the PMS log with.
|
||||
@@ -32,4 +34,13 @@ public enum Level {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Level> fromValue(long value) {
|
||||
for (Level o: Level.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Libtype - The type of library to filter. Can be "movie" or "show", or all if not present.
|
||||
@@ -25,4 +27,13 @@ public enum Libtype {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Libtype> fromValue(String value) {
|
||||
for (Libtype o: Libtype.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* MailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
@@ -24,4 +26,13 @@ public enum MailingListStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<MailingListStatus> fromValue(String value) {
|
||||
for (MailingListStatus o: MailingListStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
@@ -23,4 +25,13 @@ public enum MediaReviewsVisibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<MediaReviewsVisibility> fromValue(int value) {
|
||||
for (MediaReviewsVisibility o: MediaReviewsVisibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* MinSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
|
||||
@@ -23,4 +25,13 @@ public enum MinSize {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<MinSize> fromValue(long value) {
|
||||
for (MinSize o: MinSize.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* OnlyTransient - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
@@ -23,4 +25,13 @@ public enum OnlyTransient {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<OnlyTransient> fromValue(long value) {
|
||||
for (OnlyTransient o: OnlyTransient.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum OptimizedForStreaming {
|
||||
Disable(0),
|
||||
@@ -20,4 +22,13 @@ public enum OptimizedForStreaming {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<OptimizedForStreaming> fromValue(int value) {
|
||||
for (OptimizedForStreaming o: OptimizedForStreaming.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PathParamTaskName - The name of the task to be started.
|
||||
@@ -36,4 +38,13 @@ public enum PathParamTaskName {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PathParamTaskName> fromValue(String value) {
|
||||
for (PathParamTaskName o: PathParamTaskName.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PlaylistType - limit to a type of playlist.
|
||||
@@ -25,4 +27,13 @@ public enum PlaylistType {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PlaylistType> fromValue(String value) {
|
||||
for (PlaylistType o: PlaylistType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum PostUsersSignInDataAuthenticationResponseStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataAuthenticationResponseStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataAuthenticationResponseStatus o: PostUsersSignInDataAuthenticationResponseStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive
|
||||
@@ -24,4 +26,13 @@ public enum PostUsersSignInDataAuthenticationStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataAuthenticationStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataAuthenticationStatus o: PostUsersSignInDataAuthenticationStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataAutoSelectSubtitle {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataAutoSelectSubtitle> fromValue(int value) {
|
||||
for (PostUsersSignInDataAutoSelectSubtitle o: PostUsersSignInDataAutoSelectSubtitle.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataDefaultSubtitleAccessibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataDefaultSubtitleAccessibility> fromValue(int value) {
|
||||
for (PostUsersSignInDataDefaultSubtitleAccessibility o: PostUsersSignInDataDefaultSubtitleAccessibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataDefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataDefaultSubtitleForced {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataDefaultSubtitleForced> fromValue(int value) {
|
||||
for (PostUsersSignInDataDefaultSubtitleForced o: PostUsersSignInDataDefaultSubtitleForced.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
@@ -24,4 +26,13 @@ public enum PostUsersSignInDataMailingListStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataMailingListStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataMailingListStatus o: PostUsersSignInDataMailingListStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataMediaReviewsVisibility {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataMediaReviewsVisibility> fromValue(int value) {
|
||||
for (PostUsersSignInDataMediaReviewsVisibility o: PostUsersSignInDataMediaReviewsVisibility.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class PostUsersSignInDataRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")
|
||||
private Optional<String> clientID;
|
||||
private String clientID;
|
||||
|
||||
/**
|
||||
* The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
@@ -56,7 +56,7 @@ public class PostUsersSignInDataRequest {
|
||||
|
||||
@JsonCreator
|
||||
public PostUsersSignInDataRequest(
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> clientName,
|
||||
Optional<String> deviceNickname,
|
||||
Optional<String> clientVersion,
|
||||
@@ -76,15 +76,16 @@ public class PostUsersSignInDataRequest {
|
||||
this.requestBody = requestBody;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataRequest() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public PostUsersSignInDataRequest(
|
||||
String clientID) {
|
||||
this(clientID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> clientID() {
|
||||
public String clientID() {
|
||||
return clientID;
|
||||
}
|
||||
|
||||
@@ -137,15 +138,6 @@ public class PostUsersSignInDataRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public PostUsersSignInDataRequest withClientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public PostUsersSignInDataRequest withClientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
@@ -283,7 +275,7 @@ public class PostUsersSignInDataRequest {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> clientID = Optional.empty();
|
||||
private String clientID;
|
||||
|
||||
private Optional<String> clientName = Optional.empty();
|
||||
|
||||
@@ -303,15 +295,6 @@ public class PostUsersSignInDataRequest {
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(String clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = Optional.ofNullable(clientID);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
*/
|
||||
public Builder clientID(Optional<String> clientID) {
|
||||
Utils.checkNotNull(clientID, "clientID");
|
||||
this.clientID = clientID;
|
||||
return this;
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum PostUsersSignInDataState {
|
||||
ENDED("ended");
|
||||
@@ -20,4 +22,13 @@ public enum PostUsersSignInDataState {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataState> fromValue(String value) {
|
||||
for (PostUsersSignInDataState o: PostUsersSignInDataState.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum PostUsersSignInDataStatus {
|
||||
ONLINE("online"),
|
||||
@@ -21,4 +23,13 @@ public enum PostUsersSignInDataStatus {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataStatus> fromValue(String value) {
|
||||
for (PostUsersSignInDataStatus o: PostUsersSignInDataStatus.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* PostUsersSignInDataWatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
||||
@@ -23,4 +25,13 @@ public enum PostUsersSignInDataWatchedIndicator {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<PostUsersSignInDataWatchedIndicator> fromValue(int value) {
|
||||
for (PostUsersSignInDataWatchedIndicator o: PostUsersSignInDataWatchedIndicator.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Protocol - The protocol used for the connection (http, https, etc)
|
||||
@@ -24,4 +26,13 @@ public enum Protocol {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Protocol> fromValue(String value) {
|
||||
for (Protocol o: Protocol.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamForce - Force overwriting of duplicate playlists.
|
||||
@@ -27,4 +29,13 @@ public enum QueryParamForce {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamForce> fromValue(long value) {
|
||||
for (QueryParamForce o: QueryParamForce.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamIncludeCollections - Whether to include collections in the search results.
|
||||
@@ -23,4 +25,13 @@ public enum QueryParamIncludeCollections {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamIncludeCollections> fromValue(int value) {
|
||||
for (QueryParamIncludeCollections o: QueryParamIncludeCollections.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamIncludeExternalMedia - Whether to include external media in the search results.
|
||||
@@ -23,4 +25,13 @@ public enum QueryParamIncludeExternalMedia {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamIncludeExternalMedia> fromValue(int value) {
|
||||
for (QueryParamIncludeExternalMedia o: QueryParamIncludeExternalMedia.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamIncludeMeta - Adds the Meta object to the response
|
||||
@@ -24,4 +26,13 @@ public enum QueryParamIncludeMeta {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamIncludeMeta> fromValue(int value) {
|
||||
for (QueryParamIncludeMeta o: QueryParamIncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamOnlyTransient - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
@@ -23,4 +25,13 @@ public enum QueryParamOnlyTransient {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamOnlyTransient> fromValue(long value) {
|
||||
for (QueryParamOnlyTransient o: QueryParamOnlyTransient.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamSmart - type of playlists to return (default is all).
|
||||
@@ -23,4 +25,13 @@ public enum QueryParamSmart {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamSmart> fromValue(long value) {
|
||||
for (QueryParamSmart o: QueryParamSmart.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* QueryParamType - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum QueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum QueryParamType {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<QueryParamType> fromValue(long value) {
|
||||
for (QueryParamType o: QueryParamType.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ public class SDKMethodInterfaces {
|
||||
Optional<? extends IncludeHttps> includeHttps,
|
||||
Optional<? extends IncludeRelay> includeRelay,
|
||||
Optional<? extends IncludeIPv6> includeIPv6,
|
||||
Optional<String> clientID,
|
||||
String clientID,
|
||||
Optional<String> serverURL) throws Exception;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Scope - `all` - This is the only supported `scope` parameter.
|
||||
@@ -23,4 +25,13 @@ public enum Scope {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Scope> fromValue(String value) {
|
||||
for (Scope o: Scope.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum SearchTypes {
|
||||
MOVIES("movies"),
|
||||
@@ -24,4 +26,13 @@ public enum SearchTypes {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<SearchTypes> fromValue(String value) {
|
||||
for (SearchTypes o: SearchTypes.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,24 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* ShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* aired = TheTVDB (Aired),
|
||||
* dvd = TheTVDB (DVD),
|
||||
* absolute = TheTVDB (Absolute)).
|
||||
* ShowOrdering - Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
* tmdbAiring = The Movie Database (Aired),
|
||||
* tvdbAiring = TheTVDB (Aired),
|
||||
* tvdbDvd = TheTVDB (DVD),
|
||||
* tvdbAbsolute = TheTVDB (Absolute)).
|
||||
*
|
||||
*/
|
||||
public enum ShowOrdering {
|
||||
None("None"),
|
||||
TmdbAiring("tmdbAiring"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
TvdbAiring("tvdbAiring"),
|
||||
TvdbDvd("tvdbDvd"),
|
||||
TvdbAbsolute("tvdbAbsolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
@@ -33,4 +35,13 @@ public enum ShowOrdering {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<ShowOrdering> fromValue(String value) {
|
||||
for (ShowOrdering o: ShowOrdering.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Skip - Indicate that the latest version should be marked as skipped. The [Release] entry for this version will have the `state` set to `skipped`.
|
||||
@@ -23,4 +25,13 @@ public enum Skip {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Skip> fromValue(long value) {
|
||||
for (Skip o: Skip.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Smart - whether the playlist is smart or not
|
||||
@@ -23,4 +25,13 @@ public enum Smart {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Smart> fromValue(long value) {
|
||||
for (Smart o: Smart.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* State - The state of the media item
|
||||
@@ -25,4 +27,13 @@ public enum State {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<State> fromValue(String value) {
|
||||
for (State o: State.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Status - Current friend request status
|
||||
@@ -23,4 +25,13 @@ public enum Status {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Status> fromValue(String value) {
|
||||
for (Status o: Status.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Tag - A key representing a specific tag within the section.
|
||||
@@ -29,7 +31,8 @@ public enum Tag {
|
||||
RATING("rating"),
|
||||
RESOLUTION("resolution"),
|
||||
FIRST_CHARACTER("firstCharacter"),
|
||||
FOLDER("folder");
|
||||
FOLDER("folder"),
|
||||
ALBUMS("albums");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
@@ -41,4 +44,13 @@ public enum Tag {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Tag> fromValue(String value) {
|
||||
for (Tag o: Tag.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* TaskName - the name of the task to be started.
|
||||
@@ -36,4 +38,13 @@ public enum TaskName {
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<TaskName> fromValue(String value) {
|
||||
for (TaskName o: TaskName.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Tonight - Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
|
||||
@@ -23,4 +25,13 @@ public enum Tonight {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Tonight> fromValue(long value) {
|
||||
for (Tonight o: Tonight.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Type - The type of media to retrieve.
|
||||
@@ -20,7 +22,9 @@ public enum Type {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L);
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L);
|
||||
|
||||
@JsonValue
|
||||
private final long value;
|
||||
@@ -32,4 +36,13 @@ public enum Type {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Type> fromValue(long value) {
|
||||
for (Type o: Type.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Upscale - allow images to be resized beyond native dimensions.
|
||||
@@ -23,4 +25,13 @@ public enum Upscale {
|
||||
public long value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<Upscale> fromValue(long value) {
|
||||
for (Upscale o: Upscale.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
||||
@@ -23,4 +25,13 @@ public enum WatchedIndicator {
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<WatchedIndicator> fromValue(int value) {
|
||||
for (WatchedIndicator o: WatchedIndicator.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user