mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-07 12:37:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2
This commit is contained in:
118
src/main/java/dev/plexapi/sdk/models/operations/Action.java
Normal file
118
src/main/java/dev/plexapi/sdk/models/operations/Action.java
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class Action {
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonCreator
|
||||
public Action(
|
||||
@JsonProperty("id") String id,
|
||||
@JsonProperty("key") String key) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Action withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Action withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Action other = (Action) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.key, other.key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id,
|
||||
key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Action.class,
|
||||
"id", id,
|
||||
"key", key);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String id;
|
||||
|
||||
private String key;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Action build() {
|
||||
return new Action(
|
||||
id,
|
||||
key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum ActiveDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private ActiveDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
109
src/main/java/dev/plexapi/sdk/models/operations/Collection.java
Normal file
109
src/main/java/dev/plexapi/sdk/models/operations/Collection.java
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class Collection {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tag")
|
||||
private Optional<String> tag;
|
||||
|
||||
@JsonCreator
|
||||
public Collection(
|
||||
@JsonProperty("tag") Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public Collection() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> tag() {
|
||||
return tag;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Collection withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Collection withTag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Collection other = (Collection) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Collection.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> tag = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder tag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = Optional.ofNullable(tag);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag(Optional<String> tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Collection build() {
|
||||
return new Collection(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* DefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public enum DefaultDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private DefaultDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -25,29 +25,57 @@ public class Feature {
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("type")
|
||||
private Optional<String> type;
|
||||
private String type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("flavor")
|
||||
private Optional<String> flavor;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("scrobbleKey")
|
||||
private Optional<String> scrobbleKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("unscrobbleKey")
|
||||
private Optional<String> unscrobbleKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Directory")
|
||||
private Optional<? extends List<GetMediaProvidersDirectory>> directory;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Action")
|
||||
private Optional<? extends List<Action>> action;
|
||||
|
||||
@JsonCreator
|
||||
public Feature(
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("type") Optional<String> type,
|
||||
@JsonProperty("Directory") Optional<? extends List<GetMediaProvidersDirectory>> directory) {
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("flavor") Optional<String> flavor,
|
||||
@JsonProperty("scrobbleKey") Optional<String> scrobbleKey,
|
||||
@JsonProperty("unscrobbleKey") Optional<String> unscrobbleKey,
|
||||
@JsonProperty("Directory") Optional<? extends List<GetMediaProvidersDirectory>> directory,
|
||||
@JsonProperty("Action") Optional<? extends List<Action>> action) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
Utils.checkNotNull(directory, "directory");
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.flavor = flavor;
|
||||
this.scrobbleKey = scrobbleKey;
|
||||
this.unscrobbleKey = unscrobbleKey;
|
||||
this.directory = directory;
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public Feature() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public Feature(
|
||||
String type) {
|
||||
this(Optional.empty(), type, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -56,16 +84,37 @@ public class Feature {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> type() {
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> flavor() {
|
||||
return flavor;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> scrobbleKey() {
|
||||
return scrobbleKey;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> unscrobbleKey() {
|
||||
return unscrobbleKey;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMediaProvidersDirectory>> directory() {
|
||||
return (Optional<List<GetMediaProvidersDirectory>>) directory;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Action>> action() {
|
||||
return (Optional<List<Action>>) action;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
@@ -84,13 +133,43 @@ public class Feature {
|
||||
|
||||
public Feature withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withType(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
public Feature withFlavor(String flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = Optional.ofNullable(flavor);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withFlavor(Optional<String> flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = flavor;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withScrobbleKey(String scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = Optional.ofNullable(scrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withScrobbleKey(Optional<String> scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = scrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withUnscrobbleKey(String unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = Optional.ofNullable(unscrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withUnscrobbleKey(Optional<String> unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = unscrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -105,6 +184,18 @@ public class Feature {
|
||||
this.directory = directory;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withAction(List<Action> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = Optional.ofNullable(action);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature withAction(Optional<? extends List<Action>> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = action;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -118,7 +209,11 @@ public class Feature {
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.directory, other.directory);
|
||||
Objects.deepEquals(this.flavor, other.flavor) &&
|
||||
Objects.deepEquals(this.scrobbleKey, other.scrobbleKey) &&
|
||||
Objects.deepEquals(this.unscrobbleKey, other.unscrobbleKey) &&
|
||||
Objects.deepEquals(this.directory, other.directory) &&
|
||||
Objects.deepEquals(this.action, other.action);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -126,7 +221,11 @@ public class Feature {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
directory);
|
||||
flavor,
|
||||
scrobbleKey,
|
||||
unscrobbleKey,
|
||||
directory,
|
||||
action);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -134,16 +233,28 @@ public class Feature {
|
||||
return Utils.toString(Feature.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"directory", directory);
|
||||
"flavor", flavor,
|
||||
"scrobbleKey", scrobbleKey,
|
||||
"unscrobbleKey", unscrobbleKey,
|
||||
"directory", directory,
|
||||
"action", action);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
|
||||
private Optional<String> type = Optional.empty();
|
||||
private String type;
|
||||
|
||||
private Optional<? extends List<GetMediaProvidersDirectory>> directory = Optional.empty();
|
||||
private Optional<String> flavor = Optional.empty();
|
||||
|
||||
private Optional<String> scrobbleKey = Optional.empty();
|
||||
|
||||
private Optional<String> unscrobbleKey = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMediaProvidersDirectory>> directory = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Action>> action = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -163,13 +274,43 @@ public class Feature {
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<String> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
public Builder flavor(String flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = Optional.ofNullable(flavor);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder flavor(Optional<String> flavor) {
|
||||
Utils.checkNotNull(flavor, "flavor");
|
||||
this.flavor = flavor;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder scrobbleKey(String scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = Optional.ofNullable(scrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder scrobbleKey(Optional<String> scrobbleKey) {
|
||||
Utils.checkNotNull(scrobbleKey, "scrobbleKey");
|
||||
this.scrobbleKey = scrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder unscrobbleKey(String unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = Optional.ofNullable(unscrobbleKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder unscrobbleKey(Optional<String> unscrobbleKey) {
|
||||
Utils.checkNotNull(unscrobbleKey, "unscrobbleKey");
|
||||
this.unscrobbleKey = unscrobbleKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -184,12 +325,28 @@ public class Feature {
|
||||
this.directory = directory;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder action(List<Action> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = Optional.ofNullable(action);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder action(Optional<? extends List<Action>> action) {
|
||||
Utils.checkNotNull(action, "action");
|
||||
this.action = action;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Feature build() {
|
||||
return new Feature(
|
||||
key,
|
||||
type,
|
||||
directory);
|
||||
flavor,
|
||||
scrobbleKey,
|
||||
unscrobbleKey,
|
||||
directory,
|
||||
action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
public enum FlattenSeasons {
|
||||
False("0"),
|
||||
True("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private FlattenSeasons(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class GetLibraryItemsImage {
|
||||
|
||||
@JsonProperty("alt")
|
||||
private String alt;
|
||||
|
||||
@JsonProperty("type")
|
||||
private GetLibraryItemsLibraryResponseType type;
|
||||
|
||||
@JsonProperty("url")
|
||||
private String url;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsImage(
|
||||
@JsonProperty("alt") String alt,
|
||||
@JsonProperty("type") GetLibraryItemsLibraryResponseType type,
|
||||
@JsonProperty("url") String url) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.alt = alt;
|
||||
this.type = type;
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String alt() {
|
||||
return alt;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public GetLibraryItemsLibraryResponseType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String url() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsImage withAlt(String alt) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
this.alt = alt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsImage withType(GetLibraryItemsLibraryResponseType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsImage withUrl(String url) {
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsImage other = (GetLibraryItemsImage) o;
|
||||
return
|
||||
Objects.deepEquals(this.alt, other.alt) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.url, other.url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
alt,
|
||||
type,
|
||||
url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsImage.class,
|
||||
"alt", alt,
|
||||
"type", type,
|
||||
"url", url);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String alt;
|
||||
|
||||
private GetLibraryItemsLibraryResponseType type;
|
||||
|
||||
private String url;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder alt(String alt) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
this.alt = alt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(GetLibraryItemsLibraryResponseType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder url(String url) {
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsImage build() {
|
||||
return new GetLibraryItemsImage(
|
||||
alt,
|
||||
type,
|
||||
url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
public enum GetLibraryItemsLibraryResponseType {
|
||||
COVER_POSTER("coverPoster"),
|
||||
BACKGROUND("background"),
|
||||
SNAPSHOT("snapshot"),
|
||||
CLEAR_LOGO("clearLogo");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsLibraryResponseType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,319 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryItemsLibraryType {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("active")
|
||||
private boolean active;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<GetLibraryItemsField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsLibraryType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetLibraryItemsFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetLibraryItemsSort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.active = active;
|
||||
this.filter = filter;
|
||||
this.sort = sort;
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
boolean active) {
|
||||
this(key, type, title, active, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsFilter>> filter() {
|
||||
return (Optional<List<GetLibraryItemsFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsSort>> sort() {
|
||||
return (Optional<List<GetLibraryItemsSort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsField>> field() {
|
||||
return (Optional<List<GetLibraryItemsField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withFilter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withFilter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withSort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withSort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withField(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType withField(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsLibraryType other = (GetLibraryItemsLibraryType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.sort, other.sort) &&
|
||||
Objects.deepEquals(this.field, other.field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsLibraryType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"active", active,
|
||||
"filter", filter,
|
||||
"sort", sort,
|
||||
"field", field);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String type;
|
||||
|
||||
private String title;
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsLibraryType build() {
|
||||
return new GetLibraryItemsLibraryType(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,11 +11,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
@@ -23,84 +23,81 @@ import java.util.Optional;
|
||||
|
||||
public class GetLibraryItemsMedia {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
private int id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Integer> duration;
|
||||
private int duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("bitrate")
|
||||
private Optional<Integer> bitrate;
|
||||
private int bitrate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("width")
|
||||
private Optional<Integer> width;
|
||||
private int width;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("height")
|
||||
private Optional<Integer> height;
|
||||
private int height;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("aspectRatio")
|
||||
private Optional<Double> aspectRatio;
|
||||
private double aspectRatio;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@JsonProperty("audioChannels")
|
||||
private Optional<Integer> audioChannels;
|
||||
private int audioChannels;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioCodec")
|
||||
private Optional<String> audioCodec;
|
||||
private String audioCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoCodec")
|
||||
private Optional<String> videoCodec;
|
||||
private String videoCodec;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoResolution")
|
||||
private Optional<String> videoResolution;
|
||||
private String videoResolution;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
private String container;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoFrameRate")
|
||||
private Optional<String> videoFrameRate;
|
||||
private String videoFrameRate;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
private String videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasVoiceActivity")
|
||||
private Optional<Boolean> hasVoiceActivity;
|
||||
|
||||
@JsonProperty("Part")
|
||||
private Optional<? extends List<GetLibraryItemsPart>> part;
|
||||
private List<GetLibraryItemsPart> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsMedia(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("duration") Optional<Integer> duration,
|
||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||
@JsonProperty("width") Optional<Integer> width,
|
||||
@JsonProperty("height") Optional<Integer> height,
|
||||
@JsonProperty("aspectRatio") Optional<Double> aspectRatio,
|
||||
@JsonProperty("audioChannels") Optional<Integer> audioChannels,
|
||||
@JsonProperty("audioCodec") Optional<String> audioCodec,
|
||||
@JsonProperty("videoCodec") Optional<String> videoCodec,
|
||||
@JsonProperty("videoResolution") Optional<String> videoResolution,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoFrameRate") Optional<String> videoFrameRate,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("Part") Optional<? extends List<GetLibraryItemsPart>> part) {
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("duration") int duration,
|
||||
@JsonProperty("bitrate") int bitrate,
|
||||
@JsonProperty("width") int width,
|
||||
@JsonProperty("height") int height,
|
||||
@JsonProperty("aspectRatio") double aspectRatio,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("audioChannels") int audioChannels,
|
||||
@JsonProperty("audioCodec") String audioCodec,
|
||||
@JsonProperty("videoCodec") String videoCodec,
|
||||
@JsonProperty("videoResolution") String videoResolution,
|
||||
@JsonProperty("container") String container,
|
||||
@JsonProperty("videoFrameRate") String videoFrameRate,
|
||||
@JsonProperty("videoProfile") String videoProfile,
|
||||
@JsonProperty("hasVoiceActivity") Optional<Boolean> hasVoiceActivity,
|
||||
@JsonProperty("Part") List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
Utils.checkNotNull(width, "width");
|
||||
Utils.checkNotNull(height, "height");
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
@@ -108,6 +105,7 @@ public class GetLibraryItemsMedia {
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.id = id;
|
||||
this.duration = duration;
|
||||
@@ -115,6 +113,7 @@ public class GetLibraryItemsMedia {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.aspectRatio = aspectRatio;
|
||||
this.audioProfile = audioProfile;
|
||||
this.audioChannels = audioChannels;
|
||||
this.audioCodec = audioCodec;
|
||||
this.videoCodec = videoCodec;
|
||||
@@ -122,82 +121,106 @@ public class GetLibraryItemsMedia {
|
||||
this.container = container;
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
this.videoProfile = videoProfile;
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia() {
|
||||
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());
|
||||
public GetLibraryItemsMedia(
|
||||
int id,
|
||||
int duration,
|
||||
int bitrate,
|
||||
int width,
|
||||
int height,
|
||||
double aspectRatio,
|
||||
int audioChannels,
|
||||
String audioCodec,
|
||||
String videoCodec,
|
||||
String videoResolution,
|
||||
String container,
|
||||
String videoFrameRate,
|
||||
String videoProfile,
|
||||
List<GetLibraryItemsPart> part) {
|
||||
this(id, duration, bitrate, width, height, aspectRatio, Optional.empty(), audioChannels, audioCodec, videoCodec, videoResolution, container, videoFrameRate, videoProfile, Optional.empty(), part);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> duration() {
|
||||
public int duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> bitrate() {
|
||||
public int bitrate() {
|
||||
return bitrate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> width() {
|
||||
public int width() {
|
||||
return width;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> height() {
|
||||
public int height() {
|
||||
return height;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Double> aspectRatio() {
|
||||
public double aspectRatio() {
|
||||
return aspectRatio;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> audioChannels() {
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public int audioChannels() {
|
||||
return audioChannels;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> audioCodec() {
|
||||
public String audioCodec() {
|
||||
return audioCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoCodec() {
|
||||
public String videoCodec() {
|
||||
return videoCodec;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoResolution() {
|
||||
public String videoResolution() {
|
||||
return videoResolution;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
public String container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoFrameRate() {
|
||||
public String videoFrameRate() {
|
||||
return videoFrameRate;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
public String videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsPart>> part() {
|
||||
return (Optional<List<GetLibraryItemsPart>>) part;
|
||||
public Optional<Boolean> hasVoiceActivity() {
|
||||
return hasVoiceActivity;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<GetLibraryItemsPart> part() {
|
||||
return part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -205,168 +228,108 @@ public class GetLibraryItemsMedia {
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withId(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withDuration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withBitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withBitrate(Optional<Integer> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withWidth(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withWidth(Optional<Integer> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withHeight(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withHeight(Optional<Integer> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withAspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withAspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withAudioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
public GetLibraryItemsMedia withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withAudioChannels(Optional<Integer> audioChannels) {
|
||||
public GetLibraryItemsMedia withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withAudioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withAudioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withAudioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoResolution(Optional<String> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withPart(List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
public GetLibraryItemsMedia withHasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withPart(Optional<? extends List<GetLibraryItemsPart>> part) {
|
||||
public GetLibraryItemsMedia withHasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMedia withPart(List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
@@ -388,6 +351,7 @@ public class GetLibraryItemsMedia {
|
||||
Objects.deepEquals(this.width, other.width) &&
|
||||
Objects.deepEquals(this.height, other.height) &&
|
||||
Objects.deepEquals(this.aspectRatio, other.aspectRatio) &&
|
||||
Objects.deepEquals(this.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.audioChannels, other.audioChannels) &&
|
||||
Objects.deepEquals(this.audioCodec, other.audioCodec) &&
|
||||
Objects.deepEquals(this.videoCodec, other.videoCodec) &&
|
||||
@@ -395,6 +359,7 @@ public class GetLibraryItemsMedia {
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.videoFrameRate, other.videoFrameRate) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.hasVoiceActivity, other.hasVoiceActivity) &&
|
||||
Objects.deepEquals(this.part, other.part);
|
||||
}
|
||||
|
||||
@@ -407,6 +372,7 @@ public class GetLibraryItemsMedia {
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioProfile,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
@@ -414,6 +380,7 @@ public class GetLibraryItemsMedia {
|
||||
container,
|
||||
videoFrameRate,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
part);
|
||||
}
|
||||
|
||||
@@ -426,6 +393,7 @@ public class GetLibraryItemsMedia {
|
||||
"width", width,
|
||||
"height", height,
|
||||
"aspectRatio", aspectRatio,
|
||||
"audioProfile", audioProfile,
|
||||
"audioChannels", audioChannels,
|
||||
"audioCodec", audioCodec,
|
||||
"videoCodec", videoCodec,
|
||||
@@ -433,206 +401,151 @@ public class GetLibraryItemsMedia {
|
||||
"container", container,
|
||||
"videoFrameRate", videoFrameRate,
|
||||
"videoProfile", videoProfile,
|
||||
"hasVoiceActivity", hasVoiceActivity,
|
||||
"part", part);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
private Integer id;
|
||||
|
||||
private Optional<Integer> duration = Optional.empty();
|
||||
private Integer duration;
|
||||
|
||||
private Optional<Integer> bitrate = Optional.empty();
|
||||
private Integer bitrate;
|
||||
|
||||
private Optional<Integer> width = Optional.empty();
|
||||
private Integer width;
|
||||
|
||||
private Optional<Integer> height = Optional.empty();
|
||||
private Integer height;
|
||||
|
||||
private Optional<Double> aspectRatio = Optional.empty();
|
||||
private Double aspectRatio;
|
||||
|
||||
private Optional<Integer> audioChannels = Optional.empty();
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<String> audioCodec = Optional.empty();
|
||||
private Integer audioChannels;
|
||||
|
||||
private Optional<String> videoCodec = Optional.empty();
|
||||
private String audioCodec;
|
||||
|
||||
private Optional<String> videoResolution = Optional.empty();
|
||||
private String videoCodec;
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
private String videoResolution;
|
||||
|
||||
private Optional<String> videoFrameRate = Optional.empty();
|
||||
private String container;
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
private String videoFrameRate;
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsPart>> part = Optional.empty();
|
||||
private String videoProfile;
|
||||
|
||||
private Optional<Boolean> hasVoiceActivity = Optional.empty();
|
||||
|
||||
private List<GetLibraryItemsPart> part;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bitrate(Optional<Integer> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder width(Optional<Integer> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder height(Optional<Integer> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(double aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder aspectRatio(Optional<Double> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
public Builder audioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(Optional<Integer> audioChannels) {
|
||||
public Builder audioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder audioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoResolution(Optional<String> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
public Builder hasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(Optional<? extends List<GetLibraryItemsPart>> part) {
|
||||
public Builder hasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder part(List<GetLibraryItemsPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
@@ -646,6 +559,7 @@ public class GetLibraryItemsMedia {
|
||||
width,
|
||||
height,
|
||||
aspectRatio,
|
||||
audioProfile,
|
||||
audioChannels,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
@@ -653,6 +567,7 @@ public class GetLibraryItemsMedia {
|
||||
container,
|
||||
videoFrameRate,
|
||||
videoProfile,
|
||||
hasVoiceActivity,
|
||||
part);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,9 +26,22 @@ public class GetLibraryItemsMediaContainer {
|
||||
@JsonProperty("size")
|
||||
private int size;
|
||||
|
||||
@JsonProperty("totalSize")
|
||||
private int totalSize;
|
||||
|
||||
@JsonProperty("offset")
|
||||
private int offset;
|
||||
|
||||
@JsonProperty("content")
|
||||
private String content;
|
||||
|
||||
@JsonProperty("allowSync")
|
||||
private boolean allowSync;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("nocache")
|
||||
private Optional<Boolean> nocache;
|
||||
|
||||
@JsonProperty("art")
|
||||
private String art;
|
||||
|
||||
@@ -70,9 +83,8 @@ public class GetLibraryItemsMediaContainer {
|
||||
@JsonProperty("mixedParents")
|
||||
private Optional<Boolean> mixedParents;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
private Optional<? extends List<GetLibraryItemsMetadata>> metadata;
|
||||
private List<GetLibraryItemsMetadata> metadata;
|
||||
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
@@ -85,7 +97,11 @@ public class GetLibraryItemsMediaContainer {
|
||||
@JsonCreator
|
||||
public GetLibraryItemsMediaContainer(
|
||||
@JsonProperty("size") int size,
|
||||
@JsonProperty("totalSize") int totalSize,
|
||||
@JsonProperty("offset") int offset,
|
||||
@JsonProperty("content") String content,
|
||||
@JsonProperty("allowSync") boolean allowSync,
|
||||
@JsonProperty("nocache") Optional<Boolean> nocache,
|
||||
@JsonProperty("art") String art,
|
||||
@JsonProperty("identifier") String identifier,
|
||||
@JsonProperty("librarySectionID") LibrarySectionID librarySectionID,
|
||||
@@ -99,10 +115,14 @@ public class GetLibraryItemsMediaContainer {
|
||||
@JsonProperty("viewGroup") String viewGroup,
|
||||
@JsonProperty("viewMode") Optional<Integer> viewMode,
|
||||
@JsonProperty("mixedParents") Optional<Boolean> mixedParents,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetLibraryItemsMetadata>> metadata,
|
||||
@JsonProperty("Metadata") List<GetLibraryItemsMetadata> metadata,
|
||||
@JsonProperty("Meta") Optional<? extends Meta> meta) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
Utils.checkNotNull(content, "content");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
Utils.checkNotNull(art, "art");
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
@@ -119,7 +139,11 @@ public class GetLibraryItemsMediaContainer {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.size = size;
|
||||
this.totalSize = totalSize;
|
||||
this.offset = offset;
|
||||
this.content = content;
|
||||
this.allowSync = allowSync;
|
||||
this.nocache = nocache;
|
||||
this.art = art;
|
||||
this.identifier = identifier;
|
||||
this.librarySectionID = librarySectionID;
|
||||
@@ -139,6 +163,9 @@ public class GetLibraryItemsMediaContainer {
|
||||
|
||||
public GetLibraryItemsMediaContainer(
|
||||
int size,
|
||||
int totalSize,
|
||||
int offset,
|
||||
String content,
|
||||
boolean allowSync,
|
||||
String art,
|
||||
String identifier,
|
||||
@@ -150,8 +177,9 @@ public class GetLibraryItemsMediaContainer {
|
||||
String thumb,
|
||||
String title1,
|
||||
String title2,
|
||||
String viewGroup) {
|
||||
this(size, allowSync, art, identifier, librarySectionID, librarySectionTitle, librarySectionUUID, mediaTagPrefix, mediaTagVersion, thumb, title1, title2, viewGroup, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
String viewGroup,
|
||||
List<GetLibraryItemsMetadata> metadata) {
|
||||
this(size, totalSize, offset, content, allowSync, Optional.empty(), art, identifier, librarySectionID, librarySectionTitle, librarySectionUUID, mediaTagPrefix, mediaTagVersion, thumb, title1, title2, viewGroup, Optional.empty(), Optional.empty(), metadata, Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -159,11 +187,31 @@ public class GetLibraryItemsMediaContainer {
|
||||
return size;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public int totalSize() {
|
||||
return totalSize;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public int offset() {
|
||||
return offset;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String content() {
|
||||
return content;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> nocache() {
|
||||
return nocache;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String art() {
|
||||
return art;
|
||||
@@ -229,10 +277,9 @@ public class GetLibraryItemsMediaContainer {
|
||||
return mixedParents;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsMetadata>> metadata() {
|
||||
return (Optional<List<GetLibraryItemsMetadata>>) metadata;
|
||||
public List<GetLibraryItemsMetadata> metadata() {
|
||||
return metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -255,12 +302,42 @@ public class GetLibraryItemsMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withTotalSize(int totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = totalSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withOffset(int offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withContent(String content) {
|
||||
Utils.checkNotNull(content, "content");
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withNocache(boolean nocache) {
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
this.nocache = Optional.ofNullable(nocache);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withNocache(Optional<Boolean> nocache) {
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
this.nocache = nocache;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withArt(String art) {
|
||||
Utils.checkNotNull(art, "art");
|
||||
this.art = art;
|
||||
@@ -352,12 +429,6 @@ public class GetLibraryItemsMediaContainer {
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withMetadata(List<GetLibraryItemsMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsMediaContainer withMetadata(Optional<? extends List<GetLibraryItemsMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
@@ -394,7 +465,11 @@ public class GetLibraryItemsMediaContainer {
|
||||
GetLibraryItemsMediaContainer other = (GetLibraryItemsMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.totalSize, other.totalSize) &&
|
||||
Objects.deepEquals(this.offset, other.offset) &&
|
||||
Objects.deepEquals(this.content, other.content) &&
|
||||
Objects.deepEquals(this.allowSync, other.allowSync) &&
|
||||
Objects.deepEquals(this.nocache, other.nocache) &&
|
||||
Objects.deepEquals(this.art, other.art) &&
|
||||
Objects.deepEquals(this.identifier, other.identifier) &&
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
@@ -416,7 +491,11 @@ public class GetLibraryItemsMediaContainer {
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
size,
|
||||
totalSize,
|
||||
offset,
|
||||
content,
|
||||
allowSync,
|
||||
nocache,
|
||||
art,
|
||||
identifier,
|
||||
librarySectionID,
|
||||
@@ -438,7 +517,11 @@ public class GetLibraryItemsMediaContainer {
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsMediaContainer.class,
|
||||
"size", size,
|
||||
"totalSize", totalSize,
|
||||
"offset", offset,
|
||||
"content", content,
|
||||
"allowSync", allowSync,
|
||||
"nocache", nocache,
|
||||
"art", art,
|
||||
"identifier", identifier,
|
||||
"librarySectionID", librarySectionID,
|
||||
@@ -460,8 +543,16 @@ public class GetLibraryItemsMediaContainer {
|
||||
|
||||
private Integer size;
|
||||
|
||||
private Integer totalSize;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
private String content;
|
||||
|
||||
private Boolean allowSync;
|
||||
|
||||
private Optional<Boolean> nocache = Optional.empty();
|
||||
|
||||
private String art;
|
||||
|
||||
private String identifier;
|
||||
@@ -488,7 +579,7 @@ public class GetLibraryItemsMediaContainer {
|
||||
|
||||
private Optional<Boolean> mixedParents = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsMetadata>> metadata = Optional.empty();
|
||||
private List<GetLibraryItemsMetadata> metadata;
|
||||
|
||||
private Optional<? extends Meta> meta = Optional.empty();
|
||||
|
||||
@@ -502,12 +593,42 @@ public class GetLibraryItemsMediaContainer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder totalSize(int totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = totalSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder offset(int offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder content(String content) {
|
||||
Utils.checkNotNull(content, "content");
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder nocache(boolean nocache) {
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
this.nocache = Optional.ofNullable(nocache);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder nocache(Optional<Boolean> nocache) {
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
this.nocache = nocache;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder art(String art) {
|
||||
Utils.checkNotNull(art, "art");
|
||||
this.art = art;
|
||||
@@ -599,12 +720,6 @@ public class GetLibraryItemsMediaContainer {
|
||||
}
|
||||
|
||||
public Builder metadata(List<GetLibraryItemsMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder metadata(Optional<? extends List<GetLibraryItemsMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
@@ -633,7 +748,11 @@ public class GetLibraryItemsMediaContainer {
|
||||
public GetLibraryItemsMediaContainer build() {
|
||||
return new GetLibraryItemsMediaContainer(
|
||||
size,
|
||||
totalSize,
|
||||
offset,
|
||||
content,
|
||||
allowSync,
|
||||
nocache,
|
||||
art,
|
||||
identifier,
|
||||
librarySectionID,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -10,196 +10,242 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
public class GetLibraryItemsPart {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<Integer> id;
|
||||
private int id;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("key")
|
||||
private Optional<String> key;
|
||||
private String key;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("duration")
|
||||
private Optional<Integer> duration;
|
||||
private int duration;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("file")
|
||||
private Optional<String> file;
|
||||
private String file;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("size")
|
||||
private Optional<Long> size;
|
||||
private long size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
@JsonProperty("container")
|
||||
private Optional<String> container;
|
||||
private String container;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("audioProfile")
|
||||
private Optional<String> audioProfile;
|
||||
|
||||
@JsonProperty("videoProfile")
|
||||
private Optional<String> videoProfile;
|
||||
private String videoProfile;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("indexes")
|
||||
private Optional<String> indexes;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasThumbnail")
|
||||
private Optional<? extends HasThumbnail> hasThumbnail;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsPart(
|
||||
@JsonProperty("id") Optional<Integer> id,
|
||||
@JsonProperty("key") Optional<String> key,
|
||||
@JsonProperty("duration") Optional<Integer> duration,
|
||||
@JsonProperty("file") Optional<String> file,
|
||||
@JsonProperty("size") Optional<Long> size,
|
||||
@JsonProperty("container") Optional<String> container,
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile) {
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("duration") int duration,
|
||||
@JsonProperty("file") String file,
|
||||
@JsonProperty("size") long size,
|
||||
@JsonProperty("container") String container,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("videoProfile") String videoProfile,
|
||||
@JsonProperty("indexes") Optional<String> indexes,
|
||||
@JsonProperty("hasThumbnail") Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(file, "file");
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(container, "container");
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.id = id;
|
||||
this.key = key;
|
||||
this.duration = duration;
|
||||
this.file = file;
|
||||
this.size = size;
|
||||
this.container = container;
|
||||
this.audioProfile = audioProfile;
|
||||
this.videoProfile = videoProfile;
|
||||
this.indexes = indexes;
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetLibraryItemsPart(
|
||||
int id,
|
||||
String key,
|
||||
int duration,
|
||||
String file,
|
||||
long size,
|
||||
String container,
|
||||
String videoProfile) {
|
||||
this(id, key, duration, file, size, container, Optional.empty(), videoProfile, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> key() {
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Integer> duration() {
|
||||
public int duration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> file() {
|
||||
public String file() {
|
||||
return file;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<Long> size() {
|
||||
public long size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> container() {
|
||||
public String container() {
|
||||
return container;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> videoProfile() {
|
||||
public Optional<String> audioProfile() {
|
||||
return audioProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String videoProfile() {
|
||||
return videoProfile;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> indexes() {
|
||||
return indexes;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<HasThumbnail> hasThumbnail() {
|
||||
return (Optional<HasThumbnail>) hasThumbnail;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withId(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withDuration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withFile(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withFile(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withSize(long size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withSize(Optional<Long> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsPart withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
public GetLibraryItemsPart withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withVideoProfile(Optional<String> videoProfile) {
|
||||
public GetLibraryItemsPart withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withIndexes(String indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = Optional.ofNullable(indexes);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withIndexes(Optional<String> indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = indexes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withHasThumbnail(HasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart withHasThumbnail(Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -217,7 +263,10 @@ public class GetLibraryItemsPart {
|
||||
Objects.deepEquals(this.file, other.file) &&
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.container, other.container) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile);
|
||||
Objects.deepEquals(this.audioProfile, other.audioProfile) &&
|
||||
Objects.deepEquals(this.videoProfile, other.videoProfile) &&
|
||||
Objects.deepEquals(this.indexes, other.indexes) &&
|
||||
Objects.deepEquals(this.hasThumbnail, other.hasThumbnail);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -229,7 +278,10 @@ public class GetLibraryItemsPart {
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
videoProfile);
|
||||
audioProfile,
|
||||
videoProfile,
|
||||
indexes,
|
||||
hasThumbnail);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -241,123 +293,141 @@ public class GetLibraryItemsPart {
|
||||
"file", file,
|
||||
"size", size,
|
||||
"container", container,
|
||||
"videoProfile", videoProfile);
|
||||
"audioProfile", audioProfile,
|
||||
"videoProfile", videoProfile,
|
||||
"indexes", indexes,
|
||||
"hasThumbnail", hasThumbnail);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> id = Optional.empty();
|
||||
private Integer id;
|
||||
|
||||
private Optional<String> key = Optional.empty();
|
||||
private String key;
|
||||
|
||||
private Optional<Integer> duration = Optional.empty();
|
||||
private Integer duration;
|
||||
|
||||
private Optional<String> file = Optional.empty();
|
||||
private String file;
|
||||
|
||||
private Optional<Long> size = Optional.empty();
|
||||
private Long size;
|
||||
|
||||
private Optional<String> container = Optional.empty();
|
||||
private String container;
|
||||
|
||||
private Optional<String> videoProfile = Optional.empty();
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private String videoProfile;
|
||||
|
||||
private Optional<String> indexes = Optional.empty();
|
||||
|
||||
private Optional<? extends HasThumbnail> hasThumbnail;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder id(Optional<Integer> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder key(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder duration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = Optional.ofNullable(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder file(Optional<String> file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(long size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Long> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The container format of the media file.
|
||||
*
|
||||
*/
|
||||
public Builder container(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder container(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
public Builder audioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(Optional<String> videoProfile) {
|
||||
public Builder audioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder videoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder indexes(String indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = Optional.ofNullable(indexes);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder indexes(Optional<String> indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = indexes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(HasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(Optional<? extends HasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsPart build() {
|
||||
return new GetLibraryItemsPart(
|
||||
if (hasThumbnail == null) {
|
||||
hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value();
|
||||
} return new GetLibraryItemsPart(
|
||||
id,
|
||||
key,
|
||||
duration,
|
||||
file,
|
||||
size,
|
||||
container,
|
||||
videoProfile);
|
||||
audioProfile,
|
||||
videoProfile,
|
||||
indexes,
|
||||
hasThumbnail);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends HasThumbnail>> _SINGLETON_VALUE_HasThumbnail =
|
||||
new LazySingletonValue<>(
|
||||
"hasThumbnail",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends HasThumbnail>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ public class GetLibraryItemsRequest {
|
||||
*
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private Type type;
|
||||
private Optional<? extends Type> type;
|
||||
|
||||
/**
|
||||
* The index of the first item to return. If not specified, the first item will be returned.
|
||||
@@ -85,7 +85,7 @@ public class GetLibraryItemsRequest {
|
||||
Tag tag,
|
||||
Optional<? extends IncludeGuids> includeGuids,
|
||||
Optional<? extends IncludeMeta> includeMeta,
|
||||
Type type,
|
||||
Optional<? extends Type> type,
|
||||
Optional<Integer> xPlexContainerStart,
|
||||
Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
@@ -106,9 +106,8 @@ public class GetLibraryItemsRequest {
|
||||
|
||||
public GetLibraryItemsRequest(
|
||||
int sectionKey,
|
||||
Tag tag,
|
||||
Type type) {
|
||||
this(sectionKey, tag, Optional.empty(), Optional.empty(), type, Optional.empty(), Optional.empty());
|
||||
Tag tag) {
|
||||
this(sectionKey, tag, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -158,9 +157,10 @@ public class GetLibraryItemsRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Type type() {
|
||||
return type;
|
||||
public Optional<Type> type() {
|
||||
return (Optional<Type>) type;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -259,6 +259,21 @@ public class GetLibraryItemsRequest {
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withType(Type type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsRequest withType(Optional<? extends Type> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -365,7 +380,7 @@ public class GetLibraryItemsRequest {
|
||||
|
||||
private Optional<? extends IncludeMeta> includeMeta;
|
||||
|
||||
private Type type;
|
||||
private Optional<? extends Type> type = Optional.empty();
|
||||
|
||||
private Optional<Integer> xPlexContainerStart;
|
||||
|
||||
@@ -445,6 +460,21 @@ public class GetLibraryItemsRequest {
|
||||
*
|
||||
*/
|
||||
public Builder type(Type type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve.
|
||||
* 1 = movie
|
||||
* 2 = show
|
||||
* 3 = season
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*
|
||||
*/
|
||||
public Builder type(Optional<? extends Type> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
|
||||
@@ -10,9 +10,13 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -23,8 +27,25 @@ public class GetLibraryItemsSort {
|
||||
@JsonProperty("default")
|
||||
private Optional<String> default_;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("active")
|
||||
private Optional<Boolean> active;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("activeDirection")
|
||||
private Optional<? extends ActiveDirection> activeDirection;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("defaultDirection")
|
||||
private String defaultDirection;
|
||||
private Optional<? extends DefaultDirection> defaultDirection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("descKey")
|
||||
@@ -43,18 +64,24 @@ public class GetLibraryItemsSort {
|
||||
@JsonCreator
|
||||
public GetLibraryItemsSort(
|
||||
@JsonProperty("default") Optional<String> default_,
|
||||
@JsonProperty("defaultDirection") String defaultDirection,
|
||||
@JsonProperty("active") Optional<Boolean> active,
|
||||
@JsonProperty("activeDirection") Optional<? extends ActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends DefaultDirection> defaultDirection,
|
||||
@JsonProperty("descKey") Optional<String> descKey,
|
||||
@JsonProperty("firstCharacterKey") Optional<String> firstCharacterKey,
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.default_ = default_;
|
||||
this.active = active;
|
||||
this.activeDirection = activeDirection;
|
||||
this.defaultDirection = defaultDirection;
|
||||
this.descKey = descKey;
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
@@ -63,10 +90,9 @@ public class GetLibraryItemsSort {
|
||||
}
|
||||
|
||||
public GetLibraryItemsSort(
|
||||
String defaultDirection,
|
||||
String key,
|
||||
String title) {
|
||||
this(Optional.empty(), defaultDirection, Optional.empty(), Optional.empty(), key, title);
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), key, title);
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -75,8 +101,28 @@ public class GetLibraryItemsSort {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String defaultDirection() {
|
||||
return defaultDirection;
|
||||
public Optional<Boolean> active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<ActiveDirection> activeDirection() {
|
||||
return (Optional<ActiveDirection>) activeDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<DefaultDirection> defaultDirection() {
|
||||
return (Optional<DefaultDirection>) defaultDirection;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -115,7 +161,53 @@ public class GetLibraryItemsSort {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsSort withDefaultDirection(String defaultDirection) {
|
||||
public GetLibraryItemsSort withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsSort withActive(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withActiveDirection(ActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withActiveDirection(Optional<? extends ActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withDefaultDirection(DefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public GetLibraryItemsSort withDefaultDirection(Optional<? extends DefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
@@ -168,6 +260,8 @@ public class GetLibraryItemsSort {
|
||||
GetLibraryItemsSort other = (GetLibraryItemsSort) o;
|
||||
return
|
||||
Objects.deepEquals(this.default_, other.default_) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.activeDirection, other.activeDirection) &&
|
||||
Objects.deepEquals(this.defaultDirection, other.defaultDirection) &&
|
||||
Objects.deepEquals(this.descKey, other.descKey) &&
|
||||
Objects.deepEquals(this.firstCharacterKey, other.firstCharacterKey) &&
|
||||
@@ -179,6 +273,8 @@ public class GetLibraryItemsSort {
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
@@ -190,6 +286,8 @@ public class GetLibraryItemsSort {
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsSort.class,
|
||||
"default_", default_,
|
||||
"active", active,
|
||||
"activeDirection", activeDirection,
|
||||
"defaultDirection", defaultDirection,
|
||||
"descKey", descKey,
|
||||
"firstCharacterKey", firstCharacterKey,
|
||||
@@ -201,7 +299,11 @@ public class GetLibraryItemsSort {
|
||||
|
||||
private Optional<String> default_ = Optional.empty();
|
||||
|
||||
private String defaultDirection;
|
||||
private Optional<Boolean> active = Optional.empty();
|
||||
|
||||
private Optional<? extends ActiveDirection> activeDirection;
|
||||
|
||||
private Optional<? extends DefaultDirection> defaultDirection;
|
||||
|
||||
private Optional<String> descKey = Optional.empty();
|
||||
|
||||
@@ -227,7 +329,53 @@ public class GetLibraryItemsSort {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder defaultDirection(String defaultDirection) {
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(ActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder activeDirection(Optional<? extends ActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(DefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*
|
||||
*/
|
||||
public Builder defaultDirection(Optional<? extends DefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
@@ -270,14 +418,33 @@ public class GetLibraryItemsSort {
|
||||
}
|
||||
|
||||
public GetLibraryItemsSort build() {
|
||||
return new GetLibraryItemsSort(
|
||||
if (activeDirection == null) {
|
||||
activeDirection = _SINGLETON_VALUE_ActiveDirection.value();
|
||||
}
|
||||
if (defaultDirection == null) {
|
||||
defaultDirection = _SINGLETON_VALUE_DefaultDirection.value();
|
||||
} return new GetLibraryItemsSort(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
defaultDirection,
|
||||
descKey,
|
||||
firstCharacterKey,
|
||||
key,
|
||||
title);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends ActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
new LazySingletonValue<>(
|
||||
"activeDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends ActiveDirection>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends DefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
new LazySingletonValue<>(
|
||||
"defaultDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends DefaultDirection>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,316 +4,27 @@
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Override;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsType - The type of media content
|
||||
*
|
||||
*/
|
||||
public enum GetLibraryItemsType {
|
||||
Movie("movie"),
|
||||
TvShow("show"),
|
||||
Season("season"),
|
||||
Episode("episode");
|
||||
|
||||
public class GetLibraryItemsType {
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("title")
|
||||
private String title;
|
||||
|
||||
@JsonProperty("active")
|
||||
private boolean active;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<GetLibraryItemsField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibraryItemsType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetLibraryItemsFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetLibraryItemsSort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(title, "title");
|
||||
Utils.checkNotNull(active, "active");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.key = key;
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.active = active;
|
||||
this.filter = filter;
|
||||
this.sort = sort;
|
||||
this.field = field;
|
||||
private GetLibraryItemsType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
boolean active) {
|
||||
this(key, type, title, active, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String key() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String title() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public boolean active() {
|
||||
return active;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsFilter>> filter() {
|
||||
return (Optional<List<GetLibraryItemsFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsSort>> sort() {
|
||||
return (Optional<List<GetLibraryItemsSort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsField>> field() {
|
||||
return (Optional<List<GetLibraryItemsField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withFilter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withFilter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withSort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withSort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withField(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType withField(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibraryItemsType other = (GetLibraryItemsType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.sort, other.sort) &&
|
||||
Objects.deepEquals(this.field, other.field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibraryItemsType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"title", title,
|
||||
"active", active,
|
||||
"filter", filter,
|
||||
"sort", sort,
|
||||
"field", field);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String key;
|
||||
|
||||
private String type;
|
||||
|
||||
private String title;
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsSort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder key(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder title(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder active(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetLibraryItemsFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetLibraryItemsFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<GetLibraryItemsSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<GetLibraryItemsSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<GetLibraryItemsField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<GetLibraryItemsField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibraryItemsType build() {
|
||||
return new GetLibraryItemsType(
|
||||
key,
|
||||
type,
|
||||
title,
|
||||
active,
|
||||
filter,
|
||||
sort,
|
||||
field);
|
||||
}
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
*/
|
||||
public enum GetPlaylistContentsQueryParamType {
|
||||
Movie(1L),
|
||||
Show(2L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L);
|
||||
|
||||
|
||||
@@ -285,6 +285,10 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
@JsonProperty("uuid")
|
||||
private String uuid;
|
||||
|
||||
@JsonInclude(Include.ALWAYS)
|
||||
@JsonProperty("attributionPartner")
|
||||
private Optional<String> attributionPartner;
|
||||
|
||||
@JsonCreator
|
||||
public GetTokenDetailsUserPlexAccount(
|
||||
@JsonProperty("adsConsent") Optional<Boolean> adsConsent,
|
||||
@@ -326,7 +330,8 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("twoFactorEnabled") Optional<Boolean> twoFactorEnabled,
|
||||
@JsonProperty("username") String username,
|
||||
@JsonProperty("uuid") String uuid) {
|
||||
@JsonProperty("uuid") String uuid,
|
||||
@JsonProperty("attributionPartner") Optional<String> attributionPartner) {
|
||||
Utils.checkNotNull(adsConsent, "adsConsent");
|
||||
Utils.checkNotNull(adsConsentReminderAt, "adsConsentReminderAt");
|
||||
Utils.checkNotNull(adsConsentSetAt, "adsConsentSetAt");
|
||||
@@ -367,6 +372,7 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled");
|
||||
Utils.checkNotNull(username, "username");
|
||||
Utils.checkNotNull(uuid, "uuid");
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.adsConsent = adsConsent;
|
||||
this.adsConsentReminderAt = adsConsentReminderAt;
|
||||
this.adsConsentSetAt = adsConsentSetAt;
|
||||
@@ -407,6 +413,7 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
this.twoFactorEnabled = twoFactorEnabled;
|
||||
this.username = username;
|
||||
this.uuid = uuid;
|
||||
this.attributionPartner = attributionPartner;
|
||||
}
|
||||
|
||||
public GetTokenDetailsUserPlexAccount(
|
||||
@@ -430,7 +437,7 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
String title,
|
||||
String username,
|
||||
String uuid) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), authToken, Optional.empty(), Optional.empty(), country, email, Optional.empty(), Optional.empty(), friendlyName, entitlements, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), homeSize, id, joinedAt, Optional.empty(), Optional.empty(), mailingListStatus, maxHomeSize, Optional.empty(), profile, Optional.empty(), rememberExpiresAt, Optional.empty(), Optional.empty(), scrobbleTypes, services, subscription, Optional.empty(), subscriptions, thumb, title, Optional.empty(), username, uuid);
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), authToken, Optional.empty(), Optional.empty(), country, email, Optional.empty(), Optional.empty(), friendlyName, entitlements, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), homeSize, id, joinedAt, Optional.empty(), Optional.empty(), mailingListStatus, maxHomeSize, Optional.empty(), profile, Optional.empty(), rememberExpiresAt, Optional.empty(), Optional.empty(), scrobbleTypes, services, subscription, Optional.empty(), subscriptions, thumb, title, Optional.empty(), username, uuid, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -747,6 +754,11 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> attributionPartner() {
|
||||
return attributionPartner;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
@@ -1285,6 +1297,18 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
this.uuid = uuid;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTokenDetailsUserPlexAccount withAttributionPartner(String attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = Optional.ofNullable(attributionPartner);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTokenDetailsUserPlexAccount withAttributionPartner(Optional<String> attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = attributionPartner;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -1335,7 +1359,8 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
Objects.deepEquals(this.twoFactorEnabled, other.twoFactorEnabled) &&
|
||||
Objects.deepEquals(this.username, other.username) &&
|
||||
Objects.deepEquals(this.uuid, other.uuid);
|
||||
Objects.deepEquals(this.uuid, other.uuid) &&
|
||||
Objects.deepEquals(this.attributionPartner, other.attributionPartner);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1380,7 +1405,8 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
title,
|
||||
twoFactorEnabled,
|
||||
username,
|
||||
uuid);
|
||||
uuid,
|
||||
attributionPartner);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1425,7 +1451,8 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
"title", title,
|
||||
"twoFactorEnabled", twoFactorEnabled,
|
||||
"username", username,
|
||||
"uuid", uuid);
|
||||
"uuid", uuid,
|
||||
"attributionPartner", attributionPartner);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
@@ -1509,7 +1536,9 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
|
||||
private String username;
|
||||
|
||||
private String uuid;
|
||||
private String uuid;
|
||||
|
||||
private Optional<String> attributionPartner = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -2049,6 +2078,18 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
this.uuid = uuid;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder attributionPartner(String attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = Optional.ofNullable(attributionPartner);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder attributionPartner(Optional<String> attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = attributionPartner;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTokenDetailsUserPlexAccount build() {
|
||||
if (anonymous == null) {
|
||||
@@ -2129,7 +2170,8 @@ public class GetTokenDetailsUserPlexAccount {
|
||||
title,
|
||||
twoFactorEnabled,
|
||||
username,
|
||||
uuid);
|
||||
uuid,
|
||||
attributionPartner);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<JsonNullable<Boolean>> _SINGLETON_VALUE_Anonymous =
|
||||
|
||||
@@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
*/
|
||||
public enum GetTopWatchedContentQueryParamType {
|
||||
Movie(1L),
|
||||
Show(2L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L);
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
public enum HasThumbnail {
|
||||
False("0"),
|
||||
True("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private HasThumbnail(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ public class Meta {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Type")
|
||||
private Optional<? extends List<GetLibraryItemsType>> type;
|
||||
private Optional<? extends List<GetLibraryItemsLibraryType>> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
@@ -35,7 +35,7 @@ public class Meta {
|
||||
|
||||
@JsonCreator
|
||||
public Meta(
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibraryItemsType>> type,
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibraryItemsLibraryType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetLibraryItemsFieldType>> fieldType) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
@@ -49,8 +49,8 @@ public class Meta {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetLibraryItemsType>> type() {
|
||||
return (Optional<List<GetLibraryItemsType>>) type;
|
||||
public Optional<List<GetLibraryItemsLibraryType>> type() {
|
||||
return (Optional<List<GetLibraryItemsLibraryType>>) type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -63,13 +63,13 @@ public class Meta {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Meta withType(List<GetLibraryItemsType> type) {
|
||||
public Meta withType(List<GetLibraryItemsLibraryType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Meta withType(Optional<? extends List<GetLibraryItemsType>> type) {
|
||||
public Meta withType(Optional<? extends List<GetLibraryItemsLibraryType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -117,7 +117,7 @@ public class Meta {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsType>> type = Optional.empty();
|
||||
private Optional<? extends List<GetLibraryItemsLibraryType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetLibraryItemsFieldType>> fieldType = Optional.empty();
|
||||
|
||||
@@ -125,13 +125,13 @@ public class Meta {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(List<GetLibraryItemsType> type) {
|
||||
public Builder type(List<GetLibraryItemsLibraryType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<? extends List<GetLibraryItemsType>> type) {
|
||||
public Builder type(Optional<? extends List<GetLibraryItemsLibraryType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
|
||||
@@ -285,6 +285,10 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
@JsonProperty("uuid")
|
||||
private String uuid;
|
||||
|
||||
@JsonInclude(Include.ALWAYS)
|
||||
@JsonProperty("attributionPartner")
|
||||
private Optional<String> attributionPartner;
|
||||
|
||||
@JsonProperty("pastSubscriptions")
|
||||
private List<PastSubscription> pastSubscriptions;
|
||||
|
||||
@@ -333,6 +337,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
@JsonProperty("twoFactorEnabled") Optional<Boolean> twoFactorEnabled,
|
||||
@JsonProperty("username") String username,
|
||||
@JsonProperty("uuid") String uuid,
|
||||
@JsonProperty("attributionPartner") Optional<String> attributionPartner,
|
||||
@JsonProperty("pastSubscriptions") List<PastSubscription> pastSubscriptions,
|
||||
@JsonProperty("trials") List<Trials> trials) {
|
||||
Utils.checkNotNull(adsConsent, "adsConsent");
|
||||
@@ -375,6 +380,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
Utils.checkNotNull(twoFactorEnabled, "twoFactorEnabled");
|
||||
Utils.checkNotNull(username, "username");
|
||||
Utils.checkNotNull(uuid, "uuid");
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
Utils.checkNotNull(pastSubscriptions, "pastSubscriptions");
|
||||
Utils.checkNotNull(trials, "trials");
|
||||
this.adsConsent = adsConsent;
|
||||
@@ -417,6 +423,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
this.twoFactorEnabled = twoFactorEnabled;
|
||||
this.username = username;
|
||||
this.uuid = uuid;
|
||||
this.attributionPartner = attributionPartner;
|
||||
this.pastSubscriptions = pastSubscriptions;
|
||||
this.trials = trials;
|
||||
}
|
||||
@@ -444,7 +451,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
String uuid,
|
||||
List<PastSubscription> pastSubscriptions,
|
||||
List<Trials> trials) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), authToken, Optional.empty(), Optional.empty(), country, email, Optional.empty(), Optional.empty(), friendlyName, entitlements, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), homeSize, id, joinedAt, Optional.empty(), Optional.empty(), mailingListStatus, maxHomeSize, Optional.empty(), profile, Optional.empty(), rememberExpiresAt, Optional.empty(), Optional.empty(), scrobbleTypes, services, subscription, Optional.empty(), subscriptions, thumb, title, Optional.empty(), username, uuid, pastSubscriptions, trials);
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined(), authToken, Optional.empty(), Optional.empty(), country, email, Optional.empty(), Optional.empty(), friendlyName, entitlements, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), homeSize, id, joinedAt, Optional.empty(), Optional.empty(), mailingListStatus, maxHomeSize, Optional.empty(), profile, Optional.empty(), rememberExpiresAt, Optional.empty(), Optional.empty(), scrobbleTypes, services, subscription, Optional.empty(), subscriptions, thumb, title, Optional.empty(), username, uuid, Optional.empty(), pastSubscriptions, trials);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -761,6 +768,11 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> attributionPartner() {
|
||||
return attributionPartner;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<PastSubscription> pastSubscriptions() {
|
||||
return pastSubscriptions;
|
||||
@@ -1310,6 +1322,18 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataUserPlexAccount withAttributionPartner(String attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = Optional.ofNullable(attributionPartner);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataUserPlexAccount withAttributionPartner(Optional<String> attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = attributionPartner;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PostUsersSignInDataUserPlexAccount withPastSubscriptions(List<PastSubscription> pastSubscriptions) {
|
||||
Utils.checkNotNull(pastSubscriptions, "pastSubscriptions");
|
||||
this.pastSubscriptions = pastSubscriptions;
|
||||
@@ -1372,6 +1396,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
Objects.deepEquals(this.twoFactorEnabled, other.twoFactorEnabled) &&
|
||||
Objects.deepEquals(this.username, other.username) &&
|
||||
Objects.deepEquals(this.uuid, other.uuid) &&
|
||||
Objects.deepEquals(this.attributionPartner, other.attributionPartner) &&
|
||||
Objects.deepEquals(this.pastSubscriptions, other.pastSubscriptions) &&
|
||||
Objects.deepEquals(this.trials, other.trials);
|
||||
}
|
||||
@@ -1419,6 +1444,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
twoFactorEnabled,
|
||||
username,
|
||||
uuid,
|
||||
attributionPartner,
|
||||
pastSubscriptions,
|
||||
trials);
|
||||
}
|
||||
@@ -1466,6 +1492,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
"twoFactorEnabled", twoFactorEnabled,
|
||||
"username", username,
|
||||
"uuid", uuid,
|
||||
"attributionPartner", attributionPartner,
|
||||
"pastSubscriptions", pastSubscriptions,
|
||||
"trials", trials);
|
||||
}
|
||||
@@ -1553,6 +1580,8 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
|
||||
private String uuid;
|
||||
|
||||
private Optional<String> attributionPartner = Optional.empty();
|
||||
|
||||
private List<PastSubscription> pastSubscriptions;
|
||||
|
||||
private List<Trials> trials;
|
||||
@@ -2096,6 +2125,18 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder attributionPartner(String attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = Optional.ofNullable(attributionPartner);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder attributionPartner(Optional<String> attributionPartner) {
|
||||
Utils.checkNotNull(attributionPartner, "attributionPartner");
|
||||
this.attributionPartner = attributionPartner;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder pastSubscriptions(List<PastSubscription> pastSubscriptions) {
|
||||
Utils.checkNotNull(pastSubscriptions, "pastSubscriptions");
|
||||
this.pastSubscriptions = pastSubscriptions;
|
||||
@@ -2188,6 +2229,7 @@ public class PostUsersSignInDataUserPlexAccount {
|
||||
twoFactorEnabled,
|
||||
username,
|
||||
uuid,
|
||||
attributionPartner,
|
||||
pastSubscriptions,
|
||||
trials);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
*/
|
||||
public enum QueryParamType {
|
||||
Movie(1L),
|
||||
Show(2L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L);
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* 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"),
|
||||
Aired("aired"),
|
||||
Dvd("dvd"),
|
||||
Absolute("absolute");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private ShowOrdering(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
*/
|
||||
public enum Type {
|
||||
Movie(1L),
|
||||
Show(2L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L);
|
||||
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public class UltraBlurColors {
|
||||
|
||||
@JsonProperty("topLeft")
|
||||
private String topLeft;
|
||||
|
||||
@JsonProperty("topRight")
|
||||
private String topRight;
|
||||
|
||||
@JsonProperty("bottomRight")
|
||||
private String bottomRight;
|
||||
|
||||
@JsonProperty("bottomLeft")
|
||||
private String bottomLeft;
|
||||
|
||||
@JsonCreator
|
||||
public UltraBlurColors(
|
||||
@JsonProperty("topLeft") String topLeft,
|
||||
@JsonProperty("topRight") String topRight,
|
||||
@JsonProperty("bottomRight") String bottomRight,
|
||||
@JsonProperty("bottomLeft") String bottomLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.topLeft = topLeft;
|
||||
this.topRight = topRight;
|
||||
this.bottomRight = bottomRight;
|
||||
this.bottomLeft = bottomLeft;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String topLeft() {
|
||||
return topLeft;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String topRight() {
|
||||
return topRight;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String bottomRight() {
|
||||
return bottomRight;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String bottomLeft() {
|
||||
return bottomLeft;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public UltraBlurColors withTopLeft(String topLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
this.topLeft = topLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UltraBlurColors withTopRight(String topRight) {
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
this.topRight = topRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UltraBlurColors withBottomRight(String bottomRight) {
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
this.bottomRight = bottomRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UltraBlurColors withBottomLeft(String bottomLeft) {
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.bottomLeft = bottomLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UltraBlurColors other = (UltraBlurColors) o;
|
||||
return
|
||||
Objects.deepEquals(this.topLeft, other.topLeft) &&
|
||||
Objects.deepEquals(this.topRight, other.topRight) &&
|
||||
Objects.deepEquals(this.bottomRight, other.bottomRight) &&
|
||||
Objects.deepEquals(this.bottomLeft, other.bottomLeft);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
topLeft,
|
||||
topRight,
|
||||
bottomRight,
|
||||
bottomLeft);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(UltraBlurColors.class,
|
||||
"topLeft", topLeft,
|
||||
"topRight", topRight,
|
||||
"bottomRight", bottomRight,
|
||||
"bottomLeft", bottomLeft);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String topLeft;
|
||||
|
||||
private String topRight;
|
||||
|
||||
private String bottomRight;
|
||||
|
||||
private String bottomLeft;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder topLeft(String topLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
this.topLeft = topLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder topRight(String topRight) {
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
this.topRight = topRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bottomRight(String bottomRight) {
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
this.bottomRight = bottomRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder bottomLeft(String bottomLeft) {
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.bottomLeft = bottomLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UltraBlurColors build() {
|
||||
return new UltraBlurColors(
|
||||
topLeft,
|
||||
topRight,
|
||||
bottomRight,
|
||||
bottomLeft);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user