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.555.2
This commit is contained in:
@@ -71,7 +71,7 @@ public class Activities implements
|
||||
*/
|
||||
public GetServerActivitiesResponse getServerActivitiesDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/activities");
|
||||
@@ -81,14 +81,15 @@ public class Activities implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
@@ -101,6 +102,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
@@ -111,6 +113,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
@@ -121,6 +124,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerActivities",
|
||||
Optional.of(List.of()),
|
||||
@@ -242,7 +246,7 @@ public class Activities implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
CancelServerActivitiesRequest.class,
|
||||
_baseUrl,
|
||||
@@ -254,14 +258,15 @@ public class Activities implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
@@ -274,6 +279,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
@@ -284,6 +290,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
@@ -294,6 +301,7 @@ public class Activities implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"cancelServerActivities",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -109,7 +109,7 @@ public class Authentication implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/security/token");
|
||||
@@ -124,14 +124,15 @@ public class Authentication implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
@@ -144,6 +145,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
@@ -154,6 +156,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
@@ -164,6 +167,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTransientToken",
|
||||
Optional.of(List.of()),
|
||||
@@ -276,7 +280,7 @@ public class Authentication implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/security/resources");
|
||||
@@ -291,14 +295,15 @@ public class Authentication implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
@@ -311,6 +316,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
@@ -321,6 +327,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
@@ -331,6 +338,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSourceConnectionInformation",
|
||||
Optional.of(List.of()),
|
||||
@@ -461,14 +469,15 @@ public class Authentication implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
@@ -481,6 +490,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
@@ -491,6 +501,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
@@ -501,6 +512,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenDetails",
|
||||
Optional.of(List.of()),
|
||||
@@ -657,11 +669,12 @@ public class Authentication implements
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
@@ -674,6 +687,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
@@ -684,6 +698,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
@@ -694,6 +709,7 @@ public class Authentication implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"post-users-sign-in-data",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -83,7 +83,7 @@ public class Butler implements
|
||||
*/
|
||||
public GetButlerTasksResponse getButlerTasksDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/butler");
|
||||
@@ -93,14 +93,15 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -113,6 +114,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -123,6 +125,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -133,6 +136,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getButlerTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -254,7 +258,7 @@ public class Butler implements
|
||||
*/
|
||||
public StartAllTasksResponse startAllTasksDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/butler");
|
||||
@@ -264,14 +268,15 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -284,6 +289,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -294,6 +300,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -304,6 +311,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -406,7 +414,7 @@ public class Butler implements
|
||||
*/
|
||||
public StopAllTasksResponse stopAllTasksDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/butler");
|
||||
@@ -416,14 +424,15 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -436,6 +445,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -446,6 +456,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -456,6 +467,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopAllTasks",
|
||||
Optional.of(List.of()),
|
||||
@@ -574,7 +586,7 @@ public class Butler implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
StartTaskRequest.class,
|
||||
_baseUrl,
|
||||
@@ -586,14 +598,15 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
@@ -606,6 +619,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
@@ -616,6 +630,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
@@ -626,6 +641,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startTask",
|
||||
Optional.of(List.of()),
|
||||
@@ -736,7 +752,7 @@ public class Butler implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
StopTaskRequest.class,
|
||||
_baseUrl,
|
||||
@@ -748,14 +764,15 @@ public class Butler implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
@@ -768,6 +785,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
@@ -778,6 +796,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
@@ -788,6 +807,7 @@ public class Butler implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTask",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -98,7 +98,7 @@ public class Hubs implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/hubs");
|
||||
@@ -113,14 +113,15 @@ public class Hubs implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
@@ -133,6 +134,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
@@ -143,6 +145,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
@@ -153,6 +156,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGlobalHubs",
|
||||
Optional.of(List.of()),
|
||||
@@ -268,7 +272,7 @@ public class Hubs implements
|
||||
public GetRecentlyAddedResponse getRecentlyAdded(
|
||||
GetRecentlyAddedRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/hubs/home/recentlyAdded");
|
||||
@@ -283,14 +287,15 @@ public class Hubs implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
@@ -303,6 +308,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
@@ -313,6 +319,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
@@ -323,6 +330,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-recently-added",
|
||||
Optional.of(List.of()),
|
||||
@@ -432,7 +440,7 @@ public class Hubs implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
GetLibraryHubsRequest.class,
|
||||
_baseUrl,
|
||||
@@ -449,14 +457,15 @@ public class Hubs implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
@@ -469,6 +478,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
@@ -479,6 +489,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
@@ -489,6 +500,7 @@ public class Hubs implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getLibraryHubs",
|
||||
Optional.of(List.of()),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -93,7 +93,7 @@ public class Log implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/log");
|
||||
@@ -108,14 +108,15 @@ public class Log implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -128,6 +129,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -138,6 +140,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -148,6 +151,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -292,7 +296,7 @@ public class Log implements
|
||||
public LogMultiLineResponse logMultiLine(
|
||||
String request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/log");
|
||||
@@ -315,14 +319,15 @@ public class Log implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -335,6 +340,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -345,6 +351,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -355,6 +362,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"logMultiLine",
|
||||
Optional.of(List.of()),
|
||||
@@ -457,7 +465,7 @@ public class Log implements
|
||||
*/
|
||||
public EnablePaperTrailResponse enablePaperTrailDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/log/networked");
|
||||
@@ -467,14 +475,15 @@ public class Log implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
@@ -487,6 +496,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
@@ -497,6 +507,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
@@ -507,6 +518,7 @@ public class Log implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"enablePaperTrail",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -91,7 +91,7 @@ public class Media implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/:/scrobble");
|
||||
@@ -106,14 +106,15 @@ public class Media implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -126,6 +127,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -136,6 +138,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -146,6 +149,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markPlayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -256,7 +260,7 @@ public class Media implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/:/unscrobble");
|
||||
@@ -271,14 +275,15 @@ public class Media implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -291,6 +296,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -301,6 +307,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -311,6 +318,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"markUnplayed",
|
||||
Optional.of(List.of()),
|
||||
@@ -427,7 +435,7 @@ public class Media implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/:/progress");
|
||||
@@ -442,14 +450,15 @@ public class Media implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
@@ -462,6 +471,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
@@ -472,6 +482,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
@@ -482,6 +493,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlayProgress",
|
||||
Optional.of(List.of()),
|
||||
@@ -586,7 +598,7 @@ public class Media implements
|
||||
public GetBannerImageResponse getBannerImage(
|
||||
GetBannerImageRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
GetBannerImageRequest.class,
|
||||
_baseUrl,
|
||||
@@ -604,14 +616,15 @@ public class Media implements
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
@@ -624,6 +637,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
@@ -634,6 +648,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
@@ -644,6 +659,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-banner-image",
|
||||
Optional.of(List.of()),
|
||||
@@ -759,7 +775,7 @@ public class Media implements
|
||||
public GetThumbImageResponse getThumbImage(
|
||||
GetThumbImageRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
GetThumbImageRequest.class,
|
||||
_baseUrl,
|
||||
@@ -777,14 +793,15 @@ public class Media implements
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
@@ -797,6 +814,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
@@ -807,6 +825,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
@@ -817,6 +836,7 @@ public class Media implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-thumb-image",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -126,7 +126,7 @@ public class Playlists implements
|
||||
public CreatePlaylistResponse createPlaylist(
|
||||
CreatePlaylistRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/playlists");
|
||||
@@ -141,14 +141,15 @@ public class Playlists implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -161,6 +162,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -171,6 +173,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -181,6 +184,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"createPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -317,7 +321,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/playlists");
|
||||
@@ -332,14 +336,15 @@ public class Playlists implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
@@ -352,6 +357,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
@@ -362,6 +368,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
@@ -372,6 +379,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylists",
|
||||
Optional.of(List.of()),
|
||||
@@ -495,7 +503,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
GetPlaylistRequest.class,
|
||||
_baseUrl,
|
||||
@@ -507,14 +515,15 @@ public class Playlists implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -527,6 +536,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -537,6 +547,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -547,6 +558,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -668,7 +680,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
DeletePlaylistRequest.class,
|
||||
_baseUrl,
|
||||
@@ -680,14 +692,15 @@ public class Playlists implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -700,6 +713,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -710,6 +724,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -720,6 +735,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"deletePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -850,7 +866,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
UpdatePlaylistRequest.class,
|
||||
_baseUrl,
|
||||
@@ -867,14 +883,15 @@ public class Playlists implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -887,6 +904,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -897,6 +915,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -907,6 +926,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"updatePlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -1032,7 +1052,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
GetPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
@@ -1049,14 +1069,15 @@ public class Playlists implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1069,6 +1090,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1079,6 +1101,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1089,6 +1112,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1210,7 +1234,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
ClearPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
@@ -1222,14 +1246,15 @@ public class Playlists implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1242,6 +1267,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1252,6 +1278,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1262,6 +1289,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"clearPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1397,7 +1425,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
AddPlaylistContentsRequest.class,
|
||||
_baseUrl,
|
||||
@@ -1414,14 +1442,15 @@ public class Playlists implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1434,6 +1463,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1444,6 +1474,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1454,6 +1485,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"addPlaylistContents",
|
||||
Optional.of(List.of()),
|
||||
@@ -1591,7 +1623,7 @@ public class Playlists implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/playlists/upload");
|
||||
@@ -1606,14 +1638,15 @@ public class Playlists implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -1626,6 +1659,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -1636,6 +1670,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
@@ -1646,6 +1681,7 @@ public class Playlists implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"uploadPlaylist",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -171,14 +171,15 @@ public class Plex implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
@@ -191,6 +192,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
@@ -201,6 +203,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
@@ -211,6 +214,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getCompanionsData",
|
||||
Optional.of(List.of()),
|
||||
@@ -352,14 +356,15 @@ public class Plex implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
@@ -372,6 +377,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
@@ -382,6 +388,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
@@ -392,6 +399,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUserFriends",
|
||||
Optional.of(List.of()),
|
||||
@@ -533,11 +541,12 @@ public class Plex implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
@@ -550,6 +559,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
@@ -560,6 +570,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
@@ -570,6 +581,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getGeoData",
|
||||
Optional.of(List.of()),
|
||||
@@ -683,7 +695,7 @@ public class Plex implements
|
||||
*/
|
||||
public GetHomeDataResponse getHomeDataDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/home");
|
||||
@@ -693,14 +705,15 @@ public class Plex implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
@@ -713,6 +726,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
@@ -723,6 +737,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
@@ -733,6 +748,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getHomeData",
|
||||
Optional.of(List.of()),
|
||||
@@ -901,14 +917,15 @@ public class Plex implements
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
@@ -921,6 +938,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
@@ -931,6 +949,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
@@ -941,6 +960,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-resources",
|
||||
Optional.of(List.of()),
|
||||
@@ -1092,11 +1112,12 @@ public class Plex implements
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
@@ -1109,6 +1130,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
@@ -1119,6 +1141,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
@@ -1129,6 +1152,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getPin",
|
||||
Optional.of(List.of()),
|
||||
@@ -1261,11 +1285,12 @@ public class Plex implements
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
@@ -1278,6 +1303,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
@@ -1288,6 +1314,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
@@ -1298,6 +1325,7 @@ public class Plex implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTokenByPinId",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -5,8 +5,8 @@ package dev.plexapi.sdk;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import dev.plexapi.sdk.utils.HTTPClient;
|
||||
import dev.plexapi.sdk.utils.Hook.SdkInitData;
|
||||
import dev.plexapi.sdk.utils.RetryConfig;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.util.Map;
|
||||
@@ -52,7 +52,7 @@ public class PlexAPI {
|
||||
/**
|
||||
* The full address of your Plex Server
|
||||
*/
|
||||
"https://10.10.10.47:32400",
|
||||
"{protocol}://{ip}:{port}",
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -273,7 +273,7 @@ public class PlexAPI {
|
||||
return users;
|
||||
}
|
||||
|
||||
private final SDKConfiguration sdkConfiguration;
|
||||
private SDKConfiguration sdkConfiguration;
|
||||
|
||||
/**
|
||||
* The Builder class allows the configuration of a new instance of the SDK.
|
||||
@@ -281,6 +281,9 @@ public class PlexAPI {
|
||||
public static class Builder {
|
||||
|
||||
private final SDKConfiguration sdkConfiguration = new SDKConfiguration();
|
||||
private String serverUrl;
|
||||
private String server;
|
||||
|
||||
|
||||
private Builder() {
|
||||
}
|
||||
@@ -292,7 +295,7 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder client(HTTPClient client) {
|
||||
this.sdkConfiguration.defaultClient = client;
|
||||
this.sdkConfiguration.setClient(client);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
@@ -302,9 +305,9 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder accessToken(String accessToken) {
|
||||
this.sdkConfiguration.securitySource = SecuritySource.of(dev.plexapi.sdk.models.shared.Security.builder()
|
||||
this.sdkConfiguration.setSecuritySource(SecuritySource.of(dev.plexapi.sdk.models.shared.Security.builder()
|
||||
.accessToken(accessToken)
|
||||
.build());
|
||||
.build()));
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -315,7 +318,8 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder securitySource(SecuritySource securitySource) {
|
||||
this.sdkConfiguration.securitySource = securitySource;
|
||||
Utils.checkNotNull(securitySource, "securitySource");
|
||||
this.sdkConfiguration.setSecuritySource(securitySource);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -326,7 +330,7 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder serverURL(String serverUrl) {
|
||||
this.sdkConfiguration.serverUrl = serverUrl;
|
||||
this.serverUrl = serverUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -338,7 +342,7 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder serverURL(String serverUrl, Map<String, String> params) {
|
||||
this.sdkConfiguration.serverUrl = Utils.templateUrl(serverUrl, params);
|
||||
this.serverUrl = Utils.templateUrl(serverUrl, params);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -349,8 +353,8 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder serverIndex(int serverIdx) {
|
||||
this.sdkConfiguration.serverIdx = serverIdx;
|
||||
this.sdkConfiguration.serverUrl = SERVERS[serverIdx];
|
||||
this.sdkConfiguration.setServerIdx(serverIdx);
|
||||
this.serverUrl= SERVERS[serverIdx];
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -361,7 +365,7 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder retryConfig(RetryConfig retryConfig) {
|
||||
this.sdkConfiguration.retryConfig = Optional.of(retryConfig);
|
||||
this.sdkConfiguration.setRetryConfig(Optional.of(retryConfig));
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
@@ -400,7 +404,7 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder protocol(ServerProtocol protocol) {
|
||||
for (Map<String, String> server : this.sdkConfiguration.serverDefaults) {
|
||||
for (Map<String, String> server : this.sdkConfiguration.serverVariables()) {
|
||||
if (!server.containsKey("protocol")) {
|
||||
continue;
|
||||
}
|
||||
@@ -417,7 +421,7 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder ip(String ip) {
|
||||
for (Map<String, String> server : this.sdkConfiguration.serverDefaults) {
|
||||
for (Map<String, String> server : this.sdkConfiguration.serverVariables()) {
|
||||
if (!server.containsKey("ip")) {
|
||||
continue;
|
||||
}
|
||||
@@ -434,7 +438,7 @@ public class PlexAPI {
|
||||
* @return The builder instance.
|
||||
*/
|
||||
public Builder port(String port) {
|
||||
for (Map<String, String> server : this.sdkConfiguration.serverDefaults) {
|
||||
for (Map<String, String> server : this.sdkConfiguration.serverVariables()) {
|
||||
if (!server.containsKey("port")) {
|
||||
continue;
|
||||
}
|
||||
@@ -462,19 +466,11 @@ public class PlexAPI {
|
||||
* @return The SDK instance.
|
||||
*/
|
||||
public PlexAPI build() {
|
||||
if (sdkConfiguration.defaultClient == null) {
|
||||
sdkConfiguration.defaultClient = new SpeakeasyHTTPClient();
|
||||
}
|
||||
if (sdkConfiguration.securitySource == null) {
|
||||
sdkConfiguration.securitySource = SecuritySource.of(null);
|
||||
}
|
||||
if (sdkConfiguration.serverUrl == null || sdkConfiguration.serverUrl.isBlank()) {
|
||||
sdkConfiguration.serverUrl = SERVERS[0];
|
||||
sdkConfiguration.serverIdx = 0;
|
||||
}
|
||||
if (sdkConfiguration.serverUrl.endsWith("/")) {
|
||||
sdkConfiguration.serverUrl = sdkConfiguration.serverUrl.substring(0, sdkConfiguration.serverUrl.length() - 1);
|
||||
if (serverUrl == null || serverUrl.isBlank()) {
|
||||
serverUrl = SERVERS[0];
|
||||
sdkConfiguration.setServerIdx(0);
|
||||
}
|
||||
sdkConfiguration.setServerUrl(serverUrl);
|
||||
return new PlexAPI(sdkConfiguration);
|
||||
}
|
||||
}
|
||||
@@ -490,6 +486,7 @@ public class PlexAPI {
|
||||
|
||||
private PlexAPI(SDKConfiguration sdkConfiguration) {
|
||||
this.sdkConfiguration = sdkConfiguration;
|
||||
this.sdkConfiguration.initialize();
|
||||
this.server = new Server(sdkConfiguration);
|
||||
this.media = new Media(sdkConfiguration);
|
||||
this.video = new Video(sdkConfiguration);
|
||||
@@ -507,6 +504,9 @@ public class PlexAPI {
|
||||
this.sessions = new Sessions(sdkConfiguration);
|
||||
this.updater = new Updater(sdkConfiguration);
|
||||
this.users = new Users(sdkConfiguration);
|
||||
this.sdkConfiguration.initialize();
|
||||
|
||||
SdkInitData data = this.sdkConfiguration.hooks().sdkInit(new SdkInitData(this.sdkConfiguration.resolvedServerUrl(), this.sdkConfiguration.client()));
|
||||
this.sdkConfiguration.setServerUrl(data.baseUrl());
|
||||
this.sdkConfiguration.setClient(data.client());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ package dev.plexapi.sdk;
|
||||
|
||||
import dev.plexapi.sdk.hooks.SDKHooks;
|
||||
import dev.plexapi.sdk.utils.HTTPClient;
|
||||
import dev.plexapi.sdk.utils.Hook.SdkInitData;
|
||||
import dev.plexapi.sdk.utils.Hooks;
|
||||
import dev.plexapi.sdk.utils.RetryConfig;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyHTTPClient;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -17,38 +17,87 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
class SDKConfiguration {
|
||||
public SecuritySource securitySource;
|
||||
public class SDKConfiguration {
|
||||
|
||||
private static final String LANGUAGE = "java";
|
||||
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
||||
public static final String SDK_VERSION = "0.17.0";
|
||||
public static final String GEN_VERSION = "2.620.2";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
LANGUAGE, SDK_VERSION, GEN_VERSION, OPENAPI_DOC_VERSION, BASE_PACKAGE);
|
||||
|
||||
private SecuritySource securitySource = SecuritySource.of(null);
|
||||
|
||||
public Optional<SecuritySource> securitySource() {
|
||||
return Optional.ofNullable(securitySource);
|
||||
public SecuritySource securitySource() {
|
||||
return securitySource;
|
||||
}
|
||||
|
||||
public HTTPClient defaultClient;
|
||||
public void setSecuritySource(SecuritySource securitySource) {
|
||||
Utils.checkNotNull(securitySource, "securitySource");
|
||||
this.securitySource = securitySource;
|
||||
}
|
||||
|
||||
public String serverUrl;
|
||||
private HTTPClient client = new SpeakeasyHTTPClient();
|
||||
|
||||
public HTTPClient client() {
|
||||
return client;
|
||||
}
|
||||
|
||||
public void setClient(HTTPClient client) {
|
||||
Utils.checkNotNull(client, "client");
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
private String serverUrl;
|
||||
|
||||
public String serverUrl() {
|
||||
return serverUrl;
|
||||
}
|
||||
|
||||
public void setServerUrl(String serverUrl) {
|
||||
Utils.checkNotNull(serverUrl, "serverUrl");
|
||||
this.serverUrl = trimFinalSlash(serverUrl);
|
||||
}
|
||||
|
||||
private static String trimFinalSlash(String url) {
|
||||
if (url == null) {
|
||||
return null;
|
||||
} else if (url.endsWith("/")) {
|
||||
return url.substring(0, url.length() - 1);
|
||||
} else {
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
public String resolvedServerUrl() {
|
||||
return Utils.templateUrl(serverUrl, getServerVariableDefaults());
|
||||
}
|
||||
public int serverIdx = 0;
|
||||
|
||||
private int serverIdx = 0;
|
||||
|
||||
public void setServerIdx(int serverIdx) {
|
||||
this.serverIdx = serverIdx;
|
||||
}
|
||||
|
||||
public int serverIdx() {
|
||||
return serverIdx;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
List<Map<String, String>> serverDefaults = new ArrayList<>(){ {
|
||||
private List<Map<String, String>> serverVariables = new ArrayList<>(){ {
|
||||
add(new HashMap<>(){ {
|
||||
put("protocol", "https");
|
||||
put("ip", "10.10.10.47");
|
||||
put("port", "32400");
|
||||
} });
|
||||
} };
|
||||
private static final String LANGUAGE = "java";
|
||||
public static final String OPENAPI_DOC_VERSION = "0.0.3";
|
||||
public static final String SDK_VERSION = "0.16.2";
|
||||
public static final String GEN_VERSION = "2.597.9";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
LANGUAGE, SDK_VERSION, GEN_VERSION, OPENAPI_DOC_VERSION, BASE_PACKAGE);
|
||||
|
||||
|
||||
public List<Map<String, String>> serverVariables() {
|
||||
return serverVariables;
|
||||
}
|
||||
|
||||
private Hooks _hooks = createHooks();
|
||||
|
||||
private static Hooks createHooks() {
|
||||
@@ -69,16 +118,21 @@ class SDKConfiguration {
|
||||
**/
|
||||
public void initialize() {
|
||||
SDKHooks.initialize(_hooks);
|
||||
// apply the sdk init hook immediately
|
||||
SdkInitData data = _hooks.sdkInit(new SdkInitData(resolvedServerUrl(), defaultClient));
|
||||
this.serverUrl = data.baseUrl();
|
||||
this.defaultClient = data.client();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Map<String, String> getServerVariableDefaults() {
|
||||
return serverDefaults.get(this.serverIdx);
|
||||
return serverVariables.get(this.serverIdx);
|
||||
}
|
||||
public Optional<RetryConfig> retryConfig = Optional.empty();
|
||||
private Optional<RetryConfig> retryConfig = Optional.empty();
|
||||
|
||||
public Optional<RetryConfig> retryConfig() {
|
||||
return retryConfig;
|
||||
}
|
||||
|
||||
public void setRetryConfig(Optional<RetryConfig> retryConfig) {
|
||||
Utils.checkNotNull(retryConfig, "retryConfig");
|
||||
this.retryConfig = retryConfig;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ public class Search implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/hubs/search");
|
||||
@@ -149,14 +149,15 @@ public class Search implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -169,6 +170,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -179,6 +181,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -189,6 +192,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -328,7 +332,7 @@ public class Search implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/hubs/search/voice");
|
||||
@@ -343,14 +347,15 @@ public class Search implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -363,6 +368,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -373,6 +379,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -383,6 +390,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"performVoiceSearch",
|
||||
Optional.of(List.of()),
|
||||
@@ -493,7 +501,7 @@ public class Search implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/search");
|
||||
@@ -508,14 +516,15 @@ public class Search implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
@@ -528,6 +537,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
@@ -538,6 +548,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
@@ -548,6 +559,7 @@ public class Search implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSearchResults",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -107,7 +107,7 @@ public class Server implements
|
||||
*/
|
||||
public GetServerCapabilitiesResponse getServerCapabilitiesDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/");
|
||||
@@ -117,14 +117,15 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
@@ -137,6 +138,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
@@ -147,6 +149,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
@@ -157,6 +160,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerCapabilities",
|
||||
Optional.of(List.of()),
|
||||
@@ -270,7 +274,7 @@ public class Server implements
|
||||
*/
|
||||
public GetServerPreferencesResponse getServerPreferencesDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/:/prefs");
|
||||
@@ -280,14 +284,15 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
@@ -300,6 +305,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
@@ -310,6 +316,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
@@ -320,6 +327,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerPreferences",
|
||||
Optional.of(List.of()),
|
||||
@@ -433,7 +441,7 @@ public class Server implements
|
||||
*/
|
||||
public GetAvailableClientsResponse getAvailableClientsDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/clients");
|
||||
@@ -443,14 +451,15 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
@@ -463,6 +472,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
@@ -473,6 +483,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
@@ -483,6 +494,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getAvailableClients",
|
||||
Optional.of(List.of()),
|
||||
@@ -596,7 +608,7 @@ public class Server implements
|
||||
*/
|
||||
public GetDevicesResponse getDevicesDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/devices");
|
||||
@@ -606,14 +618,15 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
@@ -626,6 +639,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
@@ -636,6 +650,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
@@ -646,6 +661,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getDevices",
|
||||
Optional.of(List.of()),
|
||||
@@ -759,7 +775,7 @@ public class Server implements
|
||||
*/
|
||||
public GetServerIdentityResponse getServerIdentityDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/identity");
|
||||
@@ -769,11 +785,12 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
@@ -786,6 +803,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
@@ -796,6 +814,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
@@ -806,6 +825,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-server-identity",
|
||||
Optional.of(List.of()),
|
||||
@@ -903,7 +923,7 @@ public class Server implements
|
||||
*/
|
||||
public GetMyPlexAccountResponse getMyPlexAccountDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/myplex/account");
|
||||
@@ -913,14 +933,15 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
@@ -933,6 +954,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
@@ -943,6 +965,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
@@ -953,6 +976,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getMyPlexAccount",
|
||||
Optional.of(List.of()),
|
||||
@@ -1068,7 +1092,7 @@ public class Server implements
|
||||
public GetResizedPhotoResponse getResizedPhoto(
|
||||
GetResizedPhotoRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/photo/:/transcode");
|
||||
@@ -1083,14 +1107,15 @@ public class Server implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
@@ -1103,6 +1128,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
@@ -1113,6 +1139,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
@@ -1123,6 +1150,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResizedPhoto",
|
||||
Optional.of(List.of()),
|
||||
@@ -1233,7 +1261,7 @@ public class Server implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/media/providers");
|
||||
@@ -1244,14 +1272,15 @@ public class Server implements
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
@@ -1264,6 +1293,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
@@ -1274,6 +1304,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
@@ -1284,6 +1315,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-media-providers",
|
||||
Optional.of(List.of()),
|
||||
@@ -1397,7 +1429,7 @@ public class Server implements
|
||||
*/
|
||||
public GetServerListResponse getServerListDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/servers");
|
||||
@@ -1407,14 +1439,15 @@ public class Server implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
@@ -1427,6 +1460,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
@@ -1437,6 +1471,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
@@ -1447,6 +1482,7 @@ public class Server implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getServerList",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -80,7 +80,7 @@ public class Sessions implements
|
||||
*/
|
||||
public GetSessionsResponse getSessionsDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/status/sessions");
|
||||
@@ -90,14 +90,15 @@ public class Sessions implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -110,6 +111,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -120,6 +122,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -130,6 +133,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -277,7 +281,7 @@ public class Sessions implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/status/sessions/history/all");
|
||||
@@ -292,14 +296,15 @@ public class Sessions implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
@@ -312,6 +317,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
@@ -322,6 +328,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
@@ -332,6 +339,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getSessionHistory",
|
||||
Optional.of(List.of()),
|
||||
@@ -445,7 +453,7 @@ public class Sessions implements
|
||||
*/
|
||||
public GetTranscodeSessionsResponse getTranscodeSessionsDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/transcode/sessions");
|
||||
@@ -455,14 +463,15 @@ public class Sessions implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -475,6 +484,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -485,6 +495,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -495,6 +506,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTranscodeSessions",
|
||||
Optional.of(List.of()),
|
||||
@@ -616,7 +628,7 @@ public class Sessions implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
StopTranscodeSessionRequest.class,
|
||||
_baseUrl,
|
||||
@@ -628,14 +640,15 @@ public class Sessions implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
@@ -648,6 +661,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
@@ -658,6 +672,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
@@ -668,6 +683,7 @@ public class Sessions implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"stopTranscodeSession",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -97,7 +97,7 @@ public class Statistics implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/statistics/media");
|
||||
@@ -112,14 +112,15 @@ public class Statistics implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -132,6 +133,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -142,6 +144,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -152,6 +155,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -287,7 +291,7 @@ public class Statistics implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/statistics/resources");
|
||||
@@ -302,14 +306,15 @@ public class Statistics implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -322,6 +327,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -332,6 +338,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -342,6 +349,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getResourcesStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -477,7 +485,7 @@ public class Statistics implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/statistics/bandwidth");
|
||||
@@ -492,14 +500,15 @@ public class Statistics implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -512,6 +521,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -522,6 +532,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
@@ -532,6 +543,7 @@ public class Statistics implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getBandwidthStatistics",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -75,7 +75,7 @@ public class Updater implements
|
||||
*/
|
||||
public GetUpdateStatusResponse getUpdateStatusDirect() throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/updater/status");
|
||||
@@ -85,14 +85,15 @@ public class Updater implements
|
||||
.addHeader("user-agent",
|
||||
SDKConfiguration.USER_AGENT);
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
@@ -105,6 +106,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
@@ -115,6 +117,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
@@ -125,6 +128,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getUpdateStatus",
|
||||
Optional.of(List.of()),
|
||||
@@ -258,7 +262,7 @@ public class Updater implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/updater/check");
|
||||
@@ -273,14 +277,15 @@ public class Updater implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
@@ -293,6 +298,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
@@ -303,6 +309,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
@@ -313,6 +320,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"checkForUpdates",
|
||||
Optional.of(List.of()),
|
||||
@@ -438,7 +446,7 @@ public class Updater implements
|
||||
.build();
|
||||
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/updater/apply");
|
||||
@@ -453,14 +461,15 @@ public class Updater implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
@@ -473,6 +482,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
@@ -483,6 +493,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
@@ -493,6 +504,7 @@ public class Updater implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"applyUpdates",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -97,11 +97,12 @@ public class Users implements
|
||||
SDKConfiguration.USER_AGENT);
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.empty();
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
@@ -114,6 +115,7 @@ public class Users implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
@@ -124,6 +126,7 @@ public class Users implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
@@ -134,6 +137,7 @@ public class Users implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-users",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -67,7 +67,7 @@ public class Video implements
|
||||
public GetTimelineResponse getTimeline(
|
||||
GetTimelineRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/:/timeline");
|
||||
@@ -82,14 +82,15 @@ public class Video implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
@@ -102,6 +103,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
@@ -112,6 +114,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
@@ -122,6 +125,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"getTimeline",
|
||||
Optional.of(List.of()),
|
||||
@@ -226,7 +230,7 @@ public class Video implements
|
||||
public StartUniversalTranscodeResponse startUniversalTranscode(
|
||||
StartUniversalTranscodeRequest request) throws Exception {
|
||||
String _baseUrl = Utils.templateUrl(
|
||||
this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
|
||||
this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults());
|
||||
String _url = Utils.generateURL(
|
||||
_baseUrl,
|
||||
"/video/:/transcode/universal/start.mpd");
|
||||
@@ -241,14 +245,15 @@ public class Video implements
|
||||
request,
|
||||
null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
@@ -261,6 +266,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
@@ -271,6 +277,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
@@ -281,6 +288,7 @@ public class Video implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"startUniversalTranscode",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -111,14 +111,15 @@ public class Watchlist implements
|
||||
null));
|
||||
_req.addHeaders(Utils.getHeadersFromMetadata(request, null));
|
||||
|
||||
Optional<SecuritySource> _hookSecuritySource = this.sdkConfiguration.securitySource();
|
||||
Optional<SecuritySource> _hookSecuritySource = Optional.of(this.sdkConfiguration.securitySource());
|
||||
Utils.configureSecurity(_req,
|
||||
this.sdkConfiguration.securitySource.getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.defaultClient;
|
||||
this.sdkConfiguration.securitySource().getSecurity());
|
||||
HTTPClient _client = this.sdkConfiguration.client();
|
||||
HttpRequest _r =
|
||||
sdkConfiguration.hooks()
|
||||
.beforeRequest(
|
||||
new BeforeRequestContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
@@ -131,6 +132,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
@@ -141,6 +143,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterSuccess(
|
||||
new AfterSuccessContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
@@ -151,6 +154,7 @@ public class Watchlist implements
|
||||
_httpRes = sdkConfiguration.hooks()
|
||||
.afterError(
|
||||
new AfterErrorContextImpl(
|
||||
this.sdkConfiguration,
|
||||
_baseUrl,
|
||||
"get-watch-list",
|
||||
Optional.of(List.of()),
|
||||
|
||||
@@ -20,16 +20,16 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryBadRequest
|
||||
* GetLibrarySectionsAllBadRequest
|
||||
*
|
||||
* <p>Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
public class GetLibrarySectionsAllBadRequest extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetAllMediaLibraryErrors>> errors;
|
||||
private Optional<? extends List<GetLibrarySectionsAllErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
@@ -39,8 +39,8 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetAllMediaLibraryErrors>> errors,
|
||||
public GetLibrarySectionsAllBadRequest(
|
||||
@JsonProperty("errors") Optional<? extends List<GetLibrarySectionsAllErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
@@ -48,14 +48,14 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryBadRequest() {
|
||||
public GetLibrarySectionsAllBadRequest() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryErrors>> errors() {
|
||||
return (Optional<List<GetAllMediaLibraryErrors>>) errors;
|
||||
public Optional<List<GetLibrarySectionsAllErrors>> errors() {
|
||||
return (Optional<List<GetLibrarySectionsAllErrors>>) errors;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,13 +71,13 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryBadRequest withErrors(List<GetAllMediaLibraryErrors> errors) {
|
||||
public GetLibrarySectionsAllBadRequest withErrors(List<GetLibrarySectionsAllErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryBadRequest withErrors(Optional<? extends List<GetAllMediaLibraryErrors>> errors) {
|
||||
public GetLibrarySectionsAllBadRequest withErrors(Optional<? extends List<GetLibrarySectionsAllErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -86,7 +86,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetAllMediaLibraryBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetLibrarySectionsAllBadRequest withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
@@ -95,7 +95,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetAllMediaLibraryBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
public GetLibrarySectionsAllBadRequest withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -110,7 +110,7 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryBadRequest other = (GetAllMediaLibraryBadRequest) o;
|
||||
GetLibrarySectionsAllBadRequest other = (GetLibrarySectionsAllBadRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
@@ -125,14 +125,14 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryBadRequest.class,
|
||||
return Utils.toString(GetLibrarySectionsAllBadRequest.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryErrors>> errors = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@@ -140,13 +140,13 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetAllMediaLibraryErrors> errors) {
|
||||
public Builder errors(List<GetLibrarySectionsAllErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAllMediaLibraryErrors>> errors) {
|
||||
public Builder errors(Optional<? extends List<GetLibrarySectionsAllErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -170,8 +170,8 @@ public class GetAllMediaLibraryBadRequest extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryBadRequest build() {
|
||||
return new GetAllMediaLibraryBadRequest(
|
||||
public GetLibrarySectionsAllBadRequest build() {
|
||||
return new GetLibrarySectionsAllBadRequest(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryErrors {
|
||||
public class GetLibrarySectionsAllErrors {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("code")
|
||||
@@ -30,7 +30,7 @@ public class GetAllMediaLibraryErrors {
|
||||
private Optional<Integer> status;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryErrors(
|
||||
public GetLibrarySectionsAllErrors(
|
||||
@JsonProperty("code") Optional<Integer> code,
|
||||
@JsonProperty("message") Optional<String> message,
|
||||
@JsonProperty("status") Optional<Integer> status) {
|
||||
@@ -42,7 +42,7 @@ public class GetAllMediaLibraryErrors {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors() {
|
||||
public GetLibrarySectionsAllErrors() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@@ -65,37 +65,37 @@ public class GetAllMediaLibraryErrors {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors withCode(int code) {
|
||||
public GetLibrarySectionsAllErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors withCode(Optional<Integer> code) {
|
||||
public GetLibrarySectionsAllErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors withMessage(String message) {
|
||||
public GetLibrarySectionsAllErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors withMessage(Optional<String> message) {
|
||||
public GetLibrarySectionsAllErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors withStatus(int status) {
|
||||
public GetLibrarySectionsAllErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors withStatus(Optional<Integer> status) {
|
||||
public GetLibrarySectionsAllErrors withStatus(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
@@ -110,7 +110,7 @@ public class GetAllMediaLibraryErrors {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryErrors other = (GetAllMediaLibraryErrors) o;
|
||||
GetLibrarySectionsAllErrors other = (GetLibrarySectionsAllErrors) o;
|
||||
return
|
||||
Objects.deepEquals(this.code, other.code) &&
|
||||
Objects.deepEquals(this.message, other.message) &&
|
||||
@@ -127,7 +127,7 @@ public class GetAllMediaLibraryErrors {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryErrors.class,
|
||||
return Utils.toString(GetLibrarySectionsAllErrors.class,
|
||||
"code", code,
|
||||
"message", message,
|
||||
"status", status);
|
||||
@@ -181,8 +181,8 @@ public class GetAllMediaLibraryErrors {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryErrors build() {
|
||||
return new GetAllMediaLibraryErrors(
|
||||
public GetLibrarySectionsAllErrors build() {
|
||||
return new GetLibrarySectionsAllErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
@@ -15,7 +15,7 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryLibraryErrors {
|
||||
public class GetLibrarySectionsAllLibraryErrors {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("code")
|
||||
@@ -30,7 +30,7 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
private Optional<Integer> status;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryLibraryErrors(
|
||||
public GetLibrarySectionsAllLibraryErrors(
|
||||
@JsonProperty("code") Optional<Integer> code,
|
||||
@JsonProperty("message") Optional<String> message,
|
||||
@JsonProperty("status") Optional<Integer> status) {
|
||||
@@ -42,7 +42,7 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors() {
|
||||
public GetLibrarySectionsAllLibraryErrors() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@@ -65,37 +65,37 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors withCode(int code) {
|
||||
public GetLibrarySectionsAllLibraryErrors withCode(int code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = Optional.ofNullable(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors withCode(Optional<Integer> code) {
|
||||
public GetLibrarySectionsAllLibraryErrors withCode(Optional<Integer> code) {
|
||||
Utils.checkNotNull(code, "code");
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors withMessage(String message) {
|
||||
public GetLibrarySectionsAllLibraryErrors withMessage(String message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = Optional.ofNullable(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors withMessage(Optional<String> message) {
|
||||
public GetLibrarySectionsAllLibraryErrors withMessage(Optional<String> message) {
|
||||
Utils.checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors withStatus(int status) {
|
||||
public GetLibrarySectionsAllLibraryErrors withStatus(int status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = Optional.ofNullable(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors withStatus(Optional<Integer> status) {
|
||||
public GetLibrarySectionsAllLibraryErrors withStatus(Optional<Integer> status) {
|
||||
Utils.checkNotNull(status, "status");
|
||||
this.status = status;
|
||||
return this;
|
||||
@@ -110,7 +110,7 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryLibraryErrors other = (GetAllMediaLibraryLibraryErrors) o;
|
||||
GetLibrarySectionsAllLibraryErrors other = (GetLibrarySectionsAllLibraryErrors) o;
|
||||
return
|
||||
Objects.deepEquals(this.code, other.code) &&
|
||||
Objects.deepEquals(this.message, other.message) &&
|
||||
@@ -127,7 +127,7 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryLibraryErrors.class,
|
||||
return Utils.toString(GetLibrarySectionsAllLibraryErrors.class,
|
||||
"code", code,
|
||||
"message", message,
|
||||
"status", status);
|
||||
@@ -181,8 +181,8 @@ public class GetAllMediaLibraryLibraryErrors {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryLibraryErrors build() {
|
||||
return new GetAllMediaLibraryLibraryErrors(
|
||||
public GetLibrarySectionsAllLibraryErrors build() {
|
||||
return new GetLibrarySectionsAllLibraryErrors(
|
||||
code,
|
||||
message,
|
||||
status);
|
||||
@@ -20,16 +20,16 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryUnauthorized
|
||||
* GetLibrarySectionsAllUnauthorized
|
||||
*
|
||||
* <p>Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
public class GetLibrarySectionsAllUnauthorized extends RuntimeException {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("errors")
|
||||
private Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors;
|
||||
private Optional<? extends List<GetLibrarySectionsAllLibraryErrors>> errors;
|
||||
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
@@ -39,8 +39,8 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryUnauthorized(
|
||||
@JsonProperty("errors") Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors,
|
||||
public GetLibrarySectionsAllUnauthorized(
|
||||
@JsonProperty("errors") Optional<? extends List<GetLibrarySectionsAllLibraryErrors>> errors,
|
||||
@JsonProperty("RawResponse") Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
@@ -48,14 +48,14 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
this.rawResponse = rawResponse;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUnauthorized() {
|
||||
public GetLibrarySectionsAllUnauthorized() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryLibraryErrors>> errors() {
|
||||
return (Optional<List<GetAllMediaLibraryLibraryErrors>>) errors;
|
||||
public Optional<List<GetLibrarySectionsAllLibraryErrors>> errors() {
|
||||
return (Optional<List<GetLibrarySectionsAllLibraryErrors>>) errors;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,13 +71,13 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUnauthorized withErrors(List<GetAllMediaLibraryLibraryErrors> errors) {
|
||||
public GetLibrarySectionsAllUnauthorized withErrors(List<GetLibrarySectionsAllLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUnauthorized withErrors(Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors) {
|
||||
public GetLibrarySectionsAllUnauthorized withErrors(Optional<? extends List<GetLibrarySectionsAllLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -86,7 +86,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetAllMediaLibraryUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetLibrarySectionsAllUnauthorized withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = Optional.ofNullable(rawResponse);
|
||||
return this;
|
||||
@@ -95,7 +95,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetAllMediaLibraryUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
public GetLibrarySectionsAllUnauthorized withRawResponse(Optional<? extends HttpResponse<InputStream>> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -110,7 +110,7 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryUnauthorized other = (GetAllMediaLibraryUnauthorized) o;
|
||||
GetLibrarySectionsAllUnauthorized other = (GetLibrarySectionsAllUnauthorized) o;
|
||||
return
|
||||
Objects.deepEquals(this.errors, other.errors) &&
|
||||
Objects.deepEquals(this.rawResponse, other.rawResponse);
|
||||
@@ -125,14 +125,14 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryUnauthorized.class,
|
||||
return Utils.toString(GetLibrarySectionsAllUnauthorized.class,
|
||||
"errors", errors,
|
||||
"rawResponse", rawResponse);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllLibraryErrors>> errors = Optional.empty();
|
||||
|
||||
private Optional<? extends HttpResponse<InputStream>> rawResponse;
|
||||
|
||||
@@ -140,13 +140,13 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder errors(List<GetAllMediaLibraryLibraryErrors> errors) {
|
||||
public Builder errors(List<GetLibrarySectionsAllLibraryErrors> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = Optional.ofNullable(errors);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder errors(Optional<? extends List<GetAllMediaLibraryLibraryErrors>> errors) {
|
||||
public Builder errors(Optional<? extends List<GetLibrarySectionsAllLibraryErrors>> errors) {
|
||||
Utils.checkNotNull(errors, "errors");
|
||||
this.errors = errors;
|
||||
return this;
|
||||
@@ -170,8 +170,8 @@ public class GetAllMediaLibraryUnauthorized extends RuntimeException {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUnauthorized build() {
|
||||
return new GetAllMediaLibraryUnauthorized(
|
||||
public GetLibrarySectionsAllUnauthorized build() {
|
||||
return new GetLibrarySectionsAllUnauthorized(
|
||||
errors,
|
||||
rawResponse);
|
||||
}
|
||||
@@ -5,15 +5,12 @@ 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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Country
|
||||
@@ -22,6 +19,10 @@ import java.util.Optional;
|
||||
*/
|
||||
public class Country {
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -31,15 +32,14 @@ public class Country {
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
private String filter;
|
||||
|
||||
@JsonCreator
|
||||
public Country(
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("filter") Optional<String> filter) {
|
||||
@JsonProperty("filter") String filter) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
@@ -47,13 +47,11 @@ public class Country {
|
||||
this.tag = tag;
|
||||
this.filter = filter;
|
||||
}
|
||||
|
||||
public Country(
|
||||
int id,
|
||||
String tag) {
|
||||
this(id, tag, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public int id() {
|
||||
return id;
|
||||
@@ -68,7 +66,7 @@ public class Country {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@@ -76,6 +74,10 @@ public class Country {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Country withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
@@ -92,12 +94,6 @@ public class Country {
|
||||
}
|
||||
|
||||
public Country withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Country withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
@@ -141,12 +137,16 @@ public class Country {
|
||||
|
||||
private String tag;
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
private String filter;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
@@ -163,12 +163,6 @@ public class Country {
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
|
||||
@@ -5,25 +5,90 @@ 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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class Director {
|
||||
|
||||
/**
|
||||
* Unique identifier for the director.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
/**
|
||||
* The filter string used to query this director.
|
||||
*/
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
/**
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
@JsonProperty("tagKey")
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
@JsonCreator
|
||||
public Director(
|
||||
@JsonProperty("tag") String tag) {
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.id = id;
|
||||
this.filter = filter;
|
||||
this.tag = tag;
|
||||
this.tagKey = tagKey;
|
||||
this.thumb = thumb;
|
||||
}
|
||||
|
||||
public Director(
|
||||
int id,
|
||||
String filter,
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the director.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string used to query this director.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,10 +99,44 @@ public class Director {
|
||||
return tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
return thumb;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the director.
|
||||
*/
|
||||
public Director withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string used to query this director.
|
||||
*/
|
||||
public Director withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
@@ -47,6 +146,33 @@ public class Director {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
public Director withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public Director withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public Director withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -58,29 +184,67 @@ public class Director {
|
||||
}
|
||||
Director other = (Director) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.tag, other.tag) &&
|
||||
Objects.deepEquals(this.tagKey, other.tagKey) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
tag);
|
||||
id,
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
thumb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(Director.class,
|
||||
"tag", tag);
|
||||
"id", id,
|
||||
"filter", filter,
|
||||
"tag", tag,
|
||||
"tagKey", tagKey,
|
||||
"thumb", thumb);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the director.
|
||||
*/
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter string used to query this director.
|
||||
*/
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
@@ -89,10 +253,41 @@ public class Director {
|
||||
this.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = Optional.ofNullable(thumb);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Director build() {
|
||||
return new Director(
|
||||
tag);
|
||||
id,
|
||||
filter,
|
||||
tag,
|
||||
tagKey,
|
||||
thumb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ 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.Long;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -19,8 +19,12 @@ import java.util.Objects;
|
||||
*/
|
||||
public class Genre {
|
||||
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
private int id;
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
@@ -33,7 +37,7 @@ public class Genre {
|
||||
|
||||
@JsonCreator
|
||||
public Genre(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
@@ -44,8 +48,12 @@ public class Genre {
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -66,7 +74,11 @@ public class Genre {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Genre withId(long id) {
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Genre withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -121,7 +133,7 @@ public class Genre {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
private Integer id;
|
||||
|
||||
private String filter;
|
||||
|
||||
@@ -131,7 +143,11 @@ public class Genre {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(long id) {
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
|
||||
@@ -60,9 +60,11 @@ public class GetActorsLibraryQueryParamType {
|
||||
public static final GetActorsLibraryQueryParamType TvShow = new GetActorsLibraryQueryParamType(2L);
|
||||
public static final GetActorsLibraryQueryParamType Season = new GetActorsLibraryQueryParamType(3L);
|
||||
public static final GetActorsLibraryQueryParamType Episode = new GetActorsLibraryQueryParamType(4L);
|
||||
public static final GetActorsLibraryQueryParamType Audio = new GetActorsLibraryQueryParamType(8L);
|
||||
public static final GetActorsLibraryQueryParamType Album = new GetActorsLibraryQueryParamType(9L);
|
||||
public static final GetActorsLibraryQueryParamType Track = new GetActorsLibraryQueryParamType(10L);
|
||||
public static final GetActorsLibraryQueryParamType Artist = new GetActorsLibraryQueryParamType(5L);
|
||||
public static final GetActorsLibraryQueryParamType Album = new GetActorsLibraryQueryParamType(6L);
|
||||
public static final GetActorsLibraryQueryParamType Track = new GetActorsLibraryQueryParamType(7L);
|
||||
public static final GetActorsLibraryQueryParamType PhotoAlbum = new GetActorsLibraryQueryParamType(8L);
|
||||
public static final GetActorsLibraryQueryParamType Photo = new GetActorsLibraryQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class GetActorsLibraryQueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class GetActorsLibraryQueryParamType {
|
||||
map.put(2L, GetActorsLibraryQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetActorsLibraryQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetActorsLibraryQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetActorsLibraryQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetActorsLibraryQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetActorsLibraryQueryParamTypeEnum.Track);
|
||||
map.put(5L, GetActorsLibraryQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetActorsLibraryQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetActorsLibraryQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetActorsLibraryQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetActorsLibraryQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class GetActorsLibraryQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -56,6 +56,10 @@ public class GetAllLibrariesType {
|
||||
public static final GetAllLibrariesType Episode = new GetAllLibrariesType("episode");
|
||||
public static final GetAllLibrariesType Artist = new GetAllLibrariesType("artist");
|
||||
public static final GetAllLibrariesType Album = new GetAllLibrariesType("album");
|
||||
public static final GetAllLibrariesType Track = new GetAllLibrariesType("track");
|
||||
public static final GetAllLibrariesType PhotoAlbum = new GetAllLibrariesType("photoalbum");
|
||||
public static final GetAllLibrariesType Photo = new GetAllLibrariesType("photo");
|
||||
public static final GetAllLibrariesType Collection = new GetAllLibrariesType("collection");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -133,6 +137,10 @@ public class GetAllLibrariesType {
|
||||
map.put("episode", Episode);
|
||||
map.put("artist", Artist);
|
||||
map.put("album", Album);
|
||||
map.put("track", Track);
|
||||
map.put("photoalbum", PhotoAlbum);
|
||||
map.put("photo", Photo);
|
||||
map.put("collection", Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -144,6 +152,10 @@ public class GetAllLibrariesType {
|
||||
map.put("episode", GetAllLibrariesTypeEnum.Episode);
|
||||
map.put("artist", GetAllLibrariesTypeEnum.Artist);
|
||||
map.put("album", GetAllLibrariesTypeEnum.Album);
|
||||
map.put("track", GetAllLibrariesTypeEnum.Track);
|
||||
map.put("photoalbum", GetAllLibrariesTypeEnum.PhotoAlbum);
|
||||
map.put("photo", GetAllLibrariesTypeEnum.Photo);
|
||||
map.put("collection", GetAllLibrariesTypeEnum.Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -184,7 +196,11 @@ public class GetAllLibrariesType {
|
||||
Season("season"),
|
||||
Episode("episode"),
|
||||
Artist("artist"),
|
||||
Album("album"),;
|
||||
Album("album"),
|
||||
Track("track"),
|
||||
PhotoAlbum("photoalbum"),
|
||||
Photo("photo"),
|
||||
Collection("collection"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
* 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 GetAllMediaLibraryGuids {
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<String> id;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryGuids(
|
||||
@JsonProperty("id") Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryGuids() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
public GetAllMediaLibraryGuids withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
public GetAllMediaLibraryGuids withId(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryGuids other = (GetAllMediaLibraryGuids) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryGuids.class,
|
||||
"id", id);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> id = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
public Builder id(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryGuids build() {
|
||||
return new GetAllMediaLibraryGuids(
|
||||
id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,200 +0,0 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.core.JacksonException;
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||
import java.io.IOException;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* <p>Wrapper class for an "open" enum. "Open" enums are those that are expected
|
||||
* to evolve (particularly with the addition of enum members over time). If an
|
||||
* open enum is used then the appearance of unexpected enum values (say in a
|
||||
* response from an updated an API) will not bring about a runtime error thus
|
||||
* ensuring that non-updated client versions can continue to work without error.
|
||||
*
|
||||
* <p>Note that instances are immutable and are singletons (an internal thread-safe
|
||||
* cache is maintained to ensure that). As a consequence instances created with the
|
||||
* same value will satisfy reference equality (via {@code ==}).
|
||||
*
|
||||
* <p>This class is intended to emulate an enum (in terms of common usage and with
|
||||
* reference equality) but with the ability to carry unknown values. Unfortunately
|
||||
* Java does not permit the use of an instance in a switch expression but you can
|
||||
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* GetAllMediaLibraryLibraryType
|
||||
*
|
||||
* <p>The type of media content
|
||||
*/
|
||||
@JsonDeserialize(using = GetAllMediaLibraryLibraryType._Deserializer.class)
|
||||
@JsonSerialize(using = GetAllMediaLibraryLibraryType._Serializer.class)
|
||||
public class GetAllMediaLibraryLibraryType {
|
||||
|
||||
public static final GetAllMediaLibraryLibraryType Movie = new GetAllMediaLibraryLibraryType("movie");
|
||||
public static final GetAllMediaLibraryLibraryType TvShow = new GetAllMediaLibraryLibraryType("show");
|
||||
public static final GetAllMediaLibraryLibraryType Season = new GetAllMediaLibraryLibraryType("season");
|
||||
public static final GetAllMediaLibraryLibraryType Episode = new GetAllMediaLibraryLibraryType("episode");
|
||||
public static final GetAllMediaLibraryLibraryType Artist = new GetAllMediaLibraryLibraryType("artist");
|
||||
public static final GetAllMediaLibraryLibraryType Album = new GetAllMediaLibraryLibraryType("album");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
// careful). Keep this field lower case to avoid clashing with
|
||||
// generated member names which will always be upper cased (Java
|
||||
// convention)
|
||||
private static final Map<String, GetAllMediaLibraryLibraryType> values = createValuesMap();
|
||||
private static final Map<String, GetAllMediaLibraryLibraryTypeEnum> enums = createEnumsMap();
|
||||
|
||||
private final String value;
|
||||
|
||||
private GetAllMediaLibraryLibraryType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a GetAllMediaLibraryLibraryType with the given value. For a specific value the
|
||||
* returned object will always be a singleton so reference equality
|
||||
* is satisfied when the values are the same.
|
||||
*
|
||||
* @param value value to be wrapped as GetAllMediaLibraryLibraryType
|
||||
*/
|
||||
public static GetAllMediaLibraryLibraryType of(String value) {
|
||||
synchronized (GetAllMediaLibraryLibraryType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetAllMediaLibraryLibraryType(v));
|
||||
}
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Optional<GetAllMediaLibraryLibraryTypeEnum> asEnum() {
|
||||
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||
}
|
||||
|
||||
public boolean isKnown() {
|
||||
return asEnum().isPresent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
GetAllMediaLibraryLibraryType other = (GetAllMediaLibraryLibraryType) obj;
|
||||
return Objects.equals(value, other.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "GetAllMediaLibraryLibraryType [value=" + value + "]";
|
||||
}
|
||||
|
||||
// return an array just like an enum
|
||||
public static GetAllMediaLibraryLibraryType[] values() {
|
||||
synchronized (GetAllMediaLibraryLibraryType.class) {
|
||||
return values.values().toArray(new GetAllMediaLibraryLibraryType[] {});
|
||||
}
|
||||
}
|
||||
|
||||
private static final Map<String, GetAllMediaLibraryLibraryType> createValuesMap() {
|
||||
Map<String, GetAllMediaLibraryLibraryType> map = new LinkedHashMap<>();
|
||||
map.put("movie", Movie);
|
||||
map.put("show", TvShow);
|
||||
map.put("season", Season);
|
||||
map.put("episode", Episode);
|
||||
map.put("artist", Artist);
|
||||
map.put("album", Album);
|
||||
return map;
|
||||
}
|
||||
|
||||
private static final Map<String, GetAllMediaLibraryLibraryTypeEnum> createEnumsMap() {
|
||||
Map<String, GetAllMediaLibraryLibraryTypeEnum> map = new HashMap<>();
|
||||
map.put("movie", GetAllMediaLibraryLibraryTypeEnum.Movie);
|
||||
map.put("show", GetAllMediaLibraryLibraryTypeEnum.TvShow);
|
||||
map.put("season", GetAllMediaLibraryLibraryTypeEnum.Season);
|
||||
map.put("episode", GetAllMediaLibraryLibraryTypeEnum.Episode);
|
||||
map.put("artist", GetAllMediaLibraryLibraryTypeEnum.Artist);
|
||||
map.put("album", GetAllMediaLibraryLibraryTypeEnum.Album);
|
||||
return map;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Serializer extends StdSerializer<GetAllMediaLibraryLibraryType> {
|
||||
|
||||
protected _Serializer() {
|
||||
super(GetAllMediaLibraryLibraryType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serialize(GetAllMediaLibraryLibraryType value, JsonGenerator g, SerializerProvider provider)
|
||||
throws IOException, JsonProcessingException {
|
||||
g.writeObject(value.value);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends StdDeserializer<GetAllMediaLibraryLibraryType> {
|
||||
|
||||
protected _Deserializer() {
|
||||
super(GetAllMediaLibraryLibraryType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetAllMediaLibraryLibraryType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
throws IOException, JacksonException {
|
||||
String v = p.readValueAs(new TypeReference<String>() {});
|
||||
// use the factory method to ensure we get singletons
|
||||
return GetAllMediaLibraryLibraryType.of(v);
|
||||
}
|
||||
}
|
||||
|
||||
public enum GetAllMediaLibraryLibraryTypeEnum {
|
||||
|
||||
Movie("movie"),
|
||||
TvShow("show"),
|
||||
Season("season"),
|
||||
Episode("episode"),
|
||||
Artist("artist"),
|
||||
Album("album"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
private GetAllMediaLibraryLibraryTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class GetAllMediaLibraryRequestBuilder {
|
||||
|
||||
private GetAllMediaLibraryRequest request;
|
||||
private final SDKMethodInterfaces.MethodCallGetAllMediaLibrary sdk;
|
||||
|
||||
public GetAllMediaLibraryRequestBuilder(SDKMethodInterfaces.MethodCallGetAllMediaLibrary sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequestBuilder request(GetAllMediaLibraryRequest request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = request;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryResponse call() throws Exception {
|
||||
|
||||
return sdk.getAllMediaLibrary(
|
||||
request);
|
||||
}
|
||||
}
|
||||
@@ -60,9 +60,11 @@ public class GetCountriesLibraryQueryParamType {
|
||||
public static final GetCountriesLibraryQueryParamType TvShow = new GetCountriesLibraryQueryParamType(2L);
|
||||
public static final GetCountriesLibraryQueryParamType Season = new GetCountriesLibraryQueryParamType(3L);
|
||||
public static final GetCountriesLibraryQueryParamType Episode = new GetCountriesLibraryQueryParamType(4L);
|
||||
public static final GetCountriesLibraryQueryParamType Audio = new GetCountriesLibraryQueryParamType(8L);
|
||||
public static final GetCountriesLibraryQueryParamType Album = new GetCountriesLibraryQueryParamType(9L);
|
||||
public static final GetCountriesLibraryQueryParamType Track = new GetCountriesLibraryQueryParamType(10L);
|
||||
public static final GetCountriesLibraryQueryParamType Artist = new GetCountriesLibraryQueryParamType(5L);
|
||||
public static final GetCountriesLibraryQueryParamType Album = new GetCountriesLibraryQueryParamType(6L);
|
||||
public static final GetCountriesLibraryQueryParamType Track = new GetCountriesLibraryQueryParamType(7L);
|
||||
public static final GetCountriesLibraryQueryParamType PhotoAlbum = new GetCountriesLibraryQueryParamType(8L);
|
||||
public static final GetCountriesLibraryQueryParamType Photo = new GetCountriesLibraryQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class GetCountriesLibraryQueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class GetCountriesLibraryQueryParamType {
|
||||
map.put(2L, GetCountriesLibraryQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetCountriesLibraryQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetCountriesLibraryQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetCountriesLibraryQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetCountriesLibraryQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetCountriesLibraryQueryParamTypeEnum.Track);
|
||||
map.put(5L, GetCountriesLibraryQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetCountriesLibraryQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetCountriesLibraryQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetCountriesLibraryQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetCountriesLibraryQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class GetCountriesLibraryQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -60,9 +60,11 @@ public class GetGenresLibraryQueryParamType {
|
||||
public static final GetGenresLibraryQueryParamType TvShow = new GetGenresLibraryQueryParamType(2L);
|
||||
public static final GetGenresLibraryQueryParamType Season = new GetGenresLibraryQueryParamType(3L);
|
||||
public static final GetGenresLibraryQueryParamType Episode = new GetGenresLibraryQueryParamType(4L);
|
||||
public static final GetGenresLibraryQueryParamType Audio = new GetGenresLibraryQueryParamType(8L);
|
||||
public static final GetGenresLibraryQueryParamType Album = new GetGenresLibraryQueryParamType(9L);
|
||||
public static final GetGenresLibraryQueryParamType Track = new GetGenresLibraryQueryParamType(10L);
|
||||
public static final GetGenresLibraryQueryParamType Artist = new GetGenresLibraryQueryParamType(5L);
|
||||
public static final GetGenresLibraryQueryParamType Album = new GetGenresLibraryQueryParamType(6L);
|
||||
public static final GetGenresLibraryQueryParamType Track = new GetGenresLibraryQueryParamType(7L);
|
||||
public static final GetGenresLibraryQueryParamType PhotoAlbum = new GetGenresLibraryQueryParamType(8L);
|
||||
public static final GetGenresLibraryQueryParamType Photo = new GetGenresLibraryQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class GetGenresLibraryQueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class GetGenresLibraryQueryParamType {
|
||||
map.put(2L, GetGenresLibraryQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetGenresLibraryQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetGenresLibraryQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetGenresLibraryQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetGenresLibraryQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetGenresLibraryQueryParamTypeEnum.Track);
|
||||
map.put(5L, GetGenresLibraryQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetGenresLibraryQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetGenresLibraryQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetGenresLibraryQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetGenresLibraryQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class GetGenresLibraryQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* GetLibraryItemsLibraryType
|
||||
*
|
||||
* <p>The type of media content
|
||||
* <p>The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonDeserialize(using = GetLibraryItemsLibraryType._Deserializer.class)
|
||||
@JsonSerialize(using = GetLibraryItemsLibraryType._Serializer.class)
|
||||
@@ -56,6 +56,10 @@ public class GetLibraryItemsLibraryType {
|
||||
public static final GetLibraryItemsLibraryType Episode = new GetLibraryItemsLibraryType("episode");
|
||||
public static final GetLibraryItemsLibraryType Artist = new GetLibraryItemsLibraryType("artist");
|
||||
public static final GetLibraryItemsLibraryType Album = new GetLibraryItemsLibraryType("album");
|
||||
public static final GetLibraryItemsLibraryType Track = new GetLibraryItemsLibraryType("track");
|
||||
public static final GetLibraryItemsLibraryType PhotoAlbum = new GetLibraryItemsLibraryType("photoalbum");
|
||||
public static final GetLibraryItemsLibraryType Photo = new GetLibraryItemsLibraryType("photo");
|
||||
public static final GetLibraryItemsLibraryType Collection = new GetLibraryItemsLibraryType("collection");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -133,6 +137,10 @@ public class GetLibraryItemsLibraryType {
|
||||
map.put("episode", Episode);
|
||||
map.put("artist", Artist);
|
||||
map.put("album", Album);
|
||||
map.put("track", Track);
|
||||
map.put("photoalbum", PhotoAlbum);
|
||||
map.put("photo", Photo);
|
||||
map.put("collection", Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -144,6 +152,10 @@ public class GetLibraryItemsLibraryType {
|
||||
map.put("episode", GetLibraryItemsLibraryTypeEnum.Episode);
|
||||
map.put("artist", GetLibraryItemsLibraryTypeEnum.Artist);
|
||||
map.put("album", GetLibraryItemsLibraryTypeEnum.Album);
|
||||
map.put("track", GetLibraryItemsLibraryTypeEnum.Track);
|
||||
map.put("photoalbum", GetLibraryItemsLibraryTypeEnum.PhotoAlbum);
|
||||
map.put("photo", GetLibraryItemsLibraryTypeEnum.Photo);
|
||||
map.put("collection", GetLibraryItemsLibraryTypeEnum.Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -184,7 +196,11 @@ public class GetLibraryItemsLibraryType {
|
||||
Season("season"),
|
||||
Episode("episode"),
|
||||
Artist("artist"),
|
||||
Album("album"),;
|
||||
Album("album"),
|
||||
Track("track"),
|
||||
PhotoAlbum("photoalbum"),
|
||||
Photo("photo"),
|
||||
Collection("collection"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ public class GetLibraryItemsMetadata {
|
||||
private Optional<String> librarySectionKey;
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonProperty("type")
|
||||
private GetLibraryItemsLibraryType type;
|
||||
@@ -647,7 +647,7 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public GetLibraryItemsLibraryType type() {
|
||||
@@ -1124,7 +1124,7 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
public GetLibraryItemsMetadata withType(GetLibraryItemsLibraryType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
@@ -2471,7 +2471,7 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
public Builder type(GetLibraryItemsLibraryType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
|
||||
@@ -60,9 +60,11 @@ public class GetLibraryItemsQueryParamType {
|
||||
public static final GetLibraryItemsQueryParamType TvShow = new GetLibraryItemsQueryParamType(2L);
|
||||
public static final GetLibraryItemsQueryParamType Season = new GetLibraryItemsQueryParamType(3L);
|
||||
public static final GetLibraryItemsQueryParamType Episode = new GetLibraryItemsQueryParamType(4L);
|
||||
public static final GetLibraryItemsQueryParamType Audio = new GetLibraryItemsQueryParamType(8L);
|
||||
public static final GetLibraryItemsQueryParamType Album = new GetLibraryItemsQueryParamType(9L);
|
||||
public static final GetLibraryItemsQueryParamType Track = new GetLibraryItemsQueryParamType(10L);
|
||||
public static final GetLibraryItemsQueryParamType Artist = new GetLibraryItemsQueryParamType(5L);
|
||||
public static final GetLibraryItemsQueryParamType Album = new GetLibraryItemsQueryParamType(6L);
|
||||
public static final GetLibraryItemsQueryParamType Track = new GetLibraryItemsQueryParamType(7L);
|
||||
public static final GetLibraryItemsQueryParamType PhotoAlbum = new GetLibraryItemsQueryParamType(8L);
|
||||
public static final GetLibraryItemsQueryParamType Photo = new GetLibraryItemsQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class GetLibraryItemsQueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class GetLibraryItemsQueryParamType {
|
||||
map.put(2L, GetLibraryItemsQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetLibraryItemsQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetLibraryItemsQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetLibraryItemsQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetLibraryItemsQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetLibraryItemsQueryParamTypeEnum.Track);
|
||||
map.put(5L, GetLibraryItemsQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetLibraryItemsQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetLibraryItemsQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetLibraryItemsQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetLibraryItemsQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class GetLibraryItemsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -9,18 +9,18 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryActiveDirection
|
||||
* GetLibrarySectionsAllActiveDirection
|
||||
*
|
||||
* <p>The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public enum GetAllMediaLibraryActiveDirection {
|
||||
public enum GetLibrarySectionsAllActiveDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetAllMediaLibraryActiveDirection(String value) {
|
||||
private GetLibrarySectionsAllActiveDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ public enum GetAllMediaLibraryActiveDirection {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetAllMediaLibraryActiveDirection> fromValue(String value) {
|
||||
for (GetAllMediaLibraryActiveDirection o: GetAllMediaLibraryActiveDirection.values()) {
|
||||
public static Optional<GetLibrarySectionsAllActiveDirection> fromValue(String value) {
|
||||
for (GetLibrarySectionsAllActiveDirection o: GetLibrarySectionsAllActiveDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryCollection {
|
||||
public class GetLibrarySectionsAllCollection {
|
||||
|
||||
/**
|
||||
* The user-made collection this media item belongs to
|
||||
@@ -20,7 +20,7 @@ public class GetAllMediaLibraryCollection {
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryCollection(
|
||||
public GetLibrarySectionsAllCollection(
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
@@ -41,7 +41,7 @@ public class GetAllMediaLibraryCollection {
|
||||
/**
|
||||
* The user-made collection this media item belongs to
|
||||
*/
|
||||
public GetAllMediaLibraryCollection withTag(String tag) {
|
||||
public GetLibrarySectionsAllCollection withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -56,7 +56,7 @@ public class GetAllMediaLibraryCollection {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryCollection other = (GetAllMediaLibraryCollection) o;
|
||||
GetLibrarySectionsAllCollection other = (GetLibrarySectionsAllCollection) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ public class GetAllMediaLibraryCollection {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryCollection.class,
|
||||
return Utils.toString(GetLibrarySectionsAllCollection.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ public class GetAllMediaLibraryCollection {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryCollection build() {
|
||||
return new GetAllMediaLibraryCollection(
|
||||
public GetLibrarySectionsAllCollection build() {
|
||||
return new GetLibrarySectionsAllCollection(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryCountry {
|
||||
public class GetLibrarySectionsAllCountry {
|
||||
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
@@ -20,7 +20,7 @@ public class GetAllMediaLibraryCountry {
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryCountry(
|
||||
public GetLibrarySectionsAllCountry(
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
@@ -41,7 +41,7 @@ public class GetAllMediaLibraryCountry {
|
||||
/**
|
||||
* The country of origin of this media item
|
||||
*/
|
||||
public GetAllMediaLibraryCountry withTag(String tag) {
|
||||
public GetLibrarySectionsAllCountry withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -56,7 +56,7 @@ public class GetAllMediaLibraryCountry {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryCountry other = (GetAllMediaLibraryCountry) o;
|
||||
GetLibrarySectionsAllCountry other = (GetLibrarySectionsAllCountry) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ public class GetAllMediaLibraryCountry {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryCountry.class,
|
||||
return Utils.toString(GetLibrarySectionsAllCountry.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ public class GetAllMediaLibraryCountry {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryCountry build() {
|
||||
return new GetAllMediaLibraryCountry(
|
||||
public GetLibrarySectionsAllCountry build() {
|
||||
return new GetLibrarySectionsAllCountry(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
@@ -9,18 +9,18 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryDefaultDirection
|
||||
* GetLibrarySectionsAllDefaultDirection
|
||||
*
|
||||
* <p>The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public enum GetAllMediaLibraryDefaultDirection {
|
||||
public enum GetLibrarySectionsAllDefaultDirection {
|
||||
Ascending("asc"),
|
||||
Descending("desc");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetAllMediaLibraryDefaultDirection(String value) {
|
||||
private GetLibrarySectionsAllDefaultDirection(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ public enum GetAllMediaLibraryDefaultDirection {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetAllMediaLibraryDefaultDirection> fromValue(String value) {
|
||||
for (GetAllMediaLibraryDefaultDirection o: GetAllMediaLibraryDefaultDirection.values()) {
|
||||
public static Optional<GetLibrarySectionsAllDefaultDirection> fromValue(String value) {
|
||||
for (GetLibrarySectionsAllDefaultDirection o: GetLibrarySectionsAllDefaultDirection.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryDirector {
|
||||
public class GetLibrarySectionsAllDirector {
|
||||
|
||||
/**
|
||||
* The role of Director
|
||||
@@ -20,7 +20,7 @@ public class GetAllMediaLibraryDirector {
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryDirector(
|
||||
public GetLibrarySectionsAllDirector(
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
@@ -41,7 +41,7 @@ public class GetAllMediaLibraryDirector {
|
||||
/**
|
||||
* The role of Director
|
||||
*/
|
||||
public GetAllMediaLibraryDirector withTag(String tag) {
|
||||
public GetLibrarySectionsAllDirector withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -56,7 +56,7 @@ public class GetAllMediaLibraryDirector {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryDirector other = (GetAllMediaLibraryDirector) o;
|
||||
GetLibrarySectionsAllDirector other = (GetLibrarySectionsAllDirector) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ public class GetAllMediaLibraryDirector {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryDirector.class,
|
||||
return Utils.toString(GetLibrarySectionsAllDirector.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ public class GetAllMediaLibraryDirector {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryDirector build() {
|
||||
return new GetAllMediaLibraryDirector(
|
||||
public GetLibrarySectionsAllDirector build() {
|
||||
return new GetLibrarySectionsAllDirector(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryField {
|
||||
public class GetLibrarySectionsAllField {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
@@ -30,7 +30,7 @@ public class GetAllMediaLibraryField {
|
||||
private Optional<String> subType;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryField(
|
||||
public GetLibrarySectionsAllField(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("type") String type,
|
||||
@@ -45,7 +45,7 @@ public class GetAllMediaLibraryField {
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryField(
|
||||
public GetLibrarySectionsAllField(
|
||||
String key,
|
||||
String title,
|
||||
String type) {
|
||||
@@ -76,31 +76,31 @@ public class GetAllMediaLibraryField {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryField withKey(String key) {
|
||||
public GetLibrarySectionsAllField withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryField withTitle(String title) {
|
||||
public GetLibrarySectionsAllField withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryField withType(String type) {
|
||||
public GetLibrarySectionsAllField withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryField withSubType(String subType) {
|
||||
public GetLibrarySectionsAllField withSubType(String subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = Optional.ofNullable(subType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryField withSubType(Optional<String> subType) {
|
||||
public GetLibrarySectionsAllField withSubType(Optional<String> subType) {
|
||||
Utils.checkNotNull(subType, "subType");
|
||||
this.subType = subType;
|
||||
return this;
|
||||
@@ -115,7 +115,7 @@ public class GetAllMediaLibraryField {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryField other = (GetAllMediaLibraryField) o;
|
||||
GetLibrarySectionsAllField other = (GetLibrarySectionsAllField) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title) &&
|
||||
@@ -134,7 +134,7 @@ public class GetAllMediaLibraryField {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryField.class,
|
||||
return Utils.toString(GetLibrarySectionsAllField.class,
|
||||
"key", key,
|
||||
"title", title,
|
||||
"type", type,
|
||||
@@ -185,8 +185,8 @@ public class GetAllMediaLibraryField {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryField build() {
|
||||
return new GetAllMediaLibraryField(
|
||||
public GetLibrarySectionsAllField build() {
|
||||
return new GetLibrarySectionsAllField(
|
||||
key,
|
||||
title,
|
||||
type,
|
||||
@@ -12,18 +12,18 @@ import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryFieldType {
|
||||
public class GetLibrarySectionsAllFieldType {
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("Operator")
|
||||
private List<GetAllMediaLibraryOperator> operator;
|
||||
private List<GetLibrarySectionsAllOperator> operator;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryFieldType(
|
||||
public GetLibrarySectionsAllFieldType(
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("Operator") List<GetAllMediaLibraryOperator> operator) {
|
||||
@JsonProperty("Operator") List<GetLibrarySectionsAllOperator> operator) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.type = type;
|
||||
@@ -36,7 +36,7 @@ public class GetAllMediaLibraryFieldType {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<GetAllMediaLibraryOperator> operator() {
|
||||
public List<GetLibrarySectionsAllOperator> operator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
@@ -44,13 +44,13 @@ public class GetAllMediaLibraryFieldType {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFieldType withType(String type) {
|
||||
public GetLibrarySectionsAllFieldType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFieldType withOperator(List<GetAllMediaLibraryOperator> operator) {
|
||||
public GetLibrarySectionsAllFieldType withOperator(List<GetLibrarySectionsAllOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
@@ -65,7 +65,7 @@ public class GetAllMediaLibraryFieldType {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryFieldType other = (GetAllMediaLibraryFieldType) o;
|
||||
GetLibrarySectionsAllFieldType other = (GetLibrarySectionsAllFieldType) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.operator, other.operator);
|
||||
@@ -80,7 +80,7 @@ public class GetAllMediaLibraryFieldType {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryFieldType.class,
|
||||
return Utils.toString(GetLibrarySectionsAllFieldType.class,
|
||||
"type", type,
|
||||
"operator", operator);
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public class GetAllMediaLibraryFieldType {
|
||||
|
||||
private String type;
|
||||
|
||||
private List<GetAllMediaLibraryOperator> operator;
|
||||
private List<GetLibrarySectionsAllOperator> operator;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -101,14 +101,14 @@ public class GetAllMediaLibraryFieldType {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder operator(List<GetAllMediaLibraryOperator> operator) {
|
||||
public Builder operator(List<GetLibrarySectionsAllOperator> operator) {
|
||||
Utils.checkNotNull(operator, "operator");
|
||||
this.operator = operator;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFieldType build() {
|
||||
return new GetAllMediaLibraryFieldType(
|
||||
public GetLibrarySectionsAllFieldType build() {
|
||||
return new GetLibrarySectionsAllFieldType(
|
||||
type,
|
||||
operator);
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryFilter {
|
||||
public class GetLibrarySectionsAllFilter {
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
@@ -37,7 +37,7 @@ public class GetAllMediaLibraryFilter {
|
||||
private Optional<Boolean> advanced;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryFilter(
|
||||
public GetLibrarySectionsAllFilter(
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("filterType") String filterType,
|
||||
@JsonProperty("key") String key,
|
||||
@@ -58,7 +58,7 @@ public class GetAllMediaLibraryFilter {
|
||||
this.advanced = advanced;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter(
|
||||
public GetLibrarySectionsAllFilter(
|
||||
String filter,
|
||||
String filterType,
|
||||
String key,
|
||||
@@ -101,43 +101,43 @@ public class GetAllMediaLibraryFilter {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter withFilter(String filter) {
|
||||
public GetLibrarySectionsAllFilter withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter withFilterType(String filterType) {
|
||||
public GetLibrarySectionsAllFilter withFilterType(String filterType) {
|
||||
Utils.checkNotNull(filterType, "filterType");
|
||||
this.filterType = filterType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter withKey(String key) {
|
||||
public GetLibrarySectionsAllFilter withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter withTitle(String title) {
|
||||
public GetLibrarySectionsAllFilter withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter withType(String type) {
|
||||
public GetLibrarySectionsAllFilter withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter withAdvanced(boolean advanced) {
|
||||
public GetLibrarySectionsAllFilter withAdvanced(boolean advanced) {
|
||||
Utils.checkNotNull(advanced, "advanced");
|
||||
this.advanced = Optional.ofNullable(advanced);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter withAdvanced(Optional<Boolean> advanced) {
|
||||
public GetLibrarySectionsAllFilter withAdvanced(Optional<Boolean> advanced) {
|
||||
Utils.checkNotNull(advanced, "advanced");
|
||||
this.advanced = advanced;
|
||||
return this;
|
||||
@@ -152,7 +152,7 @@ public class GetAllMediaLibraryFilter {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryFilter other = (GetAllMediaLibraryFilter) o;
|
||||
GetLibrarySectionsAllFilter other = (GetLibrarySectionsAllFilter) o;
|
||||
return
|
||||
Objects.deepEquals(this.filter, other.filter) &&
|
||||
Objects.deepEquals(this.filterType, other.filterType) &&
|
||||
@@ -175,7 +175,7 @@ public class GetAllMediaLibraryFilter {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryFilter.class,
|
||||
return Utils.toString(GetLibrarySectionsAllFilter.class,
|
||||
"filter", filter,
|
||||
"filterType", filterType,
|
||||
"key", key,
|
||||
@@ -244,8 +244,8 @@ public class GetAllMediaLibraryFilter {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryFilter build() {
|
||||
return new GetAllMediaLibraryFilter(
|
||||
public GetLibrarySectionsAllFilter build() {
|
||||
return new GetLibrarySectionsAllFilter(
|
||||
filter,
|
||||
filterType,
|
||||
key,
|
||||
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryGenre {
|
||||
public class GetLibrarySectionsAllGenre {
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
@@ -20,7 +20,7 @@ public class GetAllMediaLibraryGenre {
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryGenre(
|
||||
public GetLibrarySectionsAllGenre(
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
@@ -41,7 +41,7 @@ public class GetAllMediaLibraryGenre {
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
*/
|
||||
public GetAllMediaLibraryGenre withTag(String tag) {
|
||||
public GetLibrarySectionsAllGenre withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -56,7 +56,7 @@ public class GetAllMediaLibraryGenre {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryGenre other = (GetAllMediaLibraryGenre) o;
|
||||
GetLibrarySectionsAllGenre other = (GetLibrarySectionsAllGenre) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ public class GetAllMediaLibraryGenre {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryGenre.class,
|
||||
return Utils.toString(GetLibrarySectionsAllGenre.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ public class GetAllMediaLibraryGenre {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryGenre build() {
|
||||
return new GetAllMediaLibraryGenre(
|
||||
public GetLibrarySectionsAllGenre build() {
|
||||
return new GetLibrarySectionsAllGenre(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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 GetLibrarySectionsAllGuids {
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonCreator
|
||||
public GetLibrarySectionsAllGuids(
|
||||
@JsonProperty("id") String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
public GetLibrarySectionsAllGuids withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetLibrarySectionsAllGuids other = (GetLibrarySectionsAllGuids) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetLibrarySectionsAllGuids.class,
|
||||
"id", id);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private String id;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibrarySectionsAllGuids build() {
|
||||
return new GetLibrarySectionsAllGuids(
|
||||
id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,18 +9,18 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryHasThumbnail
|
||||
* GetLibrarySectionsAllHasThumbnail
|
||||
*
|
||||
* <p>Indicates if the part has a thumbnail.
|
||||
*/
|
||||
public enum GetAllMediaLibraryHasThumbnail {
|
||||
public enum GetLibrarySectionsAllHasThumbnail {
|
||||
False("0"),
|
||||
True("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetAllMediaLibraryHasThumbnail(String value) {
|
||||
private GetLibrarySectionsAllHasThumbnail(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ public enum GetAllMediaLibraryHasThumbnail {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetAllMediaLibraryHasThumbnail> fromValue(String value) {
|
||||
for (GetAllMediaLibraryHasThumbnail o: GetAllMediaLibraryHasThumbnail.values()) {
|
||||
public static Optional<GetLibrarySectionsAllHasThumbnail> fromValue(String value) {
|
||||
for (GetLibrarySectionsAllHasThumbnail o: GetLibrarySectionsAllHasThumbnail.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
@@ -11,21 +11,21 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryImage {
|
||||
public class GetLibrarySectionsAllImage {
|
||||
|
||||
@JsonProperty("alt")
|
||||
private String alt;
|
||||
|
||||
@JsonProperty("type")
|
||||
private GetAllMediaLibraryLibraryResponseType type;
|
||||
private GetLibrarySectionsAllLibraryResponseType type;
|
||||
|
||||
@JsonProperty("url")
|
||||
private String url;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryImage(
|
||||
public GetLibrarySectionsAllImage(
|
||||
@JsonProperty("alt") String alt,
|
||||
@JsonProperty("type") GetAllMediaLibraryLibraryResponseType type,
|
||||
@JsonProperty("type") GetLibrarySectionsAllLibraryResponseType type,
|
||||
@JsonProperty("url") String url) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
Utils.checkNotNull(type, "type");
|
||||
@@ -41,7 +41,7 @@ public class GetAllMediaLibraryImage {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public GetAllMediaLibraryLibraryResponseType type() {
|
||||
public GetLibrarySectionsAllLibraryResponseType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -54,19 +54,19 @@ public class GetAllMediaLibraryImage {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryImage withAlt(String alt) {
|
||||
public GetLibrarySectionsAllImage withAlt(String alt) {
|
||||
Utils.checkNotNull(alt, "alt");
|
||||
this.alt = alt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryImage withType(GetAllMediaLibraryLibraryResponseType type) {
|
||||
public GetLibrarySectionsAllImage withType(GetLibrarySectionsAllLibraryResponseType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryImage withUrl(String url) {
|
||||
public GetLibrarySectionsAllImage withUrl(String url) {
|
||||
Utils.checkNotNull(url, "url");
|
||||
this.url = url;
|
||||
return this;
|
||||
@@ -81,7 +81,7 @@ public class GetAllMediaLibraryImage {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryImage other = (GetAllMediaLibraryImage) o;
|
||||
GetLibrarySectionsAllImage other = (GetLibrarySectionsAllImage) o;
|
||||
return
|
||||
Objects.deepEquals(this.alt, other.alt) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
@@ -98,7 +98,7 @@ public class GetAllMediaLibraryImage {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryImage.class,
|
||||
return Utils.toString(GetLibrarySectionsAllImage.class,
|
||||
"alt", alt,
|
||||
"type", type,
|
||||
"url", url);
|
||||
@@ -108,7 +108,7 @@ public class GetAllMediaLibraryImage {
|
||||
|
||||
private String alt;
|
||||
|
||||
private GetAllMediaLibraryLibraryResponseType type;
|
||||
private GetLibrarySectionsAllLibraryResponseType type;
|
||||
|
||||
private String url;
|
||||
|
||||
@@ -122,7 +122,7 @@ public class GetAllMediaLibraryImage {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(GetAllMediaLibraryLibraryResponseType type) {
|
||||
public Builder type(GetLibrarySectionsAllLibraryResponseType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -134,8 +134,8 @@ public class GetAllMediaLibraryImage {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryImage build() {
|
||||
return new GetAllMediaLibraryImage(
|
||||
public GetLibrarySectionsAllImage build() {
|
||||
return new GetLibrarySectionsAllImage(
|
||||
alt,
|
||||
type,
|
||||
url);
|
||||
@@ -18,34 +18,34 @@ import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryLibraryOptimizedForStreaming
|
||||
* GetLibrarySectionsAllLibraryOptimizedForStreaming
|
||||
*
|
||||
* <p>Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
@JsonDeserialize(using = GetAllMediaLibraryLibraryOptimizedForStreaming._Deserializer.class)
|
||||
public class GetAllMediaLibraryLibraryOptimizedForStreaming {
|
||||
@JsonDeserialize(using = GetLibrarySectionsAllLibraryOptimizedForStreaming._Deserializer.class)
|
||||
public class GetLibrarySectionsAllLibraryOptimizedForStreaming {
|
||||
|
||||
@JsonValue
|
||||
private TypedObject value;
|
||||
|
||||
private GetAllMediaLibraryLibraryOptimizedForStreaming(TypedObject value) {
|
||||
private GetLibrarySectionsAllLibraryOptimizedForStreaming(TypedObject value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static GetAllMediaLibraryLibraryOptimizedForStreaming of(GetAllMediaLibraryOptimizedForStreaming1 value) {
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreaming of(GetLibrarySectionsAllOptimizedForStreaming1 value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new GetAllMediaLibraryLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<GetAllMediaLibraryOptimizedForStreaming1>(){}));
|
||||
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<GetLibrarySectionsAllOptimizedForStreaming1>(){}));
|
||||
}
|
||||
|
||||
public static GetAllMediaLibraryLibraryOptimizedForStreaming of(boolean value) {
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreaming of(boolean value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new GetAllMediaLibraryLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<java.lang.Boolean>(){}));
|
||||
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<java.lang.Boolean>(){}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an instance of one of these types:
|
||||
* <ul>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.GetAllMediaLibraryOptimizedForStreaming1}</li>
|
||||
* <li>{@code dev.plexapi.sdk.models.operations.GetLibrarySectionsAllOptimizedForStreaming1}</li>
|
||||
* <li>{@code boolean}</li>
|
||||
* </ul>
|
||||
*
|
||||
@@ -72,7 +72,7 @@ public class GetAllMediaLibraryLibraryOptimizedForStreaming {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryLibraryOptimizedForStreaming other = (GetAllMediaLibraryLibraryOptimizedForStreaming) o;
|
||||
GetLibrarySectionsAllLibraryOptimizedForStreaming other = (GetLibrarySectionsAllLibraryOptimizedForStreaming) o;
|
||||
return Objects.deepEquals(this.value.value(), other.value.value());
|
||||
}
|
||||
|
||||
@@ -82,18 +82,18 @@ public class GetAllMediaLibraryLibraryOptimizedForStreaming {
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends OneOfDeserializer<GetAllMediaLibraryLibraryOptimizedForStreaming> {
|
||||
public static final class _Deserializer extends OneOfDeserializer<GetLibrarySectionsAllLibraryOptimizedForStreaming> {
|
||||
|
||||
public _Deserializer() {
|
||||
super(GetAllMediaLibraryLibraryOptimizedForStreaming.class, false,
|
||||
super(GetLibrarySectionsAllLibraryOptimizedForStreaming.class, false,
|
||||
TypeReferenceWithShape.of(new TypeReference<Boolean>() {}, JsonShape.DEFAULT),
|
||||
TypeReferenceWithShape.of(new TypeReference<GetAllMediaLibraryOptimizedForStreaming1>() {}, JsonShape.DEFAULT));
|
||||
TypeReferenceWithShape.of(new TypeReference<GetLibrarySectionsAllOptimizedForStreaming1>() {}, JsonShape.DEFAULT));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryLibraryOptimizedForStreaming.class,
|
||||
return Utils.toString(GetLibrarySectionsAllLibraryOptimizedForStreaming.class,
|
||||
"value", value);
|
||||
}
|
||||
|
||||
@@ -41,39 +41,39 @@ import java.util.Optional;
|
||||
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||
*
|
||||
*/
|
||||
@JsonDeserialize(using = GetAllMediaLibraryLibraryResponseType._Deserializer.class)
|
||||
@JsonSerialize(using = GetAllMediaLibraryLibraryResponseType._Serializer.class)
|
||||
public class GetAllMediaLibraryLibraryResponseType {
|
||||
@JsonDeserialize(using = GetLibrarySectionsAllLibraryResponseType._Deserializer.class)
|
||||
@JsonSerialize(using = GetLibrarySectionsAllLibraryResponseType._Serializer.class)
|
||||
public class GetLibrarySectionsAllLibraryResponseType {
|
||||
|
||||
public static final GetAllMediaLibraryLibraryResponseType COVER_POSTER = new GetAllMediaLibraryLibraryResponseType("coverPoster");
|
||||
public static final GetAllMediaLibraryLibraryResponseType BACKGROUND = new GetAllMediaLibraryLibraryResponseType("background");
|
||||
public static final GetAllMediaLibraryLibraryResponseType SNAPSHOT = new GetAllMediaLibraryLibraryResponseType("snapshot");
|
||||
public static final GetAllMediaLibraryLibraryResponseType CLEAR_LOGO = new GetAllMediaLibraryLibraryResponseType("clearLogo");
|
||||
public static final GetLibrarySectionsAllLibraryResponseType COVER_POSTER = new GetLibrarySectionsAllLibraryResponseType("coverPoster");
|
||||
public static final GetLibrarySectionsAllLibraryResponseType BACKGROUND = new GetLibrarySectionsAllLibraryResponseType("background");
|
||||
public static final GetLibrarySectionsAllLibraryResponseType SNAPSHOT = new GetLibrarySectionsAllLibraryResponseType("snapshot");
|
||||
public static final GetLibrarySectionsAllLibraryResponseType CLEAR_LOGO = new GetLibrarySectionsAllLibraryResponseType("clearLogo");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
// careful). Keep this field lower case to avoid clashing with
|
||||
// generated member names which will always be upper cased (Java
|
||||
// convention)
|
||||
private static final Map<String, GetAllMediaLibraryLibraryResponseType> values = createValuesMap();
|
||||
private static final Map<String, GetAllMediaLibraryLibraryResponseTypeEnum> enums = createEnumsMap();
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryResponseType> values = createValuesMap();
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryResponseTypeEnum> enums = createEnumsMap();
|
||||
|
||||
private final String value;
|
||||
|
||||
private GetAllMediaLibraryLibraryResponseType(String value) {
|
||||
private GetLibrarySectionsAllLibraryResponseType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a GetAllMediaLibraryLibraryResponseType with the given value. For a specific value the
|
||||
* Returns a GetLibrarySectionsAllLibraryResponseType with the given value. For a specific value the
|
||||
* returned object will always be a singleton so reference equality
|
||||
* is satisfied when the values are the same.
|
||||
*
|
||||
* @param value value to be wrapped as GetAllMediaLibraryLibraryResponseType
|
||||
* @param value value to be wrapped as GetLibrarySectionsAllLibraryResponseType
|
||||
*/
|
||||
public static GetAllMediaLibraryLibraryResponseType of(String value) {
|
||||
synchronized (GetAllMediaLibraryLibraryResponseType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetAllMediaLibraryLibraryResponseType(v));
|
||||
public static GetLibrarySectionsAllLibraryResponseType of(String value) {
|
||||
synchronized (GetLibrarySectionsAllLibraryResponseType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetLibrarySectionsAllLibraryResponseType(v));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public class GetAllMediaLibraryLibraryResponseType {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Optional<GetAllMediaLibraryLibraryResponseTypeEnum> asEnum() {
|
||||
public Optional<GetLibrarySectionsAllLibraryResponseTypeEnum> asEnum() {
|
||||
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||
}
|
||||
|
||||
@@ -102,24 +102,24 @@ public class GetAllMediaLibraryLibraryResponseType {
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
GetAllMediaLibraryLibraryResponseType other = (GetAllMediaLibraryLibraryResponseType) obj;
|
||||
GetLibrarySectionsAllLibraryResponseType other = (GetLibrarySectionsAllLibraryResponseType) obj;
|
||||
return Objects.equals(value, other.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "GetAllMediaLibraryLibraryResponseType [value=" + value + "]";
|
||||
return "GetLibrarySectionsAllLibraryResponseType [value=" + value + "]";
|
||||
}
|
||||
|
||||
// return an array just like an enum
|
||||
public static GetAllMediaLibraryLibraryResponseType[] values() {
|
||||
synchronized (GetAllMediaLibraryLibraryResponseType.class) {
|
||||
return values.values().toArray(new GetAllMediaLibraryLibraryResponseType[] {});
|
||||
public static GetLibrarySectionsAllLibraryResponseType[] values() {
|
||||
synchronized (GetLibrarySectionsAllLibraryResponseType.class) {
|
||||
return values.values().toArray(new GetLibrarySectionsAllLibraryResponseType[] {});
|
||||
}
|
||||
}
|
||||
|
||||
private static final Map<String, GetAllMediaLibraryLibraryResponseType> createValuesMap() {
|
||||
Map<String, GetAllMediaLibraryLibraryResponseType> map = new LinkedHashMap<>();
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryResponseType> createValuesMap() {
|
||||
Map<String, GetLibrarySectionsAllLibraryResponseType> map = new LinkedHashMap<>();
|
||||
map.put("coverPoster", COVER_POSTER);
|
||||
map.put("background", BACKGROUND);
|
||||
map.put("snapshot", SNAPSHOT);
|
||||
@@ -127,46 +127,46 @@ public class GetAllMediaLibraryLibraryResponseType {
|
||||
return map;
|
||||
}
|
||||
|
||||
private static final Map<String, GetAllMediaLibraryLibraryResponseTypeEnum> createEnumsMap() {
|
||||
Map<String, GetAllMediaLibraryLibraryResponseTypeEnum> map = new HashMap<>();
|
||||
map.put("coverPoster", GetAllMediaLibraryLibraryResponseTypeEnum.COVER_POSTER);
|
||||
map.put("background", GetAllMediaLibraryLibraryResponseTypeEnum.BACKGROUND);
|
||||
map.put("snapshot", GetAllMediaLibraryLibraryResponseTypeEnum.SNAPSHOT);
|
||||
map.put("clearLogo", GetAllMediaLibraryLibraryResponseTypeEnum.CLEAR_LOGO);
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryResponseTypeEnum> createEnumsMap() {
|
||||
Map<String, GetLibrarySectionsAllLibraryResponseTypeEnum> map = new HashMap<>();
|
||||
map.put("coverPoster", GetLibrarySectionsAllLibraryResponseTypeEnum.COVER_POSTER);
|
||||
map.put("background", GetLibrarySectionsAllLibraryResponseTypeEnum.BACKGROUND);
|
||||
map.put("snapshot", GetLibrarySectionsAllLibraryResponseTypeEnum.SNAPSHOT);
|
||||
map.put("clearLogo", GetLibrarySectionsAllLibraryResponseTypeEnum.CLEAR_LOGO);
|
||||
return map;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Serializer extends StdSerializer<GetAllMediaLibraryLibraryResponseType> {
|
||||
public static final class _Serializer extends StdSerializer<GetLibrarySectionsAllLibraryResponseType> {
|
||||
|
||||
protected _Serializer() {
|
||||
super(GetAllMediaLibraryLibraryResponseType.class);
|
||||
super(GetLibrarySectionsAllLibraryResponseType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serialize(GetAllMediaLibraryLibraryResponseType value, JsonGenerator g, SerializerProvider provider)
|
||||
public void serialize(GetLibrarySectionsAllLibraryResponseType value, JsonGenerator g, SerializerProvider provider)
|
||||
throws IOException, JsonProcessingException {
|
||||
g.writeObject(value.value);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends StdDeserializer<GetAllMediaLibraryLibraryResponseType> {
|
||||
public static final class _Deserializer extends StdDeserializer<GetLibrarySectionsAllLibraryResponseType> {
|
||||
|
||||
protected _Deserializer() {
|
||||
super(GetAllMediaLibraryLibraryResponseType.class);
|
||||
super(GetLibrarySectionsAllLibraryResponseType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetAllMediaLibraryLibraryResponseType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
public GetLibrarySectionsAllLibraryResponseType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
throws IOException, JacksonException {
|
||||
String v = p.readValueAs(new TypeReference<String>() {});
|
||||
// use the factory method to ensure we get singletons
|
||||
return GetAllMediaLibraryLibraryResponseType.of(v);
|
||||
return GetLibrarySectionsAllLibraryResponseType.of(v);
|
||||
}
|
||||
}
|
||||
|
||||
public enum GetAllMediaLibraryLibraryResponseTypeEnum {
|
||||
public enum GetLibrarySectionsAllLibraryResponseTypeEnum {
|
||||
|
||||
COVER_POSTER("coverPoster"),
|
||||
BACKGROUND("background"),
|
||||
@@ -175,7 +175,7 @@ public class GetAllMediaLibraryLibraryResponseType {
|
||||
|
||||
private final String value;
|
||||
|
||||
private GetAllMediaLibraryLibraryResponseTypeEnum(String value) {
|
||||
private GetLibrarySectionsAllLibraryResponseTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.core.JacksonException;
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||
import java.io.IOException;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* <p>Wrapper class for an "open" enum. "Open" enums are those that are expected
|
||||
* to evolve (particularly with the addition of enum members over time). If an
|
||||
* open enum is used then the appearance of unexpected enum values (say in a
|
||||
* response from an updated an API) will not bring about a runtime error thus
|
||||
* ensuring that non-updated client versions can continue to work without error.
|
||||
*
|
||||
* <p>Note that instances are immutable and are singletons (an internal thread-safe
|
||||
* cache is maintained to ensure that). As a consequence instances created with the
|
||||
* same value will satisfy reference equality (via {@code ==}).
|
||||
*
|
||||
* <p>This class is intended to emulate an enum (in terms of common usage and with
|
||||
* reference equality) but with the ability to carry unknown values. Unfortunately
|
||||
* Java does not permit the use of an instance in a switch expression but you can
|
||||
* use the {@code asEnum()} method (after dealing with the `Optional` appropriately).
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* GetLibrarySectionsAllLibraryType
|
||||
*
|
||||
* <p>The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonDeserialize(using = GetLibrarySectionsAllLibraryType._Deserializer.class)
|
||||
@JsonSerialize(using = GetLibrarySectionsAllLibraryType._Serializer.class)
|
||||
public class GetLibrarySectionsAllLibraryType {
|
||||
|
||||
public static final GetLibrarySectionsAllLibraryType Movie = new GetLibrarySectionsAllLibraryType("movie");
|
||||
public static final GetLibrarySectionsAllLibraryType TvShow = new GetLibrarySectionsAllLibraryType("show");
|
||||
public static final GetLibrarySectionsAllLibraryType Season = new GetLibrarySectionsAllLibraryType("season");
|
||||
public static final GetLibrarySectionsAllLibraryType Episode = new GetLibrarySectionsAllLibraryType("episode");
|
||||
public static final GetLibrarySectionsAllLibraryType Artist = new GetLibrarySectionsAllLibraryType("artist");
|
||||
public static final GetLibrarySectionsAllLibraryType Album = new GetLibrarySectionsAllLibraryType("album");
|
||||
public static final GetLibrarySectionsAllLibraryType Track = new GetLibrarySectionsAllLibraryType("track");
|
||||
public static final GetLibrarySectionsAllLibraryType PhotoAlbum = new GetLibrarySectionsAllLibraryType("photoalbum");
|
||||
public static final GetLibrarySectionsAllLibraryType Photo = new GetLibrarySectionsAllLibraryType("photo");
|
||||
public static final GetLibrarySectionsAllLibraryType Collection = new GetLibrarySectionsAllLibraryType("collection");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
// careful). Keep this field lower case to avoid clashing with
|
||||
// generated member names which will always be upper cased (Java
|
||||
// convention)
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryType> values = createValuesMap();
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryTypeEnum> enums = createEnumsMap();
|
||||
|
||||
private final String value;
|
||||
|
||||
private GetLibrarySectionsAllLibraryType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a GetLibrarySectionsAllLibraryType with the given value. For a specific value the
|
||||
* returned object will always be a singleton so reference equality
|
||||
* is satisfied when the values are the same.
|
||||
*
|
||||
* @param value value to be wrapped as GetLibrarySectionsAllLibraryType
|
||||
*/
|
||||
public static GetLibrarySectionsAllLibraryType of(String value) {
|
||||
synchronized (GetLibrarySectionsAllLibraryType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetLibrarySectionsAllLibraryType(v));
|
||||
}
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Optional<GetLibrarySectionsAllLibraryTypeEnum> asEnum() {
|
||||
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||
}
|
||||
|
||||
public boolean isKnown() {
|
||||
return asEnum().isPresent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
GetLibrarySectionsAllLibraryType other = (GetLibrarySectionsAllLibraryType) obj;
|
||||
return Objects.equals(value, other.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "GetLibrarySectionsAllLibraryType [value=" + value + "]";
|
||||
}
|
||||
|
||||
// return an array just like an enum
|
||||
public static GetLibrarySectionsAllLibraryType[] values() {
|
||||
synchronized (GetLibrarySectionsAllLibraryType.class) {
|
||||
return values.values().toArray(new GetLibrarySectionsAllLibraryType[] {});
|
||||
}
|
||||
}
|
||||
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryType> createValuesMap() {
|
||||
Map<String, GetLibrarySectionsAllLibraryType> map = new LinkedHashMap<>();
|
||||
map.put("movie", Movie);
|
||||
map.put("show", TvShow);
|
||||
map.put("season", Season);
|
||||
map.put("episode", Episode);
|
||||
map.put("artist", Artist);
|
||||
map.put("album", Album);
|
||||
map.put("track", Track);
|
||||
map.put("photoalbum", PhotoAlbum);
|
||||
map.put("photo", Photo);
|
||||
map.put("collection", Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
private static final Map<String, GetLibrarySectionsAllLibraryTypeEnum> createEnumsMap() {
|
||||
Map<String, GetLibrarySectionsAllLibraryTypeEnum> map = new HashMap<>();
|
||||
map.put("movie", GetLibrarySectionsAllLibraryTypeEnum.Movie);
|
||||
map.put("show", GetLibrarySectionsAllLibraryTypeEnum.TvShow);
|
||||
map.put("season", GetLibrarySectionsAllLibraryTypeEnum.Season);
|
||||
map.put("episode", GetLibrarySectionsAllLibraryTypeEnum.Episode);
|
||||
map.put("artist", GetLibrarySectionsAllLibraryTypeEnum.Artist);
|
||||
map.put("album", GetLibrarySectionsAllLibraryTypeEnum.Album);
|
||||
map.put("track", GetLibrarySectionsAllLibraryTypeEnum.Track);
|
||||
map.put("photoalbum", GetLibrarySectionsAllLibraryTypeEnum.PhotoAlbum);
|
||||
map.put("photo", GetLibrarySectionsAllLibraryTypeEnum.Photo);
|
||||
map.put("collection", GetLibrarySectionsAllLibraryTypeEnum.Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Serializer extends StdSerializer<GetLibrarySectionsAllLibraryType> {
|
||||
|
||||
protected _Serializer() {
|
||||
super(GetLibrarySectionsAllLibraryType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serialize(GetLibrarySectionsAllLibraryType value, JsonGenerator g, SerializerProvider provider)
|
||||
throws IOException, JsonProcessingException {
|
||||
g.writeObject(value.value);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends StdDeserializer<GetLibrarySectionsAllLibraryType> {
|
||||
|
||||
protected _Deserializer() {
|
||||
super(GetLibrarySectionsAllLibraryType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetLibrarySectionsAllLibraryType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
throws IOException, JacksonException {
|
||||
String v = p.readValueAs(new TypeReference<String>() {});
|
||||
// use the factory method to ensure we get singletons
|
||||
return GetLibrarySectionsAllLibraryType.of(v);
|
||||
}
|
||||
}
|
||||
|
||||
public enum GetLibrarySectionsAllLibraryTypeEnum {
|
||||
|
||||
Movie("movie"),
|
||||
TvShow("show"),
|
||||
Season("season"),
|
||||
Episode("episode"),
|
||||
Artist("artist"),
|
||||
Album("album"),
|
||||
Track("track"),
|
||||
PhotoAlbum("photoalbum"),
|
||||
Photo("photo"),
|
||||
Collection("collection"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
private GetLibrarySectionsAllLibraryTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryMedia {
|
||||
public class GetLibrarySectionsAllMedia {
|
||||
|
||||
/**
|
||||
* Unique media identifier.
|
||||
@@ -135,7 +135,7 @@ public class GetAllMediaLibraryMedia {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<? extends GetAllMediaLibraryOptimizedForStreaming> optimizedForStreaming;
|
||||
private Optional<? extends GetLibrarySectionsAllOptimizedForStreaming> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("has64bitOffsets")
|
||||
@@ -146,10 +146,10 @@ public class GetAllMediaLibraryMedia {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Part")
|
||||
private Optional<? extends List<GetAllMediaLibraryPart>> part;
|
||||
private Optional<? extends List<GetLibrarySectionsAllPart>> part;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryMedia(
|
||||
public GetLibrarySectionsAllMedia(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("duration") Optional<Integer> duration,
|
||||
@JsonProperty("bitrate") Optional<Integer> bitrate,
|
||||
@@ -166,9 +166,9 @@ public class GetAllMediaLibraryMedia {
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("hasVoiceActivity") Optional<Boolean> hasVoiceActivity,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends GetAllMediaLibraryOptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends GetLibrarySectionsAllOptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("Part") Optional<? extends List<GetAllMediaLibraryPart>> part) {
|
||||
@JsonProperty("Part") Optional<? extends List<GetLibrarySectionsAllPart>> part) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
@@ -209,7 +209,7 @@ public class GetAllMediaLibraryMedia {
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMedia(
|
||||
public GetLibrarySectionsAllMedia(
|
||||
long id) {
|
||||
this(id, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
@@ -344,8 +344,8 @@ public class GetAllMediaLibraryMedia {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryOptimizedForStreaming> optimizedForStreaming() {
|
||||
return (Optional<GetAllMediaLibraryOptimizedForStreaming>) optimizedForStreaming;
|
||||
public Optional<GetLibrarySectionsAllOptimizedForStreaming> optimizedForStreaming() {
|
||||
return (Optional<GetLibrarySectionsAllOptimizedForStreaming>) optimizedForStreaming;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -358,8 +358,8 @@ public class GetAllMediaLibraryMedia {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryPart>> part() {
|
||||
return (Optional<List<GetAllMediaLibraryPart>>) part;
|
||||
public Optional<List<GetLibrarySectionsAllPart>> part() {
|
||||
return (Optional<List<GetLibrarySectionsAllPart>>) part;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -369,7 +369,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Unique media identifier.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withId(long id) {
|
||||
public GetLibrarySectionsAllMedia withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -378,7 +378,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Duration of the media in milliseconds.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withDuration(int duration) {
|
||||
public GetLibrarySectionsAllMedia withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
@@ -387,7 +387,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Duration of the media in milliseconds.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withDuration(Optional<Integer> duration) {
|
||||
public GetLibrarySectionsAllMedia withDuration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
@@ -396,7 +396,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Bitrate in bits per second.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withBitrate(int bitrate) {
|
||||
public GetLibrarySectionsAllMedia withBitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
@@ -405,7 +405,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Bitrate in bits per second.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withBitrate(Optional<Integer> bitrate) {
|
||||
public GetLibrarySectionsAllMedia withBitrate(Optional<Integer> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
@@ -414,7 +414,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video width in pixels.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withWidth(int width) {
|
||||
public GetLibrarySectionsAllMedia withWidth(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
@@ -423,7 +423,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video width in pixels.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withWidth(Optional<Integer> width) {
|
||||
public GetLibrarySectionsAllMedia withWidth(Optional<Integer> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
@@ -432,7 +432,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video height in pixels.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withHeight(int height) {
|
||||
public GetLibrarySectionsAllMedia withHeight(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
@@ -441,7 +441,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video height in pixels.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withHeight(Optional<Integer> height) {
|
||||
public GetLibrarySectionsAllMedia withHeight(Optional<Integer> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
@@ -450,7 +450,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Aspect ratio of the video.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAspectRatio(float aspectRatio) {
|
||||
public GetLibrarySectionsAllMedia withAspectRatio(float aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = Optional.ofNullable(aspectRatio);
|
||||
return this;
|
||||
@@ -459,7 +459,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Aspect ratio of the video.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAspectRatio(Optional<Float> aspectRatio) {
|
||||
public GetLibrarySectionsAllMedia withAspectRatio(Optional<Float> aspectRatio) {
|
||||
Utils.checkNotNull(aspectRatio, "aspectRatio");
|
||||
this.aspectRatio = aspectRatio;
|
||||
return this;
|
||||
@@ -468,7 +468,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Number of audio channels.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAudioChannels(int audioChannels) {
|
||||
public GetLibrarySectionsAllMedia withAudioChannels(int audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = Optional.ofNullable(audioChannels);
|
||||
return this;
|
||||
@@ -477,19 +477,19 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Number of audio channels.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAudioChannels(Optional<Integer> audioChannels) {
|
||||
public GetLibrarySectionsAllMedia withAudioChannels(Optional<Integer> audioChannels) {
|
||||
Utils.checkNotNull(audioChannels, "audioChannels");
|
||||
this.audioChannels = audioChannels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMedia withDisplayOffset(int displayOffset) {
|
||||
public GetLibrarySectionsAllMedia withDisplayOffset(int displayOffset) {
|
||||
Utils.checkNotNull(displayOffset, "displayOffset");
|
||||
this.displayOffset = Optional.ofNullable(displayOffset);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMedia withDisplayOffset(Optional<Integer> displayOffset) {
|
||||
public GetLibrarySectionsAllMedia withDisplayOffset(Optional<Integer> displayOffset) {
|
||||
Utils.checkNotNull(displayOffset, "displayOffset");
|
||||
this.displayOffset = displayOffset;
|
||||
return this;
|
||||
@@ -498,7 +498,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Audio codec used.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAudioCodec(String audioCodec) {
|
||||
public GetLibrarySectionsAllMedia withAudioCodec(String audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = Optional.ofNullable(audioCodec);
|
||||
return this;
|
||||
@@ -507,7 +507,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Audio codec used.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAudioCodec(Optional<String> audioCodec) {
|
||||
public GetLibrarySectionsAllMedia withAudioCodec(Optional<String> audioCodec) {
|
||||
Utils.checkNotNull(audioCodec, "audioCodec");
|
||||
this.audioCodec = audioCodec;
|
||||
return this;
|
||||
@@ -516,7 +516,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video codec used.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoCodec(String videoCodec) {
|
||||
public GetLibrarySectionsAllMedia withVideoCodec(String videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = Optional.ofNullable(videoCodec);
|
||||
return this;
|
||||
@@ -525,7 +525,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video codec used.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoCodec(Optional<String> videoCodec) {
|
||||
public GetLibrarySectionsAllMedia withVideoCodec(Optional<String> videoCodec) {
|
||||
Utils.checkNotNull(videoCodec, "videoCodec");
|
||||
this.videoCodec = videoCodec;
|
||||
return this;
|
||||
@@ -534,7 +534,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video resolution (e.g., 4k).
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoResolution(String videoResolution) {
|
||||
public GetLibrarySectionsAllMedia withVideoResolution(String videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = Optional.ofNullable(videoResolution);
|
||||
return this;
|
||||
@@ -543,7 +543,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video resolution (e.g., 4k).
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoResolution(Optional<String> videoResolution) {
|
||||
public GetLibrarySectionsAllMedia withVideoResolution(Optional<String> videoResolution) {
|
||||
Utils.checkNotNull(videoResolution, "videoResolution");
|
||||
this.videoResolution = videoResolution;
|
||||
return this;
|
||||
@@ -552,7 +552,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* File container type.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withContainer(String container) {
|
||||
public GetLibrarySectionsAllMedia withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
@@ -561,7 +561,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* File container type.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withContainer(Optional<String> container) {
|
||||
public GetLibrarySectionsAllMedia withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
@@ -570,7 +570,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Frame rate of the video. Values found include NTSC, PAL, 24p
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoFrameRate(String videoFrameRate) {
|
||||
public GetLibrarySectionsAllMedia withVideoFrameRate(String videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = Optional.ofNullable(videoFrameRate);
|
||||
return this;
|
||||
@@ -579,7 +579,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Frame rate of the video. Values found include NTSC, PAL, 24p
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoFrameRate(Optional<String> videoFrameRate) {
|
||||
public GetLibrarySectionsAllMedia withVideoFrameRate(Optional<String> videoFrameRate) {
|
||||
Utils.checkNotNull(videoFrameRate, "videoFrameRate");
|
||||
this.videoFrameRate = videoFrameRate;
|
||||
return this;
|
||||
@@ -588,7 +588,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video profile (e.g., main 10).
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoProfile(String videoProfile) {
|
||||
public GetLibrarySectionsAllMedia withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
@@ -597,7 +597,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Video profile (e.g., main 10).
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withVideoProfile(Optional<String> videoProfile) {
|
||||
public GetLibrarySectionsAllMedia withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
@@ -606,7 +606,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withHasVoiceActivity(boolean hasVoiceActivity) {
|
||||
public GetLibrarySectionsAllMedia withHasVoiceActivity(boolean hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = Optional.ofNullable(hasVoiceActivity);
|
||||
return this;
|
||||
@@ -615,7 +615,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Indicates whether voice activity is detected.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withHasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
public GetLibrarySectionsAllMedia withHasVoiceActivity(Optional<Boolean> hasVoiceActivity) {
|
||||
Utils.checkNotNull(hasVoiceActivity, "hasVoiceActivity");
|
||||
this.hasVoiceActivity = hasVoiceActivity;
|
||||
return this;
|
||||
@@ -624,7 +624,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAudioProfile(String audioProfile) {
|
||||
public GetLibrarySectionsAllMedia withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
@@ -633,7 +633,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withAudioProfile(Optional<String> audioProfile) {
|
||||
public GetLibrarySectionsAllMedia withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
@@ -642,7 +642,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreaming optimizedForStreaming) {
|
||||
public GetLibrarySectionsAllMedia withOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
@@ -651,19 +651,19 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withOptimizedForStreaming(Optional<? extends GetAllMediaLibraryOptimizedForStreaming> optimizedForStreaming) {
|
||||
public GetLibrarySectionsAllMedia withOptimizedForStreaming(Optional<? extends GetLibrarySectionsAllOptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMedia withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
public GetLibrarySectionsAllMedia withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMedia withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
public GetLibrarySectionsAllMedia withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
@@ -672,7 +672,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withPart(List<GetAllMediaLibraryPart> part) {
|
||||
public GetLibrarySectionsAllMedia withPart(List<GetLibrarySectionsAllPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
@@ -681,7 +681,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public GetAllMediaLibraryMedia withPart(Optional<? extends List<GetAllMediaLibraryPart>> part) {
|
||||
public GetLibrarySectionsAllMedia withPart(Optional<? extends List<GetLibrarySectionsAllPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
@@ -696,7 +696,7 @@ public class GetAllMediaLibraryMedia {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryMedia other = (GetAllMediaLibraryMedia) o;
|
||||
GetLibrarySectionsAllMedia other = (GetLibrarySectionsAllMedia) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.duration, other.duration) &&
|
||||
@@ -745,7 +745,7 @@ public class GetAllMediaLibraryMedia {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryMedia.class,
|
||||
return Utils.toString(GetLibrarySectionsAllMedia.class,
|
||||
"id", id,
|
||||
"duration", duration,
|
||||
"bitrate", bitrate,
|
||||
@@ -801,11 +801,11 @@ public class GetAllMediaLibraryMedia {
|
||||
|
||||
private Optional<String> audioProfile = Optional.empty();
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryOptimizedForStreaming> optimizedForStreaming = Optional.empty();
|
||||
private Optional<? extends GetLibrarySectionsAllOptimizedForStreaming> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryPart>> part = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllPart>> part = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -1087,7 +1087,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public Builder optimizedForStreaming(GetAllMediaLibraryOptimizedForStreaming optimizedForStreaming) {
|
||||
public Builder optimizedForStreaming(GetLibrarySectionsAllOptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
@@ -1096,7 +1096,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public Builder optimizedForStreaming(Optional<? extends GetAllMediaLibraryOptimizedForStreaming> optimizedForStreaming) {
|
||||
public Builder optimizedForStreaming(Optional<? extends GetLibrarySectionsAllOptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
@@ -1117,7 +1117,7 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public Builder part(List<GetAllMediaLibraryPart> part) {
|
||||
public Builder part(List<GetLibrarySectionsAllPart> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = Optional.ofNullable(part);
|
||||
return this;
|
||||
@@ -1126,14 +1126,14 @@ public class GetAllMediaLibraryMedia {
|
||||
/**
|
||||
* An array of parts for this media item.
|
||||
*/
|
||||
public Builder part(Optional<? extends List<GetAllMediaLibraryPart>> part) {
|
||||
public Builder part(Optional<? extends List<GetLibrarySectionsAllPart>> part) {
|
||||
Utils.checkNotNull(part, "part");
|
||||
this.part = part;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMedia build() {
|
||||
return new GetAllMediaLibraryMedia(
|
||||
public GetLibrarySectionsAllMedia build() {
|
||||
return new GetLibrarySectionsAllMedia(
|
||||
id,
|
||||
duration,
|
||||
bitrate,
|
||||
@@ -19,7 +19,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryMediaContainer {
|
||||
public class GetLibrarySectionsAllMediaContainer {
|
||||
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
@@ -129,17 +129,17 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Meta")
|
||||
private Optional<? extends GetAllMediaLibraryMeta> meta;
|
||||
private Optional<? extends GetLibrarySectionsAllMeta> meta;
|
||||
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
private Optional<? extends List<GetAllMediaLibraryMetadata>> metadata;
|
||||
private Optional<? extends List<GetLibrarySectionsAllMetadata>> metadata;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryMediaContainer(
|
||||
public GetLibrarySectionsAllMediaContainer(
|
||||
@JsonProperty("size") int size,
|
||||
@JsonProperty("totalSize") int totalSize,
|
||||
@JsonProperty("offset") long offset,
|
||||
@@ -157,8 +157,8 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
@JsonProperty("title1") String title1,
|
||||
@JsonProperty("title2") String title2,
|
||||
@JsonProperty("viewGroup") String viewGroup,
|
||||
@JsonProperty("Meta") Optional<? extends GetAllMediaLibraryMeta> meta,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetAllMediaLibraryMetadata>> metadata) {
|
||||
@JsonProperty("Meta") Optional<? extends GetLibrarySectionsAllMeta> meta,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetLibrarySectionsAllMetadata>> metadata) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
@@ -199,7 +199,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMediaContainer(
|
||||
public GetLibrarySectionsAllMediaContainer(
|
||||
int size,
|
||||
int totalSize,
|
||||
long offset,
|
||||
@@ -360,8 +360,8 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryMeta> meta() {
|
||||
return (Optional<GetAllMediaLibraryMeta>) meta;
|
||||
public Optional<GetLibrarySectionsAllMeta> meta() {
|
||||
return (Optional<GetLibrarySectionsAllMeta>) meta;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -369,8 +369,8 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryMetadata>> metadata() {
|
||||
return (Optional<List<GetAllMediaLibraryMetadata>>) metadata;
|
||||
public Optional<List<GetLibrarySectionsAllMetadata>> metadata() {
|
||||
return (Optional<List<GetLibrarySectionsAllMetadata>>) metadata;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -380,7 +380,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withSize(int size) {
|
||||
public GetLibrarySectionsAllMediaContainer withSize(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
@@ -389,7 +389,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* Total number of media items in the library.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withTotalSize(int totalSize) {
|
||||
public GetLibrarySectionsAllMediaContainer withTotalSize(int totalSize) {
|
||||
Utils.checkNotNull(totalSize, "totalSize");
|
||||
this.totalSize = totalSize;
|
||||
return this;
|
||||
@@ -398,7 +398,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* Offset value for pagination.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withOffset(long offset) {
|
||||
public GetLibrarySectionsAllMediaContainer withOffset(long offset) {
|
||||
Utils.checkNotNull(offset, "offset");
|
||||
this.offset = offset;
|
||||
return this;
|
||||
@@ -407,7 +407,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withAllowSync(boolean allowSync) {
|
||||
public GetLibrarySectionsAllMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
@@ -416,7 +416,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* URL for the background artwork of the media container.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withArt(String art) {
|
||||
public GetLibrarySectionsAllMediaContainer withArt(String art) {
|
||||
Utils.checkNotNull(art, "art");
|
||||
this.art = art;
|
||||
return this;
|
||||
@@ -425,7 +425,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The content type or mode.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withContent(String content) {
|
||||
public GetLibrarySectionsAllMediaContainer withContent(String content) {
|
||||
Utils.checkNotNull(content, "content");
|
||||
this.content = content;
|
||||
return this;
|
||||
@@ -434,7 +434,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withIdentifier(String identifier) {
|
||||
public GetLibrarySectionsAllMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
@@ -443,7 +443,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The unique identifier for the library section.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withLibrarySectionID(long librarySectionID) {
|
||||
public GetLibrarySectionsAllMediaContainer withLibrarySectionID(long librarySectionID) {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
this.librarySectionID = librarySectionID;
|
||||
return this;
|
||||
@@ -452,7 +452,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The title of the library section.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withLibrarySectionTitle(String librarySectionTitle) {
|
||||
public GetLibrarySectionsAllMediaContainer withLibrarySectionTitle(String librarySectionTitle) {
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
return this;
|
||||
@@ -461,7 +461,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withLibrarySectionUUID(String librarySectionUUID) {
|
||||
public GetLibrarySectionsAllMediaContainer withLibrarySectionUUID(String librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = Optional.ofNullable(librarySectionUUID);
|
||||
return this;
|
||||
@@ -470,7 +470,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The universally unique identifier for the library section.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withLibrarySectionUUID(Optional<String> librarySectionUUID) {
|
||||
public GetLibrarySectionsAllMediaContainer withLibrarySectionUUID(Optional<String> librarySectionUUID) {
|
||||
Utils.checkNotNull(librarySectionUUID, "librarySectionUUID");
|
||||
this.librarySectionUUID = librarySectionUUID;
|
||||
return this;
|
||||
@@ -479,7 +479,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
public GetLibrarySectionsAllMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
@@ -488,7 +488,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withMediaTagVersion(long mediaTagVersion) {
|
||||
public GetLibrarySectionsAllMediaContainer withMediaTagVersion(long mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
@@ -497,7 +497,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* URL for the thumbnail image of the media container.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withThumb(String thumb) {
|
||||
public GetLibrarySectionsAllMediaContainer withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
this.thumb = thumb;
|
||||
return this;
|
||||
@@ -506,7 +506,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* Specifies whether caching is disabled.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withNocache(boolean nocache) {
|
||||
public GetLibrarySectionsAllMediaContainer withNocache(boolean nocache) {
|
||||
Utils.checkNotNull(nocache, "nocache");
|
||||
this.nocache = nocache;
|
||||
return this;
|
||||
@@ -515,7 +515,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The primary title of the media container.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withTitle1(String title1) {
|
||||
public GetLibrarySectionsAllMediaContainer withTitle1(String title1) {
|
||||
Utils.checkNotNull(title1, "title1");
|
||||
this.title1 = title1;
|
||||
return this;
|
||||
@@ -524,7 +524,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The secondary title of the media container.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withTitle2(String title2) {
|
||||
public GetLibrarySectionsAllMediaContainer withTitle2(String title2) {
|
||||
Utils.checkNotNull(title2, "title2");
|
||||
this.title2 = title2;
|
||||
return this;
|
||||
@@ -533,7 +533,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* Identifier for the view group layout.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withViewGroup(String viewGroup) {
|
||||
public GetLibrarySectionsAllMediaContainer withViewGroup(String viewGroup) {
|
||||
Utils.checkNotNull(viewGroup, "viewGroup");
|
||||
this.viewGroup = viewGroup;
|
||||
return this;
|
||||
@@ -542,7 +542,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withMeta(GetAllMediaLibraryMeta meta) {
|
||||
public GetLibrarySectionsAllMediaContainer withMeta(GetLibrarySectionsAllMeta meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = Optional.ofNullable(meta);
|
||||
return this;
|
||||
@@ -551,7 +551,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withMeta(Optional<? extends GetAllMediaLibraryMeta> meta) {
|
||||
public GetLibrarySectionsAllMediaContainer withMeta(Optional<? extends GetLibrarySectionsAllMeta> meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = meta;
|
||||
return this;
|
||||
@@ -560,7 +560,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withMetadata(List<GetAllMediaLibraryMetadata> metadata) {
|
||||
public GetLibrarySectionsAllMediaContainer withMetadata(List<GetLibrarySectionsAllMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
@@ -569,7 +569,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public GetAllMediaLibraryMediaContainer withMetadata(Optional<? extends List<GetAllMediaLibraryMetadata>> metadata) {
|
||||
public GetLibrarySectionsAllMediaContainer withMetadata(Optional<? extends List<GetLibrarySectionsAllMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
@@ -584,7 +584,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryMediaContainer other = (GetAllMediaLibraryMediaContainer) o;
|
||||
GetLibrarySectionsAllMediaContainer other = (GetLibrarySectionsAllMediaContainer) o;
|
||||
return
|
||||
Objects.deepEquals(this.size, other.size) &&
|
||||
Objects.deepEquals(this.totalSize, other.totalSize) &&
|
||||
@@ -633,7 +633,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryMediaContainer.class,
|
||||
return Utils.toString(GetLibrarySectionsAllMediaContainer.class,
|
||||
"size", size,
|
||||
"totalSize", totalSize,
|
||||
"offset", offset,
|
||||
@@ -691,9 +691,9 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
|
||||
private String viewGroup;
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryMeta> meta = Optional.empty();
|
||||
private Optional<? extends GetLibrarySectionsAllMeta> meta = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryMetadata>> metadata = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllMetadata>> metadata = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -864,7 +864,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*/
|
||||
public Builder meta(GetAllMediaLibraryMeta meta) {
|
||||
public Builder meta(GetLibrarySectionsAllMeta meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = Optional.ofNullable(meta);
|
||||
return this;
|
||||
@@ -873,7 +873,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*/
|
||||
public Builder meta(Optional<? extends GetAllMediaLibraryMeta> meta) {
|
||||
public Builder meta(Optional<? extends GetLibrarySectionsAllMeta> meta) {
|
||||
Utils.checkNotNull(meta, "meta");
|
||||
this.meta = meta;
|
||||
return this;
|
||||
@@ -882,7 +882,7 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public Builder metadata(List<GetAllMediaLibraryMetadata> metadata) {
|
||||
public Builder metadata(List<GetLibrarySectionsAllMetadata> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = Optional.ofNullable(metadata);
|
||||
return this;
|
||||
@@ -891,14 +891,14 @@ public class GetAllMediaLibraryMediaContainer {
|
||||
/**
|
||||
* An array of metadata items.
|
||||
*/
|
||||
public Builder metadata(Optional<? extends List<GetAllMediaLibraryMetadata>> metadata) {
|
||||
public Builder metadata(Optional<? extends List<GetLibrarySectionsAllMetadata>> metadata) {
|
||||
Utils.checkNotNull(metadata, "metadata");
|
||||
this.metadata = metadata;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMediaContainer build() {
|
||||
return new GetAllMediaLibraryMediaContainer(
|
||||
public GetLibrarySectionsAllMediaContainer build() {
|
||||
return new GetLibrarySectionsAllMediaContainer(
|
||||
size,
|
||||
totalSize,
|
||||
offset,
|
||||
@@ -17,69 +17,69 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryMeta
|
||||
* GetLibrarySectionsAllMeta
|
||||
*
|
||||
* <p>The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
*/
|
||||
public class GetAllMediaLibraryMeta {
|
||||
public class GetLibrarySectionsAllMeta {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Type")
|
||||
private Optional<? extends List<GetAllMediaLibraryType>> type;
|
||||
private Optional<? extends List<GetLibrarySectionsAllType>> type;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("FieldType")
|
||||
private Optional<? extends List<GetAllMediaLibraryFieldType>> fieldType;
|
||||
private Optional<? extends List<GetLibrarySectionsAllFieldType>> fieldType;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryMeta(
|
||||
@JsonProperty("Type") Optional<? extends List<GetAllMediaLibraryType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetAllMediaLibraryFieldType>> fieldType) {
|
||||
public GetLibrarySectionsAllMeta(
|
||||
@JsonProperty("Type") Optional<? extends List<GetLibrarySectionsAllType>> type,
|
||||
@JsonProperty("FieldType") Optional<? extends List<GetLibrarySectionsAllFieldType>> fieldType) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.type = type;
|
||||
this.fieldType = fieldType;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMeta() {
|
||||
public GetLibrarySectionsAllMeta() {
|
||||
this(Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryType>> type() {
|
||||
return (Optional<List<GetAllMediaLibraryType>>) type;
|
||||
public Optional<List<GetLibrarySectionsAllType>> type() {
|
||||
return (Optional<List<GetLibrarySectionsAllType>>) type;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryFieldType>> fieldType() {
|
||||
return (Optional<List<GetAllMediaLibraryFieldType>>) fieldType;
|
||||
public Optional<List<GetLibrarySectionsAllFieldType>> fieldType() {
|
||||
return (Optional<List<GetLibrarySectionsAllFieldType>>) fieldType;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMeta withType(List<GetAllMediaLibraryType> type) {
|
||||
public GetLibrarySectionsAllMeta withType(List<GetLibrarySectionsAllType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMeta withType(Optional<? extends List<GetAllMediaLibraryType>> type) {
|
||||
public GetLibrarySectionsAllMeta withType(Optional<? extends List<GetLibrarySectionsAllType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMeta withFieldType(List<GetAllMediaLibraryFieldType> fieldType) {
|
||||
public GetLibrarySectionsAllMeta withFieldType(List<GetLibrarySectionsAllFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMeta withFieldType(Optional<? extends List<GetAllMediaLibraryFieldType>> fieldType) {
|
||||
public GetLibrarySectionsAllMeta withFieldType(Optional<? extends List<GetLibrarySectionsAllFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
@@ -94,7 +94,7 @@ public class GetAllMediaLibraryMeta {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryMeta other = (GetAllMediaLibraryMeta) o;
|
||||
GetLibrarySectionsAllMeta other = (GetLibrarySectionsAllMeta) o;
|
||||
return
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.fieldType, other.fieldType);
|
||||
@@ -109,47 +109,47 @@ public class GetAllMediaLibraryMeta {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryMeta.class,
|
||||
return Utils.toString(GetLibrarySectionsAllMeta.class,
|
||||
"type", type,
|
||||
"fieldType", fieldType);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryType>> type = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllType>> type = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryFieldType>> fieldType = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllFieldType>> fieldType = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder type(List<GetAllMediaLibraryType> type) {
|
||||
public Builder type(List<GetLibrarySectionsAllType> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = Optional.ofNullable(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder type(Optional<? extends List<GetAllMediaLibraryType>> type) {
|
||||
public Builder type(Optional<? extends List<GetLibrarySectionsAllType>> type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(List<GetAllMediaLibraryFieldType> fieldType) {
|
||||
public Builder fieldType(List<GetLibrarySectionsAllFieldType> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = Optional.ofNullable(fieldType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder fieldType(Optional<? extends List<GetAllMediaLibraryFieldType>> fieldType) {
|
||||
public Builder fieldType(Optional<? extends List<GetLibrarySectionsAllFieldType>> fieldType) {
|
||||
Utils.checkNotNull(fieldType, "fieldType");
|
||||
this.fieldType = fieldType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryMeta build() {
|
||||
return new GetAllMediaLibraryMeta(
|
||||
public GetLibrarySectionsAllMeta build() {
|
||||
return new GetLibrarySectionsAllMeta(
|
||||
type,
|
||||
fieldType);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryOperator {
|
||||
public class GetLibrarySectionsAllOperator {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
@@ -20,7 +20,7 @@ public class GetAllMediaLibraryOperator {
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryOperator(
|
||||
public GetLibrarySectionsAllOperator(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("title") String title) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
@@ -43,13 +43,13 @@ public class GetAllMediaLibraryOperator {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryOperator withKey(String key) {
|
||||
public GetLibrarySectionsAllOperator withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryOperator withTitle(String title) {
|
||||
public GetLibrarySectionsAllOperator withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
@@ -64,7 +64,7 @@ public class GetAllMediaLibraryOperator {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryOperator other = (GetAllMediaLibraryOperator) o;
|
||||
GetLibrarySectionsAllOperator other = (GetLibrarySectionsAllOperator) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.title, other.title);
|
||||
@@ -79,7 +79,7 @@ public class GetAllMediaLibraryOperator {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryOperator.class,
|
||||
return Utils.toString(GetLibrarySectionsAllOperator.class,
|
||||
"key", key,
|
||||
"title", title);
|
||||
}
|
||||
@@ -106,8 +106,8 @@ public class GetAllMediaLibraryOperator {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryOperator build() {
|
||||
return new GetAllMediaLibraryOperator(
|
||||
public GetLibrarySectionsAllOperator build() {
|
||||
return new GetLibrarySectionsAllOperator(
|
||||
key,
|
||||
title);
|
||||
}
|
||||
@@ -18,28 +18,28 @@ import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryOptimizedForStreaming
|
||||
* GetLibrarySectionsAllOptimizedForStreaming
|
||||
*
|
||||
* <p>Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
@JsonDeserialize(using = GetAllMediaLibraryOptimizedForStreaming._Deserializer.class)
|
||||
public class GetAllMediaLibraryOptimizedForStreaming {
|
||||
@JsonDeserialize(using = GetLibrarySectionsAllOptimizedForStreaming._Deserializer.class)
|
||||
public class GetLibrarySectionsAllOptimizedForStreaming {
|
||||
|
||||
@JsonValue
|
||||
private TypedObject value;
|
||||
|
||||
private GetAllMediaLibraryOptimizedForStreaming(TypedObject value) {
|
||||
private GetLibrarySectionsAllOptimizedForStreaming(TypedObject value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static GetAllMediaLibraryOptimizedForStreaming of(OptimizedForStreaming1 value) {
|
||||
public static GetLibrarySectionsAllOptimizedForStreaming of(OptimizedForStreaming1 value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new GetAllMediaLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<OptimizedForStreaming1>(){}));
|
||||
return new GetLibrarySectionsAllOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<OptimizedForStreaming1>(){}));
|
||||
}
|
||||
|
||||
public static GetAllMediaLibraryOptimizedForStreaming of(boolean value) {
|
||||
public static GetLibrarySectionsAllOptimizedForStreaming of(boolean value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
return new GetAllMediaLibraryOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<java.lang.Boolean>(){}));
|
||||
return new GetLibrarySectionsAllOptimizedForStreaming(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<java.lang.Boolean>(){}));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,7 +72,7 @@ public class GetAllMediaLibraryOptimizedForStreaming {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryOptimizedForStreaming other = (GetAllMediaLibraryOptimizedForStreaming) o;
|
||||
GetLibrarySectionsAllOptimizedForStreaming other = (GetLibrarySectionsAllOptimizedForStreaming) o;
|
||||
return Objects.deepEquals(this.value.value(), other.value.value());
|
||||
}
|
||||
|
||||
@@ -82,10 +82,10 @@ public class GetAllMediaLibraryOptimizedForStreaming {
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends OneOfDeserializer<GetAllMediaLibraryOptimizedForStreaming> {
|
||||
public static final class _Deserializer extends OneOfDeserializer<GetLibrarySectionsAllOptimizedForStreaming> {
|
||||
|
||||
public _Deserializer() {
|
||||
super(GetAllMediaLibraryOptimizedForStreaming.class, false,
|
||||
super(GetLibrarySectionsAllOptimizedForStreaming.class, false,
|
||||
TypeReferenceWithShape.of(new TypeReference<Boolean>() {}, JsonShape.DEFAULT),
|
||||
TypeReferenceWithShape.of(new TypeReference<OptimizedForStreaming1>() {}, JsonShape.DEFAULT));
|
||||
}
|
||||
@@ -93,7 +93,7 @@ public class GetAllMediaLibraryOptimizedForStreaming {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryOptimizedForStreaming.class,
|
||||
return Utils.toString(GetLibrarySectionsAllOptimizedForStreaming.class,
|
||||
"value", value);
|
||||
}
|
||||
|
||||
@@ -7,14 +7,14 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum GetAllMediaLibraryOptimizedForStreaming1 {
|
||||
public enum GetLibrarySectionsAllOptimizedForStreaming1 {
|
||||
ZERO(0),
|
||||
ONE(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private GetAllMediaLibraryOptimizedForStreaming1(int value) {
|
||||
private GetLibrarySectionsAllOptimizedForStreaming1(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ public enum GetAllMediaLibraryOptimizedForStreaming1 {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetAllMediaLibraryOptimizedForStreaming1> fromValue(int value) {
|
||||
for (GetAllMediaLibraryOptimizedForStreaming1 o: GetAllMediaLibraryOptimizedForStreaming1.values()) {
|
||||
public static Optional<GetLibrarySectionsAllOptimizedForStreaming1> fromValue(int value) {
|
||||
for (GetLibrarySectionsAllOptimizedForStreaming1 o: GetLibrarySectionsAllOptimizedForStreaming1.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryPart {
|
||||
public class GetLibrarySectionsAllPart {
|
||||
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
@@ -106,21 +106,21 @@ public class GetAllMediaLibraryPart {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("optimizedForStreaming")
|
||||
private Optional<? extends GetAllMediaLibraryLibraryOptimizedForStreaming> optimizedForStreaming;
|
||||
private Optional<? extends GetLibrarySectionsAllLibraryOptimizedForStreaming> optimizedForStreaming;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("hasThumbnail")
|
||||
private Optional<? extends GetAllMediaLibraryHasThumbnail> hasThumbnail;
|
||||
private Optional<? extends GetLibrarySectionsAllHasThumbnail> hasThumbnail;
|
||||
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Stream")
|
||||
private Optional<? extends List<GetAllMediaLibraryStream>> stream;
|
||||
private Optional<? extends List<GetLibrarySectionsAllStream>> stream;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryPart(
|
||||
public GetLibrarySectionsAllPart(
|
||||
@JsonProperty("accessible") Optional<Boolean> accessible,
|
||||
@JsonProperty("exists") Optional<Boolean> exists,
|
||||
@JsonProperty("id") long id,
|
||||
@@ -134,9 +134,9 @@ public class GetAllMediaLibraryPart {
|
||||
@JsonProperty("videoProfile") Optional<String> videoProfile,
|
||||
@JsonProperty("audioProfile") Optional<String> audioProfile,
|
||||
@JsonProperty("has64bitOffsets") Optional<Boolean> has64bitOffsets,
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends GetAllMediaLibraryLibraryOptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("hasThumbnail") Optional<? extends GetAllMediaLibraryHasThumbnail> hasThumbnail,
|
||||
@JsonProperty("Stream") Optional<? extends List<GetAllMediaLibraryStream>> stream) {
|
||||
@JsonProperty("optimizedForStreaming") Optional<? extends GetLibrarySectionsAllLibraryOptimizedForStreaming> optimizedForStreaming,
|
||||
@JsonProperty("hasThumbnail") Optional<? extends GetLibrarySectionsAllHasThumbnail> hasThumbnail,
|
||||
@JsonProperty("Stream") Optional<? extends List<GetLibrarySectionsAllStream>> stream) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
Utils.checkNotNull(id, "id");
|
||||
@@ -171,7 +171,7 @@ public class GetAllMediaLibraryPart {
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart(
|
||||
public GetLibrarySectionsAllPart(
|
||||
long id,
|
||||
String key,
|
||||
String file,
|
||||
@@ -279,14 +279,14 @@ public class GetAllMediaLibraryPart {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryLibraryOptimizedForStreaming> optimizedForStreaming() {
|
||||
return (Optional<GetAllMediaLibraryLibraryOptimizedForStreaming>) optimizedForStreaming;
|
||||
public Optional<GetLibrarySectionsAllLibraryOptimizedForStreaming> optimizedForStreaming() {
|
||||
return (Optional<GetLibrarySectionsAllLibraryOptimizedForStreaming>) optimizedForStreaming;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryHasThumbnail> hasThumbnail() {
|
||||
return (Optional<GetAllMediaLibraryHasThumbnail>) hasThumbnail;
|
||||
public Optional<GetLibrarySectionsAllHasThumbnail> hasThumbnail() {
|
||||
return (Optional<GetLibrarySectionsAllHasThumbnail>) hasThumbnail;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -294,8 +294,8 @@ public class GetAllMediaLibraryPart {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryStream>> stream() {
|
||||
return (Optional<List<GetAllMediaLibraryStream>>) stream;
|
||||
public Optional<List<GetLibrarySectionsAllStream>> stream() {
|
||||
return (Optional<List<GetLibrarySectionsAllStream>>) stream;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -305,7 +305,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withAccessible(boolean accessible) {
|
||||
public GetLibrarySectionsAllPart withAccessible(boolean accessible) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
this.accessible = Optional.ofNullable(accessible);
|
||||
return this;
|
||||
@@ -314,7 +314,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Indicates if the part is accessible.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withAccessible(Optional<Boolean> accessible) {
|
||||
public GetLibrarySectionsAllPart withAccessible(Optional<Boolean> accessible) {
|
||||
Utils.checkNotNull(accessible, "accessible");
|
||||
this.accessible = accessible;
|
||||
return this;
|
||||
@@ -323,7 +323,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withExists(boolean exists) {
|
||||
public GetLibrarySectionsAllPart withExists(boolean exists) {
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
this.exists = Optional.ofNullable(exists);
|
||||
return this;
|
||||
@@ -332,7 +332,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Indicates if the part exists.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withExists(Optional<Boolean> exists) {
|
||||
public GetLibrarySectionsAllPart withExists(Optional<Boolean> exists) {
|
||||
Utils.checkNotNull(exists, "exists");
|
||||
this.exists = exists;
|
||||
return this;
|
||||
@@ -341,7 +341,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Unique part identifier.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withId(long id) {
|
||||
public GetLibrarySectionsAllPart withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -350,19 +350,19 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Key to access this part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withKey(String key) {
|
||||
public GetLibrarySectionsAllPart withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withIndexes(String indexes) {
|
||||
public GetLibrarySectionsAllPart withIndexes(String indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = Optional.ofNullable(indexes);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withIndexes(Optional<String> indexes) {
|
||||
public GetLibrarySectionsAllPart withIndexes(Optional<String> indexes) {
|
||||
Utils.checkNotNull(indexes, "indexes");
|
||||
this.indexes = indexes;
|
||||
return this;
|
||||
@@ -371,7 +371,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Duration of the part in milliseconds.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withDuration(int duration) {
|
||||
public GetLibrarySectionsAllPart withDuration(int duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = Optional.ofNullable(duration);
|
||||
return this;
|
||||
@@ -380,7 +380,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Duration of the part in milliseconds.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withDuration(Optional<Integer> duration) {
|
||||
public GetLibrarySectionsAllPart withDuration(Optional<Integer> duration) {
|
||||
Utils.checkNotNull(duration, "duration");
|
||||
this.duration = duration;
|
||||
return this;
|
||||
@@ -389,7 +389,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* File path for the part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withFile(String file) {
|
||||
public GetLibrarySectionsAllPart withFile(String file) {
|
||||
Utils.checkNotNull(file, "file");
|
||||
this.file = file;
|
||||
return this;
|
||||
@@ -398,19 +398,19 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* File size in bytes.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withSize(long size) {
|
||||
public GetLibrarySectionsAllPart withSize(long size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withPacketLength(int packetLength) {
|
||||
public GetLibrarySectionsAllPart withPacketLength(int packetLength) {
|
||||
Utils.checkNotNull(packetLength, "packetLength");
|
||||
this.packetLength = Optional.ofNullable(packetLength);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withPacketLength(Optional<Integer> packetLength) {
|
||||
public GetLibrarySectionsAllPart withPacketLength(Optional<Integer> packetLength) {
|
||||
Utils.checkNotNull(packetLength, "packetLength");
|
||||
this.packetLength = packetLength;
|
||||
return this;
|
||||
@@ -419,7 +419,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Container format of the part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withContainer(String container) {
|
||||
public GetLibrarySectionsAllPart withContainer(String container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = Optional.ofNullable(container);
|
||||
return this;
|
||||
@@ -428,7 +428,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Container format of the part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withContainer(Optional<String> container) {
|
||||
public GetLibrarySectionsAllPart withContainer(Optional<String> container) {
|
||||
Utils.checkNotNull(container, "container");
|
||||
this.container = container;
|
||||
return this;
|
||||
@@ -437,7 +437,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Video profile for the part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withVideoProfile(String videoProfile) {
|
||||
public GetLibrarySectionsAllPart withVideoProfile(String videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = Optional.ofNullable(videoProfile);
|
||||
return this;
|
||||
@@ -446,7 +446,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Video profile for the part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withVideoProfile(Optional<String> videoProfile) {
|
||||
public GetLibrarySectionsAllPart withVideoProfile(Optional<String> videoProfile) {
|
||||
Utils.checkNotNull(videoProfile, "videoProfile");
|
||||
this.videoProfile = videoProfile;
|
||||
return this;
|
||||
@@ -455,7 +455,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
*/
|
||||
public GetAllMediaLibraryPart withAudioProfile(String audioProfile) {
|
||||
public GetLibrarySectionsAllPart withAudioProfile(String audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = Optional.ofNullable(audioProfile);
|
||||
return this;
|
||||
@@ -464,19 +464,19 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
*/
|
||||
public GetAllMediaLibraryPart withAudioProfile(Optional<String> audioProfile) {
|
||||
public GetLibrarySectionsAllPart withAudioProfile(Optional<String> audioProfile) {
|
||||
Utils.checkNotNull(audioProfile, "audioProfile");
|
||||
this.audioProfile = audioProfile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
public GetLibrarySectionsAllPart withHas64bitOffsets(boolean has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = Optional.ofNullable(has64bitOffsets);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
public GetLibrarySectionsAllPart withHas64bitOffsets(Optional<Boolean> has64bitOffsets) {
|
||||
Utils.checkNotNull(has64bitOffsets, "has64bitOffsets");
|
||||
this.has64bitOffsets = has64bitOffsets;
|
||||
return this;
|
||||
@@ -485,7 +485,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public GetAllMediaLibraryPart withOptimizedForStreaming(GetAllMediaLibraryLibraryOptimizedForStreaming optimizedForStreaming) {
|
||||
public GetLibrarySectionsAllPart withOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
@@ -494,19 +494,19 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public GetAllMediaLibraryPart withOptimizedForStreaming(Optional<? extends GetAllMediaLibraryLibraryOptimizedForStreaming> optimizedForStreaming) {
|
||||
public GetLibrarySectionsAllPart withOptimizedForStreaming(Optional<? extends GetLibrarySectionsAllLibraryOptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withHasThumbnail(GetAllMediaLibraryHasThumbnail hasThumbnail) {
|
||||
public GetLibrarySectionsAllPart withHasThumbnail(GetLibrarySectionsAllHasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart withHasThumbnail(Optional<? extends GetAllMediaLibraryHasThumbnail> hasThumbnail) {
|
||||
public GetLibrarySectionsAllPart withHasThumbnail(Optional<? extends GetLibrarySectionsAllHasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
@@ -515,7 +515,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withStream(List<GetAllMediaLibraryStream> stream) {
|
||||
public GetLibrarySectionsAllPart withStream(List<GetLibrarySectionsAllStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
@@ -524,7 +524,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
public GetAllMediaLibraryPart withStream(Optional<? extends List<GetAllMediaLibraryStream>> stream) {
|
||||
public GetLibrarySectionsAllPart withStream(Optional<? extends List<GetLibrarySectionsAllStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
@@ -539,7 +539,7 @@ public class GetAllMediaLibraryPart {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryPart other = (GetAllMediaLibraryPart) o;
|
||||
GetLibrarySectionsAllPart other = (GetLibrarySectionsAllPart) o;
|
||||
return
|
||||
Objects.deepEquals(this.accessible, other.accessible) &&
|
||||
Objects.deepEquals(this.exists, other.exists) &&
|
||||
@@ -582,7 +582,7 @@ public class GetAllMediaLibraryPart {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryPart.class,
|
||||
return Utils.toString(GetLibrarySectionsAllPart.class,
|
||||
"accessible", accessible,
|
||||
"exists", exists,
|
||||
"id", id,
|
||||
@@ -629,11 +629,11 @@ public class GetAllMediaLibraryPart {
|
||||
|
||||
private Optional<Boolean> has64bitOffsets = Optional.empty();
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryLibraryOptimizedForStreaming> optimizedForStreaming = Optional.empty();
|
||||
private Optional<? extends GetLibrarySectionsAllLibraryOptimizedForStreaming> optimizedForStreaming = Optional.empty();
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryHasThumbnail> hasThumbnail;
|
||||
private Optional<? extends GetLibrarySectionsAllHasThumbnail> hasThumbnail;
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryStream>> stream = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllStream>> stream = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -822,7 +822,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public Builder optimizedForStreaming(GetAllMediaLibraryLibraryOptimizedForStreaming optimizedForStreaming) {
|
||||
public Builder optimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreaming optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = Optional.ofNullable(optimizedForStreaming);
|
||||
return this;
|
||||
@@ -831,19 +831,19 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
*/
|
||||
public Builder optimizedForStreaming(Optional<? extends GetAllMediaLibraryLibraryOptimizedForStreaming> optimizedForStreaming) {
|
||||
public Builder optimizedForStreaming(Optional<? extends GetLibrarySectionsAllLibraryOptimizedForStreaming> optimizedForStreaming) {
|
||||
Utils.checkNotNull(optimizedForStreaming, "optimizedForStreaming");
|
||||
this.optimizedForStreaming = optimizedForStreaming;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(GetAllMediaLibraryHasThumbnail hasThumbnail) {
|
||||
public Builder hasThumbnail(GetLibrarySectionsAllHasThumbnail hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = Optional.ofNullable(hasThumbnail);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasThumbnail(Optional<? extends GetAllMediaLibraryHasThumbnail> hasThumbnail) {
|
||||
public Builder hasThumbnail(Optional<? extends GetLibrarySectionsAllHasThumbnail> hasThumbnail) {
|
||||
Utils.checkNotNull(hasThumbnail, "hasThumbnail");
|
||||
this.hasThumbnail = hasThumbnail;
|
||||
return this;
|
||||
@@ -852,7 +852,7 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
public Builder stream(List<GetAllMediaLibraryStream> stream) {
|
||||
public Builder stream(List<GetLibrarySectionsAllStream> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = Optional.ofNullable(stream);
|
||||
return this;
|
||||
@@ -861,17 +861,17 @@ public class GetAllMediaLibraryPart {
|
||||
/**
|
||||
* An array of streams for this part.
|
||||
*/
|
||||
public Builder stream(Optional<? extends List<GetAllMediaLibraryStream>> stream) {
|
||||
public Builder stream(Optional<? extends List<GetLibrarySectionsAllStream>> stream) {
|
||||
Utils.checkNotNull(stream, "stream");
|
||||
this.stream = stream;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryPart build() {
|
||||
public GetLibrarySectionsAllPart build() {
|
||||
if (hasThumbnail == null) {
|
||||
hasThumbnail = _SINGLETON_VALUE_HasThumbnail.value();
|
||||
}
|
||||
return new GetAllMediaLibraryPart(
|
||||
return new GetLibrarySectionsAllPart(
|
||||
accessible,
|
||||
exists,
|
||||
id,
|
||||
@@ -890,10 +890,10 @@ public class GetAllMediaLibraryPart {
|
||||
stream);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetAllMediaLibraryHasThumbnail>> _SINGLETON_VALUE_HasThumbnail =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibrarySectionsAllHasThumbnail>> _SINGLETON_VALUE_HasThumbnail =
|
||||
new LazySingletonValue<>(
|
||||
"hasThumbnail",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends GetAllMediaLibraryHasThumbnail>>() {});
|
||||
new TypeReference<Optional<? extends GetLibrarySectionsAllHasThumbnail>>() {});
|
||||
}
|
||||
}
|
||||
@@ -8,18 +8,18 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryQueryParamIncludeMeta
|
||||
* GetLibrarySectionsAllQueryParamIncludeMeta
|
||||
*
|
||||
* <p>Adds the Meta object to the response
|
||||
*/
|
||||
public enum GetAllMediaLibraryQueryParamIncludeMeta {
|
||||
public enum GetLibrarySectionsAllQueryParamIncludeMeta {
|
||||
Disable(0),
|
||||
Enable(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private GetAllMediaLibraryQueryParamIncludeMeta(int value) {
|
||||
private GetLibrarySectionsAllQueryParamIncludeMeta(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@ public enum GetAllMediaLibraryQueryParamIncludeMeta {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetAllMediaLibraryQueryParamIncludeMeta> fromValue(int value) {
|
||||
for (GetAllMediaLibraryQueryParamIncludeMeta o: GetAllMediaLibraryQueryParamIncludeMeta.values()) {
|
||||
public static Optional<GetLibrarySectionsAllQueryParamIncludeMeta> fromValue(int value) {
|
||||
for (GetLibrarySectionsAllQueryParamIncludeMeta o: GetLibrarySectionsAllQueryParamIncludeMeta.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
@@ -43,7 +43,7 @@ import java.util.Optional;
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* GetAllMediaLibraryQueryParamType
|
||||
* GetLibrarySectionsAllQueryParamType
|
||||
*
|
||||
* <p>The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
@@ -52,42 +52,44 @@ import java.util.Optional;
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*/
|
||||
@JsonDeserialize(using = GetAllMediaLibraryQueryParamType._Deserializer.class)
|
||||
@JsonSerialize(using = GetAllMediaLibraryQueryParamType._Serializer.class)
|
||||
public class GetAllMediaLibraryQueryParamType {
|
||||
@JsonDeserialize(using = GetLibrarySectionsAllQueryParamType._Deserializer.class)
|
||||
@JsonSerialize(using = GetLibrarySectionsAllQueryParamType._Serializer.class)
|
||||
public class GetLibrarySectionsAllQueryParamType {
|
||||
|
||||
public static final GetAllMediaLibraryQueryParamType Movie = new GetAllMediaLibraryQueryParamType(1L);
|
||||
public static final GetAllMediaLibraryQueryParamType TvShow = new GetAllMediaLibraryQueryParamType(2L);
|
||||
public static final GetAllMediaLibraryQueryParamType Season = new GetAllMediaLibraryQueryParamType(3L);
|
||||
public static final GetAllMediaLibraryQueryParamType Episode = new GetAllMediaLibraryQueryParamType(4L);
|
||||
public static final GetAllMediaLibraryQueryParamType Audio = new GetAllMediaLibraryQueryParamType(8L);
|
||||
public static final GetAllMediaLibraryQueryParamType Album = new GetAllMediaLibraryQueryParamType(9L);
|
||||
public static final GetAllMediaLibraryQueryParamType Track = new GetAllMediaLibraryQueryParamType(10L);
|
||||
public static final GetLibrarySectionsAllQueryParamType Movie = new GetLibrarySectionsAllQueryParamType(1L);
|
||||
public static final GetLibrarySectionsAllQueryParamType TvShow = new GetLibrarySectionsAllQueryParamType(2L);
|
||||
public static final GetLibrarySectionsAllQueryParamType Season = new GetLibrarySectionsAllQueryParamType(3L);
|
||||
public static final GetLibrarySectionsAllQueryParamType Episode = new GetLibrarySectionsAllQueryParamType(4L);
|
||||
public static final GetLibrarySectionsAllQueryParamType Artist = new GetLibrarySectionsAllQueryParamType(5L);
|
||||
public static final GetLibrarySectionsAllQueryParamType Album = new GetLibrarySectionsAllQueryParamType(6L);
|
||||
public static final GetLibrarySectionsAllQueryParamType Track = new GetLibrarySectionsAllQueryParamType(7L);
|
||||
public static final GetLibrarySectionsAllQueryParamType PhotoAlbum = new GetLibrarySectionsAllQueryParamType(8L);
|
||||
public static final GetLibrarySectionsAllQueryParamType Photo = new GetLibrarySectionsAllQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
// careful). Keep this field lower case to avoid clashing with
|
||||
// generated member names which will always be upper cased (Java
|
||||
// convention)
|
||||
private static final Map<Long, GetAllMediaLibraryQueryParamType> values = createValuesMap();
|
||||
private static final Map<Long, GetAllMediaLibraryQueryParamTypeEnum> enums = createEnumsMap();
|
||||
private static final Map<Long, GetLibrarySectionsAllQueryParamType> values = createValuesMap();
|
||||
private static final Map<Long, GetLibrarySectionsAllQueryParamTypeEnum> enums = createEnumsMap();
|
||||
|
||||
private final long value;
|
||||
|
||||
private GetAllMediaLibraryQueryParamType(long value) {
|
||||
private GetLibrarySectionsAllQueryParamType(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a GetAllMediaLibraryQueryParamType with the given value. For a specific value the
|
||||
* Returns a GetLibrarySectionsAllQueryParamType with the given value. For a specific value the
|
||||
* returned object will always be a singleton so reference equality
|
||||
* is satisfied when the values are the same.
|
||||
*
|
||||
* @param value value to be wrapped as GetAllMediaLibraryQueryParamType
|
||||
* @param value value to be wrapped as GetLibrarySectionsAllQueryParamType
|
||||
*/
|
||||
public static GetAllMediaLibraryQueryParamType of(long value) {
|
||||
synchronized (GetAllMediaLibraryQueryParamType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetAllMediaLibraryQueryParamType(v));
|
||||
public static GetLibrarySectionsAllQueryParamType of(long value) {
|
||||
synchronized (GetLibrarySectionsAllQueryParamType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetLibrarySectionsAllQueryParamType(v));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +97,7 @@ public class GetAllMediaLibraryQueryParamType {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Optional<GetAllMediaLibraryQueryParamTypeEnum> asEnum() {
|
||||
public Optional<GetLibrarySectionsAllQueryParamTypeEnum> asEnum() {
|
||||
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||
}
|
||||
|
||||
@@ -116,89 +118,95 @@ public class GetAllMediaLibraryQueryParamType {
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
GetAllMediaLibraryQueryParamType other = (GetAllMediaLibraryQueryParamType) obj;
|
||||
GetLibrarySectionsAllQueryParamType other = (GetLibrarySectionsAllQueryParamType) obj;
|
||||
return Objects.equals(value, other.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "GetAllMediaLibraryQueryParamType [value=" + value + "]";
|
||||
return "GetLibrarySectionsAllQueryParamType [value=" + value + "]";
|
||||
}
|
||||
|
||||
// return an array just like an enum
|
||||
public static GetAllMediaLibraryQueryParamType[] values() {
|
||||
synchronized (GetAllMediaLibraryQueryParamType.class) {
|
||||
return values.values().toArray(new GetAllMediaLibraryQueryParamType[] {});
|
||||
public static GetLibrarySectionsAllQueryParamType[] values() {
|
||||
synchronized (GetLibrarySectionsAllQueryParamType.class) {
|
||||
return values.values().toArray(new GetLibrarySectionsAllQueryParamType[] {});
|
||||
}
|
||||
}
|
||||
|
||||
private static final Map<Long, GetAllMediaLibraryQueryParamType> createValuesMap() {
|
||||
Map<Long, GetAllMediaLibraryQueryParamType> map = new LinkedHashMap<>();
|
||||
private static final Map<Long, GetLibrarySectionsAllQueryParamType> createValuesMap() {
|
||||
Map<Long, GetLibrarySectionsAllQueryParamType> map = new LinkedHashMap<>();
|
||||
map.put(1L, Movie);
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
private static final Map<Long, GetAllMediaLibraryQueryParamTypeEnum> createEnumsMap() {
|
||||
Map<Long, GetAllMediaLibraryQueryParamTypeEnum> map = new HashMap<>();
|
||||
map.put(1L, GetAllMediaLibraryQueryParamTypeEnum.Movie);
|
||||
map.put(2L, GetAllMediaLibraryQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetAllMediaLibraryQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetAllMediaLibraryQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetAllMediaLibraryQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetAllMediaLibraryQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetAllMediaLibraryQueryParamTypeEnum.Track);
|
||||
private static final Map<Long, GetLibrarySectionsAllQueryParamTypeEnum> createEnumsMap() {
|
||||
Map<Long, GetLibrarySectionsAllQueryParamTypeEnum> map = new HashMap<>();
|
||||
map.put(1L, GetLibrarySectionsAllQueryParamTypeEnum.Movie);
|
||||
map.put(2L, GetLibrarySectionsAllQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetLibrarySectionsAllQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetLibrarySectionsAllQueryParamTypeEnum.Episode);
|
||||
map.put(5L, GetLibrarySectionsAllQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetLibrarySectionsAllQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetLibrarySectionsAllQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetLibrarySectionsAllQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetLibrarySectionsAllQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Serializer extends StdSerializer<GetAllMediaLibraryQueryParamType> {
|
||||
public static final class _Serializer extends StdSerializer<GetLibrarySectionsAllQueryParamType> {
|
||||
|
||||
protected _Serializer() {
|
||||
super(GetAllMediaLibraryQueryParamType.class);
|
||||
super(GetLibrarySectionsAllQueryParamType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serialize(GetAllMediaLibraryQueryParamType value, JsonGenerator g, SerializerProvider provider)
|
||||
public void serialize(GetLibrarySectionsAllQueryParamType value, JsonGenerator g, SerializerProvider provider)
|
||||
throws IOException, JsonProcessingException {
|
||||
g.writeObject(value.value);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends StdDeserializer<GetAllMediaLibraryQueryParamType> {
|
||||
public static final class _Deserializer extends StdDeserializer<GetLibrarySectionsAllQueryParamType> {
|
||||
|
||||
protected _Deserializer() {
|
||||
super(GetAllMediaLibraryQueryParamType.class);
|
||||
super(GetLibrarySectionsAllQueryParamType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetAllMediaLibraryQueryParamType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
public GetLibrarySectionsAllQueryParamType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
throws IOException, JacksonException {
|
||||
long v = p.readValueAs(new TypeReference<Long>() {});
|
||||
// use the factory method to ensure we get singletons
|
||||
return GetAllMediaLibraryQueryParamType.of(v);
|
||||
return GetLibrarySectionsAllQueryParamType.of(v);
|
||||
}
|
||||
}
|
||||
|
||||
public enum GetAllMediaLibraryQueryParamTypeEnum {
|
||||
public enum GetLibrarySectionsAllQueryParamTypeEnum {
|
||||
|
||||
Movie(1L),
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
private GetAllMediaLibraryQueryParamTypeEnum(long value) {
|
||||
private GetLibrarySectionsAllQueryParamTypeEnum(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryRequest {
|
||||
public class GetLibrarySectionsAllRequest {
|
||||
|
||||
/**
|
||||
* The unique key of the Plex library.
|
||||
@@ -34,13 +34,13 @@ public class GetAllMediaLibraryRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private GetAllMediaLibraryQueryParamType type;
|
||||
private GetLibrarySectionsAllQueryParamType type;
|
||||
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeMeta")
|
||||
private Optional<? extends GetAllMediaLibraryQueryParamIncludeMeta> includeMeta;
|
||||
private Optional<? extends GetLibrarySectionsAllQueryParamIncludeMeta> includeMeta;
|
||||
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
@@ -74,10 +74,10 @@ public class GetAllMediaLibraryRequest {
|
||||
private Optional<Integer> xPlexContainerSize;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryRequest(
|
||||
public GetLibrarySectionsAllRequest(
|
||||
int sectionKey,
|
||||
GetAllMediaLibraryQueryParamType type,
|
||||
Optional<? extends GetAllMediaLibraryQueryParamIncludeMeta> includeMeta,
|
||||
GetLibrarySectionsAllQueryParamType type,
|
||||
Optional<? extends GetLibrarySectionsAllQueryParamIncludeMeta> includeMeta,
|
||||
Optional<? extends QueryParamIncludeGuids> includeGuids,
|
||||
Optional<? extends IncludeAdvanced> includeAdvanced,
|
||||
Optional<? extends QueryParamIncludeCollections> includeCollections,
|
||||
@@ -104,9 +104,9 @@ public class GetAllMediaLibraryRequest {
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest(
|
||||
public GetLibrarySectionsAllRequest(
|
||||
int sectionKey,
|
||||
GetAllMediaLibraryQueryParamType type) {
|
||||
GetLibrarySectionsAllQueryParamType type) {
|
||||
this(sectionKey, type, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*/
|
||||
@JsonIgnore
|
||||
public GetAllMediaLibraryQueryParamType type() {
|
||||
public GetLibrarySectionsAllQueryParamType type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -137,8 +137,8 @@ public class GetAllMediaLibraryRequest {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryQueryParamIncludeMeta> includeMeta() {
|
||||
return (Optional<GetAllMediaLibraryQueryParamIncludeMeta>) includeMeta;
|
||||
public Optional<GetLibrarySectionsAllQueryParamIncludeMeta> includeMeta() {
|
||||
return (Optional<GetLibrarySectionsAllQueryParamIncludeMeta>) includeMeta;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -196,7 +196,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* The unique key of the Plex library.
|
||||
* Note: This is unique in the context of the Plex server.
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withSectionKey(int sectionKey) {
|
||||
public GetLibrarySectionsAllRequest withSectionKey(int sectionKey) {
|
||||
Utils.checkNotNull(sectionKey, "sectionKey");
|
||||
this.sectionKey = sectionKey;
|
||||
return this;
|
||||
@@ -210,7 +210,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* 4 = episode
|
||||
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withType(GetAllMediaLibraryQueryParamType type) {
|
||||
public GetLibrarySectionsAllRequest withType(GetLibrarySectionsAllQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -219,7 +219,7 @@ public class GetAllMediaLibraryRequest {
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withIncludeMeta(GetAllMediaLibraryQueryParamIncludeMeta includeMeta) {
|
||||
public GetLibrarySectionsAllRequest withIncludeMeta(GetLibrarySectionsAllQueryParamIncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
@@ -228,7 +228,7 @@ public class GetAllMediaLibraryRequest {
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withIncludeMeta(Optional<? extends GetAllMediaLibraryQueryParamIncludeMeta> includeMeta) {
|
||||
public GetLibrarySectionsAllRequest withIncludeMeta(Optional<? extends GetLibrarySectionsAllQueryParamIncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
@@ -237,7 +237,7 @@ public class GetAllMediaLibraryRequest {
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withIncludeGuids(QueryParamIncludeGuids includeGuids) {
|
||||
public GetLibrarySectionsAllRequest withIncludeGuids(QueryParamIncludeGuids includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = Optional.ofNullable(includeGuids);
|
||||
return this;
|
||||
@@ -246,43 +246,43 @@ public class GetAllMediaLibraryRequest {
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withIncludeGuids(Optional<? extends QueryParamIncludeGuids> includeGuids) {
|
||||
public GetLibrarySectionsAllRequest withIncludeGuids(Optional<? extends QueryParamIncludeGuids> includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = includeGuids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest withIncludeAdvanced(IncludeAdvanced includeAdvanced) {
|
||||
public GetLibrarySectionsAllRequest withIncludeAdvanced(IncludeAdvanced includeAdvanced) {
|
||||
Utils.checkNotNull(includeAdvanced, "includeAdvanced");
|
||||
this.includeAdvanced = Optional.ofNullable(includeAdvanced);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest withIncludeAdvanced(Optional<? extends IncludeAdvanced> includeAdvanced) {
|
||||
public GetLibrarySectionsAllRequest withIncludeAdvanced(Optional<? extends IncludeAdvanced> includeAdvanced) {
|
||||
Utils.checkNotNull(includeAdvanced, "includeAdvanced");
|
||||
this.includeAdvanced = includeAdvanced;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest withIncludeCollections(QueryParamIncludeCollections includeCollections) {
|
||||
public GetLibrarySectionsAllRequest withIncludeCollections(QueryParamIncludeCollections includeCollections) {
|
||||
Utils.checkNotNull(includeCollections, "includeCollections");
|
||||
this.includeCollections = Optional.ofNullable(includeCollections);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest withIncludeCollections(Optional<? extends QueryParamIncludeCollections> includeCollections) {
|
||||
public GetLibrarySectionsAllRequest withIncludeCollections(Optional<? extends QueryParamIncludeCollections> includeCollections) {
|
||||
Utils.checkNotNull(includeCollections, "includeCollections");
|
||||
this.includeCollections = includeCollections;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest withIncludeExternalMedia(QueryParamIncludeExternalMedia includeExternalMedia) {
|
||||
public GetLibrarySectionsAllRequest withIncludeExternalMedia(QueryParamIncludeExternalMedia includeExternalMedia) {
|
||||
Utils.checkNotNull(includeExternalMedia, "includeExternalMedia");
|
||||
this.includeExternalMedia = Optional.ofNullable(includeExternalMedia);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest withIncludeExternalMedia(Optional<? extends QueryParamIncludeExternalMedia> includeExternalMedia) {
|
||||
public GetLibrarySectionsAllRequest withIncludeExternalMedia(Optional<? extends QueryParamIncludeExternalMedia> includeExternalMedia) {
|
||||
Utils.checkNotNull(includeExternalMedia, "includeExternalMedia");
|
||||
this.includeExternalMedia = includeExternalMedia;
|
||||
return this;
|
||||
@@ -293,7 +293,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withXPlexContainerStart(int xPlexContainerStart) {
|
||||
public GetLibrarySectionsAllRequest withXPlexContainerStart(int xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = Optional.ofNullable(xPlexContainerStart);
|
||||
return this;
|
||||
@@ -304,7 +304,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 0
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withXPlexContainerStart(Optional<Integer> xPlexContainerStart) {
|
||||
public GetLibrarySectionsAllRequest withXPlexContainerStart(Optional<Integer> xPlexContainerStart) {
|
||||
Utils.checkNotNull(xPlexContainerStart, "xPlexContainerStart");
|
||||
this.xPlexContainerStart = xPlexContainerStart;
|
||||
return this;
|
||||
@@ -315,7 +315,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withXPlexContainerSize(int xPlexContainerSize) {
|
||||
public GetLibrarySectionsAllRequest withXPlexContainerSize(int xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = Optional.ofNullable(xPlexContainerSize);
|
||||
return this;
|
||||
@@ -326,7 +326,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* If the number of items exceeds the limit, the response will be paginated.
|
||||
* By default this is 50
|
||||
*/
|
||||
public GetAllMediaLibraryRequest withXPlexContainerSize(Optional<Integer> xPlexContainerSize) {
|
||||
public GetLibrarySectionsAllRequest withXPlexContainerSize(Optional<Integer> xPlexContainerSize) {
|
||||
Utils.checkNotNull(xPlexContainerSize, "xPlexContainerSize");
|
||||
this.xPlexContainerSize = xPlexContainerSize;
|
||||
return this;
|
||||
@@ -341,7 +341,7 @@ public class GetAllMediaLibraryRequest {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryRequest other = (GetAllMediaLibraryRequest) o;
|
||||
GetLibrarySectionsAllRequest other = (GetLibrarySectionsAllRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.sectionKey, other.sectionKey) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
@@ -370,7 +370,7 @@ public class GetAllMediaLibraryRequest {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryRequest.class,
|
||||
return Utils.toString(GetLibrarySectionsAllRequest.class,
|
||||
"sectionKey", sectionKey,
|
||||
"type", type,
|
||||
"includeMeta", includeMeta,
|
||||
@@ -386,9 +386,9 @@ public class GetAllMediaLibraryRequest {
|
||||
|
||||
private Integer sectionKey;
|
||||
|
||||
private GetAllMediaLibraryQueryParamType type;
|
||||
private GetLibrarySectionsAllQueryParamType type;
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryQueryParamIncludeMeta> includeMeta;
|
||||
private Optional<? extends GetLibrarySectionsAllQueryParamIncludeMeta> includeMeta;
|
||||
|
||||
private Optional<? extends QueryParamIncludeGuids> includeGuids;
|
||||
|
||||
@@ -424,7 +424,7 @@ public class GetAllMediaLibraryRequest {
|
||||
* 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(GetAllMediaLibraryQueryParamType type) {
|
||||
public Builder type(GetLibrarySectionsAllQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -433,7 +433,7 @@ public class GetAllMediaLibraryRequest {
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*/
|
||||
public Builder includeMeta(GetAllMediaLibraryQueryParamIncludeMeta includeMeta) {
|
||||
public Builder includeMeta(GetLibrarySectionsAllQueryParamIncludeMeta includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = Optional.ofNullable(includeMeta);
|
||||
return this;
|
||||
@@ -442,7 +442,7 @@ public class GetAllMediaLibraryRequest {
|
||||
/**
|
||||
* Adds the Meta object to the response
|
||||
*/
|
||||
public Builder includeMeta(Optional<? extends GetAllMediaLibraryQueryParamIncludeMeta> includeMeta) {
|
||||
public Builder includeMeta(Optional<? extends GetLibrarySectionsAllQueryParamIncludeMeta> includeMeta) {
|
||||
Utils.checkNotNull(includeMeta, "includeMeta");
|
||||
this.includeMeta = includeMeta;
|
||||
return this;
|
||||
@@ -546,7 +546,7 @@ public class GetAllMediaLibraryRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRequest build() {
|
||||
public GetLibrarySectionsAllRequest build() {
|
||||
if (includeMeta == null) {
|
||||
includeMeta = _SINGLETON_VALUE_IncludeMeta.value();
|
||||
}
|
||||
@@ -568,7 +568,7 @@ public class GetAllMediaLibraryRequest {
|
||||
if (xPlexContainerSize == null) {
|
||||
xPlexContainerSize = _SINGLETON_VALUE_XPlexContainerSize.value();
|
||||
}
|
||||
return new GetAllMediaLibraryRequest(
|
||||
return new GetLibrarySectionsAllRequest(
|
||||
sectionKey,
|
||||
type,
|
||||
includeMeta,
|
||||
@@ -580,11 +580,11 @@ public class GetAllMediaLibraryRequest {
|
||||
xPlexContainerSize);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetAllMediaLibraryQueryParamIncludeMeta>> _SINGLETON_VALUE_IncludeMeta =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibrarySectionsAllQueryParamIncludeMeta>> _SINGLETON_VALUE_IncludeMeta =
|
||||
new LazySingletonValue<>(
|
||||
"includeMeta",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends GetAllMediaLibraryQueryParamIncludeMeta>>() {});
|
||||
new TypeReference<Optional<? extends GetLibrarySectionsAllQueryParamIncludeMeta>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends QueryParamIncludeGuids>> _SINGLETON_VALUE_IncludeGuids =
|
||||
new LazySingletonValue<>(
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Exception;
|
||||
|
||||
public class GetLibrarySectionsAllRequestBuilder {
|
||||
|
||||
private GetLibrarySectionsAllRequest request;
|
||||
private final SDKMethodInterfaces.MethodCallGetLibrarySectionsAll sdk;
|
||||
|
||||
public GetLibrarySectionsAllRequestBuilder(SDKMethodInterfaces.MethodCallGetLibrarySectionsAll sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetLibrarySectionsAllRequestBuilder request(GetLibrarySectionsAllRequest request) {
|
||||
Utils.checkNotNull(request, "request");
|
||||
this.request = request;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetLibrarySectionsAllResponse call() throws Exception {
|
||||
|
||||
return sdk.getLibrarySectionsAll(
|
||||
request);
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ import java.net.http.HttpResponse;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryResponse implements Response {
|
||||
public class GetLibrarySectionsAllResponse implements Response {
|
||||
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
@@ -36,14 +36,14 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
private Optional<? extends GetAllMediaLibraryResponseBody> object;
|
||||
private Optional<? extends GetLibrarySectionsAllResponseBody> object;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryResponse(
|
||||
public GetLibrarySectionsAllResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse,
|
||||
Optional<? extends GetAllMediaLibraryResponseBody> object) {
|
||||
Optional<? extends GetLibrarySectionsAllResponseBody> object) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
@@ -54,7 +54,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
this.object = object;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryResponse(
|
||||
public GetLibrarySectionsAllResponse(
|
||||
String contentType,
|
||||
int statusCode,
|
||||
HttpResponse<InputStream> rawResponse) {
|
||||
@@ -90,8 +90,8 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryResponseBody> object() {
|
||||
return (Optional<GetAllMediaLibraryResponseBody>) object;
|
||||
public Optional<GetLibrarySectionsAllResponseBody> object() {
|
||||
return (Optional<GetLibrarySectionsAllResponseBody>) object;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
@@ -101,7 +101,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
public GetAllMediaLibraryResponse withContentType(String contentType) {
|
||||
public GetLibrarySectionsAllResponse withContentType(String contentType) {
|
||||
Utils.checkNotNull(contentType, "contentType");
|
||||
this.contentType = contentType;
|
||||
return this;
|
||||
@@ -110,7 +110,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
public GetAllMediaLibraryResponse withStatusCode(int statusCode) {
|
||||
public GetLibrarySectionsAllResponse withStatusCode(int statusCode) {
|
||||
Utils.checkNotNull(statusCode, "statusCode");
|
||||
this.statusCode = statusCode;
|
||||
return this;
|
||||
@@ -119,7 +119,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
public GetAllMediaLibraryResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
public GetLibrarySectionsAllResponse withRawResponse(HttpResponse<InputStream> rawResponse) {
|
||||
Utils.checkNotNull(rawResponse, "rawResponse");
|
||||
this.rawResponse = rawResponse;
|
||||
return this;
|
||||
@@ -128,7 +128,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public GetAllMediaLibraryResponse withObject(GetAllMediaLibraryResponseBody object) {
|
||||
public GetLibrarySectionsAllResponse withObject(GetLibrarySectionsAllResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
@@ -137,7 +137,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public GetAllMediaLibraryResponse withObject(Optional<? extends GetAllMediaLibraryResponseBody> object) {
|
||||
public GetLibrarySectionsAllResponse withObject(Optional<? extends GetLibrarySectionsAllResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
@@ -152,7 +152,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryResponse other = (GetAllMediaLibraryResponse) o;
|
||||
GetLibrarySectionsAllResponse other = (GetLibrarySectionsAllResponse) o;
|
||||
return
|
||||
Objects.deepEquals(this.contentType, other.contentType) &&
|
||||
Objects.deepEquals(this.statusCode, other.statusCode) &&
|
||||
@@ -171,7 +171,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryResponse.class,
|
||||
return Utils.toString(GetLibrarySectionsAllResponse.class,
|
||||
"contentType", contentType,
|
||||
"statusCode", statusCode,
|
||||
"rawResponse", rawResponse,
|
||||
@@ -186,7 +186,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
|
||||
private HttpResponse<InputStream> rawResponse;
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryResponseBody> object = Optional.empty();
|
||||
private Optional<? extends GetLibrarySectionsAllResponseBody> object = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -222,7 +222,7 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public Builder object(GetAllMediaLibraryResponseBody object) {
|
||||
public Builder object(GetLibrarySectionsAllResponseBody object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = Optional.ofNullable(object);
|
||||
return this;
|
||||
@@ -231,14 +231,14 @@ public class GetAllMediaLibraryResponse implements Response {
|
||||
/**
|
||||
* Successful response containing media container data.
|
||||
*/
|
||||
public Builder object(Optional<? extends GetAllMediaLibraryResponseBody> object) {
|
||||
public Builder object(Optional<? extends GetLibrarySectionsAllResponseBody> object) {
|
||||
Utils.checkNotNull(object, "object");
|
||||
this.object = object;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryResponse build() {
|
||||
return new GetAllMediaLibraryResponse(
|
||||
public GetLibrarySectionsAllResponse build() {
|
||||
return new GetLibrarySectionsAllResponse(
|
||||
contentType,
|
||||
statusCode,
|
||||
rawResponse,
|
||||
@@ -16,44 +16,44 @@ import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetAllMediaLibraryResponseBody
|
||||
* GetLibrarySectionsAllResponseBody
|
||||
*
|
||||
* <p>Successful response containing media container data.
|
||||
*/
|
||||
public class GetAllMediaLibraryResponseBody {
|
||||
public class GetLibrarySectionsAllResponseBody {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("MediaContainer")
|
||||
private Optional<? extends GetAllMediaLibraryMediaContainer> mediaContainer;
|
||||
private Optional<? extends GetLibrarySectionsAllMediaContainer> mediaContainer;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryResponseBody(
|
||||
@JsonProperty("MediaContainer") Optional<? extends GetAllMediaLibraryMediaContainer> mediaContainer) {
|
||||
public GetLibrarySectionsAllResponseBody(
|
||||
@JsonProperty("MediaContainer") Optional<? extends GetLibrarySectionsAllMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryResponseBody() {
|
||||
public GetLibrarySectionsAllResponseBody() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryMediaContainer> mediaContainer() {
|
||||
return (Optional<GetAllMediaLibraryMediaContainer>) mediaContainer;
|
||||
public Optional<GetLibrarySectionsAllMediaContainer> mediaContainer() {
|
||||
return (Optional<GetLibrarySectionsAllMediaContainer>) mediaContainer;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryResponseBody withMediaContainer(GetAllMediaLibraryMediaContainer mediaContainer) {
|
||||
public GetLibrarySectionsAllResponseBody withMediaContainer(GetLibrarySectionsAllMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryResponseBody withMediaContainer(Optional<? extends GetAllMediaLibraryMediaContainer> mediaContainer) {
|
||||
public GetLibrarySectionsAllResponseBody withMediaContainer(Optional<? extends GetLibrarySectionsAllMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
@@ -68,7 +68,7 @@ public class GetAllMediaLibraryResponseBody {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryResponseBody other = (GetAllMediaLibraryResponseBody) o;
|
||||
GetLibrarySectionsAllResponseBody other = (GetLibrarySectionsAllResponseBody) o;
|
||||
return
|
||||
Objects.deepEquals(this.mediaContainer, other.mediaContainer);
|
||||
}
|
||||
@@ -81,32 +81,32 @@ public class GetAllMediaLibraryResponseBody {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryResponseBody.class,
|
||||
return Utils.toString(GetLibrarySectionsAllResponseBody.class,
|
||||
"mediaContainer", mediaContainer);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryMediaContainer> mediaContainer = Optional.empty();
|
||||
private Optional<? extends GetLibrarySectionsAllMediaContainer> mediaContainer = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder mediaContainer(GetAllMediaLibraryMediaContainer mediaContainer) {
|
||||
public Builder mediaContainer(GetLibrarySectionsAllMediaContainer mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = Optional.ofNullable(mediaContainer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaContainer(Optional<? extends GetAllMediaLibraryMediaContainer> mediaContainer) {
|
||||
public Builder mediaContainer(Optional<? extends GetLibrarySectionsAllMediaContainer> mediaContainer) {
|
||||
Utils.checkNotNull(mediaContainer, "mediaContainer");
|
||||
this.mediaContainer = mediaContainer;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryResponseBody build() {
|
||||
return new GetAllMediaLibraryResponseBody(
|
||||
public GetLibrarySectionsAllResponseBody build() {
|
||||
return new GetLibrarySectionsAllResponseBody(
|
||||
mediaContainer);
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryRole {
|
||||
public class GetLibrarySectionsAllRole {
|
||||
|
||||
/**
|
||||
* The display tag for the actor (typically the actor's name).
|
||||
@@ -20,7 +20,7 @@ public class GetAllMediaLibraryRole {
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryRole(
|
||||
public GetLibrarySectionsAllRole(
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
@@ -41,7 +41,7 @@ public class GetAllMediaLibraryRole {
|
||||
/**
|
||||
* The display tag for the actor (typically the actor's name).
|
||||
*/
|
||||
public GetAllMediaLibraryRole withTag(String tag) {
|
||||
public GetLibrarySectionsAllRole withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -56,7 +56,7 @@ public class GetAllMediaLibraryRole {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryRole other = (GetAllMediaLibraryRole) o;
|
||||
GetLibrarySectionsAllRole other = (GetLibrarySectionsAllRole) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ public class GetAllMediaLibraryRole {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryRole.class,
|
||||
return Utils.toString(GetLibrarySectionsAllRole.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ public class GetAllMediaLibraryRole {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryRole build() {
|
||||
return new GetAllMediaLibraryRole(
|
||||
public GetLibrarySectionsAllRole build() {
|
||||
return new GetLibrarySectionsAllRole(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ import java.lang.SuppressWarnings;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibrarySort {
|
||||
public class GetLibrarySectionsAllSort {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("default")
|
||||
@@ -33,14 +33,14 @@ public class GetAllMediaLibrarySort {
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("activeDirection")
|
||||
private Optional<? extends GetAllMediaLibraryActiveDirection> activeDirection;
|
||||
private Optional<? extends GetLibrarySectionsAllActiveDirection> activeDirection;
|
||||
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("defaultDirection")
|
||||
private Optional<? extends GetAllMediaLibraryDefaultDirection> defaultDirection;
|
||||
private Optional<? extends GetLibrarySectionsAllDefaultDirection> defaultDirection;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("descKey")
|
||||
@@ -57,11 +57,11 @@ public class GetAllMediaLibrarySort {
|
||||
private String title;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibrarySort(
|
||||
public GetLibrarySectionsAllSort(
|
||||
@JsonProperty("default") Optional<String> default_,
|
||||
@JsonProperty("active") Optional<Boolean> active,
|
||||
@JsonProperty("activeDirection") Optional<? extends GetAllMediaLibraryActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends GetAllMediaLibraryDefaultDirection> defaultDirection,
|
||||
@JsonProperty("activeDirection") Optional<? extends GetLibrarySectionsAllActiveDirection> activeDirection,
|
||||
@JsonProperty("defaultDirection") Optional<? extends GetLibrarySectionsAllDefaultDirection> defaultDirection,
|
||||
@JsonProperty("descKey") Optional<String> descKey,
|
||||
@JsonProperty("firstCharacterKey") Optional<String> firstCharacterKey,
|
||||
@JsonProperty("key") String key,
|
||||
@@ -84,7 +84,7 @@ public class GetAllMediaLibrarySort {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort(
|
||||
public GetLibrarySectionsAllSort(
|
||||
String key,
|
||||
String title) {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), key, title);
|
||||
@@ -105,8 +105,8 @@ public class GetAllMediaLibrarySort {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryActiveDirection> activeDirection() {
|
||||
return (Optional<GetAllMediaLibraryActiveDirection>) activeDirection;
|
||||
public Optional<GetLibrarySectionsAllActiveDirection> activeDirection() {
|
||||
return (Optional<GetLibrarySectionsAllActiveDirection>) activeDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,8 +114,8 @@ public class GetAllMediaLibrarySort {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetAllMediaLibraryDefaultDirection> defaultDirection() {
|
||||
return (Optional<GetAllMediaLibraryDefaultDirection>) defaultDirection;
|
||||
public Optional<GetLibrarySectionsAllDefaultDirection> defaultDirection() {
|
||||
return (Optional<GetLibrarySectionsAllDefaultDirection>) defaultDirection;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@@ -142,25 +142,25 @@ public class GetAllMediaLibrarySort {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withDefault(String default_) {
|
||||
public GetLibrarySectionsAllSort withDefault(String default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withDefault(Optional<String> default_) {
|
||||
public GetLibrarySectionsAllSort withDefault(Optional<String> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withActive(boolean active) {
|
||||
public GetLibrarySectionsAllSort withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = Optional.ofNullable(active);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withActive(Optional<Boolean> active) {
|
||||
public GetLibrarySectionsAllSort withActive(Optional<Boolean> active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
@@ -169,7 +169,7 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public GetAllMediaLibrarySort withActiveDirection(GetAllMediaLibraryActiveDirection activeDirection) {
|
||||
public GetLibrarySectionsAllSort withActiveDirection(GetLibrarySectionsAllActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
@@ -178,7 +178,7 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public GetAllMediaLibrarySort withActiveDirection(Optional<? extends GetAllMediaLibraryActiveDirection> activeDirection) {
|
||||
public GetLibrarySectionsAllSort withActiveDirection(Optional<? extends GetLibrarySectionsAllActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
@@ -187,7 +187,7 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public GetAllMediaLibrarySort withDefaultDirection(GetAllMediaLibraryDefaultDirection defaultDirection) {
|
||||
public GetLibrarySectionsAllSort withDefaultDirection(GetLibrarySectionsAllDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
@@ -196,43 +196,43 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public GetAllMediaLibrarySort withDefaultDirection(Optional<? extends GetAllMediaLibraryDefaultDirection> defaultDirection) {
|
||||
public GetLibrarySectionsAllSort withDefaultDirection(Optional<? extends GetLibrarySectionsAllDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withDescKey(String descKey) {
|
||||
public GetLibrarySectionsAllSort withDescKey(String descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = Optional.ofNullable(descKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withDescKey(Optional<String> descKey) {
|
||||
public GetLibrarySectionsAllSort withDescKey(Optional<String> descKey) {
|
||||
Utils.checkNotNull(descKey, "descKey");
|
||||
this.descKey = descKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withFirstCharacterKey(String firstCharacterKey) {
|
||||
public GetLibrarySectionsAllSort withFirstCharacterKey(String firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = Optional.ofNullable(firstCharacterKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withFirstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
public GetLibrarySectionsAllSort withFirstCharacterKey(Optional<String> firstCharacterKey) {
|
||||
Utils.checkNotNull(firstCharacterKey, "firstCharacterKey");
|
||||
this.firstCharacterKey = firstCharacterKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withKey(String key) {
|
||||
public GetLibrarySectionsAllSort withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort withTitle(String title) {
|
||||
public GetLibrarySectionsAllSort withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
@@ -247,7 +247,7 @@ public class GetAllMediaLibrarySort {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibrarySort other = (GetAllMediaLibrarySort) o;
|
||||
GetLibrarySectionsAllSort other = (GetLibrarySectionsAllSort) o;
|
||||
return
|
||||
Objects.deepEquals(this.default_, other.default_) &&
|
||||
Objects.deepEquals(this.active, other.active) &&
|
||||
@@ -274,7 +274,7 @@ public class GetAllMediaLibrarySort {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibrarySort.class,
|
||||
return Utils.toString(GetLibrarySectionsAllSort.class,
|
||||
"default_", default_,
|
||||
"active", active,
|
||||
"activeDirection", activeDirection,
|
||||
@@ -291,9 +291,9 @@ public class GetAllMediaLibrarySort {
|
||||
|
||||
private Optional<Boolean> active = Optional.empty();
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryActiveDirection> activeDirection;
|
||||
private Optional<? extends GetLibrarySectionsAllActiveDirection> activeDirection;
|
||||
|
||||
private Optional<? extends GetAllMediaLibraryDefaultDirection> defaultDirection;
|
||||
private Optional<? extends GetLibrarySectionsAllDefaultDirection> defaultDirection;
|
||||
|
||||
private Optional<String> descKey = Optional.empty();
|
||||
|
||||
@@ -334,7 +334,7 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public Builder activeDirection(GetAllMediaLibraryActiveDirection activeDirection) {
|
||||
public Builder activeDirection(GetLibrarySectionsAllActiveDirection activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = Optional.ofNullable(activeDirection);
|
||||
return this;
|
||||
@@ -343,7 +343,7 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public Builder activeDirection(Optional<? extends GetAllMediaLibraryActiveDirection> activeDirection) {
|
||||
public Builder activeDirection(Optional<? extends GetLibrarySectionsAllActiveDirection> activeDirection) {
|
||||
Utils.checkNotNull(activeDirection, "activeDirection");
|
||||
this.activeDirection = activeDirection;
|
||||
return this;
|
||||
@@ -352,7 +352,7 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public Builder defaultDirection(GetAllMediaLibraryDefaultDirection defaultDirection) {
|
||||
public Builder defaultDirection(GetLibrarySectionsAllDefaultDirection defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = Optional.ofNullable(defaultDirection);
|
||||
return this;
|
||||
@@ -361,7 +361,7 @@ public class GetAllMediaLibrarySort {
|
||||
/**
|
||||
* The direction of the sort. Can be either `asc` or `desc`.
|
||||
*/
|
||||
public Builder defaultDirection(Optional<? extends GetAllMediaLibraryDefaultDirection> defaultDirection) {
|
||||
public Builder defaultDirection(Optional<? extends GetLibrarySectionsAllDefaultDirection> defaultDirection) {
|
||||
Utils.checkNotNull(defaultDirection, "defaultDirection");
|
||||
this.defaultDirection = defaultDirection;
|
||||
return this;
|
||||
@@ -403,14 +403,14 @@ public class GetAllMediaLibrarySort {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibrarySort build() {
|
||||
public GetLibrarySectionsAllSort build() {
|
||||
if (activeDirection == null) {
|
||||
activeDirection = _SINGLETON_VALUE_ActiveDirection.value();
|
||||
}
|
||||
if (defaultDirection == null) {
|
||||
defaultDirection = _SINGLETON_VALUE_DefaultDirection.value();
|
||||
}
|
||||
return new GetAllMediaLibrarySort(
|
||||
return new GetLibrarySectionsAllSort(
|
||||
default_,
|
||||
active,
|
||||
activeDirection,
|
||||
@@ -421,16 +421,16 @@ public class GetAllMediaLibrarySort {
|
||||
title);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetAllMediaLibraryActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibrarySectionsAllActiveDirection>> _SINGLETON_VALUE_ActiveDirection =
|
||||
new LazySingletonValue<>(
|
||||
"activeDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends GetAllMediaLibraryActiveDirection>>() {});
|
||||
new TypeReference<Optional<? extends GetLibrarySectionsAllActiveDirection>>() {});
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetAllMediaLibraryDefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
private static final LazySingletonValue<Optional<? extends GetLibrarySectionsAllDefaultDirection>> _SINGLETON_VALUE_DefaultDirection =
|
||||
new LazySingletonValue<>(
|
||||
"defaultDirection",
|
||||
"\"asc\"",
|
||||
new TypeReference<Optional<? extends GetAllMediaLibraryDefaultDirection>>() {});
|
||||
new TypeReference<Optional<? extends GetLibrarySectionsAllDefaultDirection>>() {});
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryStream {
|
||||
public class GetLibrarySectionsAllStream {
|
||||
|
||||
/**
|
||||
* Unique stream identifier.
|
||||
@@ -33,7 +33,7 @@ public class GetAllMediaLibraryStream {
|
||||
* - 3 = subtitle
|
||||
*/
|
||||
@JsonProperty("streamType")
|
||||
private GetAllMediaLibraryStreamType streamType;
|
||||
private GetLibrarySectionsAllStreamType streamType;
|
||||
|
||||
/**
|
||||
* Format of the stream (e.g., srt).
|
||||
@@ -361,9 +361,9 @@ public class GetAllMediaLibraryStream {
|
||||
private Optional<String> title;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryStream(
|
||||
public GetLibrarySectionsAllStream(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("streamType") GetAllMediaLibraryStreamType streamType,
|
||||
@JsonProperty("streamType") GetLibrarySectionsAllStreamType streamType,
|
||||
@JsonProperty("format") Optional<String> format,
|
||||
@JsonProperty("default") Optional<Boolean> default_,
|
||||
@JsonProperty("codec") String codec,
|
||||
@@ -517,9 +517,9 @@ public class GetAllMediaLibraryStream {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream(
|
||||
public GetLibrarySectionsAllStream(
|
||||
long id,
|
||||
GetAllMediaLibraryStreamType streamType,
|
||||
GetLibrarySectionsAllStreamType streamType,
|
||||
String codec,
|
||||
String displayTitle,
|
||||
String extendedDisplayTitle) {
|
||||
@@ -541,7 +541,7 @@ public class GetAllMediaLibraryStream {
|
||||
* - 3 = subtitle
|
||||
*/
|
||||
@JsonIgnore
|
||||
public GetAllMediaLibraryStreamType streamType() {
|
||||
public GetLibrarySectionsAllStreamType streamType() {
|
||||
return streamType;
|
||||
}
|
||||
|
||||
@@ -929,7 +929,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Unique stream identifier.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withId(long id) {
|
||||
public GetLibrarySectionsAllStream withId(long id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -941,7 +941,7 @@ public class GetAllMediaLibraryStream {
|
||||
* - 2 = audio
|
||||
* - 3 = subtitle
|
||||
*/
|
||||
public GetAllMediaLibraryStream withStreamType(GetAllMediaLibraryStreamType streamType) {
|
||||
public GetLibrarySectionsAllStream withStreamType(GetLibrarySectionsAllStreamType streamType) {
|
||||
Utils.checkNotNull(streamType, "streamType");
|
||||
this.streamType = streamType;
|
||||
return this;
|
||||
@@ -950,7 +950,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Format of the stream (e.g., srt).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withFormat(String format) {
|
||||
public GetLibrarySectionsAllStream withFormat(String format) {
|
||||
Utils.checkNotNull(format, "format");
|
||||
this.format = Optional.ofNullable(format);
|
||||
return this;
|
||||
@@ -959,7 +959,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Format of the stream (e.g., srt).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withFormat(Optional<String> format) {
|
||||
public GetLibrarySectionsAllStream withFormat(Optional<String> format) {
|
||||
Utils.checkNotNull(format, "format");
|
||||
this.format = format;
|
||||
return this;
|
||||
@@ -968,7 +968,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if this stream is default.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDefault(boolean default_) {
|
||||
public GetLibrarySectionsAllStream withDefault(boolean default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = Optional.ofNullable(default_);
|
||||
return this;
|
||||
@@ -977,7 +977,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if this stream is default.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDefault(Optional<Boolean> default_) {
|
||||
public GetLibrarySectionsAllStream withDefault(Optional<Boolean> default_) {
|
||||
Utils.checkNotNull(default_, "default_");
|
||||
this.default_ = default_;
|
||||
return this;
|
||||
@@ -986,7 +986,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Codec used by the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withCodec(String codec) {
|
||||
public GetLibrarySectionsAllStream withCodec(String codec) {
|
||||
Utils.checkNotNull(codec, "codec");
|
||||
this.codec = codec;
|
||||
return this;
|
||||
@@ -995,7 +995,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Index of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withIndex(int index) {
|
||||
public GetLibrarySectionsAllStream withIndex(int index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = Optional.ofNullable(index);
|
||||
return this;
|
||||
@@ -1004,7 +1004,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Index of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withIndex(Optional<Integer> index) {
|
||||
public GetLibrarySectionsAllStream withIndex(Optional<Integer> index) {
|
||||
Utils.checkNotNull(index, "index");
|
||||
this.index = index;
|
||||
return this;
|
||||
@@ -1013,7 +1013,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Bitrate of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withBitrate(int bitrate) {
|
||||
public GetLibrarySectionsAllStream withBitrate(int bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = Optional.ofNullable(bitrate);
|
||||
return this;
|
||||
@@ -1022,7 +1022,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Bitrate of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withBitrate(Optional<Integer> bitrate) {
|
||||
public GetLibrarySectionsAllStream withBitrate(Optional<Integer> bitrate) {
|
||||
Utils.checkNotNull(bitrate, "bitrate");
|
||||
this.bitrate = bitrate;
|
||||
return this;
|
||||
@@ -1031,7 +1031,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguage(String language) {
|
||||
public GetLibrarySectionsAllStream withLanguage(String language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = Optional.ofNullable(language);
|
||||
return this;
|
||||
@@ -1040,7 +1040,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Language of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguage(Optional<String> language) {
|
||||
public GetLibrarySectionsAllStream withLanguage(Optional<String> language) {
|
||||
Utils.checkNotNull(language, "language");
|
||||
this.language = language;
|
||||
return this;
|
||||
@@ -1049,7 +1049,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageTag(String languageTag) {
|
||||
public GetLibrarySectionsAllStream withLanguageTag(String languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = Optional.ofNullable(languageTag);
|
||||
return this;
|
||||
@@ -1058,7 +1058,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Language tag (e.g., en).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageTag(Optional<String> languageTag) {
|
||||
public GetLibrarySectionsAllStream withLanguageTag(Optional<String> languageTag) {
|
||||
Utils.checkNotNull(languageTag, "languageTag");
|
||||
this.languageTag = languageTag;
|
||||
return this;
|
||||
@@ -1067,7 +1067,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageCode(String languageCode) {
|
||||
public GetLibrarySectionsAllStream withLanguageCode(String languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = Optional.ofNullable(languageCode);
|
||||
return this;
|
||||
@@ -1076,7 +1076,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* ISO language code.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLanguageCode(Optional<String> languageCode) {
|
||||
public GetLibrarySectionsAllStream withLanguageCode(Optional<String> languageCode) {
|
||||
Utils.checkNotNull(languageCode, "languageCode");
|
||||
this.languageCode = languageCode;
|
||||
return this;
|
||||
@@ -1085,7 +1085,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates whether header compression is enabled.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withHeaderCompression(boolean headerCompression) {
|
||||
public GetLibrarySectionsAllStream withHeaderCompression(boolean headerCompression) {
|
||||
Utils.checkNotNull(headerCompression, "headerCompression");
|
||||
this.headerCompression = Optional.ofNullable(headerCompression);
|
||||
return this;
|
||||
@@ -1094,7 +1094,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates whether header compression is enabled.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withHeaderCompression(Optional<Boolean> headerCompression) {
|
||||
public GetLibrarySectionsAllStream withHeaderCompression(Optional<Boolean> headerCompression) {
|
||||
Utils.checkNotNull(headerCompression, "headerCompression");
|
||||
this.headerCompression = headerCompression;
|
||||
return this;
|
||||
@@ -1103,7 +1103,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision BL compatibility ID.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIBLCompatID(int doviblCompatID) {
|
||||
public GetLibrarySectionsAllStream withDOVIBLCompatID(int doviblCompatID) {
|
||||
Utils.checkNotNull(doviblCompatID, "doviblCompatID");
|
||||
this.doviblCompatID = Optional.ofNullable(doviblCompatID);
|
||||
return this;
|
||||
@@ -1112,7 +1112,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision BL compatibility ID.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIBLCompatID(Optional<Integer> doviblCompatID) {
|
||||
public GetLibrarySectionsAllStream withDOVIBLCompatID(Optional<Integer> doviblCompatID) {
|
||||
Utils.checkNotNull(doviblCompatID, "doviblCompatID");
|
||||
this.doviblCompatID = doviblCompatID;
|
||||
return this;
|
||||
@@ -1121,7 +1121,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision BL is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIBLPresent(boolean doviblPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIBLPresent(boolean doviblPresent) {
|
||||
Utils.checkNotNull(doviblPresent, "doviblPresent");
|
||||
this.doviblPresent = Optional.ofNullable(doviblPresent);
|
||||
return this;
|
||||
@@ -1130,7 +1130,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision BL is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIBLPresent(Optional<Boolean> doviblPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIBLPresent(Optional<Boolean> doviblPresent) {
|
||||
Utils.checkNotNull(doviblPresent, "doviblPresent");
|
||||
this.doviblPresent = doviblPresent;
|
||||
return this;
|
||||
@@ -1139,7 +1139,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision EL is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIELPresent(boolean dovielPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIELPresent(boolean dovielPresent) {
|
||||
Utils.checkNotNull(dovielPresent, "dovielPresent");
|
||||
this.dovielPresent = Optional.ofNullable(dovielPresent);
|
||||
return this;
|
||||
@@ -1148,7 +1148,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision EL is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIELPresent(Optional<Boolean> dovielPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIELPresent(Optional<Boolean> dovielPresent) {
|
||||
Utils.checkNotNull(dovielPresent, "dovielPresent");
|
||||
this.dovielPresent = dovielPresent;
|
||||
return this;
|
||||
@@ -1157,7 +1157,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision level.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVILevel(int doviLevel) {
|
||||
public GetLibrarySectionsAllStream withDOVILevel(int doviLevel) {
|
||||
Utils.checkNotNull(doviLevel, "doviLevel");
|
||||
this.doviLevel = Optional.ofNullable(doviLevel);
|
||||
return this;
|
||||
@@ -1166,7 +1166,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision level.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVILevel(Optional<Integer> doviLevel) {
|
||||
public GetLibrarySectionsAllStream withDOVILevel(Optional<Integer> doviLevel) {
|
||||
Utils.checkNotNull(doviLevel, "doviLevel");
|
||||
this.doviLevel = doviLevel;
|
||||
return this;
|
||||
@@ -1175,7 +1175,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIPresent(boolean doviPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIPresent(boolean doviPresent) {
|
||||
Utils.checkNotNull(doviPresent, "doviPresent");
|
||||
this.doviPresent = Optional.ofNullable(doviPresent);
|
||||
return this;
|
||||
@@ -1184,7 +1184,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIPresent(Optional<Boolean> doviPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIPresent(Optional<Boolean> doviPresent) {
|
||||
Utils.checkNotNull(doviPresent, "doviPresent");
|
||||
this.doviPresent = doviPresent;
|
||||
return this;
|
||||
@@ -1193,7 +1193,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision profile.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIProfile(int doviProfile) {
|
||||
public GetLibrarySectionsAllStream withDOVIProfile(int doviProfile) {
|
||||
Utils.checkNotNull(doviProfile, "doviProfile");
|
||||
this.doviProfile = Optional.ofNullable(doviProfile);
|
||||
return this;
|
||||
@@ -1202,7 +1202,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision profile.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIProfile(Optional<Integer> doviProfile) {
|
||||
public GetLibrarySectionsAllStream withDOVIProfile(Optional<Integer> doviProfile) {
|
||||
Utils.checkNotNull(doviProfile, "doviProfile");
|
||||
this.doviProfile = doviProfile;
|
||||
return this;
|
||||
@@ -1211,7 +1211,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision RPU is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIRPUPresent(boolean dovirpuPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIRPUPresent(boolean dovirpuPresent) {
|
||||
Utils.checkNotNull(dovirpuPresent, "dovirpuPresent");
|
||||
this.dovirpuPresent = Optional.ofNullable(dovirpuPresent);
|
||||
return this;
|
||||
@@ -1220,7 +1220,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if Dolby Vision RPU is present.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIRPUPresent(Optional<Boolean> dovirpuPresent) {
|
||||
public GetLibrarySectionsAllStream withDOVIRPUPresent(Optional<Boolean> dovirpuPresent) {
|
||||
Utils.checkNotNull(dovirpuPresent, "dovirpuPresent");
|
||||
this.dovirpuPresent = dovirpuPresent;
|
||||
return this;
|
||||
@@ -1229,7 +1229,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision version.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIVersion(String doviVersion) {
|
||||
public GetLibrarySectionsAllStream withDOVIVersion(String doviVersion) {
|
||||
Utils.checkNotNull(doviVersion, "doviVersion");
|
||||
this.doviVersion = Optional.ofNullable(doviVersion);
|
||||
return this;
|
||||
@@ -1238,7 +1238,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Dolby Vision version.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDOVIVersion(Optional<String> doviVersion) {
|
||||
public GetLibrarySectionsAllStream withDOVIVersion(Optional<String> doviVersion) {
|
||||
Utils.checkNotNull(doviVersion, "doviVersion");
|
||||
this.doviVersion = doviVersion;
|
||||
return this;
|
||||
@@ -1247,7 +1247,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Bit depth of the video stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withBitDepth(int bitDepth) {
|
||||
public GetLibrarySectionsAllStream withBitDepth(int bitDepth) {
|
||||
Utils.checkNotNull(bitDepth, "bitDepth");
|
||||
this.bitDepth = Optional.ofNullable(bitDepth);
|
||||
return this;
|
||||
@@ -1256,7 +1256,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Bit depth of the video stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withBitDepth(Optional<Integer> bitDepth) {
|
||||
public GetLibrarySectionsAllStream withBitDepth(Optional<Integer> bitDepth) {
|
||||
Utils.checkNotNull(bitDepth, "bitDepth");
|
||||
this.bitDepth = bitDepth;
|
||||
return this;
|
||||
@@ -1265,7 +1265,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Chroma sample location.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withChromaLocation(String chromaLocation) {
|
||||
public GetLibrarySectionsAllStream withChromaLocation(String chromaLocation) {
|
||||
Utils.checkNotNull(chromaLocation, "chromaLocation");
|
||||
this.chromaLocation = Optional.ofNullable(chromaLocation);
|
||||
return this;
|
||||
@@ -1274,7 +1274,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Chroma sample location.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withChromaLocation(Optional<String> chromaLocation) {
|
||||
public GetLibrarySectionsAllStream withChromaLocation(Optional<String> chromaLocation) {
|
||||
Utils.checkNotNull(chromaLocation, "chromaLocation");
|
||||
this.chromaLocation = chromaLocation;
|
||||
return this;
|
||||
@@ -1283,7 +1283,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Chroma subsampling format.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withChromaSubsampling(String chromaSubsampling) {
|
||||
public GetLibrarySectionsAllStream withChromaSubsampling(String chromaSubsampling) {
|
||||
Utils.checkNotNull(chromaSubsampling, "chromaSubsampling");
|
||||
this.chromaSubsampling = Optional.ofNullable(chromaSubsampling);
|
||||
return this;
|
||||
@@ -1292,7 +1292,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Chroma subsampling format.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withChromaSubsampling(Optional<String> chromaSubsampling) {
|
||||
public GetLibrarySectionsAllStream withChromaSubsampling(Optional<String> chromaSubsampling) {
|
||||
Utils.checkNotNull(chromaSubsampling, "chromaSubsampling");
|
||||
this.chromaSubsampling = chromaSubsampling;
|
||||
return this;
|
||||
@@ -1301,7 +1301,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Coded video height.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withCodedHeight(int codedHeight) {
|
||||
public GetLibrarySectionsAllStream withCodedHeight(int codedHeight) {
|
||||
Utils.checkNotNull(codedHeight, "codedHeight");
|
||||
this.codedHeight = Optional.ofNullable(codedHeight);
|
||||
return this;
|
||||
@@ -1310,7 +1310,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Coded video height.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withCodedHeight(Optional<Integer> codedHeight) {
|
||||
public GetLibrarySectionsAllStream withCodedHeight(Optional<Integer> codedHeight) {
|
||||
Utils.checkNotNull(codedHeight, "codedHeight");
|
||||
this.codedHeight = codedHeight;
|
||||
return this;
|
||||
@@ -1319,7 +1319,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Coded video width.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withCodedWidth(int codedWidth) {
|
||||
public GetLibrarySectionsAllStream withCodedWidth(int codedWidth) {
|
||||
Utils.checkNotNull(codedWidth, "codedWidth");
|
||||
this.codedWidth = Optional.ofNullable(codedWidth);
|
||||
return this;
|
||||
@@ -1328,19 +1328,19 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Coded video width.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withCodedWidth(Optional<Integer> codedWidth) {
|
||||
public GetLibrarySectionsAllStream withCodedWidth(Optional<Integer> codedWidth) {
|
||||
Utils.checkNotNull(codedWidth, "codedWidth");
|
||||
this.codedWidth = codedWidth;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withClosedCaptions(boolean closedCaptions) {
|
||||
public GetLibrarySectionsAllStream withClosedCaptions(boolean closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = Optional.ofNullable(closedCaptions);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withClosedCaptions(Optional<Boolean> closedCaptions) {
|
||||
public GetLibrarySectionsAllStream withClosedCaptions(Optional<Boolean> closedCaptions) {
|
||||
Utils.checkNotNull(closedCaptions, "closedCaptions");
|
||||
this.closedCaptions = closedCaptions;
|
||||
return this;
|
||||
@@ -1349,7 +1349,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorPrimaries(String colorPrimaries) {
|
||||
public GetLibrarySectionsAllStream withColorPrimaries(String colorPrimaries) {
|
||||
Utils.checkNotNull(colorPrimaries, "colorPrimaries");
|
||||
this.colorPrimaries = Optional.ofNullable(colorPrimaries);
|
||||
return this;
|
||||
@@ -1358,7 +1358,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color primaries used.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorPrimaries(Optional<String> colorPrimaries) {
|
||||
public GetLibrarySectionsAllStream withColorPrimaries(Optional<String> colorPrimaries) {
|
||||
Utils.checkNotNull(colorPrimaries, "colorPrimaries");
|
||||
this.colorPrimaries = colorPrimaries;
|
||||
return this;
|
||||
@@ -1367,7 +1367,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color range (e.g., tv).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorRange(String colorRange) {
|
||||
public GetLibrarySectionsAllStream withColorRange(String colorRange) {
|
||||
Utils.checkNotNull(colorRange, "colorRange");
|
||||
this.colorRange = Optional.ofNullable(colorRange);
|
||||
return this;
|
||||
@@ -1376,7 +1376,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color range (e.g., tv).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorRange(Optional<String> colorRange) {
|
||||
public GetLibrarySectionsAllStream withColorRange(Optional<String> colorRange) {
|
||||
Utils.checkNotNull(colorRange, "colorRange");
|
||||
this.colorRange = colorRange;
|
||||
return this;
|
||||
@@ -1385,7 +1385,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color space.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorSpace(String colorSpace) {
|
||||
public GetLibrarySectionsAllStream withColorSpace(String colorSpace) {
|
||||
Utils.checkNotNull(colorSpace, "colorSpace");
|
||||
this.colorSpace = Optional.ofNullable(colorSpace);
|
||||
return this;
|
||||
@@ -1394,7 +1394,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color space.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorSpace(Optional<String> colorSpace) {
|
||||
public GetLibrarySectionsAllStream withColorSpace(Optional<String> colorSpace) {
|
||||
Utils.checkNotNull(colorSpace, "colorSpace");
|
||||
this.colorSpace = colorSpace;
|
||||
return this;
|
||||
@@ -1403,7 +1403,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color transfer characteristics.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorTrc(String colorTrc) {
|
||||
public GetLibrarySectionsAllStream withColorTrc(String colorTrc) {
|
||||
Utils.checkNotNull(colorTrc, "colorTrc");
|
||||
this.colorTrc = Optional.ofNullable(colorTrc);
|
||||
return this;
|
||||
@@ -1412,7 +1412,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Color transfer characteristics.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withColorTrc(Optional<String> colorTrc) {
|
||||
public GetLibrarySectionsAllStream withColorTrc(Optional<String> colorTrc) {
|
||||
Utils.checkNotNull(colorTrc, "colorTrc");
|
||||
this.colorTrc = colorTrc;
|
||||
return this;
|
||||
@@ -1421,7 +1421,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Frame rate of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withFrameRate(float frameRate) {
|
||||
public GetLibrarySectionsAllStream withFrameRate(float frameRate) {
|
||||
Utils.checkNotNull(frameRate, "frameRate");
|
||||
this.frameRate = Optional.ofNullable(frameRate);
|
||||
return this;
|
||||
@@ -1430,7 +1430,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Frame rate of the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withFrameRate(Optional<Float> frameRate) {
|
||||
public GetLibrarySectionsAllStream withFrameRate(Optional<Float> frameRate) {
|
||||
Utils.checkNotNull(frameRate, "frameRate");
|
||||
this.frameRate = frameRate;
|
||||
return this;
|
||||
@@ -1439,7 +1439,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Key to access this stream part.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withKey(String key) {
|
||||
public GetLibrarySectionsAllStream withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = Optional.ofNullable(key);
|
||||
return this;
|
||||
@@ -1448,7 +1448,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Key to access this stream part.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withKey(Optional<String> key) {
|
||||
public GetLibrarySectionsAllStream withKey(Optional<String> key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
@@ -1457,7 +1457,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Height of the video stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withHeight(int height) {
|
||||
public GetLibrarySectionsAllStream withHeight(int height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = Optional.ofNullable(height);
|
||||
return this;
|
||||
@@ -1466,7 +1466,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Height of the video stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withHeight(Optional<Integer> height) {
|
||||
public GetLibrarySectionsAllStream withHeight(Optional<Integer> height) {
|
||||
Utils.checkNotNull(height, "height");
|
||||
this.height = height;
|
||||
return this;
|
||||
@@ -1475,7 +1475,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Video level.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLevel(int level) {
|
||||
public GetLibrarySectionsAllStream withLevel(int level) {
|
||||
Utils.checkNotNull(level, "level");
|
||||
this.level = Optional.ofNullable(level);
|
||||
return this;
|
||||
@@ -1484,7 +1484,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Video level.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withLevel(Optional<Integer> level) {
|
||||
public GetLibrarySectionsAllStream withLevel(Optional<Integer> level) {
|
||||
Utils.checkNotNull(level, "level");
|
||||
this.level = level;
|
||||
return this;
|
||||
@@ -1493,7 +1493,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if this is the original stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withOriginal(boolean original) {
|
||||
public GetLibrarySectionsAllStream withOriginal(boolean original) {
|
||||
Utils.checkNotNull(original, "original");
|
||||
this.original = Optional.ofNullable(original);
|
||||
return this;
|
||||
@@ -1502,19 +1502,19 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if this is the original stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withOriginal(Optional<Boolean> original) {
|
||||
public GetLibrarySectionsAllStream withOriginal(Optional<Boolean> original) {
|
||||
Utils.checkNotNull(original, "original");
|
||||
this.original = original;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withHasScalingMatrix(boolean hasScalingMatrix) {
|
||||
public GetLibrarySectionsAllStream withHasScalingMatrix(boolean hasScalingMatrix) {
|
||||
Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix");
|
||||
this.hasScalingMatrix = Optional.ofNullable(hasScalingMatrix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withHasScalingMatrix(Optional<Boolean> hasScalingMatrix) {
|
||||
public GetLibrarySectionsAllStream withHasScalingMatrix(Optional<Boolean> hasScalingMatrix) {
|
||||
Utils.checkNotNull(hasScalingMatrix, "hasScalingMatrix");
|
||||
this.hasScalingMatrix = hasScalingMatrix;
|
||||
return this;
|
||||
@@ -1523,7 +1523,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Video profile.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withProfile(String profile) {
|
||||
public GetLibrarySectionsAllStream withProfile(String profile) {
|
||||
Utils.checkNotNull(profile, "profile");
|
||||
this.profile = Optional.ofNullable(profile);
|
||||
return this;
|
||||
@@ -1532,31 +1532,31 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Video profile.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withProfile(Optional<String> profile) {
|
||||
public GetLibrarySectionsAllStream withProfile(Optional<String> profile) {
|
||||
Utils.checkNotNull(profile, "profile");
|
||||
this.profile = profile;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withScanType(String scanType) {
|
||||
public GetLibrarySectionsAllStream withScanType(String scanType) {
|
||||
Utils.checkNotNull(scanType, "scanType");
|
||||
this.scanType = Optional.ofNullable(scanType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withScanType(Optional<String> scanType) {
|
||||
public GetLibrarySectionsAllStream withScanType(Optional<String> scanType) {
|
||||
Utils.checkNotNull(scanType, "scanType");
|
||||
this.scanType = scanType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withEmbeddedInVideo(String embeddedInVideo) {
|
||||
public GetLibrarySectionsAllStream withEmbeddedInVideo(String embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = Optional.ofNullable(embeddedInVideo);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withEmbeddedInVideo(Optional<String> embeddedInVideo) {
|
||||
public GetLibrarySectionsAllStream withEmbeddedInVideo(Optional<String> embeddedInVideo) {
|
||||
Utils.checkNotNull(embeddedInVideo, "embeddedInVideo");
|
||||
this.embeddedInVideo = embeddedInVideo;
|
||||
return this;
|
||||
@@ -1565,7 +1565,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withRefFrames(int refFrames) {
|
||||
public GetLibrarySectionsAllStream withRefFrames(int refFrames) {
|
||||
Utils.checkNotNull(refFrames, "refFrames");
|
||||
this.refFrames = Optional.ofNullable(refFrames);
|
||||
return this;
|
||||
@@ -1574,7 +1574,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Number of reference frames.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withRefFrames(Optional<Integer> refFrames) {
|
||||
public GetLibrarySectionsAllStream withRefFrames(Optional<Integer> refFrames) {
|
||||
Utils.checkNotNull(refFrames, "refFrames");
|
||||
this.refFrames = refFrames;
|
||||
return this;
|
||||
@@ -1583,7 +1583,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Width of the video stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withWidth(int width) {
|
||||
public GetLibrarySectionsAllStream withWidth(int width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = Optional.ofNullable(width);
|
||||
return this;
|
||||
@@ -1592,7 +1592,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Width of the video stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withWidth(Optional<Integer> width) {
|
||||
public GetLibrarySectionsAllStream withWidth(Optional<Integer> width) {
|
||||
Utils.checkNotNull(width, "width");
|
||||
this.width = width;
|
||||
return this;
|
||||
@@ -1601,7 +1601,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Display title for the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDisplayTitle(String displayTitle) {
|
||||
public GetLibrarySectionsAllStream withDisplayTitle(String displayTitle) {
|
||||
Utils.checkNotNull(displayTitle, "displayTitle");
|
||||
this.displayTitle = displayTitle;
|
||||
return this;
|
||||
@@ -1610,7 +1610,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Extended display title for the stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withExtendedDisplayTitle(String extendedDisplayTitle) {
|
||||
public GetLibrarySectionsAllStream withExtendedDisplayTitle(String extendedDisplayTitle) {
|
||||
Utils.checkNotNull(extendedDisplayTitle, "extendedDisplayTitle");
|
||||
this.extendedDisplayTitle = extendedDisplayTitle;
|
||||
return this;
|
||||
@@ -1619,7 +1619,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if this stream is selected (applicable for audio streams).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withSelected(boolean selected) {
|
||||
public GetLibrarySectionsAllStream withSelected(boolean selected) {
|
||||
Utils.checkNotNull(selected, "selected");
|
||||
this.selected = Optional.ofNullable(selected);
|
||||
return this;
|
||||
@@ -1628,19 +1628,19 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if this stream is selected (applicable for audio streams).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withSelected(Optional<Boolean> selected) {
|
||||
public GetLibrarySectionsAllStream withSelected(Optional<Boolean> selected) {
|
||||
Utils.checkNotNull(selected, "selected");
|
||||
this.selected = selected;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withForced(boolean forced) {
|
||||
public GetLibrarySectionsAllStream withForced(boolean forced) {
|
||||
Utils.checkNotNull(forced, "forced");
|
||||
this.forced = Optional.ofNullable(forced);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream withForced(Optional<Boolean> forced) {
|
||||
public GetLibrarySectionsAllStream withForced(Optional<Boolean> forced) {
|
||||
Utils.checkNotNull(forced, "forced");
|
||||
this.forced = forced;
|
||||
return this;
|
||||
@@ -1649,7 +1649,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Number of audio channels (for audio streams).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withChannels(int channels) {
|
||||
public GetLibrarySectionsAllStream withChannels(int channels) {
|
||||
Utils.checkNotNull(channels, "channels");
|
||||
this.channels = Optional.ofNullable(channels);
|
||||
return this;
|
||||
@@ -1658,7 +1658,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Number of audio channels (for audio streams).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withChannels(Optional<Integer> channels) {
|
||||
public GetLibrarySectionsAllStream withChannels(Optional<Integer> channels) {
|
||||
Utils.checkNotNull(channels, "channels");
|
||||
this.channels = channels;
|
||||
return this;
|
||||
@@ -1667,7 +1667,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Audio channel layout.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withAudioChannelLayout(String audioChannelLayout) {
|
||||
public GetLibrarySectionsAllStream withAudioChannelLayout(String audioChannelLayout) {
|
||||
Utils.checkNotNull(audioChannelLayout, "audioChannelLayout");
|
||||
this.audioChannelLayout = Optional.ofNullable(audioChannelLayout);
|
||||
return this;
|
||||
@@ -1676,7 +1676,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Audio channel layout.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withAudioChannelLayout(Optional<String> audioChannelLayout) {
|
||||
public GetLibrarySectionsAllStream withAudioChannelLayout(Optional<String> audioChannelLayout) {
|
||||
Utils.checkNotNull(audioChannelLayout, "audioChannelLayout");
|
||||
this.audioChannelLayout = audioChannelLayout;
|
||||
return this;
|
||||
@@ -1685,7 +1685,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Sampling rate for the audio stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withSamplingRate(int samplingRate) {
|
||||
public GetLibrarySectionsAllStream withSamplingRate(int samplingRate) {
|
||||
Utils.checkNotNull(samplingRate, "samplingRate");
|
||||
this.samplingRate = Optional.ofNullable(samplingRate);
|
||||
return this;
|
||||
@@ -1694,7 +1694,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Sampling rate for the audio stream.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withSamplingRate(Optional<Integer> samplingRate) {
|
||||
public GetLibrarySectionsAllStream withSamplingRate(Optional<Integer> samplingRate) {
|
||||
Utils.checkNotNull(samplingRate, "samplingRate");
|
||||
this.samplingRate = samplingRate;
|
||||
return this;
|
||||
@@ -1703,7 +1703,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if the stream can auto-sync.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withCanAutoSync(boolean canAutoSync) {
|
||||
public GetLibrarySectionsAllStream withCanAutoSync(boolean canAutoSync) {
|
||||
Utils.checkNotNull(canAutoSync, "canAutoSync");
|
||||
this.canAutoSync = Optional.ofNullable(canAutoSync);
|
||||
return this;
|
||||
@@ -1712,7 +1712,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if the stream can auto-sync.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withCanAutoSync(Optional<Boolean> canAutoSync) {
|
||||
public GetLibrarySectionsAllStream withCanAutoSync(Optional<Boolean> canAutoSync) {
|
||||
Utils.checkNotNull(canAutoSync, "canAutoSync");
|
||||
this.canAutoSync = canAutoSync;
|
||||
return this;
|
||||
@@ -1721,7 +1721,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if the stream is for the hearing impaired.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withHearingImpaired(boolean hearingImpaired) {
|
||||
public GetLibrarySectionsAllStream withHearingImpaired(boolean hearingImpaired) {
|
||||
Utils.checkNotNull(hearingImpaired, "hearingImpaired");
|
||||
this.hearingImpaired = Optional.ofNullable(hearingImpaired);
|
||||
return this;
|
||||
@@ -1730,7 +1730,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if the stream is for the hearing impaired.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withHearingImpaired(Optional<Boolean> hearingImpaired) {
|
||||
public GetLibrarySectionsAllStream withHearingImpaired(Optional<Boolean> hearingImpaired) {
|
||||
Utils.checkNotNull(hearingImpaired, "hearingImpaired");
|
||||
this.hearingImpaired = hearingImpaired;
|
||||
return this;
|
||||
@@ -1739,7 +1739,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if the stream is a dub.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDub(boolean dub) {
|
||||
public GetLibrarySectionsAllStream withDub(boolean dub) {
|
||||
Utils.checkNotNull(dub, "dub");
|
||||
this.dub = Optional.ofNullable(dub);
|
||||
return this;
|
||||
@@ -1748,7 +1748,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Indicates if the stream is a dub.
|
||||
*/
|
||||
public GetAllMediaLibraryStream withDub(Optional<Boolean> dub) {
|
||||
public GetLibrarySectionsAllStream withDub(Optional<Boolean> dub) {
|
||||
Utils.checkNotNull(dub, "dub");
|
||||
this.dub = dub;
|
||||
return this;
|
||||
@@ -1757,7 +1757,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Optional title for the stream (e.g., language variant).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withTitle(String title) {
|
||||
public GetLibrarySectionsAllStream withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = Optional.ofNullable(title);
|
||||
return this;
|
||||
@@ -1766,7 +1766,7 @@ public class GetAllMediaLibraryStream {
|
||||
/**
|
||||
* Optional title for the stream (e.g., language variant).
|
||||
*/
|
||||
public GetAllMediaLibraryStream withTitle(Optional<String> title) {
|
||||
public GetLibrarySectionsAllStream withTitle(Optional<String> title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
@@ -1781,7 +1781,7 @@ public class GetAllMediaLibraryStream {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryStream other = (GetAllMediaLibraryStream) o;
|
||||
GetLibrarySectionsAllStream other = (GetLibrarySectionsAllStream) o;
|
||||
return
|
||||
Objects.deepEquals(this.id, other.id) &&
|
||||
Objects.deepEquals(this.streamType, other.streamType) &&
|
||||
@@ -1894,7 +1894,7 @@ public class GetAllMediaLibraryStream {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryStream.class,
|
||||
return Utils.toString(GetLibrarySectionsAllStream.class,
|
||||
"id", id,
|
||||
"streamType", streamType,
|
||||
"format", format,
|
||||
@@ -1952,7 +1952,7 @@ public class GetAllMediaLibraryStream {
|
||||
|
||||
private Long id;
|
||||
|
||||
private GetAllMediaLibraryStreamType streamType;
|
||||
private GetLibrarySectionsAllStreamType streamType;
|
||||
|
||||
private Optional<String> format = Optional.empty();
|
||||
|
||||
@@ -2071,7 +2071,7 @@ public class GetAllMediaLibraryStream {
|
||||
* - 2 = audio
|
||||
* - 3 = subtitle
|
||||
*/
|
||||
public Builder streamType(GetAllMediaLibraryStreamType streamType) {
|
||||
public Builder streamType(GetLibrarySectionsAllStreamType streamType) {
|
||||
Utils.checkNotNull(streamType, "streamType");
|
||||
this.streamType = streamType;
|
||||
return this;
|
||||
@@ -2902,8 +2902,8 @@ public class GetAllMediaLibraryStream {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryStream build() {
|
||||
return new GetAllMediaLibraryStream(
|
||||
public GetLibrarySectionsAllStream build() {
|
||||
return new GetLibrarySectionsAllStream(
|
||||
id,
|
||||
streamType,
|
||||
format,
|
||||
@@ -43,45 +43,45 @@ import java.util.Optional;
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* GetAllMediaLibraryStreamType
|
||||
* GetLibrarySectionsAllStreamType
|
||||
*
|
||||
* <p>Stream type:
|
||||
* - 1 = video
|
||||
* - 2 = audio
|
||||
* - 3 = subtitle
|
||||
*/
|
||||
@JsonDeserialize(using = GetAllMediaLibraryStreamType._Deserializer.class)
|
||||
@JsonSerialize(using = GetAllMediaLibraryStreamType._Serializer.class)
|
||||
public class GetAllMediaLibraryStreamType {
|
||||
@JsonDeserialize(using = GetLibrarySectionsAllStreamType._Deserializer.class)
|
||||
@JsonSerialize(using = GetLibrarySectionsAllStreamType._Serializer.class)
|
||||
public class GetLibrarySectionsAllStreamType {
|
||||
|
||||
public static final GetAllMediaLibraryStreamType Video = new GetAllMediaLibraryStreamType(1);
|
||||
public static final GetAllMediaLibraryStreamType Audio = new GetAllMediaLibraryStreamType(2);
|
||||
public static final GetAllMediaLibraryStreamType Subtitle = new GetAllMediaLibraryStreamType(3);
|
||||
public static final GetLibrarySectionsAllStreamType Video = new GetLibrarySectionsAllStreamType(1);
|
||||
public static final GetLibrarySectionsAllStreamType Audio = new GetLibrarySectionsAllStreamType(2);
|
||||
public static final GetLibrarySectionsAllStreamType Subtitle = new GetLibrarySectionsAllStreamType(3);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
// careful). Keep this field lower case to avoid clashing with
|
||||
// generated member names which will always be upper cased (Java
|
||||
// convention)
|
||||
private static final Map<Integer, GetAllMediaLibraryStreamType> values = createValuesMap();
|
||||
private static final Map<Integer, GetAllMediaLibraryStreamTypeEnum> enums = createEnumsMap();
|
||||
private static final Map<Integer, GetLibrarySectionsAllStreamType> values = createValuesMap();
|
||||
private static final Map<Integer, GetLibrarySectionsAllStreamTypeEnum> enums = createEnumsMap();
|
||||
|
||||
private final int value;
|
||||
|
||||
private GetAllMediaLibraryStreamType(int value) {
|
||||
private GetLibrarySectionsAllStreamType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a GetAllMediaLibraryStreamType with the given value. For a specific value the
|
||||
* Returns a GetLibrarySectionsAllStreamType with the given value. For a specific value the
|
||||
* returned object will always be a singleton so reference equality
|
||||
* is satisfied when the values are the same.
|
||||
*
|
||||
* @param value value to be wrapped as GetAllMediaLibraryStreamType
|
||||
* @param value value to be wrapped as GetLibrarySectionsAllStreamType
|
||||
*/
|
||||
public static GetAllMediaLibraryStreamType of(int value) {
|
||||
synchronized (GetAllMediaLibraryStreamType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetAllMediaLibraryStreamType(v));
|
||||
public static GetLibrarySectionsAllStreamType of(int value) {
|
||||
synchronized (GetLibrarySectionsAllStreamType.class) {
|
||||
return values.computeIfAbsent(value, v -> new GetLibrarySectionsAllStreamType(v));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ public class GetAllMediaLibraryStreamType {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Optional<GetAllMediaLibraryStreamTypeEnum> asEnum() {
|
||||
public Optional<GetLibrarySectionsAllStreamTypeEnum> asEnum() {
|
||||
return Optional.ofNullable(enums.getOrDefault(value, null));
|
||||
}
|
||||
|
||||
@@ -110,69 +110,69 @@ public class GetAllMediaLibraryStreamType {
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
GetAllMediaLibraryStreamType other = (GetAllMediaLibraryStreamType) obj;
|
||||
GetLibrarySectionsAllStreamType other = (GetLibrarySectionsAllStreamType) obj;
|
||||
return Objects.equals(value, other.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "GetAllMediaLibraryStreamType [value=" + value + "]";
|
||||
return "GetLibrarySectionsAllStreamType [value=" + value + "]";
|
||||
}
|
||||
|
||||
// return an array just like an enum
|
||||
public static GetAllMediaLibraryStreamType[] values() {
|
||||
synchronized (GetAllMediaLibraryStreamType.class) {
|
||||
return values.values().toArray(new GetAllMediaLibraryStreamType[] {});
|
||||
public static GetLibrarySectionsAllStreamType[] values() {
|
||||
synchronized (GetLibrarySectionsAllStreamType.class) {
|
||||
return values.values().toArray(new GetLibrarySectionsAllStreamType[] {});
|
||||
}
|
||||
}
|
||||
|
||||
private static final Map<Integer, GetAllMediaLibraryStreamType> createValuesMap() {
|
||||
Map<Integer, GetAllMediaLibraryStreamType> map = new LinkedHashMap<>();
|
||||
private static final Map<Integer, GetLibrarySectionsAllStreamType> createValuesMap() {
|
||||
Map<Integer, GetLibrarySectionsAllStreamType> map = new LinkedHashMap<>();
|
||||
map.put(1, Video);
|
||||
map.put(2, Audio);
|
||||
map.put(3, Subtitle);
|
||||
return map;
|
||||
}
|
||||
|
||||
private static final Map<Integer, GetAllMediaLibraryStreamTypeEnum> createEnumsMap() {
|
||||
Map<Integer, GetAllMediaLibraryStreamTypeEnum> map = new HashMap<>();
|
||||
map.put(1, GetAllMediaLibraryStreamTypeEnum.Video);
|
||||
map.put(2, GetAllMediaLibraryStreamTypeEnum.Audio);
|
||||
map.put(3, GetAllMediaLibraryStreamTypeEnum.Subtitle);
|
||||
private static final Map<Integer, GetLibrarySectionsAllStreamTypeEnum> createEnumsMap() {
|
||||
Map<Integer, GetLibrarySectionsAllStreamTypeEnum> map = new HashMap<>();
|
||||
map.put(1, GetLibrarySectionsAllStreamTypeEnum.Video);
|
||||
map.put(2, GetLibrarySectionsAllStreamTypeEnum.Audio);
|
||||
map.put(3, GetLibrarySectionsAllStreamTypeEnum.Subtitle);
|
||||
return map;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Serializer extends StdSerializer<GetAllMediaLibraryStreamType> {
|
||||
public static final class _Serializer extends StdSerializer<GetLibrarySectionsAllStreamType> {
|
||||
|
||||
protected _Serializer() {
|
||||
super(GetAllMediaLibraryStreamType.class);
|
||||
super(GetLibrarySectionsAllStreamType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serialize(GetAllMediaLibraryStreamType value, JsonGenerator g, SerializerProvider provider)
|
||||
public void serialize(GetLibrarySectionsAllStreamType value, JsonGenerator g, SerializerProvider provider)
|
||||
throws IOException, JsonProcessingException {
|
||||
g.writeObject(value.value);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static final class _Deserializer extends StdDeserializer<GetAllMediaLibraryStreamType> {
|
||||
public static final class _Deserializer extends StdDeserializer<GetLibrarySectionsAllStreamType> {
|
||||
|
||||
protected _Deserializer() {
|
||||
super(GetAllMediaLibraryStreamType.class);
|
||||
super(GetLibrarySectionsAllStreamType.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetAllMediaLibraryStreamType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
public GetLibrarySectionsAllStreamType deserialize(JsonParser p, DeserializationContext ctxt)
|
||||
throws IOException, JacksonException {
|
||||
int v = p.readValueAs(new TypeReference<Integer>() {});
|
||||
// use the factory method to ensure we get singletons
|
||||
return GetAllMediaLibraryStreamType.of(v);
|
||||
return GetLibrarySectionsAllStreamType.of(v);
|
||||
}
|
||||
}
|
||||
|
||||
public enum GetAllMediaLibraryStreamTypeEnum {
|
||||
public enum GetLibrarySectionsAllStreamTypeEnum {
|
||||
|
||||
Video(1),
|
||||
Audio(2),
|
||||
@@ -180,7 +180,7 @@ public class GetAllMediaLibraryStreamType {
|
||||
|
||||
private final int value;
|
||||
|
||||
private GetAllMediaLibraryStreamTypeEnum(int value) {
|
||||
private GetLibrarySectionsAllStreamTypeEnum(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetAllMediaLibraryType {
|
||||
public class GetLibrarySectionsAllType {
|
||||
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
@@ -37,26 +37,26 @@ public class GetAllMediaLibraryType {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Filter")
|
||||
private Optional<? extends List<GetAllMediaLibraryFilter>> filter;
|
||||
private Optional<? extends List<GetLibrarySectionsAllFilter>> filter;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Sort")
|
||||
private Optional<? extends List<GetAllMediaLibrarySort>> sort;
|
||||
private Optional<? extends List<GetLibrarySectionsAllSort>> sort;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Field")
|
||||
private Optional<? extends List<GetAllMediaLibraryField>> field;
|
||||
private Optional<? extends List<GetLibrarySectionsAllField>> field;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryType(
|
||||
public GetLibrarySectionsAllType(
|
||||
@JsonProperty("key") String key,
|
||||
@JsonProperty("type") String type,
|
||||
@JsonProperty("subtype") Optional<String> subtype,
|
||||
@JsonProperty("title") String title,
|
||||
@JsonProperty("active") boolean active,
|
||||
@JsonProperty("Filter") Optional<? extends List<GetAllMediaLibraryFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetAllMediaLibrarySort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetAllMediaLibraryField>> field) {
|
||||
@JsonProperty("Filter") Optional<? extends List<GetLibrarySectionsAllFilter>> filter,
|
||||
@JsonProperty("Sort") Optional<? extends List<GetLibrarySectionsAllSort>> sort,
|
||||
@JsonProperty("Field") Optional<? extends List<GetLibrarySectionsAllField>> field) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
Utils.checkNotNull(type, "type");
|
||||
Utils.checkNotNull(subtype, "subtype");
|
||||
@@ -75,7 +75,7 @@ public class GetAllMediaLibraryType {
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType(
|
||||
public GetLibrarySectionsAllType(
|
||||
String key,
|
||||
String type,
|
||||
String title,
|
||||
@@ -110,93 +110,93 @@ public class GetAllMediaLibraryType {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryFilter>> filter() {
|
||||
return (Optional<List<GetAllMediaLibraryFilter>>) filter;
|
||||
public Optional<List<GetLibrarySectionsAllFilter>> filter() {
|
||||
return (Optional<List<GetLibrarySectionsAllFilter>>) filter;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibrarySort>> sort() {
|
||||
return (Optional<List<GetAllMediaLibrarySort>>) sort;
|
||||
public Optional<List<GetLibrarySectionsAllSort>> sort() {
|
||||
return (Optional<List<GetLibrarySectionsAllSort>>) sort;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetAllMediaLibraryField>> field() {
|
||||
return (Optional<List<GetAllMediaLibraryField>>) field;
|
||||
public Optional<List<GetLibrarySectionsAllField>> field() {
|
||||
return (Optional<List<GetLibrarySectionsAllField>>) field;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withKey(String key) {
|
||||
public GetLibrarySectionsAllType withKey(String key) {
|
||||
Utils.checkNotNull(key, "key");
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withType(String type) {
|
||||
public GetLibrarySectionsAllType withType(String type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withSubtype(String subtype) {
|
||||
public GetLibrarySectionsAllType withSubtype(String subtype) {
|
||||
Utils.checkNotNull(subtype, "subtype");
|
||||
this.subtype = Optional.ofNullable(subtype);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withSubtype(Optional<String> subtype) {
|
||||
public GetLibrarySectionsAllType withSubtype(Optional<String> subtype) {
|
||||
Utils.checkNotNull(subtype, "subtype");
|
||||
this.subtype = subtype;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withTitle(String title) {
|
||||
public GetLibrarySectionsAllType withTitle(String title) {
|
||||
Utils.checkNotNull(title, "title");
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withActive(boolean active) {
|
||||
public GetLibrarySectionsAllType withActive(boolean active) {
|
||||
Utils.checkNotNull(active, "active");
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withFilter(List<GetAllMediaLibraryFilter> filter) {
|
||||
public GetLibrarySectionsAllType withFilter(List<GetLibrarySectionsAllFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withFilter(Optional<? extends List<GetAllMediaLibraryFilter>> filter) {
|
||||
public GetLibrarySectionsAllType withFilter(Optional<? extends List<GetLibrarySectionsAllFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withSort(List<GetAllMediaLibrarySort> sort) {
|
||||
public GetLibrarySectionsAllType withSort(List<GetLibrarySectionsAllSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withSort(Optional<? extends List<GetAllMediaLibrarySort>> sort) {
|
||||
public GetLibrarySectionsAllType withSort(Optional<? extends List<GetLibrarySectionsAllSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withField(List<GetAllMediaLibraryField> field) {
|
||||
public GetLibrarySectionsAllType withField(List<GetLibrarySectionsAllField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType withField(Optional<? extends List<GetAllMediaLibraryField>> field) {
|
||||
public GetLibrarySectionsAllType withField(Optional<? extends List<GetLibrarySectionsAllField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
@@ -211,7 +211,7 @@ public class GetAllMediaLibraryType {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryType other = (GetAllMediaLibraryType) o;
|
||||
GetLibrarySectionsAllType other = (GetLibrarySectionsAllType) o;
|
||||
return
|
||||
Objects.deepEquals(this.key, other.key) &&
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
@@ -238,7 +238,7 @@ public class GetAllMediaLibraryType {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryType.class,
|
||||
return Utils.toString(GetLibrarySectionsAllType.class,
|
||||
"key", key,
|
||||
"type", type,
|
||||
"subtype", subtype,
|
||||
@@ -261,11 +261,11 @@ public class GetAllMediaLibraryType {
|
||||
|
||||
private Boolean active;
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryFilter>> filter = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllFilter>> filter = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibrarySort>> sort = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllSort>> sort = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetAllMediaLibraryField>> field = Optional.empty();
|
||||
private Optional<? extends List<GetLibrarySectionsAllField>> field = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
@@ -307,44 +307,44 @@ public class GetAllMediaLibraryType {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(List<GetAllMediaLibraryFilter> filter) {
|
||||
public Builder filter(List<GetLibrarySectionsAllFilter> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<? extends List<GetAllMediaLibraryFilter>> filter) {
|
||||
public Builder filter(Optional<? extends List<GetLibrarySectionsAllFilter>> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(List<GetAllMediaLibrarySort> sort) {
|
||||
public Builder sort(List<GetLibrarySectionsAllSort> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = Optional.ofNullable(sort);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder sort(Optional<? extends List<GetAllMediaLibrarySort>> sort) {
|
||||
public Builder sort(Optional<? extends List<GetLibrarySectionsAllSort>> sort) {
|
||||
Utils.checkNotNull(sort, "sort");
|
||||
this.sort = sort;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(List<GetAllMediaLibraryField> field) {
|
||||
public Builder field(List<GetLibrarySectionsAllField> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = Optional.ofNullable(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder field(Optional<? extends List<GetAllMediaLibraryField>> field) {
|
||||
public Builder field(Optional<? extends List<GetLibrarySectionsAllField>> field) {
|
||||
Utils.checkNotNull(field, "field");
|
||||
this.field = field;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryType build() {
|
||||
return new GetAllMediaLibraryType(
|
||||
public GetLibrarySectionsAllType build() {
|
||||
return new GetLibrarySectionsAllType(
|
||||
key,
|
||||
type,
|
||||
subtype,
|
||||
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryUltraBlurColors {
|
||||
public class GetLibrarySectionsAllUltraBlurColors {
|
||||
|
||||
@JsonProperty("topLeft")
|
||||
private String topLeft;
|
||||
@@ -26,7 +26,7 @@ public class GetAllMediaLibraryUltraBlurColors {
|
||||
private String bottomLeft;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryUltraBlurColors(
|
||||
public GetLibrarySectionsAllUltraBlurColors(
|
||||
@JsonProperty("topLeft") String topLeft,
|
||||
@JsonProperty("topRight") String topRight,
|
||||
@JsonProperty("bottomRight") String bottomRight,
|
||||
@@ -65,25 +65,25 @@ public class GetAllMediaLibraryUltraBlurColors {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUltraBlurColors withTopLeft(String topLeft) {
|
||||
public GetLibrarySectionsAllUltraBlurColors withTopLeft(String topLeft) {
|
||||
Utils.checkNotNull(topLeft, "topLeft");
|
||||
this.topLeft = topLeft;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUltraBlurColors withTopRight(String topRight) {
|
||||
public GetLibrarySectionsAllUltraBlurColors withTopRight(String topRight) {
|
||||
Utils.checkNotNull(topRight, "topRight");
|
||||
this.topRight = topRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUltraBlurColors withBottomRight(String bottomRight) {
|
||||
public GetLibrarySectionsAllUltraBlurColors withBottomRight(String bottomRight) {
|
||||
Utils.checkNotNull(bottomRight, "bottomRight");
|
||||
this.bottomRight = bottomRight;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUltraBlurColors withBottomLeft(String bottomLeft) {
|
||||
public GetLibrarySectionsAllUltraBlurColors withBottomLeft(String bottomLeft) {
|
||||
Utils.checkNotNull(bottomLeft, "bottomLeft");
|
||||
this.bottomLeft = bottomLeft;
|
||||
return this;
|
||||
@@ -98,7 +98,7 @@ public class GetAllMediaLibraryUltraBlurColors {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryUltraBlurColors other = (GetAllMediaLibraryUltraBlurColors) o;
|
||||
GetLibrarySectionsAllUltraBlurColors other = (GetLibrarySectionsAllUltraBlurColors) o;
|
||||
return
|
||||
Objects.deepEquals(this.topLeft, other.topLeft) &&
|
||||
Objects.deepEquals(this.topRight, other.topRight) &&
|
||||
@@ -117,7 +117,7 @@ public class GetAllMediaLibraryUltraBlurColors {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryUltraBlurColors.class,
|
||||
return Utils.toString(GetLibrarySectionsAllUltraBlurColors.class,
|
||||
"topLeft", topLeft,
|
||||
"topRight", topRight,
|
||||
"bottomRight", bottomRight,
|
||||
@@ -162,8 +162,8 @@ public class GetAllMediaLibraryUltraBlurColors {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryUltraBlurColors build() {
|
||||
return new GetAllMediaLibraryUltraBlurColors(
|
||||
public GetLibrarySectionsAllUltraBlurColors build() {
|
||||
return new GetLibrarySectionsAllUltraBlurColors(
|
||||
topLeft,
|
||||
topRight,
|
||||
bottomRight,
|
||||
@@ -11,7 +11,7 @@ import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
public class GetAllMediaLibraryWriter {
|
||||
public class GetLibrarySectionsAllWriter {
|
||||
|
||||
/**
|
||||
* The role of Writer
|
||||
@@ -20,7 +20,7 @@ public class GetAllMediaLibraryWriter {
|
||||
private String tag;
|
||||
|
||||
@JsonCreator
|
||||
public GetAllMediaLibraryWriter(
|
||||
public GetLibrarySectionsAllWriter(
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
@@ -41,7 +41,7 @@ public class GetAllMediaLibraryWriter {
|
||||
/**
|
||||
* The role of Writer
|
||||
*/
|
||||
public GetAllMediaLibraryWriter withTag(String tag) {
|
||||
public GetLibrarySectionsAllWriter withTag(String tag) {
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
this.tag = tag;
|
||||
return this;
|
||||
@@ -56,7 +56,7 @@ public class GetAllMediaLibraryWriter {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetAllMediaLibraryWriter other = (GetAllMediaLibraryWriter) o;
|
||||
GetLibrarySectionsAllWriter other = (GetLibrarySectionsAllWriter) o;
|
||||
return
|
||||
Objects.deepEquals(this.tag, other.tag);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ public class GetAllMediaLibraryWriter {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetAllMediaLibraryWriter.class,
|
||||
return Utils.toString(GetLibrarySectionsAllWriter.class,
|
||||
"tag", tag);
|
||||
}
|
||||
|
||||
@@ -90,8 +90,8 @@ public class GetAllMediaLibraryWriter {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetAllMediaLibraryWriter build() {
|
||||
return new GetAllMediaLibraryWriter(
|
||||
public GetLibrarySectionsAllWriter build() {
|
||||
return new GetLibrarySectionsAllWriter(
|
||||
tag);
|
||||
}
|
||||
}
|
||||
@@ -5,15 +5,12 @@ 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.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetMediaMetaDataCountry
|
||||
@@ -22,6 +19,10 @@ import java.util.Optional;
|
||||
*/
|
||||
public class GetMediaMetaDataCountry {
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -31,15 +32,14 @@ public class GetMediaMetaDataCountry {
|
||||
@JsonProperty("tag")
|
||||
private String tag;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("filter")
|
||||
private Optional<String> filter;
|
||||
private String filter;
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataCountry(
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("filter") Optional<String> filter) {
|
||||
@JsonProperty("filter") String filter) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
@@ -47,13 +47,11 @@ public class GetMediaMetaDataCountry {
|
||||
this.tag = tag;
|
||||
this.filter = filter;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataCountry(
|
||||
int id,
|
||||
String tag) {
|
||||
this(id, tag, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public int id() {
|
||||
return id;
|
||||
@@ -68,7 +66,7 @@ public class GetMediaMetaDataCountry {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Optional<String> filter() {
|
||||
public String filter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
@@ -76,6 +74,10 @@ public class GetMediaMetaDataCountry {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public GetMediaMetaDataCountry withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
@@ -92,12 +94,6 @@ public class GetMediaMetaDataCountry {
|
||||
}
|
||||
|
||||
public GetMediaMetaDataCountry withFilter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataCountry withFilter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
@@ -141,12 +137,16 @@ public class GetMediaMetaDataCountry {
|
||||
|
||||
private String tag;
|
||||
|
||||
private Optional<String> filter = Optional.empty();
|
||||
private String filter;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the country.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
@@ -163,12 +163,6 @@ public class GetMediaMetaDataCountry {
|
||||
}
|
||||
|
||||
public Builder filter(String filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = Optional.ofNullable(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder filter(Optional<String> filter) {
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
this.filter = filter;
|
||||
return this;
|
||||
|
||||
@@ -36,14 +36,13 @@ public class GetMediaMetaDataDirector {
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* A unique key associated with the director's tag, used for internal identification.
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the director.
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
@@ -54,7 +53,7 @@ public class GetMediaMetaDataDirector {
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
@@ -71,8 +70,9 @@ public class GetMediaMetaDataDirector {
|
||||
public GetMediaMetaDataDirector(
|
||||
int id,
|
||||
String tag,
|
||||
String filter) {
|
||||
this(id, tag, filter, Optional.empty(), Optional.empty());
|
||||
String filter,
|
||||
String tagKey) {
|
||||
this(id, tag, filter, tagKey, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,15 +100,15 @@ public class GetMediaMetaDataDirector {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the director's tag, used for internal identification.
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the director.
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
@@ -147,25 +147,16 @@ public class GetMediaMetaDataDirector {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the director's tag, used for internal identification.
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the director.
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -174,7 +165,7 @@ public class GetMediaMetaDataDirector {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the director.
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public GetMediaMetaDataDirector withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -228,7 +219,7 @@ public class GetMediaMetaDataDirector {
|
||||
|
||||
private String filter;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -264,25 +255,16 @@ public class GetMediaMetaDataDirector {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the director's tag, used for internal identification.
|
||||
* A unique 24-character hexadecimal key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the director's tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the director.
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -291,7 +273,7 @@ public class GetMediaMetaDataDirector {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the director.
|
||||
* The absolute URL of the thumbnail image for the director.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
|
||||
@@ -7,7 +7,7 @@ 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.Long;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -19,8 +19,12 @@ import java.util.Objects;
|
||||
*/
|
||||
public class GetMediaMetaDataGenre {
|
||||
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
private int id;
|
||||
|
||||
/**
|
||||
* The genre name of this media-item
|
||||
@@ -33,7 +37,7 @@ public class GetMediaMetaDataGenre {
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataGenre(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("filter") String filter) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
@@ -44,8 +48,12 @@ public class GetMediaMetaDataGenre {
|
||||
this.filter = filter;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -66,7 +74,11 @@ public class GetMediaMetaDataGenre {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public GetMediaMetaDataGenre withId(long id) {
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public GetMediaMetaDataGenre withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -121,7 +133,7 @@ public class GetMediaMetaDataGenre {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
private Integer id;
|
||||
|
||||
private String tag;
|
||||
|
||||
@@ -131,7 +143,11 @@ public class GetMediaMetaDataGenre {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(long id) {
|
||||
/**
|
||||
* The unique identifier for the genre.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.util.Objects;
|
||||
public class GetMediaMetaDataGuids {
|
||||
|
||||
/**
|
||||
* The GUID value.
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
@@ -27,7 +27,7 @@ public class GetMediaMetaDataGuids {
|
||||
}
|
||||
|
||||
/**
|
||||
* The GUID value.
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String id() {
|
||||
@@ -39,7 +39,7 @@ public class GetMediaMetaDataGuids {
|
||||
}
|
||||
|
||||
/**
|
||||
* The GUID value.
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
public GetMediaMetaDataGuids withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
@@ -82,7 +82,7 @@ public class GetMediaMetaDataGuids {
|
||||
}
|
||||
|
||||
/**
|
||||
* The GUID value.
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
|
||||
@@ -406,6 +406,10 @@ public class GetMediaMetaDataMetadata {
|
||||
@JsonProperty("librarySectionKey")
|
||||
private String librarySectionKey;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Guid")
|
||||
private Optional<? extends List<GetMediaMetaDataGuids>> guids;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Media")
|
||||
private Optional<? extends List<GetMediaMetaDataMedia>> media;
|
||||
@@ -434,10 +438,6 @@ public class GetMediaMetaDataMetadata {
|
||||
@JsonProperty("Role")
|
||||
private Optional<? extends List<GetMediaMetaDataRole>> role;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Guid")
|
||||
private Optional<? extends List<GetMediaMetaDataGuids>> guids;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Rating")
|
||||
private Optional<? extends List<Ratings>> ratings;
|
||||
@@ -523,6 +523,7 @@ public class GetMediaMetaDataMetadata {
|
||||
@JsonProperty("librarySectionID") long librarySectionID,
|
||||
@JsonProperty("librarySectionTitle") String librarySectionTitle,
|
||||
@JsonProperty("librarySectionKey") String librarySectionKey,
|
||||
@JsonProperty("Guid") Optional<? extends List<GetMediaMetaDataGuids>> guids,
|
||||
@JsonProperty("Media") Optional<? extends List<GetMediaMetaDataMedia>> media,
|
||||
@JsonProperty("Genre") Optional<? extends List<GetMediaMetaDataGenre>> genre,
|
||||
@JsonProperty("Country") Optional<? extends List<GetMediaMetaDataCountry>> country,
|
||||
@@ -530,7 +531,6 @@ public class GetMediaMetaDataMetadata {
|
||||
@JsonProperty("Writer") Optional<? extends List<GetMediaMetaDataWriter>> writer,
|
||||
@JsonProperty("Producer") Optional<? extends List<GetMediaMetaDataProducer>> producer,
|
||||
@JsonProperty("Role") Optional<? extends List<GetMediaMetaDataRole>> role,
|
||||
@JsonProperty("Guid") Optional<? extends List<GetMediaMetaDataGuids>> guids,
|
||||
@JsonProperty("Rating") Optional<? extends List<Ratings>> ratings,
|
||||
@JsonProperty("Similar") Optional<? extends List<GetMediaMetaDataSimilar>> similar,
|
||||
@JsonProperty("Location") Optional<? extends List<GetMediaMetaDataLocation>> location,
|
||||
@@ -596,6 +596,7 @@ public class GetMediaMetaDataMetadata {
|
||||
Utils.checkNotNull(librarySectionID, "librarySectionID");
|
||||
Utils.checkNotNull(librarySectionTitle, "librarySectionTitle");
|
||||
Utils.checkNotNull(librarySectionKey, "librarySectionKey");
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
Utils.checkNotNull(media, "media");
|
||||
Utils.checkNotNull(genre, "genre");
|
||||
Utils.checkNotNull(country, "country");
|
||||
@@ -603,7 +604,6 @@ public class GetMediaMetaDataMetadata {
|
||||
Utils.checkNotNull(writer, "writer");
|
||||
Utils.checkNotNull(producer, "producer");
|
||||
Utils.checkNotNull(role, "role");
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
Utils.checkNotNull(ratings, "ratings");
|
||||
Utils.checkNotNull(similar, "similar");
|
||||
Utils.checkNotNull(location, "location");
|
||||
@@ -669,6 +669,7 @@ public class GetMediaMetaDataMetadata {
|
||||
this.librarySectionID = librarySectionID;
|
||||
this.librarySectionTitle = librarySectionTitle;
|
||||
this.librarySectionKey = librarySectionKey;
|
||||
this.guids = guids;
|
||||
this.media = media;
|
||||
this.genre = genre;
|
||||
this.country = country;
|
||||
@@ -676,7 +677,6 @@ public class GetMediaMetaDataMetadata {
|
||||
this.writer = writer;
|
||||
this.producer = producer;
|
||||
this.role = role;
|
||||
this.guids = guids;
|
||||
this.ratings = ratings;
|
||||
this.similar = similar;
|
||||
this.location = location;
|
||||
@@ -1174,6 +1174,12 @@ public class GetMediaMetaDataMetadata {
|
||||
return librarySectionKey;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMediaMetaDataGuids>> guids() {
|
||||
return (Optional<List<GetMediaMetaDataGuids>>) guids;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMediaMetaDataMedia>> media() {
|
||||
@@ -1216,12 +1222,6 @@ public class GetMediaMetaDataMetadata {
|
||||
return (Optional<List<GetMediaMetaDataRole>>) role;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<GetMediaMetaDataGuids>> guids() {
|
||||
return (Optional<List<GetMediaMetaDataGuids>>) guids;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Ratings>> ratings() {
|
||||
@@ -2099,6 +2099,18 @@ public class GetMediaMetaDataMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMetadata withGuids(List<GetMediaMetaDataGuids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMetadata withGuids(Optional<? extends List<GetMediaMetaDataGuids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMetadata withMedia(List<GetMediaMetaDataMedia> media) {
|
||||
Utils.checkNotNull(media, "media");
|
||||
this.media = Optional.ofNullable(media);
|
||||
@@ -2183,18 +2195,6 @@ public class GetMediaMetaDataMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMetadata withGuids(List<GetMediaMetaDataGuids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMetadata withGuids(Optional<? extends List<GetMediaMetaDataGuids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetMediaMetaDataMetadata withRatings(List<Ratings> ratings) {
|
||||
Utils.checkNotNull(ratings, "ratings");
|
||||
this.ratings = Optional.ofNullable(ratings);
|
||||
@@ -2337,6 +2337,7 @@ public class GetMediaMetaDataMetadata {
|
||||
Objects.deepEquals(this.librarySectionID, other.librarySectionID) &&
|
||||
Objects.deepEquals(this.librarySectionTitle, other.librarySectionTitle) &&
|
||||
Objects.deepEquals(this.librarySectionKey, other.librarySectionKey) &&
|
||||
Objects.deepEquals(this.guids, other.guids) &&
|
||||
Objects.deepEquals(this.media, other.media) &&
|
||||
Objects.deepEquals(this.genre, other.genre) &&
|
||||
Objects.deepEquals(this.country, other.country) &&
|
||||
@@ -2344,7 +2345,6 @@ public class GetMediaMetaDataMetadata {
|
||||
Objects.deepEquals(this.writer, other.writer) &&
|
||||
Objects.deepEquals(this.producer, other.producer) &&
|
||||
Objects.deepEquals(this.role, other.role) &&
|
||||
Objects.deepEquals(this.guids, other.guids) &&
|
||||
Objects.deepEquals(this.ratings, other.ratings) &&
|
||||
Objects.deepEquals(this.similar, other.similar) &&
|
||||
Objects.deepEquals(this.location, other.location) &&
|
||||
@@ -2415,6 +2415,7 @@ public class GetMediaMetaDataMetadata {
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionKey,
|
||||
guids,
|
||||
media,
|
||||
genre,
|
||||
country,
|
||||
@@ -2422,7 +2423,6 @@ public class GetMediaMetaDataMetadata {
|
||||
writer,
|
||||
producer,
|
||||
role,
|
||||
guids,
|
||||
ratings,
|
||||
similar,
|
||||
location,
|
||||
@@ -2493,6 +2493,7 @@ public class GetMediaMetaDataMetadata {
|
||||
"librarySectionID", librarySectionID,
|
||||
"librarySectionTitle", librarySectionTitle,
|
||||
"librarySectionKey", librarySectionKey,
|
||||
"guids", guids,
|
||||
"media", media,
|
||||
"genre", genre,
|
||||
"country", country,
|
||||
@@ -2500,7 +2501,6 @@ public class GetMediaMetaDataMetadata {
|
||||
"writer", writer,
|
||||
"producer", producer,
|
||||
"role", role,
|
||||
"guids", guids,
|
||||
"ratings", ratings,
|
||||
"similar", similar,
|
||||
"location", location,
|
||||
@@ -2629,6 +2629,8 @@ public class GetMediaMetaDataMetadata {
|
||||
|
||||
private String librarySectionKey;
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataGuids>> guids = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataMedia>> media = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataGenre>> genre = Optional.empty();
|
||||
@@ -2643,8 +2645,6 @@ public class GetMediaMetaDataMetadata {
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataRole>> role = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataGuids>> guids = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Ratings>> ratings = Optional.empty();
|
||||
|
||||
private Optional<? extends List<GetMediaMetaDataSimilar>> similar = Optional.empty();
|
||||
@@ -3498,6 +3498,18 @@ public class GetMediaMetaDataMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(List<GetMediaMetaDataGuids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(Optional<? extends List<GetMediaMetaDataGuids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder media(List<GetMediaMetaDataMedia> media) {
|
||||
Utils.checkNotNull(media, "media");
|
||||
this.media = Optional.ofNullable(media);
|
||||
@@ -3582,18 +3594,6 @@ public class GetMediaMetaDataMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(List<GetMediaMetaDataGuids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(Optional<? extends List<GetMediaMetaDataGuids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder ratings(List<Ratings> ratings) {
|
||||
Utils.checkNotNull(ratings, "ratings");
|
||||
this.ratings = Optional.ofNullable(ratings);
|
||||
@@ -3727,6 +3727,7 @@ public class GetMediaMetaDataMetadata {
|
||||
librarySectionID,
|
||||
librarySectionTitle,
|
||||
librarySectionKey,
|
||||
guids,
|
||||
media,
|
||||
genre,
|
||||
country,
|
||||
@@ -3734,7 +3735,6 @@ public class GetMediaMetaDataMetadata {
|
||||
writer,
|
||||
producer,
|
||||
role,
|
||||
guids,
|
||||
ratings,
|
||||
similar,
|
||||
location,
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -17,10 +16,10 @@ import java.util.Optional;
|
||||
public class GetMediaMetaDataRequest {
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
* The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
|
||||
*/
|
||||
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey")
|
||||
private long ratingKey;
|
||||
private String ratingKey;
|
||||
|
||||
/**
|
||||
* Include concerts data if set to true.
|
||||
@@ -102,7 +101,7 @@ public class GetMediaMetaDataRequest {
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataRequest(
|
||||
long ratingKey,
|
||||
String ratingKey,
|
||||
Optional<Boolean> includeConcerts,
|
||||
Optional<Boolean> includeExtras,
|
||||
Optional<Boolean> includeOnDeck,
|
||||
@@ -147,15 +146,15 @@ public class GetMediaMetaDataRequest {
|
||||
}
|
||||
|
||||
public GetMediaMetaDataRequest(
|
||||
long ratingKey) {
|
||||
String ratingKey) {
|
||||
this(ratingKey, 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());
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
* The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long ratingKey() {
|
||||
public String ratingKey() {
|
||||
return ratingKey;
|
||||
}
|
||||
|
||||
@@ -268,9 +267,9 @@ public class GetMediaMetaDataRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
* The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
|
||||
*/
|
||||
public GetMediaMetaDataRequest withRatingKey(long ratingKey) {
|
||||
public GetMediaMetaDataRequest withRatingKey(String ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
@@ -577,7 +576,7 @@ public class GetMediaMetaDataRequest {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long ratingKey;
|
||||
private String ratingKey;
|
||||
|
||||
private Optional<Boolean> includeConcerts = Optional.empty();
|
||||
|
||||
@@ -610,9 +609,9 @@ public class GetMediaMetaDataRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the library item to return the children of.
|
||||
* The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
|
||||
*/
|
||||
public Builder ratingKey(long ratingKey) {
|
||||
public Builder ratingKey(String ratingKey) {
|
||||
Utils.checkNotNull(ratingKey, "ratingKey");
|
||||
this.ratingKey = ratingKey;
|
||||
return this;
|
||||
|
||||
@@ -9,7 +9,7 @@ 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.Long;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -18,10 +18,11 @@ import java.util.Optional;
|
||||
public class GetMediaMetaDataRole {
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
private int id;
|
||||
|
||||
/**
|
||||
* The display tag for the actor (typically the actor's name).
|
||||
@@ -43,14 +44,14 @@ public class GetMediaMetaDataRole {
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
@@ -58,11 +59,11 @@ public class GetMediaMetaDataRole {
|
||||
|
||||
@JsonCreator
|
||||
public GetMediaMetaDataRole(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("role") Optional<String> role,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(tag, "tag");
|
||||
@@ -79,17 +80,19 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
public GetMediaMetaDataRole(
|
||||
long id,
|
||||
int id,
|
||||
String tag,
|
||||
String filter) {
|
||||
this(id, tag, Optional.empty(), filter, Optional.empty(), Optional.empty());
|
||||
String filter,
|
||||
String tagKey) {
|
||||
this(id, tag, Optional.empty(), filter, tagKey, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -118,15 +121,16 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
@@ -138,9 +142,10 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public GetMediaMetaDataRole withId(long id) {
|
||||
public GetMediaMetaDataRole withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -183,25 +188,17 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
public GetMediaMetaDataRole withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
*/
|
||||
public GetMediaMetaDataRole withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public GetMediaMetaDataRole withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -210,7 +207,7 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public GetMediaMetaDataRole withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -261,7 +258,7 @@ public class GetMediaMetaDataRole {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
private Integer id;
|
||||
|
||||
private String tag;
|
||||
|
||||
@@ -269,7 +266,7 @@ public class GetMediaMetaDataRole {
|
||||
|
||||
private String filter;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -278,9 +275,10 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -323,25 +321,17 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -350,7 +340,7 @@ public class GetMediaMetaDataRole {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
|
||||
@@ -44,7 +44,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* GetMediaMetaDataType
|
||||
*
|
||||
* <p>The type of media content
|
||||
* <p>The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonDeserialize(using = GetMediaMetaDataType._Deserializer.class)
|
||||
@JsonSerialize(using = GetMediaMetaDataType._Serializer.class)
|
||||
@@ -56,6 +56,10 @@ public class GetMediaMetaDataType {
|
||||
public static final GetMediaMetaDataType Episode = new GetMediaMetaDataType("episode");
|
||||
public static final GetMediaMetaDataType Artist = new GetMediaMetaDataType("artist");
|
||||
public static final GetMediaMetaDataType Album = new GetMediaMetaDataType("album");
|
||||
public static final GetMediaMetaDataType Track = new GetMediaMetaDataType("track");
|
||||
public static final GetMediaMetaDataType PhotoAlbum = new GetMediaMetaDataType("photoalbum");
|
||||
public static final GetMediaMetaDataType Photo = new GetMediaMetaDataType("photo");
|
||||
public static final GetMediaMetaDataType Collection = new GetMediaMetaDataType("collection");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -133,6 +137,10 @@ public class GetMediaMetaDataType {
|
||||
map.put("episode", Episode);
|
||||
map.put("artist", Artist);
|
||||
map.put("album", Album);
|
||||
map.put("track", Track);
|
||||
map.put("photoalbum", PhotoAlbum);
|
||||
map.put("photo", Photo);
|
||||
map.put("collection", Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -144,6 +152,10 @@ public class GetMediaMetaDataType {
|
||||
map.put("episode", GetMediaMetaDataTypeEnum.Episode);
|
||||
map.put("artist", GetMediaMetaDataTypeEnum.Artist);
|
||||
map.put("album", GetMediaMetaDataTypeEnum.Album);
|
||||
map.put("track", GetMediaMetaDataTypeEnum.Track);
|
||||
map.put("photoalbum", GetMediaMetaDataTypeEnum.PhotoAlbum);
|
||||
map.put("photo", GetMediaMetaDataTypeEnum.Photo);
|
||||
map.put("collection", GetMediaMetaDataTypeEnum.Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -184,7 +196,11 @@ public class GetMediaMetaDataType {
|
||||
Season("season"),
|
||||
Episode("episode"),
|
||||
Artist("artist"),
|
||||
Album("album"),;
|
||||
Album("album"),
|
||||
Track("track"),
|
||||
PhotoAlbum("photoalbum"),
|
||||
Photo("photo"),
|
||||
Collection("collection"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
@@ -36,14 +36,14 @@ public class GetMediaMetaDataWriter {
|
||||
private String filter;
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the writer.
|
||||
* The absolute URL of the thumbnail image for the writer.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
private Optional<String> thumb;
|
||||
|
||||
/**
|
||||
* A unique key associated with the writers tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tagKey")
|
||||
@@ -100,7 +100,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the writer.
|
||||
* The absolute URL of the thumbnail image for the writer.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
@@ -108,7 +108,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the writers tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
@@ -147,7 +147,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the writer.
|
||||
* The absolute URL of the thumbnail image for the writer.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -156,7 +156,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the writer.
|
||||
* The absolute URL of the thumbnail image for the writer.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -165,7 +165,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the writers tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
@@ -174,7 +174,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the writers tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
*/
|
||||
public GetMediaMetaDataWriter withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
@@ -264,7 +264,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the writer.
|
||||
* The absolute URL of the thumbnail image for the writer.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -273,7 +273,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the writer.
|
||||
* The absolute URL of the thumbnail image for the writer.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -282,7 +282,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the writers tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
@@ -291,7 +291,7 @@ public class GetMediaMetaDataWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the writers tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the writer’s tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
|
||||
@@ -60,9 +60,11 @@ public class GetPlaylistContentsQueryParamType {
|
||||
public static final GetPlaylistContentsQueryParamType TvShow = new GetPlaylistContentsQueryParamType(2L);
|
||||
public static final GetPlaylistContentsQueryParamType Season = new GetPlaylistContentsQueryParamType(3L);
|
||||
public static final GetPlaylistContentsQueryParamType Episode = new GetPlaylistContentsQueryParamType(4L);
|
||||
public static final GetPlaylistContentsQueryParamType Audio = new GetPlaylistContentsQueryParamType(8L);
|
||||
public static final GetPlaylistContentsQueryParamType Album = new GetPlaylistContentsQueryParamType(9L);
|
||||
public static final GetPlaylistContentsQueryParamType Track = new GetPlaylistContentsQueryParamType(10L);
|
||||
public static final GetPlaylistContentsQueryParamType Artist = new GetPlaylistContentsQueryParamType(5L);
|
||||
public static final GetPlaylistContentsQueryParamType Album = new GetPlaylistContentsQueryParamType(6L);
|
||||
public static final GetPlaylistContentsQueryParamType Track = new GetPlaylistContentsQueryParamType(7L);
|
||||
public static final GetPlaylistContentsQueryParamType PhotoAlbum = new GetPlaylistContentsQueryParamType(8L);
|
||||
public static final GetPlaylistContentsQueryParamType Photo = new GetPlaylistContentsQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class GetPlaylistContentsQueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class GetPlaylistContentsQueryParamType {
|
||||
map.put(2L, GetPlaylistContentsQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetPlaylistContentsQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetPlaylistContentsQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetPlaylistContentsQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetPlaylistContentsQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetPlaylistContentsQueryParamTypeEnum.Track);
|
||||
map.put(5L, GetPlaylistContentsQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetPlaylistContentsQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetPlaylistContentsQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetPlaylistContentsQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetPlaylistContentsQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class GetPlaylistContentsQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* GetRecentlyAddedHubsType
|
||||
*
|
||||
* <p>The type of media content
|
||||
* <p>The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonDeserialize(using = GetRecentlyAddedHubsType._Deserializer.class)
|
||||
@JsonSerialize(using = GetRecentlyAddedHubsType._Serializer.class)
|
||||
@@ -56,6 +56,10 @@ public class GetRecentlyAddedHubsType {
|
||||
public static final GetRecentlyAddedHubsType Episode = new GetRecentlyAddedHubsType("episode");
|
||||
public static final GetRecentlyAddedHubsType Artist = new GetRecentlyAddedHubsType("artist");
|
||||
public static final GetRecentlyAddedHubsType Album = new GetRecentlyAddedHubsType("album");
|
||||
public static final GetRecentlyAddedHubsType Track = new GetRecentlyAddedHubsType("track");
|
||||
public static final GetRecentlyAddedHubsType PhotoAlbum = new GetRecentlyAddedHubsType("photoalbum");
|
||||
public static final GetRecentlyAddedHubsType Photo = new GetRecentlyAddedHubsType("photo");
|
||||
public static final GetRecentlyAddedHubsType Collection = new GetRecentlyAddedHubsType("collection");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -133,6 +137,10 @@ public class GetRecentlyAddedHubsType {
|
||||
map.put("episode", Episode);
|
||||
map.put("artist", Artist);
|
||||
map.put("album", Album);
|
||||
map.put("track", Track);
|
||||
map.put("photoalbum", PhotoAlbum);
|
||||
map.put("photo", Photo);
|
||||
map.put("collection", Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -144,6 +152,10 @@ public class GetRecentlyAddedHubsType {
|
||||
map.put("episode", GetRecentlyAddedHubsTypeEnum.Episode);
|
||||
map.put("artist", GetRecentlyAddedHubsTypeEnum.Artist);
|
||||
map.put("album", GetRecentlyAddedHubsTypeEnum.Album);
|
||||
map.put("track", GetRecentlyAddedHubsTypeEnum.Track);
|
||||
map.put("photoalbum", GetRecentlyAddedHubsTypeEnum.PhotoAlbum);
|
||||
map.put("photo", GetRecentlyAddedHubsTypeEnum.Photo);
|
||||
map.put("collection", GetRecentlyAddedHubsTypeEnum.Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -184,7 +196,11 @@ public class GetRecentlyAddedHubsType {
|
||||
Season("season"),
|
||||
Episode("episode"),
|
||||
Artist("artist"),
|
||||
Album("album"),;
|
||||
Album("album"),
|
||||
Track("track"),
|
||||
PhotoAlbum("photoalbum"),
|
||||
Photo("photo"),
|
||||
Collection("collection"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
@@ -432,6 +432,10 @@ public class GetRecentlyAddedMetadata {
|
||||
@JsonProperty("UltraBlurColors")
|
||||
private Optional<? extends UltraBlurColors> ultraBlurColors;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Guid")
|
||||
private Optional<? extends List<Guids>> guids;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Media")
|
||||
private Optional<? extends List<Media>> media;
|
||||
@@ -472,10 +476,6 @@ public class GetRecentlyAddedMetadata {
|
||||
@JsonProperty("Location")
|
||||
private Optional<? extends List<Location>> location;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Guid")
|
||||
private Optional<? extends List<Guids>> guids;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Collection")
|
||||
private Optional<? extends List<Collection>> collection;
|
||||
@@ -545,6 +545,7 @@ public class GetRecentlyAddedMetadata {
|
||||
@JsonProperty("year") Optional<Integer> year,
|
||||
@JsonProperty("Image") Optional<? extends List<GetRecentlyAddedImage>> image,
|
||||
@JsonProperty("UltraBlurColors") Optional<? extends UltraBlurColors> ultraBlurColors,
|
||||
@JsonProperty("Guid") Optional<? extends List<Guids>> guids,
|
||||
@JsonProperty("Media") Optional<? extends List<Media>> media,
|
||||
@JsonProperty("Genre") Optional<? extends List<Genre>> genre,
|
||||
@JsonProperty("Country") Optional<? extends List<Country>> country,
|
||||
@@ -555,7 +556,6 @@ public class GetRecentlyAddedMetadata {
|
||||
@JsonProperty("Rating") Optional<? extends List<Rating>> rating1,
|
||||
@JsonProperty("Similar") Optional<? extends List<Similar>> similar,
|
||||
@JsonProperty("Location") Optional<? extends List<Location>> location,
|
||||
@JsonProperty("Guid") Optional<? extends List<Guids>> guids,
|
||||
@JsonProperty("Collection") Optional<? extends List<Collection>> collection) {
|
||||
Utils.checkNotNull(addedAt, "addedAt");
|
||||
Utils.checkNotNull(art, "art");
|
||||
@@ -620,6 +620,7 @@ public class GetRecentlyAddedMetadata {
|
||||
Utils.checkNotNull(year, "year");
|
||||
Utils.checkNotNull(image, "image");
|
||||
Utils.checkNotNull(ultraBlurColors, "ultraBlurColors");
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
Utils.checkNotNull(media, "media");
|
||||
Utils.checkNotNull(genre, "genre");
|
||||
Utils.checkNotNull(country, "country");
|
||||
@@ -630,7 +631,6 @@ public class GetRecentlyAddedMetadata {
|
||||
Utils.checkNotNull(rating1, "rating1");
|
||||
Utils.checkNotNull(similar, "similar");
|
||||
Utils.checkNotNull(location, "location");
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
Utils.checkNotNull(collection, "collection");
|
||||
this.addedAt = addedAt;
|
||||
this.art = art;
|
||||
@@ -695,6 +695,7 @@ public class GetRecentlyAddedMetadata {
|
||||
this.year = year;
|
||||
this.image = image;
|
||||
this.ultraBlurColors = ultraBlurColors;
|
||||
this.guids = guids;
|
||||
this.media = media;
|
||||
this.genre = genre;
|
||||
this.country = country;
|
||||
@@ -705,7 +706,6 @@ public class GetRecentlyAddedMetadata {
|
||||
this.rating1 = rating1;
|
||||
this.similar = similar;
|
||||
this.location = location;
|
||||
this.guids = guids;
|
||||
this.collection = collection;
|
||||
}
|
||||
|
||||
@@ -1232,6 +1232,12 @@ public class GetRecentlyAddedMetadata {
|
||||
return (Optional<UltraBlurColors>) ultraBlurColors;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Guids>> guids() {
|
||||
return (Optional<List<Guids>>) guids;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Media>> media() {
|
||||
@@ -1292,12 +1298,6 @@ public class GetRecentlyAddedMetadata {
|
||||
return (Optional<List<Location>>) location;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Guids>> guids() {
|
||||
return (Optional<List<Guids>>) guids;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<List<Collection>> collection() {
|
||||
@@ -2199,6 +2199,18 @@ public class GetRecentlyAddedMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMetadata withGuids(List<Guids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMetadata withGuids(Optional<? extends List<Guids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMetadata withMedia(List<Media> media) {
|
||||
Utils.checkNotNull(media, "media");
|
||||
this.media = Optional.ofNullable(media);
|
||||
@@ -2319,18 +2331,6 @@ public class GetRecentlyAddedMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMetadata withGuids(List<Guids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMetadata withGuids(Optional<? extends List<Guids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMetadata withCollection(List<Collection> collection) {
|
||||
Utils.checkNotNull(collection, "collection");
|
||||
this.collection = Optional.ofNullable(collection);
|
||||
@@ -2417,6 +2417,7 @@ public class GetRecentlyAddedMetadata {
|
||||
Objects.deepEquals(this.year, other.year) &&
|
||||
Objects.deepEquals(this.image, other.image) &&
|
||||
Objects.deepEquals(this.ultraBlurColors, other.ultraBlurColors) &&
|
||||
Objects.deepEquals(this.guids, other.guids) &&
|
||||
Objects.deepEquals(this.media, other.media) &&
|
||||
Objects.deepEquals(this.genre, other.genre) &&
|
||||
Objects.deepEquals(this.country, other.country) &&
|
||||
@@ -2427,7 +2428,6 @@ public class GetRecentlyAddedMetadata {
|
||||
Objects.deepEquals(this.rating1, other.rating1) &&
|
||||
Objects.deepEquals(this.similar, other.similar) &&
|
||||
Objects.deepEquals(this.location, other.location) &&
|
||||
Objects.deepEquals(this.guids, other.guids) &&
|
||||
Objects.deepEquals(this.collection, other.collection);
|
||||
}
|
||||
|
||||
@@ -2497,6 +2497,7 @@ public class GetRecentlyAddedMetadata {
|
||||
year,
|
||||
image,
|
||||
ultraBlurColors,
|
||||
guids,
|
||||
media,
|
||||
genre,
|
||||
country,
|
||||
@@ -2507,7 +2508,6 @@ public class GetRecentlyAddedMetadata {
|
||||
rating1,
|
||||
similar,
|
||||
location,
|
||||
guids,
|
||||
collection);
|
||||
}
|
||||
|
||||
@@ -2577,6 +2577,7 @@ public class GetRecentlyAddedMetadata {
|
||||
"year", year,
|
||||
"image", image,
|
||||
"ultraBlurColors", ultraBlurColors,
|
||||
"guids", guids,
|
||||
"media", media,
|
||||
"genre", genre,
|
||||
"country", country,
|
||||
@@ -2587,7 +2588,6 @@ public class GetRecentlyAddedMetadata {
|
||||
"rating1", rating1,
|
||||
"similar", similar,
|
||||
"location", location,
|
||||
"guids", guids,
|
||||
"collection", collection);
|
||||
}
|
||||
|
||||
@@ -2719,6 +2719,8 @@ public class GetRecentlyAddedMetadata {
|
||||
|
||||
private Optional<? extends UltraBlurColors> ultraBlurColors = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Guids>> guids = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Media>> media = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Genre>> genre = Optional.empty();
|
||||
@@ -2739,8 +2741,6 @@ public class GetRecentlyAddedMetadata {
|
||||
|
||||
private Optional<? extends List<Location>> location = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Guids>> guids = Optional.empty();
|
||||
|
||||
private Optional<? extends List<Collection>> collection = Optional.empty();
|
||||
|
||||
private Builder() {
|
||||
@@ -3638,6 +3638,18 @@ public class GetRecentlyAddedMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(List<Guids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(Optional<? extends List<Guids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder media(List<Media> media) {
|
||||
Utils.checkNotNull(media, "media");
|
||||
this.media = Optional.ofNullable(media);
|
||||
@@ -3758,18 +3770,6 @@ public class GetRecentlyAddedMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(List<Guids> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = Optional.ofNullable(guids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder guids(Optional<? extends List<Guids>> guids) {
|
||||
Utils.checkNotNull(guids, "guids");
|
||||
this.guids = guids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder collection(List<Collection> collection) {
|
||||
Utils.checkNotNull(collection, "collection");
|
||||
this.collection = Optional.ofNullable(collection);
|
||||
@@ -3847,6 +3847,7 @@ public class GetRecentlyAddedMetadata {
|
||||
year,
|
||||
image,
|
||||
ultraBlurColors,
|
||||
guids,
|
||||
media,
|
||||
genre,
|
||||
country,
|
||||
@@ -3857,7 +3858,6 @@ public class GetRecentlyAddedMetadata {
|
||||
rating1,
|
||||
similar,
|
||||
location,
|
||||
guids,
|
||||
collection);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public class GetSearchAllLibrariesMetadata {
|
||||
private Optional<String> librarySectionKey;
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonProperty("type")
|
||||
private GetSearchAllLibrariesType type;
|
||||
@@ -647,7 +647,7 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public GetSearchAllLibrariesType type() {
|
||||
@@ -1124,7 +1124,7 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withType(GetSearchAllLibrariesType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
@@ -2471,7 +2471,7 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media content
|
||||
* The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
public Builder type(GetSearchAllLibrariesType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
|
||||
@@ -44,7 +44,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* GetSearchAllLibrariesType
|
||||
*
|
||||
* <p>The type of media content
|
||||
* <p>The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
*/
|
||||
@JsonDeserialize(using = GetSearchAllLibrariesType._Deserializer.class)
|
||||
@JsonSerialize(using = GetSearchAllLibrariesType._Serializer.class)
|
||||
@@ -56,6 +56,10 @@ public class GetSearchAllLibrariesType {
|
||||
public static final GetSearchAllLibrariesType Episode = new GetSearchAllLibrariesType("episode");
|
||||
public static final GetSearchAllLibrariesType Artist = new GetSearchAllLibrariesType("artist");
|
||||
public static final GetSearchAllLibrariesType Album = new GetSearchAllLibrariesType("album");
|
||||
public static final GetSearchAllLibrariesType Track = new GetSearchAllLibrariesType("track");
|
||||
public static final GetSearchAllLibrariesType PhotoAlbum = new GetSearchAllLibrariesType("photoalbum");
|
||||
public static final GetSearchAllLibrariesType Photo = new GetSearchAllLibrariesType("photo");
|
||||
public static final GetSearchAllLibrariesType Collection = new GetSearchAllLibrariesType("collection");
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -133,6 +137,10 @@ public class GetSearchAllLibrariesType {
|
||||
map.put("episode", Episode);
|
||||
map.put("artist", Artist);
|
||||
map.put("album", Album);
|
||||
map.put("track", Track);
|
||||
map.put("photoalbum", PhotoAlbum);
|
||||
map.put("photo", Photo);
|
||||
map.put("collection", Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -144,6 +152,10 @@ public class GetSearchAllLibrariesType {
|
||||
map.put("episode", GetSearchAllLibrariesTypeEnum.Episode);
|
||||
map.put("artist", GetSearchAllLibrariesTypeEnum.Artist);
|
||||
map.put("album", GetSearchAllLibrariesTypeEnum.Album);
|
||||
map.put("track", GetSearchAllLibrariesTypeEnum.Track);
|
||||
map.put("photoalbum", GetSearchAllLibrariesTypeEnum.PhotoAlbum);
|
||||
map.put("photo", GetSearchAllLibrariesTypeEnum.Photo);
|
||||
map.put("collection", GetSearchAllLibrariesTypeEnum.Collection);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -184,7 +196,11 @@ public class GetSearchAllLibrariesType {
|
||||
Season("season"),
|
||||
Episode("episode"),
|
||||
Artist("artist"),
|
||||
Album("album"),;
|
||||
Album("album"),
|
||||
Track("track"),
|
||||
PhotoAlbum("photoalbum"),
|
||||
Photo("photo"),
|
||||
Collection("collection"),;
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
@@ -60,9 +60,11 @@ public class GetSearchLibraryQueryParamType {
|
||||
public static final GetSearchLibraryQueryParamType TvShow = new GetSearchLibraryQueryParamType(2L);
|
||||
public static final GetSearchLibraryQueryParamType Season = new GetSearchLibraryQueryParamType(3L);
|
||||
public static final GetSearchLibraryQueryParamType Episode = new GetSearchLibraryQueryParamType(4L);
|
||||
public static final GetSearchLibraryQueryParamType Audio = new GetSearchLibraryQueryParamType(8L);
|
||||
public static final GetSearchLibraryQueryParamType Album = new GetSearchLibraryQueryParamType(9L);
|
||||
public static final GetSearchLibraryQueryParamType Track = new GetSearchLibraryQueryParamType(10L);
|
||||
public static final GetSearchLibraryQueryParamType Artist = new GetSearchLibraryQueryParamType(5L);
|
||||
public static final GetSearchLibraryQueryParamType Album = new GetSearchLibraryQueryParamType(6L);
|
||||
public static final GetSearchLibraryQueryParamType Track = new GetSearchLibraryQueryParamType(7L);
|
||||
public static final GetSearchLibraryQueryParamType PhotoAlbum = new GetSearchLibraryQueryParamType(8L);
|
||||
public static final GetSearchLibraryQueryParamType Photo = new GetSearchLibraryQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class GetSearchLibraryQueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class GetSearchLibraryQueryParamType {
|
||||
map.put(2L, GetSearchLibraryQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetSearchLibraryQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetSearchLibraryQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetSearchLibraryQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetSearchLibraryQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetSearchLibraryQueryParamTypeEnum.Track);
|
||||
map.put(5L, GetSearchLibraryQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetSearchLibraryQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetSearchLibraryQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetSearchLibraryQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetSearchLibraryQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class GetSearchLibraryQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -20,25 +21,35 @@ import java.util.Optional;
|
||||
|
||||
public class GetTopWatchedContentMediaContainer {
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
@JsonProperty("size")
|
||||
private Optional<Integer> size;
|
||||
private int size;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonProperty("allowSync")
|
||||
private Optional<Boolean> allowSync;
|
||||
private boolean allowSync;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonProperty("identifier")
|
||||
private Optional<String> identifier;
|
||||
private String identifier;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
@JsonProperty("mediaTagPrefix")
|
||||
private Optional<String> mediaTagPrefix;
|
||||
private String mediaTagPrefix;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
@JsonProperty("mediaTagVersion")
|
||||
private Optional<Integer> mediaTagVersion;
|
||||
private long mediaTagVersion;
|
||||
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("Metadata")
|
||||
@@ -46,11 +57,11 @@ public class GetTopWatchedContentMediaContainer {
|
||||
|
||||
@JsonCreator
|
||||
public GetTopWatchedContentMediaContainer(
|
||||
@JsonProperty("size") Optional<Integer> size,
|
||||
@JsonProperty("allowSync") Optional<Boolean> allowSync,
|
||||
@JsonProperty("identifier") Optional<String> identifier,
|
||||
@JsonProperty("mediaTagPrefix") Optional<String> mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") Optional<Integer> mediaTagVersion,
|
||||
@JsonProperty("size") int size,
|
||||
@JsonProperty("allowSync") boolean allowSync,
|
||||
@JsonProperty("identifier") String identifier,
|
||||
@JsonProperty("mediaTagPrefix") String mediaTagPrefix,
|
||||
@JsonProperty("mediaTagVersion") long mediaTagVersion,
|
||||
@JsonProperty("Metadata") Optional<? extends List<GetTopWatchedContentMetadata>> metadata) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
@@ -66,32 +77,52 @@ public class GetTopWatchedContentMediaContainer {
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentMediaContainer() {
|
||||
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
public GetTopWatchedContentMediaContainer(
|
||||
int size,
|
||||
boolean allowSync,
|
||||
String identifier,
|
||||
String mediaTagPrefix,
|
||||
long mediaTagVersion) {
|
||||
this(size, allowSync, identifier, mediaTagPrefix, mediaTagVersion, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> size() {
|
||||
public int size() {
|
||||
return size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Boolean> allowSync() {
|
||||
public boolean allowSync() {
|
||||
return allowSync;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> identifier() {
|
||||
public String identifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> mediaTagPrefix() {
|
||||
public String mediaTagPrefix() {
|
||||
return mediaTagPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Integer> mediaTagVersion() {
|
||||
public long mediaTagVersion() {
|
||||
return mediaTagVersion;
|
||||
}
|
||||
|
||||
@@ -105,61 +136,46 @@ public class GetTopWatchedContentMediaContainer {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
public GetTopWatchedContentMediaContainer withSize(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentMediaContainer withSize(Optional<Integer> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public GetTopWatchedContentMediaContainer withAllowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentMediaContainer withAllowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public GetTopWatchedContentMediaContainer withIdentifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentMediaContainer withIdentifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
public GetTopWatchedContentMediaContainer withMediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentMediaContainer withMediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentMediaContainer withMediaTagVersion(int mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentMediaContainer withMediaTagVersion(Optional<Integer> mediaTagVersion) {
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
public GetTopWatchedContentMediaContainer withMediaTagVersion(long mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
@@ -220,15 +236,15 @@ public class GetTopWatchedContentMediaContainer {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Integer> size = Optional.empty();
|
||||
private Integer size;
|
||||
|
||||
private Optional<Boolean> allowSync = Optional.empty();
|
||||
private Boolean allowSync;
|
||||
|
||||
private Optional<String> identifier = Optional.empty();
|
||||
private String identifier;
|
||||
|
||||
private Optional<String> mediaTagPrefix = Optional.empty();
|
||||
private String mediaTagPrefix;
|
||||
|
||||
private Optional<Integer> mediaTagVersion = Optional.empty();
|
||||
private Long mediaTagVersion;
|
||||
|
||||
private Optional<? extends List<GetTopWatchedContentMetadata>> metadata = Optional.empty();
|
||||
|
||||
@@ -236,61 +252,46 @@ public class GetTopWatchedContentMediaContainer {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Number of media items returned in this response.
|
||||
*/
|
||||
public Builder size(int size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = Optional.ofNullable(size);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder size(Optional<Integer> size) {
|
||||
Utils.checkNotNull(size, "size");
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether syncing is allowed.
|
||||
*/
|
||||
public Builder allowSync(boolean allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = Optional.ofNullable(allowSync);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allowSync(Optional<Boolean> allowSync) {
|
||||
Utils.checkNotNull(allowSync, "allowSync");
|
||||
this.allowSync = allowSync;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An plugin identifier for the media container.
|
||||
*/
|
||||
public Builder identifier(String identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = Optional.ofNullable(identifier);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder identifier(Optional<String> identifier) {
|
||||
Utils.checkNotNull(identifier, "identifier");
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The prefix used for media tag resource paths.
|
||||
*/
|
||||
public Builder mediaTagPrefix(String mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = Optional.ofNullable(mediaTagPrefix);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagPrefix(Optional<String> mediaTagPrefix) {
|
||||
Utils.checkNotNull(mediaTagPrefix, "mediaTagPrefix");
|
||||
this.mediaTagPrefix = mediaTagPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(int mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = Optional.ofNullable(mediaTagVersion);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder mediaTagVersion(Optional<Integer> mediaTagVersion) {
|
||||
/**
|
||||
* The version number for media tags.
|
||||
*/
|
||||
public Builder mediaTagVersion(long mediaTagVersion) {
|
||||
Utils.checkNotNull(mediaTagVersion, "mediaTagVersion");
|
||||
this.mediaTagVersion = mediaTagVersion;
|
||||
return this;
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetTopWatchedContentQueryParamIncludeGuids
|
||||
*
|
||||
* <p>Adds the Guid object to the response
|
||||
*/
|
||||
public enum GetTopWatchedContentQueryParamIncludeGuids {
|
||||
Disable(0),
|
||||
Enable(1);
|
||||
|
||||
@JsonValue
|
||||
private final int value;
|
||||
|
||||
private GetTopWatchedContentQueryParamIncludeGuids(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetTopWatchedContentQueryParamIncludeGuids> fromValue(int value) {
|
||||
for (GetTopWatchedContentQueryParamIncludeGuids o: GetTopWatchedContentQueryParamIncludeGuids.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,9 +60,11 @@ public class GetTopWatchedContentQueryParamType {
|
||||
public static final GetTopWatchedContentQueryParamType TvShow = new GetTopWatchedContentQueryParamType(2L);
|
||||
public static final GetTopWatchedContentQueryParamType Season = new GetTopWatchedContentQueryParamType(3L);
|
||||
public static final GetTopWatchedContentQueryParamType Episode = new GetTopWatchedContentQueryParamType(4L);
|
||||
public static final GetTopWatchedContentQueryParamType Audio = new GetTopWatchedContentQueryParamType(8L);
|
||||
public static final GetTopWatchedContentQueryParamType Album = new GetTopWatchedContentQueryParamType(9L);
|
||||
public static final GetTopWatchedContentQueryParamType Track = new GetTopWatchedContentQueryParamType(10L);
|
||||
public static final GetTopWatchedContentQueryParamType Artist = new GetTopWatchedContentQueryParamType(5L);
|
||||
public static final GetTopWatchedContentQueryParamType Album = new GetTopWatchedContentQueryParamType(6L);
|
||||
public static final GetTopWatchedContentQueryParamType Track = new GetTopWatchedContentQueryParamType(7L);
|
||||
public static final GetTopWatchedContentQueryParamType PhotoAlbum = new GetTopWatchedContentQueryParamType(8L);
|
||||
public static final GetTopWatchedContentQueryParamType Photo = new GetTopWatchedContentQueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class GetTopWatchedContentQueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class GetTopWatchedContentQueryParamType {
|
||||
map.put(2L, GetTopWatchedContentQueryParamTypeEnum.TvShow);
|
||||
map.put(3L, GetTopWatchedContentQueryParamTypeEnum.Season);
|
||||
map.put(4L, GetTopWatchedContentQueryParamTypeEnum.Episode);
|
||||
map.put(8L, GetTopWatchedContentQueryParamTypeEnum.Audio);
|
||||
map.put(9L, GetTopWatchedContentQueryParamTypeEnum.Album);
|
||||
map.put(10L, GetTopWatchedContentQueryParamTypeEnum.Track);
|
||||
map.put(5L, GetTopWatchedContentQueryParamTypeEnum.Artist);
|
||||
map.put(6L, GetTopWatchedContentQueryParamTypeEnum.Album);
|
||||
map.put(7L, GetTopWatchedContentQueryParamTypeEnum.Track);
|
||||
map.put(8L, GetTopWatchedContentQueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, GetTopWatchedContentQueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class GetTopWatchedContentQueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -5,22 +5,18 @@ package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.SpeakeasyMetadata;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
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 GetTopWatchedContentRequest {
|
||||
|
||||
/**
|
||||
* Adds the Guids object to the response
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids")
|
||||
private Optional<Long> includeGuids;
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
@@ -32,27 +28,25 @@ public class GetTopWatchedContentRequest {
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")
|
||||
private GetTopWatchedContentQueryParamType type;
|
||||
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeGuids")
|
||||
private Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids;
|
||||
|
||||
@JsonCreator
|
||||
public GetTopWatchedContentRequest(
|
||||
Optional<Long> includeGuids,
|
||||
GetTopWatchedContentQueryParamType type) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
GetTopWatchedContentQueryParamType type,
|
||||
Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.includeGuids = includeGuids;
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.type = type;
|
||||
this.includeGuids = includeGuids;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentRequest(
|
||||
GetTopWatchedContentQueryParamType type) {
|
||||
this(Optional.empty(), type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guids object to the response
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<Long> includeGuids() {
|
||||
return includeGuids;
|
||||
this(type, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,28 +62,19 @@ public class GetTopWatchedContentRequest {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetTopWatchedContentQueryParamIncludeGuids> includeGuids() {
|
||||
return (Optional<GetTopWatchedContentQueryParamIncludeGuids>) includeGuids;
|
||||
}
|
||||
|
||||
public final static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guids object to the response
|
||||
*/
|
||||
public GetTopWatchedContentRequest withIncludeGuids(long includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = Optional.ofNullable(includeGuids);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guids object to the response
|
||||
*/
|
||||
public GetTopWatchedContentRequest withIncludeGuids(Optional<Long> includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = includeGuids;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
@@ -104,6 +89,24 @@ public class GetTopWatchedContentRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
public GetTopWatchedContentRequest withIncludeGuids(GetTopWatchedContentQueryParamIncludeGuids includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = Optional.ofNullable(includeGuids);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
public GetTopWatchedContentRequest withIncludeGuids(Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = includeGuids;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
@@ -115,52 +118,34 @@ public class GetTopWatchedContentRequest {
|
||||
}
|
||||
GetTopWatchedContentRequest other = (GetTopWatchedContentRequest) o;
|
||||
return
|
||||
Objects.deepEquals(this.includeGuids, other.includeGuids) &&
|
||||
Objects.deepEquals(this.type, other.type);
|
||||
Objects.deepEquals(this.type, other.type) &&
|
||||
Objects.deepEquals(this.includeGuids, other.includeGuids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
includeGuids,
|
||||
type);
|
||||
type,
|
||||
includeGuids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Utils.toString(GetTopWatchedContentRequest.class,
|
||||
"includeGuids", includeGuids,
|
||||
"type", type);
|
||||
"type", type,
|
||||
"includeGuids", includeGuids);
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<Long> includeGuids = Optional.empty();
|
||||
|
||||
private GetTopWatchedContentQueryParamType type;
|
||||
|
||||
private Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guids object to the response
|
||||
*/
|
||||
public Builder includeGuids(long includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = Optional.ofNullable(includeGuids);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guids object to the response
|
||||
*/
|
||||
public Builder includeGuids(Optional<Long> includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = includeGuids;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of media to retrieve or filter by.
|
||||
* 1 = movie
|
||||
@@ -174,11 +159,38 @@ public class GetTopWatchedContentRequest {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
public Builder includeGuids(GetTopWatchedContentQueryParamIncludeGuids includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = Optional.ofNullable(includeGuids);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the Guid object to the response
|
||||
*/
|
||||
public Builder includeGuids(Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = includeGuids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentRequest build() {
|
||||
if (includeGuids == null) {
|
||||
includeGuids = _SINGLETON_VALUE_IncludeGuids.value();
|
||||
}
|
||||
return new GetTopWatchedContentRequest(
|
||||
includeGuids,
|
||||
type);
|
||||
type,
|
||||
includeGuids);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetTopWatchedContentQueryParamIncludeGuids>> _SINGLETON_VALUE_IncludeGuids =
|
||||
new LazySingletonValue<>(
|
||||
"includeGuids",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends GetTopWatchedContentQueryParamIncludeGuids>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,43 +3,55 @@
|
||||
*/
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Exception;
|
||||
import java.lang.Long;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GetTopWatchedContentRequestBuilder {
|
||||
|
||||
private Optional<Long> includeGuids = Optional.empty();
|
||||
private GetTopWatchedContentQueryParamType type;
|
||||
private Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids = Utils.readDefaultOrConstValue(
|
||||
"includeGuids",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends GetTopWatchedContentQueryParamIncludeGuids>>() {});
|
||||
private final SDKMethodInterfaces.MethodCallGetTopWatchedContent sdk;
|
||||
|
||||
public GetTopWatchedContentRequestBuilder(SDKMethodInterfaces.MethodCallGetTopWatchedContent sdk) {
|
||||
this.sdk = sdk;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentRequestBuilder includeGuids(long includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = Optional.of(includeGuids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentRequestBuilder includeGuids(Optional<Long> includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = includeGuids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentRequestBuilder type(GetTopWatchedContentQueryParamType type) {
|
||||
Utils.checkNotNull(type, "type");
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentRequestBuilder includeGuids(GetTopWatchedContentQueryParamIncludeGuids includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = Optional.of(includeGuids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentRequestBuilder includeGuids(Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids) {
|
||||
Utils.checkNotNull(includeGuids, "includeGuids");
|
||||
this.includeGuids = includeGuids;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetTopWatchedContentResponse call() throws Exception {
|
||||
|
||||
if (includeGuids == null) {
|
||||
includeGuids = _SINGLETON_VALUE_IncludeGuids.value();
|
||||
}
|
||||
return sdk.getTopWatchedContent(
|
||||
includeGuids,
|
||||
type);
|
||||
type,
|
||||
includeGuids);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetTopWatchedContentQueryParamIncludeGuids>> _SINGLETON_VALUE_IncludeGuids =
|
||||
new LazySingletonValue<>(
|
||||
"includeGuids",
|
||||
"0",
|
||||
new TypeReference<Optional<? extends GetTopWatchedContentQueryParamIncludeGuids>>() {});
|
||||
}
|
||||
|
||||
@@ -5,40 +5,32 @@ 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 Guids {
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("id")
|
||||
private Optional<String> id;
|
||||
private String id;
|
||||
|
||||
@JsonCreator
|
||||
public Guids(
|
||||
@JsonProperty("id") Optional<String> id) {
|
||||
@JsonProperty("id") String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Guids() {
|
||||
this(Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> id() {
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -47,18 +39,9 @@ public class Guids {
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
public Guids withId(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
public Guids withId(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -92,25 +75,16 @@ public class Guids {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Optional<String> id = Optional.empty();
|
||||
private String id;
|
||||
|
||||
private Builder() {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
* The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = Optional.ofNullable(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
|
||||
*/
|
||||
public Builder id(Optional<String> id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
|
||||
@@ -36,14 +36,13 @@ public class Producer {
|
||||
private String tag;
|
||||
|
||||
/**
|
||||
* A unique key associated with the producer's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the producer's tag, used for internal identification.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the producer.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
@@ -54,7 +53,7 @@ public class Producer {
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
Utils.checkNotNull(filter, "filter");
|
||||
@@ -71,8 +70,9 @@ public class Producer {
|
||||
public Producer(
|
||||
int id,
|
||||
String filter,
|
||||
String tag) {
|
||||
this(id, filter, tag, Optional.empty(), Optional.empty());
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,15 +100,15 @@ public class Producer {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the producer's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the producer's tag, used for internal identification.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the producer.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
@@ -147,25 +147,16 @@ public class Producer {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the producer's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the producer's tag, used for internal identification.
|
||||
*/
|
||||
public Producer withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the producer's tag, used for internal identification.
|
||||
*/
|
||||
public Producer withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the producer.
|
||||
*/
|
||||
public Producer withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -174,7 +165,7 @@ public class Producer {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the producer.
|
||||
*/
|
||||
public Producer withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -228,7 +219,7 @@ public class Producer {
|
||||
|
||||
private String tag;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> thumb = Optional.empty();
|
||||
|
||||
@@ -264,25 +255,16 @@ public class Producer {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the producer's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the producer's tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the producer's tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the producer.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -291,7 +273,7 @@ public class Producer {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the producer.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
|
||||
@@ -60,9 +60,11 @@ public class QueryParamType {
|
||||
public static final QueryParamType TvShow = new QueryParamType(2L);
|
||||
public static final QueryParamType Season = new QueryParamType(3L);
|
||||
public static final QueryParamType Episode = new QueryParamType(4L);
|
||||
public static final QueryParamType Audio = new QueryParamType(8L);
|
||||
public static final QueryParamType Album = new QueryParamType(9L);
|
||||
public static final QueryParamType Track = new QueryParamType(10L);
|
||||
public static final QueryParamType Artist = new QueryParamType(5L);
|
||||
public static final QueryParamType Album = new QueryParamType(6L);
|
||||
public static final QueryParamType Track = new QueryParamType(7L);
|
||||
public static final QueryParamType PhotoAlbum = new QueryParamType(8L);
|
||||
public static final QueryParamType Photo = new QueryParamType(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class QueryParamType {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class QueryParamType {
|
||||
map.put(2L, QueryParamTypeEnum.TvShow);
|
||||
map.put(3L, QueryParamTypeEnum.Season);
|
||||
map.put(4L, QueryParamTypeEnum.Episode);
|
||||
map.put(8L, QueryParamTypeEnum.Audio);
|
||||
map.put(9L, QueryParamTypeEnum.Album);
|
||||
map.put(10L, QueryParamTypeEnum.Track);
|
||||
map.put(5L, QueryParamTypeEnum.Artist);
|
||||
map.put(6L, QueryParamTypeEnum.Album);
|
||||
map.put(7L, QueryParamTypeEnum.Track);
|
||||
map.put(8L, QueryParamTypeEnum.PhotoAlbum);
|
||||
map.put(9L, QueryParamTypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class QueryParamType {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ 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.Double;
|
||||
import java.lang.Float;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -19,11 +19,14 @@ import java.util.Objects;
|
||||
*/
|
||||
public class Rating {
|
||||
|
||||
/**
|
||||
* The URL for the rating image, for example from IMDb.
|
||||
*/
|
||||
@JsonProperty("image")
|
||||
private String image;
|
||||
|
||||
@JsonProperty("value")
|
||||
private double value;
|
||||
private float value;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
@@ -31,7 +34,7 @@ public class Rating {
|
||||
@JsonCreator
|
||||
public Rating(
|
||||
@JsonProperty("image") String image,
|
||||
@JsonProperty("value") double value,
|
||||
@JsonProperty("value") float value,
|
||||
@JsonProperty("type") String type) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
Utils.checkNotNull(value, "value");
|
||||
@@ -41,13 +44,16 @@ public class Rating {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL for the rating image, for example from IMDb.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public String image() {
|
||||
return image;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public double value() {
|
||||
public float value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -60,13 +66,16 @@ public class Rating {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL for the rating image, for example from IMDb.
|
||||
*/
|
||||
public Rating withImage(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Rating withValue(double value) {
|
||||
public Rating withValue(float value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = value;
|
||||
return this;
|
||||
@@ -114,7 +123,7 @@ public class Rating {
|
||||
|
||||
private String image;
|
||||
|
||||
private Double value;
|
||||
private Float value;
|
||||
|
||||
private String type;
|
||||
|
||||
@@ -122,13 +131,16 @@ public class Rating {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL for the rating image, for example from IMDb.
|
||||
*/
|
||||
public Builder image(String image) {
|
||||
Utils.checkNotNull(image, "image");
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder value(double value) {
|
||||
public Builder value(float value) {
|
||||
Utils.checkNotNull(value, "value");
|
||||
this.value = value;
|
||||
return this;
|
||||
|
||||
@@ -9,7 +9,7 @@ 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.Long;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -18,10 +18,11 @@ import java.util.Optional;
|
||||
public class Role {
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
private int id;
|
||||
|
||||
/**
|
||||
* The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||
@@ -36,11 +37,11 @@ public class Role {
|
||||
private String tag;
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("tagKey")
|
||||
private Optional<String> tagKey;
|
||||
private String tagKey;
|
||||
|
||||
/**
|
||||
* The role played by the actor in the media item.
|
||||
@@ -50,7 +51,7 @@ public class Role {
|
||||
private Optional<String> role;
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("thumb")
|
||||
@@ -58,10 +59,10 @@ public class Role {
|
||||
|
||||
@JsonCreator
|
||||
public Role(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag,
|
||||
@JsonProperty("tagKey") Optional<String> tagKey,
|
||||
@JsonProperty("tagKey") String tagKey,
|
||||
@JsonProperty("role") Optional<String> role,
|
||||
@JsonProperty("thumb") Optional<String> thumb) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
@@ -79,17 +80,19 @@ public class Role {
|
||||
}
|
||||
|
||||
public Role(
|
||||
long id,
|
||||
int id,
|
||||
String filter,
|
||||
String tag) {
|
||||
this(id, filter, tag, Optional.empty(), Optional.empty(), Optional.empty());
|
||||
String tag,
|
||||
String tagKey) {
|
||||
this(id, filter, tag, tagKey, Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -110,10 +113,11 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> tagKey() {
|
||||
public String tagKey() {
|
||||
return tagKey;
|
||||
}
|
||||
|
||||
@@ -126,7 +130,7 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Optional<String> thumb() {
|
||||
@@ -138,9 +142,10 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Role withId(long id) {
|
||||
public Role withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -165,18 +170,10 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
public Role withTagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
*/
|
||||
public Role withTagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
@@ -201,7 +198,7 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public Role withThumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -210,7 +207,7 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public Role withThumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -261,13 +258,13 @@ public class Role {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
private Integer id;
|
||||
|
||||
private String filter;
|
||||
|
||||
private String tag;
|
||||
|
||||
private Optional<String> tagKey = Optional.empty();
|
||||
private String tagKey;
|
||||
|
||||
private Optional<String> role = Optional.empty();
|
||||
|
||||
@@ -278,9 +275,10 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique identifier for the actor or role.
|
||||
* The unique identifier for the role.
|
||||
* NOTE: This is different for each Plex server and is not globally unique.
|
||||
*/
|
||||
public Builder id(long id) {
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -305,18 +303,10 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
* A 24-character hexadecimal unique key associated with the actor's tag, used for internal identification.
|
||||
* NOTE: This is globally unique across all Plex Servers.
|
||||
*/
|
||||
public Builder tagKey(String tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = Optional.ofNullable(tagKey);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique key associated with the actor's tag, used for internal identification.
|
||||
*/
|
||||
public Builder tagKey(Optional<String> tagKey) {
|
||||
Utils.checkNotNull(tagKey, "tagKey");
|
||||
this.tagKey = tagKey;
|
||||
return this;
|
||||
@@ -341,7 +331,7 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public Builder thumb(String thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
@@ -350,7 +340,7 @@ public class Role {
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the thumbnail image for the actor.
|
||||
* The absolute URL of the thumbnail image for the actor.
|
||||
*/
|
||||
public Builder thumb(Optional<String> thumb) {
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
|
||||
@@ -225,9 +225,9 @@ public class SDKMethodInterfaces {
|
||||
GetLibraryItemsRequest request) throws Exception;
|
||||
}
|
||||
|
||||
public interface MethodCallGetAllMediaLibrary {
|
||||
GetAllMediaLibraryResponse getAllMediaLibrary(
|
||||
GetAllMediaLibraryRequest request) throws Exception;
|
||||
public interface MethodCallGetLibrarySectionsAll {
|
||||
GetLibrarySectionsAllResponse getLibrarySectionsAll(
|
||||
GetLibrarySectionsAllRequest request) throws Exception;
|
||||
}
|
||||
|
||||
public interface MethodCallGetRefreshLibraryMetadata {
|
||||
@@ -302,8 +302,8 @@ public class SDKMethodInterfaces {
|
||||
|
||||
public interface MethodCallGetTopWatchedContent {
|
||||
GetTopWatchedContentResponse getTopWatchedContent(
|
||||
Optional<Long> includeGuids,
|
||||
GetTopWatchedContentQueryParamType type) throws Exception;
|
||||
GetTopWatchedContentQueryParamType type,
|
||||
Optional<? extends GetTopWatchedContentQueryParamIncludeGuids> includeGuids) throws Exception;
|
||||
}
|
||||
|
||||
public interface MethodCallGetWatchList {
|
||||
|
||||
@@ -7,7 +7,7 @@ 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.Long;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
@@ -20,7 +20,7 @@ import java.util.Objects;
|
||||
public class Similar {
|
||||
|
||||
@JsonProperty("id")
|
||||
private long id;
|
||||
private int id;
|
||||
|
||||
@JsonProperty("filter")
|
||||
private String filter;
|
||||
@@ -30,7 +30,7 @@ public class Similar {
|
||||
|
||||
@JsonCreator
|
||||
public Similar(
|
||||
@JsonProperty("id") long id,
|
||||
@JsonProperty("id") int id,
|
||||
@JsonProperty("filter") String filter,
|
||||
@JsonProperty("tag") String tag) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
@@ -42,7 +42,7 @@ public class Similar {
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public long id() {
|
||||
public int id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ public class Similar {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Similar withId(long id) {
|
||||
public Similar withId(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -112,7 +112,7 @@ public class Similar {
|
||||
|
||||
public final static class Builder {
|
||||
|
||||
private Long id;
|
||||
private Integer id;
|
||||
|
||||
private String filter;
|
||||
|
||||
@@ -122,7 +122,7 @@ public class Similar {
|
||||
// force use of static builder() method
|
||||
}
|
||||
|
||||
public Builder id(long id) {
|
||||
public Builder id(int id) {
|
||||
Utils.checkNotNull(id, "id");
|
||||
this.id = id;
|
||||
return this;
|
||||
|
||||
@@ -60,9 +60,11 @@ public class Type {
|
||||
public static final Type TvShow = new Type(2L);
|
||||
public static final Type Season = new Type(3L);
|
||||
public static final Type Episode = new Type(4L);
|
||||
public static final Type Audio = new Type(8L);
|
||||
public static final Type Album = new Type(9L);
|
||||
public static final Type Track = new Type(10L);
|
||||
public static final Type Artist = new Type(5L);
|
||||
public static final Type Album = new Type(6L);
|
||||
public static final Type Track = new Type(7L);
|
||||
public static final Type PhotoAlbum = new Type(8L);
|
||||
public static final Type Photo = new Type(9L);
|
||||
|
||||
// This map will grow whenever a Color gets created with a new
|
||||
// unrecognized value (a potential memory leak if the user is not
|
||||
@@ -138,9 +140,11 @@ public class Type {
|
||||
map.put(2L, TvShow);
|
||||
map.put(3L, Season);
|
||||
map.put(4L, Episode);
|
||||
map.put(8L, Audio);
|
||||
map.put(9L, Album);
|
||||
map.put(10L, Track);
|
||||
map.put(5L, Artist);
|
||||
map.put(6L, Album);
|
||||
map.put(7L, Track);
|
||||
map.put(8L, PhotoAlbum);
|
||||
map.put(9L, Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -150,9 +154,11 @@ public class Type {
|
||||
map.put(2L, TypeEnum.TvShow);
|
||||
map.put(3L, TypeEnum.Season);
|
||||
map.put(4L, TypeEnum.Episode);
|
||||
map.put(8L, TypeEnum.Audio);
|
||||
map.put(9L, TypeEnum.Album);
|
||||
map.put(10L, TypeEnum.Track);
|
||||
map.put(5L, TypeEnum.Artist);
|
||||
map.put(6L, TypeEnum.Album);
|
||||
map.put(7L, TypeEnum.Track);
|
||||
map.put(8L, TypeEnum.PhotoAlbum);
|
||||
map.put(9L, TypeEnum.Photo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -192,9 +198,11 @@ public class Type {
|
||||
TvShow(2L),
|
||||
Season(3L),
|
||||
Episode(4L),
|
||||
Audio(8L),
|
||||
Album(9L),
|
||||
Track(10L),;
|
||||
Artist(5L),
|
||||
Album(6L),
|
||||
Track(7L),
|
||||
PhotoAlbum(8L),
|
||||
Photo(9L),;
|
||||
|
||||
private final long value;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user