mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 20:47:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.474.0
This commit is contained in:
@@ -182,7 +182,15 @@ public class Activities implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -328,7 +336,15 @@ public class Activities implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -216,7 +216,15 @@ public class Authentication implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -369,7 +377,15 @@ public class Authentication implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -530,7 +546,15 @@ public class Authentication implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -703,7 +727,15 @@ public class Authentication implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -194,7 +194,15 @@ public class Butler implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -340,7 +348,15 @@ public class Butler implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -478,7 +494,15 @@ public class Butler implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -634,7 +658,15 @@ public class Butler implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -782,7 +814,15 @@ public class Butler implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -212,7 +212,15 @@ public class Hubs implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -336,7 +344,15 @@ public class Hubs implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "401", "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -519,7 +535,15 @@ public class Hubs implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -273,7 +273,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -429,7 +437,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -588,7 +604,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -888,7 +912,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1036,7 +1068,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1234,7 +1274,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1407,7 +1455,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1616,7 +1672,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1773,7 +1837,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1932,7 +2004,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -2113,7 +2193,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -2304,7 +2392,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -2453,7 +2549,15 @@ public class Library implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -200,7 +200,15 @@ public class Log implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -393,7 +401,15 @@ public class Log implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -531,7 +547,15 @@ public class Log implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -196,7 +196,15 @@ public class Media implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -345,7 +353,15 @@ public class Media implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -502,7 +518,15 @@ public class Media implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -659,7 +683,15 @@ public class Media implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -816,7 +848,15 @@ public class Media implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -244,7 +244,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -417,7 +425,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -578,7 +594,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -726,7 +750,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -898,7 +930,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1077,7 +1117,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1225,7 +1273,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1413,7 +1469,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1580,7 +1644,15 @@ public class Playlists implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -268,7 +268,15 @@ public class Plex implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -429,7 +437,15 @@ public class Plex implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -587,7 +603,15 @@ public class Plex implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -734,7 +758,15 @@ public class Plex implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -922,7 +954,15 @@ public class Plex implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1074,7 +1114,15 @@ public class Plex implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1239,7 +1287,15 @@ public class Plex implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -43,8 +43,8 @@ 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.11.1";
|
||||
public static final String GEN_VERSION = "2.483.1";
|
||||
public static final String SDK_VERSION = "0.11.2";
|
||||
public static final String GEN_VERSION = "2.495.0";
|
||||
private static final String BASE_PACKAGE = "dev.plexapi.sdk";
|
||||
public static final String USER_AGENT =
|
||||
String.format("speakeasy-sdk/%s %s %s %s %s",
|
||||
|
||||
@@ -240,7 +240,15 @@ public class Search implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -419,7 +427,15 @@ public class Search implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -579,7 +595,15 @@ public class Search implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -218,7 +218,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -365,7 +373,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -512,7 +528,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -659,7 +683,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -787,7 +819,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -934,7 +974,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1079,7 +1127,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1235,7 +1291,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -1382,7 +1446,15 @@ public class Server implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -191,7 +191,15 @@ public class Sessions implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -375,7 +383,15 @@ public class Sessions implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -522,7 +538,15 @@ public class Sessions implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -668,7 +692,15 @@ public class Sessions implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -211,7 +211,15 @@ public class Statistics implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -383,7 +391,15 @@ public class Statistics implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -555,7 +571,15 @@ public class Statistics implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -186,7 +186,15 @@ public class Updater implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -345,7 +353,15 @@ public class Updater implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -510,7 +526,15 @@ public class Updater implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "500", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "500", "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -172,7 +172,15 @@ public class Video implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
@@ -315,7 +323,15 @@ public class Video implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -208,7 +208,15 @@ public class Watchlist implements
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
_httpRes.statusCode(),
|
||||
"API error occurred",
|
||||
Utils.extractByteArrayFromBody(_httpRes));
|
||||
}
|
||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) {
|
||||
// no content
|
||||
throw new SDKError(
|
||||
_httpRes,
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public enum EnableCreditsMarkerGeneration {
|
||||
LibraryDefault("-1"),
|
||||
Disabled("0");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private EnableCreditsMarkerGeneration(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<EnableCreditsMarkerGeneration> fromValue(String value) {
|
||||
for (EnableCreditsMarkerGeneration o: EnableCreditsMarkerGeneration.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -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.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public enum EpisodeSort {
|
||||
LibraryDefault("-1"),
|
||||
OldestFirst("0"),
|
||||
NewestFirst("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private EpisodeSort(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<EpisodeSort> fromValue(String value) {
|
||||
for (EpisodeSort o: EpisodeSort.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,13 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public enum FlattenSeasons {
|
||||
False("0"),
|
||||
True("1");
|
||||
LibraryDefault("-1"),
|
||||
Hide("0"),
|
||||
Show("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public enum GetLibraryItemsEnableCreditsMarkerGeneration {
|
||||
LibraryDefault("-1"),
|
||||
Disabled("0");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsEnableCreditsMarkerGeneration(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsEnableCreditsMarkerGeneration> fromValue(String value) {
|
||||
for (GetLibraryItemsEnableCreditsMarkerGeneration o: GetLibraryItemsEnableCreditsMarkerGeneration.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -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.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public enum GetLibraryItemsEpisodeSort {
|
||||
LibraryDefault("-1"),
|
||||
OldestFirst("0"),
|
||||
NewestFirst("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetLibraryItemsEpisodeSort(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetLibraryItemsEpisodeSort> fromValue(String value) {
|
||||
for (GetLibraryItemsEpisodeSort o: GetLibraryItemsEpisodeSort.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,13 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetLibraryItemsFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public enum GetLibraryItemsFlattenSeasons {
|
||||
False("0"),
|
||||
True("1");
|
||||
LibraryDefault("-1"),
|
||||
Hide("0"),
|
||||
Show("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
@@ -103,10 +101,27 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("tagline")
|
||||
private Optional<String> tagline;
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("flattenSeasons")
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("episodeSort")
|
||||
private Optional<? extends GetLibraryItemsEpisodeSort> episodeSort;
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("enableCreditsMarkerGeneration")
|
||||
private Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -374,6 +389,8 @@ public class GetLibraryItemsMetadata {
|
||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||
@JsonProperty("tagline") Optional<String> tagline,
|
||||
@JsonProperty("flattenSeasons") Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons,
|
||||
@JsonProperty("episodeSort") Optional<? extends GetLibraryItemsEpisodeSort> episodeSort,
|
||||
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
|
||||
@JsonProperty("showOrdering") Optional<? extends GetLibraryItemsShowOrdering> showOrdering,
|
||||
@JsonProperty("thumb") Optional<String> thumb,
|
||||
@JsonProperty("art") Optional<String> art,
|
||||
@@ -448,6 +465,8 @@ public class GetLibraryItemsMetadata {
|
||||
Utils.checkNotNull(seasonCount, "seasonCount");
|
||||
Utils.checkNotNull(tagline, "tagline");
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
Utils.checkNotNull(art, "art");
|
||||
@@ -522,6 +541,8 @@ public class GetLibraryItemsMetadata {
|
||||
this.seasonCount = seasonCount;
|
||||
this.tagline = tagline;
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
this.episodeSort = episodeSort;
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
this.showOrdering = showOrdering;
|
||||
this.thumb = thumb;
|
||||
this.art = art;
|
||||
@@ -587,7 +608,7 @@ public class GetLibraryItemsMetadata {
|
||||
String title,
|
||||
String summary,
|
||||
long addedAt) {
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, 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(), 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(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, 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(), addedAt, 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(), 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(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -689,12 +710,33 @@ public class GetLibraryItemsMetadata {
|
||||
return tagline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsFlattenSeasons> flattenSeasons() {
|
||||
return (Optional<GetLibraryItemsFlattenSeasons>) flattenSeasons;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsEpisodeSort> episodeSort() {
|
||||
return (Optional<GetLibraryItemsEpisodeSort>) episodeSort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||
return (Optional<GetLibraryItemsEnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -1203,18 +1245,60 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withFlattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withFlattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withEpisodeSort(GetLibraryItemsEpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withEpisodeSort(Optional<? extends GetLibraryItemsEpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetLibraryItemsMetadata withEnableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -1949,6 +2033,8 @@ public class GetLibraryItemsMetadata {
|
||||
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
||||
Objects.deepEquals(this.tagline, other.tagline) &&
|
||||
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
||||
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
|
||||
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
|
||||
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||
Objects.deepEquals(this.art, other.art) &&
|
||||
@@ -2028,6 +2114,8 @@ public class GetLibraryItemsMetadata {
|
||||
seasonCount,
|
||||
tagline,
|
||||
flattenSeasons,
|
||||
episodeSort,
|
||||
enableCreditsMarkerGeneration,
|
||||
showOrdering,
|
||||
thumb,
|
||||
art,
|
||||
@@ -2107,6 +2195,8 @@ public class GetLibraryItemsMetadata {
|
||||
"seasonCount", seasonCount,
|
||||
"tagline", tagline,
|
||||
"flattenSeasons", flattenSeasons,
|
||||
"episodeSort", episodeSort,
|
||||
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
|
||||
"showOrdering", showOrdering,
|
||||
"thumb", thumb,
|
||||
"art", art,
|
||||
@@ -2202,7 +2292,11 @@ public class GetLibraryItemsMetadata {
|
||||
|
||||
private Optional<String> tagline = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons;
|
||||
private Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsEpisodeSort> episodeSort = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||
|
||||
private Optional<? extends GetLibraryItemsShowOrdering> showOrdering = Optional.empty();
|
||||
|
||||
@@ -2507,18 +2601,60 @@ public class GetLibraryItemsMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public Builder flattenSeasons(GetLibraryItemsFlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public Builder flattenSeasons(Optional<? extends GetLibraryItemsFlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public Builder episodeSort(GetLibraryItemsEpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public Builder episodeSort(Optional<? extends GetLibraryItemsEpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(GetLibraryItemsEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(Optional<? extends GetLibraryItemsEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -3225,9 +3361,7 @@ public class GetLibraryItemsMetadata {
|
||||
}
|
||||
|
||||
public GetLibraryItemsMetadata build() {
|
||||
if (flattenSeasons == null) {
|
||||
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
|
||||
} return new GetLibraryItemsMetadata(
|
||||
return new GetLibraryItemsMetadata(
|
||||
ratingKey,
|
||||
key,
|
||||
guid,
|
||||
@@ -3247,6 +3381,8 @@ public class GetLibraryItemsMetadata {
|
||||
seasonCount,
|
||||
tagline,
|
||||
flattenSeasons,
|
||||
episodeSort,
|
||||
enableCreditsMarkerGeneration,
|
||||
showOrdering,
|
||||
thumb,
|
||||
art,
|
||||
@@ -3303,12 +3439,6 @@ public class GetLibraryItemsMetadata {
|
||||
parentThumb,
|
||||
parentTheme);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetLibraryItemsFlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
||||
new LazySingletonValue<>(
|
||||
"flattenSeasons",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends GetLibraryItemsFlattenSeasons>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
@@ -103,10 +101,27 @@ public class GetRecentlyAddedMetadata {
|
||||
@JsonProperty("tagline")
|
||||
private Optional<String> tagline;
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("flattenSeasons")
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("episodeSort")
|
||||
private Optional<? extends EpisodeSort> episodeSort;
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("enableCreditsMarkerGeneration")
|
||||
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -374,6 +389,8 @@ public class GetRecentlyAddedMetadata {
|
||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||
@JsonProperty("tagline") Optional<String> tagline,
|
||||
@JsonProperty("flattenSeasons") Optional<? extends FlattenSeasons> flattenSeasons,
|
||||
@JsonProperty("episodeSort") Optional<? extends EpisodeSort> episodeSort,
|
||||
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
|
||||
@JsonProperty("showOrdering") Optional<? extends ShowOrdering> showOrdering,
|
||||
@JsonProperty("thumb") Optional<String> thumb,
|
||||
@JsonProperty("art") Optional<String> art,
|
||||
@@ -448,6 +465,8 @@ public class GetRecentlyAddedMetadata {
|
||||
Utils.checkNotNull(seasonCount, "seasonCount");
|
||||
Utils.checkNotNull(tagline, "tagline");
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
Utils.checkNotNull(art, "art");
|
||||
@@ -522,6 +541,8 @@ public class GetRecentlyAddedMetadata {
|
||||
this.seasonCount = seasonCount;
|
||||
this.tagline = tagline;
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
this.episodeSort = episodeSort;
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
this.showOrdering = showOrdering;
|
||||
this.thumb = thumb;
|
||||
this.art = art;
|
||||
@@ -587,7 +608,7 @@ public class GetRecentlyAddedMetadata {
|
||||
String title,
|
||||
String summary,
|
||||
long addedAt) {
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, 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(), 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(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, 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(), addedAt, 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(), 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(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -689,12 +710,33 @@ public class GetRecentlyAddedMetadata {
|
||||
return tagline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<FlattenSeasons> flattenSeasons() {
|
||||
return (Optional<FlattenSeasons>) flattenSeasons;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<EpisodeSort> episodeSort() {
|
||||
return (Optional<EpisodeSort>) episodeSort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||
return (Optional<EnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -1203,18 +1245,60 @@ public class GetRecentlyAddedMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withFlattenSeasons(FlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withFlattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withEpisodeSort(EpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withEpisodeSort(Optional<? extends EpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withEnableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetRecentlyAddedMetadata withEnableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -1949,6 +2033,8 @@ public class GetRecentlyAddedMetadata {
|
||||
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
||||
Objects.deepEquals(this.tagline, other.tagline) &&
|
||||
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
||||
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
|
||||
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
|
||||
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||
Objects.deepEquals(this.art, other.art) &&
|
||||
@@ -2028,6 +2114,8 @@ public class GetRecentlyAddedMetadata {
|
||||
seasonCount,
|
||||
tagline,
|
||||
flattenSeasons,
|
||||
episodeSort,
|
||||
enableCreditsMarkerGeneration,
|
||||
showOrdering,
|
||||
thumb,
|
||||
art,
|
||||
@@ -2107,6 +2195,8 @@ public class GetRecentlyAddedMetadata {
|
||||
"seasonCount", seasonCount,
|
||||
"tagline", tagline,
|
||||
"flattenSeasons", flattenSeasons,
|
||||
"episodeSort", episodeSort,
|
||||
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
|
||||
"showOrdering", showOrdering,
|
||||
"thumb", thumb,
|
||||
"art", art,
|
||||
@@ -2202,7 +2292,11 @@ public class GetRecentlyAddedMetadata {
|
||||
|
||||
private Optional<String> tagline = Optional.empty();
|
||||
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons;
|
||||
private Optional<? extends FlattenSeasons> flattenSeasons = Optional.empty();
|
||||
|
||||
private Optional<? extends EpisodeSort> episodeSort = Optional.empty();
|
||||
|
||||
private Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||
|
||||
private Optional<? extends ShowOrdering> showOrdering = Optional.empty();
|
||||
|
||||
@@ -2507,18 +2601,60 @@ public class GetRecentlyAddedMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public Builder flattenSeasons(FlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public Builder flattenSeasons(Optional<? extends FlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public Builder episodeSort(EpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public Builder episodeSort(Optional<? extends EpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(EnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(Optional<? extends EnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -3225,9 +3361,7 @@ public class GetRecentlyAddedMetadata {
|
||||
}
|
||||
|
||||
public GetRecentlyAddedMetadata build() {
|
||||
if (flattenSeasons == null) {
|
||||
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
|
||||
} return new GetRecentlyAddedMetadata(
|
||||
return new GetRecentlyAddedMetadata(
|
||||
ratingKey,
|
||||
key,
|
||||
guid,
|
||||
@@ -3247,6 +3381,8 @@ public class GetRecentlyAddedMetadata {
|
||||
seasonCount,
|
||||
tagline,
|
||||
flattenSeasons,
|
||||
episodeSort,
|
||||
enableCreditsMarkerGeneration,
|
||||
showOrdering,
|
||||
thumb,
|
||||
art,
|
||||
@@ -3303,12 +3439,6 @@ public class GetRecentlyAddedMetadata {
|
||||
parentThumb,
|
||||
parentTheme);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends FlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
||||
new LazySingletonValue<>(
|
||||
"flattenSeasons",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends FlattenSeasons>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
package dev.plexapi.sdk.models.operations;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchAllLibrariesEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public enum GetSearchAllLibrariesEnableCreditsMarkerGeneration {
|
||||
LibraryDefault("-1"),
|
||||
Disabled("0");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetSearchAllLibrariesEnableCreditsMarkerGeneration(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesEnableCreditsMarkerGeneration o: GetSearchAllLibrariesEnableCreditsMarkerGeneration.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -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.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchAllLibrariesEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public enum GetSearchAllLibrariesEpisodeSort {
|
||||
LibraryDefault("-1"),
|
||||
OldestFirst("0"),
|
||||
NewestFirst("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
private GetSearchAllLibrariesEpisodeSort(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static Optional<GetSearchAllLibrariesEpisodeSort> fromValue(String value) {
|
||||
for (GetSearchAllLibrariesEpisodeSort o: GetSearchAllLibrariesEpisodeSort.values()) {
|
||||
if (Objects.deepEquals(o.value, value)) {
|
||||
return Optional.of(o);
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,13 @@ import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* GetSearchAllLibrariesFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public enum GetSearchAllLibrariesFlattenSeasons {
|
||||
False("0"),
|
||||
True("1");
|
||||
LibraryDefault("-1"),
|
||||
Hide("0"),
|
||||
Show("1");
|
||||
|
||||
@JsonValue
|
||||
private final String value;
|
||||
|
||||
@@ -10,8 +10,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||
import dev.plexapi.sdk.utils.Utils;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Double;
|
||||
@@ -103,10 +101,27 @@ public class GetSearchAllLibrariesMetadata {
|
||||
@JsonProperty("tagline")
|
||||
private Optional<String> tagline;
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("flattenSeasons")
|
||||
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("episodeSort")
|
||||
private Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort;
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
@JsonInclude(Include.NON_ABSENT)
|
||||
@JsonProperty("enableCreditsMarkerGeneration")
|
||||
private Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration;
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -374,6 +389,8 @@ public class GetSearchAllLibrariesMetadata {
|
||||
@JsonProperty("seasonCount") Optional<Integer> seasonCount,
|
||||
@JsonProperty("tagline") Optional<String> tagline,
|
||||
@JsonProperty("flattenSeasons") Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons,
|
||||
@JsonProperty("episodeSort") Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort,
|
||||
@JsonProperty("enableCreditsMarkerGeneration") Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration,
|
||||
@JsonProperty("showOrdering") Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering,
|
||||
@JsonProperty("thumb") Optional<String> thumb,
|
||||
@JsonProperty("art") Optional<String> art,
|
||||
@@ -448,6 +465,8 @@ public class GetSearchAllLibrariesMetadata {
|
||||
Utils.checkNotNull(seasonCount, "seasonCount");
|
||||
Utils.checkNotNull(tagline, "tagline");
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
Utils.checkNotNull(showOrdering, "showOrdering");
|
||||
Utils.checkNotNull(thumb, "thumb");
|
||||
Utils.checkNotNull(art, "art");
|
||||
@@ -522,6 +541,8 @@ public class GetSearchAllLibrariesMetadata {
|
||||
this.seasonCount = seasonCount;
|
||||
this.tagline = tagline;
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
this.episodeSort = episodeSort;
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
this.showOrdering = showOrdering;
|
||||
this.thumb = thumb;
|
||||
this.art = art;
|
||||
@@ -587,7 +608,7 @@ public class GetSearchAllLibrariesMetadata {
|
||||
String title,
|
||||
String summary,
|
||||
long addedAt) {
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), addedAt, 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(), 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(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
this(ratingKey, key, guid, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), type, title, Optional.empty(), Optional.empty(), summary, 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(), addedAt, 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(), 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(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -689,12 +710,33 @@ public class GetSearchAllLibrariesMetadata {
|
||||
return tagline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetSearchAllLibrariesFlattenSeasons> flattenSeasons() {
|
||||
return (Optional<GetSearchAllLibrariesFlattenSeasons>) flattenSeasons;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetSearchAllLibrariesEpisodeSort> episodeSort() {
|
||||
return (Optional<GetSearchAllLibrariesEpisodeSort>) episodeSort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@JsonIgnore
|
||||
public Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration() {
|
||||
return (Optional<GetSearchAllLibrariesEnableCreditsMarkerGeneration>) enableCreditsMarkerGeneration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -1203,18 +1245,60 @@ public class GetSearchAllLibrariesMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withFlattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withFlattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withEpisodeSort(GetSearchAllLibrariesEpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withEpisodeSort(Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withEnableCreditsMarkerGeneration(GetSearchAllLibrariesEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public GetSearchAllLibrariesMetadata withEnableCreditsMarkerGeneration(Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -1949,6 +2033,8 @@ public class GetSearchAllLibrariesMetadata {
|
||||
Objects.deepEquals(this.seasonCount, other.seasonCount) &&
|
||||
Objects.deepEquals(this.tagline, other.tagline) &&
|
||||
Objects.deepEquals(this.flattenSeasons, other.flattenSeasons) &&
|
||||
Objects.deepEquals(this.episodeSort, other.episodeSort) &&
|
||||
Objects.deepEquals(this.enableCreditsMarkerGeneration, other.enableCreditsMarkerGeneration) &&
|
||||
Objects.deepEquals(this.showOrdering, other.showOrdering) &&
|
||||
Objects.deepEquals(this.thumb, other.thumb) &&
|
||||
Objects.deepEquals(this.art, other.art) &&
|
||||
@@ -2028,6 +2114,8 @@ public class GetSearchAllLibrariesMetadata {
|
||||
seasonCount,
|
||||
tagline,
|
||||
flattenSeasons,
|
||||
episodeSort,
|
||||
enableCreditsMarkerGeneration,
|
||||
showOrdering,
|
||||
thumb,
|
||||
art,
|
||||
@@ -2107,6 +2195,8 @@ public class GetSearchAllLibrariesMetadata {
|
||||
"seasonCount", seasonCount,
|
||||
"tagline", tagline,
|
||||
"flattenSeasons", flattenSeasons,
|
||||
"episodeSort", episodeSort,
|
||||
"enableCreditsMarkerGeneration", enableCreditsMarkerGeneration,
|
||||
"showOrdering", showOrdering,
|
||||
"thumb", thumb,
|
||||
"art", art,
|
||||
@@ -2202,7 +2292,11 @@ public class GetSearchAllLibrariesMetadata {
|
||||
|
||||
private Optional<String> tagline = Optional.empty();
|
||||
|
||||
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons;
|
||||
private Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons = Optional.empty();
|
||||
|
||||
private Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort = Optional.empty();
|
||||
|
||||
private Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration = Optional.empty();
|
||||
|
||||
private Optional<? extends GetSearchAllLibrariesShowOrdering> showOrdering = Optional.empty();
|
||||
|
||||
@@ -2507,18 +2601,60 @@ public class GetSearchAllLibrariesMetadata {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public Builder flattenSeasons(GetSearchAllLibrariesFlattenSeasons flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = Optional.ofNullable(flattenSeasons);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
*/
|
||||
public Builder flattenSeasons(Optional<? extends GetSearchAllLibrariesFlattenSeasons> flattenSeasons) {
|
||||
Utils.checkNotNull(flattenSeasons, "flattenSeasons");
|
||||
this.flattenSeasons = flattenSeasons;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public Builder episodeSort(GetSearchAllLibrariesEpisodeSort episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = Optional.ofNullable(episodeSort);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
*/
|
||||
public Builder episodeSort(Optional<? extends GetSearchAllLibrariesEpisodeSort> episodeSort) {
|
||||
Utils.checkNotNull(episodeSort, "episodeSort");
|
||||
this.episodeSort = episodeSort;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(GetSearchAllLibrariesEnableCreditsMarkerGeneration enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = Optional.ofNullable(enableCreditsMarkerGeneration);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
*/
|
||||
public Builder enableCreditsMarkerGeneration(Optional<? extends GetSearchAllLibrariesEnableCreditsMarkerGeneration> enableCreditsMarkerGeneration) {
|
||||
Utils.checkNotNull(enableCreditsMarkerGeneration, "enableCreditsMarkerGeneration");
|
||||
this.enableCreditsMarkerGeneration = enableCreditsMarkerGeneration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting that indicates the episode ordering for the show
|
||||
* None = Library default,
|
||||
@@ -3225,9 +3361,7 @@ public class GetSearchAllLibrariesMetadata {
|
||||
}
|
||||
|
||||
public GetSearchAllLibrariesMetadata build() {
|
||||
if (flattenSeasons == null) {
|
||||
flattenSeasons = _SINGLETON_VALUE_FlattenSeasons.value();
|
||||
} return new GetSearchAllLibrariesMetadata(
|
||||
return new GetSearchAllLibrariesMetadata(
|
||||
ratingKey,
|
||||
key,
|
||||
guid,
|
||||
@@ -3247,6 +3381,8 @@ public class GetSearchAllLibrariesMetadata {
|
||||
seasonCount,
|
||||
tagline,
|
||||
flattenSeasons,
|
||||
episodeSort,
|
||||
enableCreditsMarkerGeneration,
|
||||
showOrdering,
|
||||
thumb,
|
||||
art,
|
||||
@@ -3303,12 +3439,6 @@ public class GetSearchAllLibrariesMetadata {
|
||||
parentThumb,
|
||||
parentTheme);
|
||||
}
|
||||
|
||||
private static final LazySingletonValue<Optional<? extends GetSearchAllLibrariesFlattenSeasons>> _SINGLETON_VALUE_FlattenSeasons =
|
||||
new LazySingletonValue<>(
|
||||
"flattenSeasons",
|
||||
"\"0\"",
|
||||
new TypeReference<Optional<? extends GetSearchAllLibrariesFlattenSeasons>>() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user