mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
/*
|
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
*/
|
|
|
|
package dev.plexapi.sdk.models.operations;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
import java.lang.String;
|
|
import java.util.Objects;
|
|
import java.util.Optional;
|
|
|
|
/**
|
|
* 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)).
|
|
*
|
|
*/
|
|
public enum ShowOrdering {
|
|
None("None"),
|
|
TmdbAiring("tmdbAiring"),
|
|
TvdbAired("aired"),
|
|
TvdbDvd("dvd"),
|
|
TvdbAbsolute("absolute");
|
|
|
|
@JsonValue
|
|
private final String value;
|
|
|
|
private ShowOrdering(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|