mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 12:37:45 +00:00
38 lines
984 B
Java
38 lines
984 B
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.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).
|
|
*/
|
|
public enum QueryParamOnlyTransient {
|
|
ZERO(0L),
|
|
ONE(1L);
|
|
|
|
@JsonValue
|
|
private final long value;
|
|
|
|
private QueryParamOnlyTransient(long value) {
|
|
this.value = value;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|