mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 12:37:47 +00:00
41 lines
976 B
Java
41 lines
976 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;
|
|
|
|
/**
|
|
* IncludeDetails
|
|
*
|
|
* <p>Whether or not to include details for a section (types, filters, and sorts).
|
|
* Only exists for backwards compatibility, media providers other than the server libraries have it on always.
|
|
*/
|
|
public enum IncludeDetails {
|
|
ZERO(0L),
|
|
ONE(1L);
|
|
|
|
@JsonValue
|
|
private final long value;
|
|
|
|
private IncludeDetails(long value) {
|
|
this.value = value;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
|