mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 20:47:49 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d976a079a9 | ||
|
|
b10d5f7023 | ||
|
|
c431cee288 | ||
|
|
5195de1dca | ||
|
|
43dc47a5a0 | ||
|
|
53157408b3 | ||
|
|
fe81f4dff0 |
1766
.speakeasy/gen.lock
1766
.speakeasy/gen.lock
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@ generation:
|
|||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
csharp:
|
csharp:
|
||||||
version: 0.12.1
|
version: 0.13.6
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.459.2
|
speakeasyVersion: 1.487.0
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -16,19 +16,19 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:28e2213b78ff9c789846a4a0b7ab9fb219079a1699d44b22d28474efc4f48eac
|
sourceRevisionDigest: sha256:49536684a97842ea7c069f909012b31a22a046d8277aee47b50a334494bf2c64
|
||||||
sourceBlobDigest: sha256:fa76c39de0ff801844dd56a76c26ab6ca88695fc9b42bb9ff9a8aab5b2b21277
|
sourceBlobDigest: sha256:eac671ea32ce31e1e558839153f7effef39bb35b4e461c6e95661d0eaf4ce1c8
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1734827006
|
- speakeasy-sdk-regen-1738887697
|
||||||
targets:
|
targets:
|
||||||
plexcsharp:
|
plexcsharp:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:28e2213b78ff9c789846a4a0b7ab9fb219079a1699d44b22d28474efc4f48eac
|
sourceRevisionDigest: sha256:49536684a97842ea7c069f909012b31a22a046d8277aee47b50a334494bf2c64
|
||||||
sourceBlobDigest: sha256:fa76c39de0ff801844dd56a76c26ab6ca88695fc9b42bb9ff9a8aab5b2b21277
|
sourceBlobDigest: sha256:eac671ea32ce31e1e558839153f7effef39bb35b4e461c6e95661d0eaf4ce1c8
|
||||||
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
||||||
codeSamplesRevisionDigest: sha256:0ef14dc2453feb7f2a9faa525f395a2e9f1422c83d0e12d5f88865eca9f76fcb
|
codeSamplesRevisionDigest: sha256:1ae1692b51b662e5da48795a9118d7f40874d39ecad5ef299754f2eade9f681f
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.12.1";
|
private const string _sdkVersion = "0.13.6";
|
||||||
private const string _sdkGenVersion = "2.483.1";
|
private const string _sdkGenVersion = "2.506.0";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.12.1 2.483.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.13.6 2.506.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -179,7 +179,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -271,7 +275,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,10 +95,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
};
|
};
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.12.1";
|
private const string _sdkVersion = "0.13.6";
|
||||||
private const string _sdkGenVersion = "2.483.1";
|
private const string _sdkGenVersion = "2.506.0";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.12.1 2.483.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.13.6 2.506.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -196,7 +196,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -288,7 +292,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -390,7 +398,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -494,7 +506,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,10 +101,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.12.1";
|
private const string _sdkVersion = "0.13.6";
|
||||||
private const string _sdkGenVersion = "2.483.1";
|
private const string _sdkGenVersion = "2.506.0";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.12.1 2.483.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.13.6 2.506.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -206,7 +206,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -295,7 +299,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -384,7 +392,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -476,7 +488,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -568,7 +584,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,10 +73,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.12.1";
|
private const string _sdkVersion = "0.13.6";
|
||||||
private const string _sdkGenVersion = "2.483.1";
|
private const string _sdkGenVersion = "2.506.0";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.12.1 2.483.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.13.6 2.506.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -182,7 +182,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -256,7 +260,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400 || responseStatusCode == 401 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode == 400 || responseStatusCode == 401 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -358,7 +366,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<GetLibraryDetailsResponse> GetLibraryDetailsAsync(int sectionKey, IncludeDetails? includeDetails = null);
|
Task<GetLibraryDetailsResponse> GetLibraryDetailsAsync(int sectionKey, IncludeDetails? includeDetails = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeDetails.Zero);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete Library Section
|
/// Delete Library Section
|
||||||
@@ -190,6 +190,36 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Task<GetSearchLibraryResponse> GetSearchLibraryAsync(int sectionKey, GetSearchLibraryQueryParamType type);
|
Task<GetSearchLibraryResponse> GetSearchLibraryAsync(int sectionKey, GetSearchLibraryQueryParamType type);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Get Genres of library media
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Retrieves a list of all the genres that are found for the media in this library.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
Task<GetGenresLibraryResponse> GetGenresLibraryAsync(int sectionKey, GetGenresLibraryQueryParamType type);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Get Countries of library media
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Retrieves a list of all the countries that are found for the media in this library.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
Task<GetCountriesLibraryResponse> GetCountriesLibraryAsync(int sectionKey, GetCountriesLibraryQueryParamType type);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Get Actors of library media
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Retrieves a list of all the actors that are found for the media in this library.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
Task<GetActorsLibraryResponse> GetActorsLibraryAsync(int sectionKey, GetActorsLibraryQueryParamType type);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Search All Libraries
|
/// Search All Libraries
|
||||||
///
|
///
|
||||||
@@ -201,14 +231,14 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
Task<GetSearchAllLibrariesResponse> GetSearchAllLibrariesAsync(GetSearchAllLibrariesRequest request);
|
Task<GetSearchAllLibrariesResponse> GetSearchAllLibrariesAsync(GetSearchAllLibrariesRequest request);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get Metadata by RatingKey
|
/// Get Media Metadata
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This endpoint will return the metadata of a library item specified with the ratingKey.<br/>
|
/// This endpoint will return all the (meta)data of a library item specified with by the ratingKey.<br/>
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<GetMetaDataByRatingKeyResponse> GetMetaDataByRatingKeyAsync(long ratingKey);
|
Task<GetMediaMetaDataResponse> GetMediaMetaDataAsync(GetMediaMetaDataRequest request);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get Items Children
|
/// Get Items Children
|
||||||
@@ -252,10 +282,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.12.1";
|
private const string _sdkVersion = "0.13.6";
|
||||||
private const string _sdkGenVersion = "2.483.1";
|
private const string _sdkGenVersion = "2.506.0";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.12.1 2.483.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.13.6 2.506.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -353,7 +383,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -449,7 +483,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -546,7 +584,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -554,7 +596,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetLibraryDetailsResponse> GetLibraryDetailsAsync(int sectionKey, IncludeDetails? includeDetails = null)
|
public async Task<GetLibraryDetailsResponse> GetLibraryDetailsAsync(int sectionKey, IncludeDetails? includeDetails = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeDetails.Zero)
|
||||||
{
|
{
|
||||||
var request = new GetLibraryDetailsRequest()
|
var request = new GetLibraryDetailsRequest()
|
||||||
{
|
{
|
||||||
@@ -647,7 +689,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -739,7 +785,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -835,7 +885,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -928,7 +982,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -1029,7 +1087,326 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<GetGenresLibraryResponse> GetGenresLibraryAsync(int sectionKey, GetGenresLibraryQueryParamType type)
|
||||||
|
{
|
||||||
|
var request = new GetGenresLibraryRequest()
|
||||||
|
{
|
||||||
|
SectionKey = sectionKey,
|
||||||
|
Type = type,
|
||||||
|
};
|
||||||
|
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
|
||||||
|
var urlString = URLBuilder.Build(baseUrl, "/library/sections/{sectionKey}/genre", request);
|
||||||
|
|
||||||
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
|
httpRequest.Headers.Add("user-agent", _userAgent);
|
||||||
|
|
||||||
|
if (_securitySource != null)
|
||||||
|
{
|
||||||
|
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
||||||
|
}
|
||||||
|
|
||||||
|
var hookCtx = new HookContext("get-genres-library", null, _securitySource);
|
||||||
|
|
||||||
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
|
HttpResponseMessage httpResponse;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
httpResponse = await _client.SendAsync(httpRequest);
|
||||||
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
{
|
||||||
|
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
|
||||||
|
if (_httpResponse != null)
|
||||||
|
{
|
||||||
|
httpResponse = _httpResponse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
|
||||||
|
if (_httpResponse != null)
|
||||||
|
{
|
||||||
|
httpResponse = _httpResponse;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse);
|
||||||
|
|
||||||
|
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
|
||||||
|
int responseStatusCode = (int)httpResponse.StatusCode;
|
||||||
|
if(responseStatusCode == 200)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetGenresLibraryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
var response = new GetGenresLibraryResponse()
|
||||||
|
{
|
||||||
|
StatusCode = responseStatusCode,
|
||||||
|
ContentType = contentType,
|
||||||
|
RawResponse = httpResponse
|
||||||
|
};
|
||||||
|
response.Object = obj;
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 400)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetGenresLibraryBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
obj!.RawResponse = httpResponse;
|
||||||
|
throw obj!;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 401)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetGenresLibraryUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
obj!.RawResponse = httpResponse;
|
||||||
|
throw obj!;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<GetCountriesLibraryResponse> GetCountriesLibraryAsync(int sectionKey, GetCountriesLibraryQueryParamType type)
|
||||||
|
{
|
||||||
|
var request = new GetCountriesLibraryRequest()
|
||||||
|
{
|
||||||
|
SectionKey = sectionKey,
|
||||||
|
Type = type,
|
||||||
|
};
|
||||||
|
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
|
||||||
|
var urlString = URLBuilder.Build(baseUrl, "/library/sections/{sectionKey}/country", request);
|
||||||
|
|
||||||
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
|
httpRequest.Headers.Add("user-agent", _userAgent);
|
||||||
|
|
||||||
|
if (_securitySource != null)
|
||||||
|
{
|
||||||
|
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
||||||
|
}
|
||||||
|
|
||||||
|
var hookCtx = new HookContext("get-countries-library", null, _securitySource);
|
||||||
|
|
||||||
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
|
HttpResponseMessage httpResponse;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
httpResponse = await _client.SendAsync(httpRequest);
|
||||||
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
{
|
||||||
|
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
|
||||||
|
if (_httpResponse != null)
|
||||||
|
{
|
||||||
|
httpResponse = _httpResponse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
|
||||||
|
if (_httpResponse != null)
|
||||||
|
{
|
||||||
|
httpResponse = _httpResponse;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse);
|
||||||
|
|
||||||
|
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
|
||||||
|
int responseStatusCode = (int)httpResponse.StatusCode;
|
||||||
|
if(responseStatusCode == 200)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetCountriesLibraryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
var response = new GetCountriesLibraryResponse()
|
||||||
|
{
|
||||||
|
StatusCode = responseStatusCode,
|
||||||
|
ContentType = contentType,
|
||||||
|
RawResponse = httpResponse
|
||||||
|
};
|
||||||
|
response.Object = obj;
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 400)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetCountriesLibraryBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
obj!.RawResponse = httpResponse;
|
||||||
|
throw obj!;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 401)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetCountriesLibraryUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
obj!.RawResponse = httpResponse;
|
||||||
|
throw obj!;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<GetActorsLibraryResponse> GetActorsLibraryAsync(int sectionKey, GetActorsLibraryQueryParamType type)
|
||||||
|
{
|
||||||
|
var request = new GetActorsLibraryRequest()
|
||||||
|
{
|
||||||
|
SectionKey = sectionKey,
|
||||||
|
Type = type,
|
||||||
|
};
|
||||||
|
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
|
||||||
|
var urlString = URLBuilder.Build(baseUrl, "/library/sections/{sectionKey}/actor", request);
|
||||||
|
|
||||||
|
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||||
|
httpRequest.Headers.Add("user-agent", _userAgent);
|
||||||
|
|
||||||
|
if (_securitySource != null)
|
||||||
|
{
|
||||||
|
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
||||||
|
}
|
||||||
|
|
||||||
|
var hookCtx = new HookContext("get-actors-library", null, _securitySource);
|
||||||
|
|
||||||
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
|
HttpResponseMessage httpResponse;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
httpResponse = await _client.SendAsync(httpRequest);
|
||||||
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
|
{
|
||||||
|
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
|
||||||
|
if (_httpResponse != null)
|
||||||
|
{
|
||||||
|
httpResponse = _httpResponse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception error)
|
||||||
|
{
|
||||||
|
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
|
||||||
|
if (_httpResponse != null)
|
||||||
|
{
|
||||||
|
httpResponse = _httpResponse;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse);
|
||||||
|
|
||||||
|
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
|
||||||
|
int responseStatusCode = (int)httpResponse.StatusCode;
|
||||||
|
if(responseStatusCode == 200)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetActorsLibraryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
var response = new GetActorsLibraryResponse()
|
||||||
|
{
|
||||||
|
StatusCode = responseStatusCode,
|
||||||
|
ContentType = contentType,
|
||||||
|
RawResponse = httpResponse
|
||||||
|
};
|
||||||
|
response.Object = obj;
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 400)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetActorsLibraryBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
obj!.RawResponse = httpResponse;
|
||||||
|
throw obj!;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 401)
|
||||||
|
{
|
||||||
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
|
{
|
||||||
|
var obj = ResponseBodyDeserializer.Deserialize<GetActorsLibraryUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
|
obj!.RawResponse = httpResponse;
|
||||||
|
throw obj!;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -1126,7 +1503,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -1134,12 +1515,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetMetaDataByRatingKeyResponse> GetMetaDataByRatingKeyAsync(long ratingKey)
|
public async Task<GetMediaMetaDataResponse> GetMediaMetaDataAsync(GetMediaMetaDataRequest request)
|
||||||
{
|
{
|
||||||
var request = new GetMetaDataByRatingKeyRequest()
|
|
||||||
{
|
|
||||||
RatingKey = ratingKey,
|
|
||||||
};
|
|
||||||
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
|
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
|
||||||
var urlString = URLBuilder.Build(baseUrl, "/library/metadata/{ratingKey}", request);
|
var urlString = URLBuilder.Build(baseUrl, "/library/metadata/{ratingKey}", request);
|
||||||
|
|
||||||
@@ -1151,7 +1528,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hookCtx = new HookContext("get-meta-data-by-rating-key", null, _securitySource);
|
var hookCtx = new HookContext("get-media-meta-data", null, _securitySource);
|
||||||
|
|
||||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||||
|
|
||||||
@@ -1161,7 +1538,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
httpResponse = await _client.SendAsync(httpRequest);
|
httpResponse = await _client.SendAsync(httpRequest);
|
||||||
int _statusCode = (int)httpResponse.StatusCode;
|
int _statusCode = (int)httpResponse.StatusCode;
|
||||||
|
|
||||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||||
{
|
{
|
||||||
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
|
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
|
||||||
if (_httpResponse != null)
|
if (_httpResponse != null)
|
||||||
@@ -1191,8 +1568,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetMetaDataByRatingKeyResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetMediaMetaDataResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
var response = new GetMetaDataByRatingKeyResponse()
|
var response = new GetMediaMetaDataResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
ContentType = contentType,
|
ContentType = contentType,
|
||||||
@@ -1208,7 +1585,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetMetaDataByRatingKeyBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetMediaMetaDataBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -1219,14 +1596,18 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetMetaDataByRatingKeyUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetMediaMetaDataUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -1327,7 +1708,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -1428,7 +1813,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -1525,7 +1914,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,10 +94,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.12.1";
|
private const string _sdkVersion = "0.13.6";
|
||||||
private const string _sdkGenVersion = "2.483.1";
|
private const string _sdkGenVersion = "2.506.0";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.12.1 2.483.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.13.6 2.506.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -196,7 +196,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -291,7 +295,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -380,7 +388,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 403 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode == 403 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>true</IsPackable>
|
<IsPackable>true</IsPackable>
|
||||||
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
||||||
<Version>0.12.1</Version>
|
<Version>0.13.6</Version>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Authors>LukeHagar</Authors>
|
<Authors>LukeHagar</Authors>
|
||||||
<Copyright>Copyright (c) LukeHagar 2024</Copyright>
|
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
||||||
<RepositoryUrl>https://github.com/LukeHagar/plexcsharp.git</RepositoryUrl>
|
<RepositoryUrl>https://github.com/LukeHagar/plexcsharp.git</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<PackageTags>Plex Media Server SDK</PackageTags>
|
<PackageTags>Plex Media Server SDK</PackageTags>
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.12.1";
|
private const string _sdkVersion = "0.13.6";
|
||||||
private const string _sdkGenVersion = "2.483.1";
|
private const string _sdkGenVersion = "2.506.0";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.12.1 2.483.1 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.13.6 2.506.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -190,7 +190,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -282,7 +286,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -376,7 +384,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -472,7 +484,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
@@ -568,7 +584,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
|
{
|
||||||
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
|
}
|
||||||
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetMetaDataByRatingKeyBadRequest : Exception
|
public class GetActorsLibraryBadRequest : Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMetaDataByRatingKeyErrors>? Errors { get; set; }
|
public List<GetActorsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyErrors
|
public class GetActorsLibraryErrors
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyLibraryErrors
|
public class GetActorsLibraryLibraryErrors
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
@@ -19,11 +19,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetMetaDataByRatingKeyUnauthorized : Exception
|
public class GetActorsLibraryUnauthorized : Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMetaDataByRatingKeyLibraryErrors>? Errors { get; set; }
|
public List<GetActorsLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCountriesLibraryBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetCountriesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCountriesLibraryUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetCountriesLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGenresLibraryBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetGenresLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetGenresLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetGenresLibraryLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGenresLibraryUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetGenresLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMediaMetaDataBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetMediaMetaDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataLibraryErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMediaMetaDataUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetMediaMetaDataLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
34
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersBadRequest.cs
Normal file
34
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersBadRequest.cs
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetUsersBadRequest : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetUsersErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
27
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersErrors.cs
Normal file
27
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersErrors.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetUsersErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
34
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersUnauthorized.cs
Normal file
34
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersUnauthorized.cs
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetUsersUnauthorized : Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("errors")]
|
||||||
|
public List<GetUsersUsersErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("-")]
|
||||||
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
27
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersUsersErrors.cs
Normal file
27
LukeHagar/PlexAPI/SDK/Models/Errors/GetUsersUsersErrors.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetUsersUsersErrors
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("code")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("message")]
|
||||||
|
public string? Message { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,18 +10,14 @@
|
|||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
{
|
{
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
public class Ratings
|
/// <summary>
|
||||||
|
/// Indicates if the user has access to all libraries.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllLibraries
|
||||||
{
|
{
|
||||||
|
Disable = 0,
|
||||||
[JsonProperty("image")]
|
Enable = 1,
|
||||||
public string? Image { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("value")]
|
|
||||||
public double? Value { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("type")]
|
|
||||||
public string? Type { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowCameraUpload.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowCameraUpload.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the user is allowed to upload from a camera.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowCameraUpload
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowChannels.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowChannels.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the user has access to channels.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowChannels
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSubtitleAdmin.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSubtitleAdmin.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the user can manage subtitles.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowSubtitleAdmin
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSync.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSync.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the user is allowed to sync media.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowSync
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowTuners.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowTuners.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the user is allowed to use tuners.
|
||||||
|
/// </summary>
|
||||||
|
public enum AllowTuners
|
||||||
|
{
|
||||||
|
Disable = 0,
|
||||||
|
Enable = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
/// </summary>
|
||||||
|
public enum EnableCreditsMarkerGeneration
|
||||||
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
|
[JsonProperty("0")]
|
||||||
|
Disabled,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class EnableCreditsMarkerGenerationExtension
|
||||||
|
{
|
||||||
|
public static string Value(this EnableCreditsMarkerGeneration value)
|
||||||
|
{
|
||||||
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static EnableCreditsMarkerGeneration ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(EnableCreditsMarkerGeneration).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is EnableCreditsMarkerGeneration)
|
||||||
|
{
|
||||||
|
return (EnableCreditsMarkerGeneration)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum EnableCreditsMarkerGeneration");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
62
LukeHagar/PlexAPI/SDK/Models/Requests/EpisodeSort.cs
Normal file
62
LukeHagar/PlexAPI/SDK/Models/Requests/EpisodeSort.cs
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
/// </summary>
|
||||||
|
public enum EpisodeSort
|
||||||
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
|
[JsonProperty("0")]
|
||||||
|
OldestFirst,
|
||||||
|
[JsonProperty("1")]
|
||||||
|
NewestFirst,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class EpisodeSortExtension
|
||||||
|
{
|
||||||
|
public static string Value(this EpisodeSort value)
|
||||||
|
{
|
||||||
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static EpisodeSort ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(EpisodeSort).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is EpisodeSort)
|
||||||
|
{
|
||||||
|
return (EpisodeSort)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum EpisodeSort");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -13,12 +13,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
/// </summary>
|
||||||
public enum FlattenSeasons
|
public enum FlattenSeasons
|
||||||
{
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
[JsonProperty("0")]
|
[JsonProperty("0")]
|
||||||
False,
|
Hide,
|
||||||
[JsonProperty("1")]
|
[JsonProperty("1")]
|
||||||
True,
|
Show,
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class FlattenSeasonsExtension
|
public static class FlattenSeasonsExtension
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetActorsLibraryDirectory
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A fast lookup key for the actor relative url.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("fastKey")]
|
||||||
|
public string FastKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the actor.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A unique key representing the actor.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The name of the actor.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetActorsLibraryMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public double Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the background artwork of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An plugin identifier for the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The prefix used for media tag resource paths.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The version number for media tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Specifies whether caching is disabled.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("nocache")]
|
||||||
|
public bool Nocache { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the thumbnail image of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The primary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title1")]
|
||||||
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The secondary title of the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title2")]
|
||||||
|
public string Title2 { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Identifier for the view group layout.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewGroup")]
|
||||||
|
public string ViewGroup { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Identifier for the view mode.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewMode")]
|
||||||
|
public string ViewMode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of actor entries for media items.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Directory")]
|
||||||
|
public List<GetActorsLibraryDirectory>? Directory { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public enum GetActorsLibraryQueryParamType
|
||||||
|
{
|
||||||
|
Movie = 1,
|
||||||
|
TvShow = 2,
|
||||||
|
Season = 3,
|
||||||
|
Episode = 4,
|
||||||
|
Audio = 8,
|
||||||
|
Album = 9,
|
||||||
|
Track = 10,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
public class GetActorsLibraryRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique key of the Plex library. <br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Note: This is unique in the context of the Plex server.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
||||||
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
|
public GetActorsLibraryQueryParamType Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using System;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
public class GetActorsLibraryResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response content type for this operation
|
||||||
|
/// </summary>
|
||||||
|
public string? ContentType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response status code for this operation
|
||||||
|
/// </summary>
|
||||||
|
public int StatusCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public GetActorsLibraryResponseBody? Object { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public class GetActorsLibraryResponseBody
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("MediaContainer")]
|
||||||
|
public GetActorsLibraryMediaContainer? MediaContainer { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,16 +12,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyCountry
|
public class GetCountriesLibraryDirectory
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("id")]
|
[JsonProperty("fastKey")]
|
||||||
public int? Id { get; set; }
|
public string FastKey { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("filter")]
|
[JsonProperty("key")]
|
||||||
public string? Filter { get; set; }
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("title")]
|
||||||
public string? Tag { get; set; }
|
public string Title { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public double Size { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("offset")]
|
||||||
|
public int? Offset { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("totalSize")]
|
||||||
|
public int? TotalSize { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("content")]
|
||||||
|
public string Content { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("nocache")]
|
||||||
|
public bool Nocache { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title1")]
|
||||||
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title2")]
|
||||||
|
public string Title2 { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("viewGroup")]
|
||||||
|
public string ViewGroup { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("Directory")]
|
||||||
|
public List<GetCountriesLibraryDirectory>? Directory { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public enum GetCountriesLibraryQueryParamType
|
||||||
|
{
|
||||||
|
Movie = 1,
|
||||||
|
TvShow = 2,
|
||||||
|
Season = 3,
|
||||||
|
Episode = 4,
|
||||||
|
Audio = 8,
|
||||||
|
Album = 9,
|
||||||
|
Track = 10,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique key of the Plex library. <br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Note: This is unique in the context of the Plex server.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
||||||
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
|
public GetCountriesLibraryQueryParamType Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using System;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
public class GetCountriesLibraryResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response content type for this operation
|
||||||
|
/// </summary>
|
||||||
|
public string? ContentType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response status code for this operation
|
||||||
|
/// </summary>
|
||||||
|
public int StatusCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public GetCountriesLibraryResponseBody? Object { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCountriesLibraryResponseBody
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("MediaContainer")]
|
||||||
|
public GetCountriesLibraryMediaContainer? MediaContainer { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetGenresLibraryDirectory
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("fastKey")]
|
||||||
|
public string FastKey { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetGenresLibraryMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public double Size { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("offset")]
|
||||||
|
public int? Offset { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("totalSize")]
|
||||||
|
public int? TotalSize { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("content")]
|
||||||
|
public string Content { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("nocache")]
|
||||||
|
public bool Nocache { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title1")]
|
||||||
|
public string Title1 { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("title2")]
|
||||||
|
public string Title2 { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("viewGroup")]
|
||||||
|
public string ViewGroup { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("Directory")]
|
||||||
|
public List<GetGenresLibraryDirectory>? Directory { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
public enum GetGenresLibraryQueryParamType
|
||||||
|
{
|
||||||
|
Movie = 1,
|
||||||
|
TvShow = 2,
|
||||||
|
Season = 3,
|
||||||
|
Episode = 4,
|
||||||
|
Audio = 8,
|
||||||
|
Album = 9,
|
||||||
|
Track = 10,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
public class GetGenresLibraryRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique key of the Plex library. <br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// Note: This is unique in the context of the Plex server.<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionKey")]
|
||||||
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
/// 1 = movie<br/>
|
||||||
|
/// 2 = show<br/>
|
||||||
|
/// 3 = season<br/>
|
||||||
|
/// 4 = episode<br/>
|
||||||
|
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
|
public GetGenresLibraryQueryParamType Type { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using System;
|
||||||
|
using System.Net.Http;
|
||||||
|
|
||||||
|
public class GetGenresLibraryResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response content type for this operation
|
||||||
|
/// </summary>
|
||||||
|
public string? ContentType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// HTTP response status code for this operation
|
||||||
|
/// </summary>
|
||||||
|
public int StatusCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
|
/// </summary>
|
||||||
|
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public GetGenresLibraryResponseBody? Object { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Successful response containing media container data.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGenresLibraryResponseBody
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("MediaContainer")]
|
||||||
|
public GetGenresLibraryMediaContainer? MediaContainer { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
/// </summary>
|
||||||
|
public enum GetLibraryItemsEnableCreditsMarkerGeneration
|
||||||
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
|
[JsonProperty("0")]
|
||||||
|
Disabled,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GetLibraryItemsEnableCreditsMarkerGenerationExtension
|
||||||
|
{
|
||||||
|
public static string Value(this GetLibraryItemsEnableCreditsMarkerGeneration value)
|
||||||
|
{
|
||||||
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetLibraryItemsEnableCreditsMarkerGeneration ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(GetLibraryItemsEnableCreditsMarkerGeneration).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is GetLibraryItemsEnableCreditsMarkerGeneration)
|
||||||
|
{
|
||||||
|
return (GetLibraryItemsEnableCreditsMarkerGeneration)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum GetLibraryItemsEnableCreditsMarkerGeneration");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
/// </summary>
|
||||||
|
public enum GetLibraryItemsEpisodeSort
|
||||||
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
|
[JsonProperty("0")]
|
||||||
|
OldestFirst,
|
||||||
|
[JsonProperty("1")]
|
||||||
|
NewestFirst,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GetLibraryItemsEpisodeSortExtension
|
||||||
|
{
|
||||||
|
public static string Value(this GetLibraryItemsEpisodeSort value)
|
||||||
|
{
|
||||||
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetLibraryItemsEpisodeSort ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(GetLibraryItemsEpisodeSort).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is GetLibraryItemsEpisodeSort)
|
||||||
|
{
|
||||||
|
return (GetLibraryItemsEpisodeSort)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum GetLibraryItemsEpisodeSort");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -13,12 +13,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
/// </summary>
|
||||||
public enum GetLibraryItemsFlattenSeasons
|
public enum GetLibraryItemsFlattenSeasons
|
||||||
{
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
[JsonProperty("0")]
|
[JsonProperty("0")]
|
||||||
False,
|
Hide,
|
||||||
[JsonProperty("1")]
|
[JsonProperty("1")]
|
||||||
True,
|
Show,
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GetLibraryItemsFlattenSeasonsExtension
|
public static class GetLibraryItemsFlattenSeasonsExtension
|
||||||
|
|||||||
@@ -87,18 +87,33 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("tagline")]
|
[JsonProperty("tagline")]
|
||||||
public string? Tagline { get; set; }
|
public string? Tagline { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("flattenSeasons")]
|
[JsonProperty("flattenSeasons")]
|
||||||
public GetLibraryItemsFlattenSeasons? FlattenSeasons { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibraryItemsFlattenSeasons.False;
|
public GetLibraryItemsFlattenSeasons? FlattenSeasons { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show<br/>
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("episodeSort")]
|
||||||
|
public GetLibraryItemsEpisodeSort? EpisodeSort { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("enableCreditsMarkerGeneration")]
|
||||||
|
public GetLibraryItemsEnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates the episode ordering for the show.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// None = Library default,<br/>
|
/// None = Library default,<br/>
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
/// tmdbAiring = The Movie Database (Aired),<br/>
|
||||||
/// tvdbAiring = TheTVDB (Aired),<br/>
|
/// aired = TheTVDB (Aired),<br/>
|
||||||
/// tvdbDvd = TheTVDB (DVD),<br/>
|
/// dvd = TheTVDB (DVD),<br/>
|
||||||
/// tvdbAbsolute = TheTVDB (Absolute)).<br/>
|
/// absolute = TheTVDB (Absolute)).<br/>
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public IncludeGuids? IncludeGuids { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeGuids.Disable;
|
public IncludeGuids? IncludeGuids { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeGuids.Disable;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
@@ -44,7 +44,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||||
public GetLibraryItemsQueryParamType? Type { get; set; }
|
public GetLibraryItemsQueryParamType Type { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The unique key of the Plex library. <br/>
|
/// The unique key of the Plex library. <br/>
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show<br/>
|
/// Setting that indicates the episode ordering for the show.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// None = Library default,<br/>
|
/// None = Library default,<br/>
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
/// tmdbAiring = The Movie Database (Aired),<br/>
|
||||||
/// tvdbAiring = TheTVDB (Aired),<br/>
|
/// aired = TheTVDB (Aired),<br/>
|
||||||
/// tvdbDvd = TheTVDB (DVD),<br/>
|
/// dvd = TheTVDB (DVD),<br/>
|
||||||
/// tvdbAbsolute = TheTVDB (Absolute)).<br/>
|
/// absolute = TheTVDB (Absolute)).<br/>
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -31,11 +31,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
None,
|
None,
|
||||||
[JsonProperty("tmdbAiring")]
|
[JsonProperty("tmdbAiring")]
|
||||||
TmdbAiring,
|
TmdbAiring,
|
||||||
[JsonProperty("tvdbAiring")]
|
[JsonProperty("aired")]
|
||||||
TvdbAiring,
|
TvdbAired,
|
||||||
[JsonProperty("tvdbDvd")]
|
[JsonProperty("dvd")]
|
||||||
TvdbDvd,
|
TvdbDvd,
|
||||||
[JsonProperty("tvdbAbsolute")]
|
[JsonProperty("absolute")]
|
||||||
TvdbAbsolute,
|
TvdbAbsolute,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,22 +12,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyDirector
|
public class GetMediaMetaDataCountry
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique country identifier.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public int? Id { get; set; }
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter string for the country.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("filter")]
|
[JsonProperty("filter")]
|
||||||
public string? Filter { get; set; }
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The country name.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("tagKey")]
|
|
||||||
public string? TagKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
|
||||||
public string? Thumb { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataDirector
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique role identifier.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter string for the role.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The actor's name.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tag")]
|
||||||
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A key associated with the actor tag.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tagKey")]
|
||||||
|
public string TagKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The character name or role.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("role")]
|
||||||
|
public string? Role { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the role thumbnail image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string? Thumb { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,25 +12,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyRole
|
public class GetMediaMetaDataGenre
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique genre identifier.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public int? Id { get; set; }
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter string for the genre.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("filter")]
|
[JsonProperty("filter")]
|
||||||
public string? Filter { get; set; }
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The genre name.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("tagKey")]
|
|
||||||
public string? TagKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("role")]
|
|
||||||
public string? Role { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
|
||||||
public string? Thumb { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataImage
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Alternate text for the image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("alt")]
|
||||||
|
public string Alt { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of image (e.g., coverPoster, background, clearLogo).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The URL of the image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("url")]
|
||||||
|
public string Url { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,14 +10,15 @@
|
|||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
{
|
{
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyRequest
|
public class GetMediaMetaDataLocation
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the id of the library item to return the children of.
|
/// The file path for the location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey")]
|
[JsonProperty("path")]
|
||||||
public long RatingKey { get; set; } = default!;
|
public string Path { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
110
LukeHagar/PlexAPI/SDK/Models/Requests/GetMediaMetaDataMedia.cs
Normal file
110
LukeHagar/PlexAPI/SDK/Models/Requests/GetMediaMetaDataMedia.cs
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataMedia
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unique media identifier.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Duration of the media in milliseconds.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("duration")]
|
||||||
|
public long Duration { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bitrate in bits per second.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("bitrate")]
|
||||||
|
public long Bitrate { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video width in pixels.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("width")]
|
||||||
|
public long Width { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video height in pixels.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("height")]
|
||||||
|
public long Height { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Aspect ratio of the video.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("aspectRatio")]
|
||||||
|
public float AspectRatio { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of audio channels.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audioChannels")]
|
||||||
|
public long AudioChannels { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Audio codec used.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audioCodec")]
|
||||||
|
public string AudioCodec { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video codec used.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoCodec")]
|
||||||
|
public string VideoCodec { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video resolution (e.g., 4k).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoResolution")]
|
||||||
|
public string VideoResolution { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// File container type.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("container")]
|
||||||
|
public string Container { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Frame rate of the video (e.g., 24p).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoFrameRate")]
|
||||||
|
public string VideoFrameRate { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video profile (e.g., main 10).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoProfile")]
|
||||||
|
public string VideoProfile { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether voice activity is detected.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("hasVoiceActivity")]
|
||||||
|
public bool HasVoiceActivity { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of parts for this media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Part")]
|
||||||
|
public List<GetMediaMetaDataPart> Part { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataMediaContainer
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public double Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("allowSync")]
|
||||||
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An plugin identifier for the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique identifier for the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionID")]
|
||||||
|
public long LibrarySectionID { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionTitle")]
|
||||||
|
public string LibrarySectionTitle { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The universally unique identifier for the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionUUID")]
|
||||||
|
public string? LibrarySectionUUID { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The prefix used for media tag resource paths.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagPrefix")]
|
||||||
|
public string MediaTagPrefix { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The version number for media tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("mediaTagVersion")]
|
||||||
|
public long MediaTagVersion { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of metadata items.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Metadata")]
|
||||||
|
public List<GetMediaMetaDataMetadata> Metadata { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,363 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using NodaTime;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataMetadata
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The rating key of the metadata item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("ratingKey")]
|
||||||
|
public string RatingKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The rating key of the parent of this metadata item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentRatingKey")]
|
||||||
|
public string? ParentRatingKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The rating key of the grandparent of this metadata item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentRatingKey")]
|
||||||
|
public string? GrandparentRatingKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A GUID identifying the parent entity (e.g., season) for the item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentGuid")]
|
||||||
|
public string? ParentGuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A GUID identifying the grandparent entity (e.g., show).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentGuid")]
|
||||||
|
public string? GrandparentGuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A URL-friendly identifier (slug) for the grandparent entity.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentSlug")]
|
||||||
|
public string? GrandparentSlug { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A key identifying the grandparent metadata in the library.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentKey")]
|
||||||
|
public string? GrandparentKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A key identifying the parent metadata in the library.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentKey")]
|
||||||
|
public string? ParentKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The API key to access metadata details.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The globally unique identifier for the item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("guid")]
|
||||||
|
public string Guid { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A URL-friendly identifier for the item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("slug")]
|
||||||
|
public string? Slug { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The studio that produced the content.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("studio")]
|
||||||
|
public string? Studio { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of content (e.g., show, movie).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public string Type { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the content.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The original title of the content.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("originalTitle")]
|
||||||
|
public string? OriginalTitle { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionTitle")]
|
||||||
|
public string LibrarySectionTitle { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The ID of the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionID")]
|
||||||
|
public long LibrarySectionID { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The key of the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionKey")]
|
||||||
|
public string LibrarySectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The content rating (e.g., TV-MA).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("contentRating")]
|
||||||
|
public string ContentRating { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A summary of the content.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("summary")]
|
||||||
|
public string Summary { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The index or order of the item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("index")]
|
||||||
|
public long? Index { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the grandparent entity (typically the show's title).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentTitle")]
|
||||||
|
public string? GrandparentTitle { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the parent entity (typically the season's title).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentTitle")]
|
||||||
|
public string? ParentTitle { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The audience rating for the content.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audienceRating")]
|
||||||
|
public float AudienceRating { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of times the item has been viewed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewCount")]
|
||||||
|
public long? ViewCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of times the item has been skipped.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("skipCount")]
|
||||||
|
public long? SkipCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unix timestamp of when the item was last viewed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("lastViewedAt")]
|
||||||
|
public long? LastViewedAt { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The release year.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("year")]
|
||||||
|
public long Year { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The tagline of the content.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tagline")]
|
||||||
|
public string? Tagline { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("chapterSource")]
|
||||||
|
public string? ChapterSource { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("primaryExtraKey")]
|
||||||
|
public string? PrimaryExtraKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL of the thumbnail image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL of the art image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("art")]
|
||||||
|
public string Art { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL of the theme image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("theme")]
|
||||||
|
public string? Theme { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Duration of the content in milliseconds.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("duration")]
|
||||||
|
public long Duration { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The original release date.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("originallyAvailableAt")]
|
||||||
|
public LocalDate OriginallyAvailableAt { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The total number of episodes (or leaves).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("leafCount")]
|
||||||
|
public long? LeafCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of episodes that have been viewed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewedLeafCount")]
|
||||||
|
public long? ViewedLeafCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of child items.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("childCount")]
|
||||||
|
public long? ChildCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unix timestamp when the item was added.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("addedAt")]
|
||||||
|
public long AddedAt { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unix timestamp when the item was last updated.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("updatedAt")]
|
||||||
|
public long UpdatedAt { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The URL for the audience rating image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audienceRatingImage")]
|
||||||
|
public string AudienceRatingImage { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The index number of the parent entity, which could indicate its order or position.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentIndex")]
|
||||||
|
public long? ParentIndex { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The URL of the parent's thumbnail image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentThumb")]
|
||||||
|
public string? ParentThumb { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The URL of the grandparent's thumbnail image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentThumb")]
|
||||||
|
public string? GrandparentThumb { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The URL of the grandparent's art image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentArt")]
|
||||||
|
public string? GrandparentArt { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("Media")]
|
||||||
|
public List<GetMediaMetaDataMedia>? Media { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of image objects.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Image")]
|
||||||
|
public List<GetMediaMetaDataImage> Image { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("UltraBlurColors")]
|
||||||
|
public GetMediaMetaDataUltraBlurColors UltraBlurColors { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of genre tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Genre")]
|
||||||
|
public List<GetMediaMetaDataGenre>? Genre { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of country tags.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Country")]
|
||||||
|
public List<GetMediaMetaDataCountry>? Country { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of GUID objects.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Guid")]
|
||||||
|
public List<Guids> Guids { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of rating objects.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Rating")]
|
||||||
|
public List<Rating> Rating { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of Actor roles.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Role")]
|
||||||
|
public List<GetMediaMetaDataRole>? Role { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of Director roles.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Director")]
|
||||||
|
public List<GetMediaMetaDataDirector>? Director { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of Writer roles.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Writer")]
|
||||||
|
public List<GetMediaMetaDataWriter>? Writer { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of Writer roles.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Producer")]
|
||||||
|
public List<Producer>? Producer { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of similar content objects.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Similar")]
|
||||||
|
public List<Similar>? Similar { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of location objects.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Location")]
|
||||||
|
public List<GetMediaMetaDataLocation>? Location { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataPart
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the part is accessible.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("accessible")]
|
||||||
|
public bool? Accessible { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the part exists.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("exists")]
|
||||||
|
public bool? Exists { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unique part identifier.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Key to access this part.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("indexes")]
|
||||||
|
public string? Indexes { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Duration of the part in milliseconds.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("duration")]
|
||||||
|
public long Duration { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// File path for the part.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("file")]
|
||||||
|
public string File { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// File size in bytes.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("size")]
|
||||||
|
public long Size { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Container format of the part.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("container")]
|
||||||
|
public string Container { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video profile for the part.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoProfile")]
|
||||||
|
public string VideoProfile { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of streams for this part.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("Stream")]
|
||||||
|
public List<GetMediaMetaDataStream> Stream { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
101
LukeHagar/PlexAPI/SDK/Models/Requests/GetMediaMetaDataRequest.cs
Normal file
101
LukeHagar/PlexAPI/SDK/Models/Requests/GetMediaMetaDataRequest.cs
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the id of the library item to return the children of.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ratingKey")]
|
||||||
|
public long RatingKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include concerts data if set to true.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeConcerts")]
|
||||||
|
public bool? IncludeConcerts { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include extra content (e.g. bonus features).
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeExtras")]
|
||||||
|
public bool? IncludeExtras { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include on-deck items.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeOnDeck")]
|
||||||
|
public bool? IncludeOnDeck { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include popular leaves (episodes/chapters).
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includePopularLeaves")]
|
||||||
|
public bool? IncludePopularLeaves { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include preferences information.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includePreferences")]
|
||||||
|
public bool? IncludePreferences { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include reviews for the content.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeReviews")]
|
||||||
|
public bool? IncludeReviews { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include chapter details.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeChapters")]
|
||||||
|
public bool? IncludeChapters { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include station data.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeStations")]
|
||||||
|
public bool? IncludeStations { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Include external media data.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeExternalMedia")]
|
||||||
|
public bool? IncludeExternalMedia { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Trigger asynchronous metadata augmentation.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncAugmentMetadata")]
|
||||||
|
public bool? AsyncAugmentMetadata { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Trigger asynchronous file checking.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncCheckFiles")]
|
||||||
|
public bool? AsyncCheckFiles { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Trigger asynchronous refresh of analysis.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncRefreshAnalysis")]
|
||||||
|
public bool? AsyncRefreshAnalysis { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Trigger asynchronous refresh of the local media agent.
|
||||||
|
/// </summary>
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=asyncRefreshLocalMediaAgent")]
|
||||||
|
public bool? AsyncRefreshLocalMediaAgent { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using System;
|
using System;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyResponse
|
public class GetMediaMetaDataResponse
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The metadata of the library item.
|
/// The metadata of the library item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public GetMetaDataByRatingKeyResponseBody? Object { get; set; }
|
public GetMediaMetaDataResponseBody? Object { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,10 +16,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The metadata of the library item.
|
/// The metadata of the library item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetMetaDataByRatingKeyResponseBody
|
public class GetMediaMetaDataResponseBody
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("MediaContainer")]
|
[JsonProperty("MediaContainer")]
|
||||||
public GetMetaDataByRatingKeyMediaContainer? MediaContainer { get; set; }
|
public GetMediaMetaDataMediaContainer? MediaContainer { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataRole
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique role identifier.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter string for the role.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The actor's name.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tag")]
|
||||||
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A key associated with the actor tag.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tagKey")]
|
||||||
|
public string TagKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The character name or role.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("role")]
|
||||||
|
public string? Role { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the role thumbnail image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string? Thumb { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
285
LukeHagar/PlexAPI/SDK/Models/Requests/GetMediaMetaDataStream.cs
Normal file
285
LukeHagar/PlexAPI/SDK/Models/Requests/GetMediaMetaDataStream.cs
Normal file
@@ -0,0 +1,285 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataStream
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unique stream identifier.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Stream type (1=video, 2=audio, 3=subtitle).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("streamType")]
|
||||||
|
public long StreamType { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if this stream is default.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("default")]
|
||||||
|
public bool? Default { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Codec used by the stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("codec")]
|
||||||
|
public string Codec { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Index of the stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("index")]
|
||||||
|
public long Index { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bitrate of the stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("bitrate")]
|
||||||
|
public long Bitrate { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Language of the stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("language")]
|
||||||
|
public string Language { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Language tag (e.g., en).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("languageTag")]
|
||||||
|
public string LanguageTag { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ISO language code.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("languageCode")]
|
||||||
|
public string LanguageCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Dolby Vision BL compatibility ID.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIBLCompatID")]
|
||||||
|
public long? DOVIBLCompatID { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if Dolby Vision BL is present.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIBLPresent")]
|
||||||
|
public bool? DOVIBLPresent { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if Dolby Vision EL is present.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIELPresent")]
|
||||||
|
public bool? DOVIELPresent { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Dolby Vision level.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVILevel")]
|
||||||
|
public long? DOVILevel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if Dolby Vision is present.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIPresent")]
|
||||||
|
public bool? DOVIPresent { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Dolby Vision profile.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIProfile")]
|
||||||
|
public long? DOVIProfile { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if Dolby Vision RPU is present.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIRPUPresent")]
|
||||||
|
public bool? DOVIRPUPresent { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Dolby Vision version.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIVersion")]
|
||||||
|
public string? DOVIVersion { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bit depth of the video stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("bitDepth")]
|
||||||
|
public long? BitDepth { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Chroma sample location.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("chromaLocation")]
|
||||||
|
public string? ChromaLocation { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Chroma subsampling format.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("chromaSubsampling")]
|
||||||
|
public string? ChromaSubsampling { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Coded video height.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("codedHeight")]
|
||||||
|
public long? CodedHeight { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Coded video width.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("codedWidth")]
|
||||||
|
public long? CodedWidth { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Color primaries used.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("colorPrimaries")]
|
||||||
|
public string? ColorPrimaries { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Color range (e.g., tv).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("colorRange")]
|
||||||
|
public string? ColorRange { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Color space.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("colorSpace")]
|
||||||
|
public string? ColorSpace { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Color transfer characteristics.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("colorTrc")]
|
||||||
|
public string? ColorTrc { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Frame rate of the stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("frameRate")]
|
||||||
|
public float? FrameRate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Height of the video stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("height")]
|
||||||
|
public long? Height { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video level.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("level")]
|
||||||
|
public long? Level { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if this is the original stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("original")]
|
||||||
|
public bool? Original { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("hasScalingMatrix")]
|
||||||
|
public bool? HasScalingMatrix { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video profile.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("profile")]
|
||||||
|
public string? Profile { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("scanType")]
|
||||||
|
public string? ScanType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of reference frames.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("refFrames")]
|
||||||
|
public long? RefFrames { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Width of the video stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("width")]
|
||||||
|
public long? Width { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Display title for the stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("displayTitle")]
|
||||||
|
public string DisplayTitle { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extended display title for the stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("extendedDisplayTitle")]
|
||||||
|
public string ExtendedDisplayTitle { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if this stream is selected (applicable for audio streams).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("selected")]
|
||||||
|
public bool? Selected { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("forced")]
|
||||||
|
public bool? Forced { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of audio channels (for audio streams).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("channels")]
|
||||||
|
public long? Channels { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Audio channel layout.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audioChannelLayout")]
|
||||||
|
public string? AudioChannelLayout { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sampling rate for the audio stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("samplingRate")]
|
||||||
|
public long? SamplingRate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the stream can auto-sync.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("canAutoSync")]
|
||||||
|
public bool? CanAutoSync { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the stream is for the hearing impaired.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("hearingImpaired")]
|
||||||
|
public bool? HearingImpaired { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the stream is a dub.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("dub")]
|
||||||
|
public bool? Dub { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Optional title for the stream (e.g., language variant).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string? Title { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataUltraBlurColors
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The top-left color value.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("topLeft")]
|
||||||
|
public string TopLeft { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The top-right color value.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("topRight")]
|
||||||
|
public string TopRight { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The bottom-right color value.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("bottomRight")]
|
||||||
|
public string BottomRight { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The bottom-left color value.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("bottomLeft")]
|
||||||
|
public string BottomLeft { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
public class GetMediaMetaDataWriter
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique role identifier.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter string for the role.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The actor's name.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tag")]
|
||||||
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A key associated with the actor tag.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tagKey")]
|
||||||
|
public string TagKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The character name or role.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("role")]
|
||||||
|
public string? Role { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL for the role thumbnail image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string? Thumb { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost when
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
#nullable enable
|
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyMedia
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public int? Id { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
|
||||||
public int? Duration { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("bitrate")]
|
|
||||||
public int? Bitrate { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("width")]
|
|
||||||
public int? Width { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("height")]
|
|
||||||
public int? Height { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("aspectRatio")]
|
|
||||||
public double? AspectRatio { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audioChannels")]
|
|
||||||
public int? AudioChannels { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audioCodec")]
|
|
||||||
public string? AudioCodec { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("videoCodec")]
|
|
||||||
public string? VideoCodec { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("videoResolution")]
|
|
||||||
public string? VideoResolution { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("container")]
|
|
||||||
public string? Container { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("videoFrameRate")]
|
|
||||||
public string? VideoFrameRate { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("optimizedForStreaming")]
|
|
||||||
public int? OptimizedForStreaming { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audioProfile")]
|
|
||||||
public string? AudioProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("has64bitOffsets")]
|
|
||||||
public bool? Has64bitOffsets { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("videoProfile")]
|
|
||||||
public string? VideoProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Part")]
|
|
||||||
public List<GetMetaDataByRatingKeyPart>? Part { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost when
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
#nullable enable
|
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyMediaContainer
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("size")]
|
|
||||||
public int? Size { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("allowSync")]
|
|
||||||
public bool? AllowSync { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("identifier")]
|
|
||||||
public string? Identifier { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionID")]
|
|
||||||
public int? LibrarySectionID { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionTitle")]
|
|
||||||
public string? LibrarySectionTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionUUID")]
|
|
||||||
public string? LibrarySectionUUID { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("mediaTagPrefix")]
|
|
||||||
public string? MediaTagPrefix { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("mediaTagVersion")]
|
|
||||||
public int? MediaTagVersion { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Metadata")]
|
|
||||||
public List<GetMetaDataByRatingKeyMetadata>? Metadata { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,150 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost when
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
#nullable enable
|
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using NodaTime;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyMetadata
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("ratingKey")]
|
|
||||||
public string? RatingKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("key")]
|
|
||||||
public string? Key { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("guid")]
|
|
||||||
public string? Guid { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("studio")]
|
|
||||||
public string? Studio { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("type")]
|
|
||||||
public string? Type { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("title")]
|
|
||||||
public string? Title { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionTitle")]
|
|
||||||
public string? LibrarySectionTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionID")]
|
|
||||||
public int? LibrarySectionID { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionKey")]
|
|
||||||
public string? LibrarySectionKey { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("grandparentTitle")]
|
|
||||||
public string? GrandparentTitle { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("parentTitle")]
|
|
||||||
public string? ParentTitle { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The orginal untranslated name of the media item when non-english.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("originalTitle")]
|
|
||||||
public string? OriginalTitle { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The index starting from 0 of this media item in the MetaData array.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("index")]
|
|
||||||
public long? Index { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The parent index starting from 0 of this media item in the parent MetaData array.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("parentIndex")]
|
|
||||||
public long? ParentIndex { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("contentRating")]
|
|
||||||
public string? ContentRating { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("summary")]
|
|
||||||
public string? Summary { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("rating")]
|
|
||||||
public double? Rating { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audienceRating")]
|
|
||||||
public double? AudienceRating { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("year")]
|
|
||||||
public int? Year { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("tagline")]
|
|
||||||
public string? Tagline { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
|
||||||
public string? Thumb { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("art")]
|
|
||||||
public string? Art { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
|
||||||
public int? Duration { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("originallyAvailableAt")]
|
|
||||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("addedAt")]
|
|
||||||
public int? AddedAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("updatedAt")]
|
|
||||||
public int? UpdatedAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audienceRatingImage")]
|
|
||||||
public string? AudienceRatingImage { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("hasPremiumPrimaryExtra")]
|
|
||||||
public string? HasPremiumPrimaryExtra { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("ratingImage")]
|
|
||||||
public string? RatingImage { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Media")]
|
|
||||||
public List<GetMetaDataByRatingKeyMedia>? Media { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Genre")]
|
|
||||||
public List<GetMetaDataByRatingKeyGenre>? Genre { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Country")]
|
|
||||||
public List<GetMetaDataByRatingKeyCountry>? Country { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Guid")]
|
|
||||||
public List<Guids>? Guids { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Rating")]
|
|
||||||
public List<Ratings>? Ratings { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Director")]
|
|
||||||
public List<GetMetaDataByRatingKeyDirector>? Director { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Writer")]
|
|
||||||
public List<GetMetaDataByRatingKeyWriter>? Writer { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Role")]
|
|
||||||
public List<GetMetaDataByRatingKeyRole>? Role { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Producer")]
|
|
||||||
public List<Producer>? Producer { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost when
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
#nullable enable
|
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyPart
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public int? Id { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("key")]
|
|
||||||
public string? Key { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
|
||||||
public int? Duration { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("file")]
|
|
||||||
public string? File { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("size")]
|
|
||||||
public int? Size { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audioProfile")]
|
|
||||||
public string? AudioProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("container")]
|
|
||||||
public string? Container { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("has64bitOffsets")]
|
|
||||||
public bool? Has64bitOffsets { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("optimizedForStreaming")]
|
|
||||||
public bool? OptimizedForStreaming { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("videoProfile")]
|
|
||||||
public string? VideoProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Stream")]
|
|
||||||
public List<GetMetaDataByRatingKeyStream>? Stream { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,114 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost when
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
#nullable enable
|
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyStream
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public int? Id { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("streamType")]
|
|
||||||
public int? StreamType { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("default")]
|
|
||||||
public bool? Default { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("codec")]
|
|
||||||
public string? Codec { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("index")]
|
|
||||||
public int? Index { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("bitrate")]
|
|
||||||
public int? Bitrate { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("bitDepth")]
|
|
||||||
public int? BitDepth { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("chromaLocation")]
|
|
||||||
public string? ChromaLocation { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("chromaSubsampling")]
|
|
||||||
public string? ChromaSubsampling { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("codedHeight")]
|
|
||||||
public int? CodedHeight { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("codedWidth")]
|
|
||||||
public int? CodedWidth { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("colorPrimaries")]
|
|
||||||
public string? ColorPrimaries { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("colorRange")]
|
|
||||||
public string? ColorRange { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("colorSpace")]
|
|
||||||
public string? ColorSpace { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("colorTrc")]
|
|
||||||
public string? ColorTrc { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("frameRate")]
|
|
||||||
public int? FrameRate { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("hasScalingMatrix")]
|
|
||||||
public bool? HasScalingMatrix { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("height")]
|
|
||||||
public int? Height { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("level")]
|
|
||||||
public int? Level { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("profile")]
|
|
||||||
public string? Profile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("refFrames")]
|
|
||||||
public int? RefFrames { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("scanType")]
|
|
||||||
public string? ScanType { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("streamIdentifier")]
|
|
||||||
public string? StreamIdentifier { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("width")]
|
|
||||||
public int? Width { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("displayTitle")]
|
|
||||||
public string? DisplayTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("extendedDisplayTitle")]
|
|
||||||
public string? ExtendedDisplayTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("selected")]
|
|
||||||
public bool? Selected { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("channels")]
|
|
||||||
public int? Channels { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("language")]
|
|
||||||
public string? Language { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("languageTag")]
|
|
||||||
public string? LanguageTag { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("languageCode")]
|
|
||||||
public string? LanguageCode { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("samplingRate")]
|
|
||||||
public int? SamplingRate { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost when
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
#nullable enable
|
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
public class GetMetaDataByRatingKeyWriter
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public int? Id { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("filter")]
|
|
||||||
public string? Filter { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("tag")]
|
|
||||||
public string? Tag { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("tagKey")]
|
|
||||||
public string? TagKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
|
||||||
public string? Thumb { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public double PlaylistID { get; set; } = default!;
|
public double PlaylistID { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public long? SectionID { get; set; }
|
public long? SectionID { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
|
|||||||
@@ -87,18 +87,33 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("tagline")]
|
[JsonProperty("tagline")]
|
||||||
public string? Tagline { get; set; }
|
public string? Tagline { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("flattenSeasons")]
|
[JsonProperty("flattenSeasons")]
|
||||||
public FlattenSeasons? FlattenSeasons { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.FlattenSeasons.False;
|
public FlattenSeasons? FlattenSeasons { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show<br/>
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("episodeSort")]
|
||||||
|
public EpisodeSort? EpisodeSort { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("enableCreditsMarkerGeneration")]
|
||||||
|
public EnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates the episode ordering for the show.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// None = Library default,<br/>
|
/// None = Library default,<br/>
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
/// tmdbAiring = The Movie Database (Aired),<br/>
|
||||||
/// tvdbAiring = TheTVDB (Aired),<br/>
|
/// aired = TheTVDB (Aired),<br/>
|
||||||
/// tvdbDvd = TheTVDB (DVD),<br/>
|
/// dvd = TheTVDB (DVD),<br/>
|
||||||
/// tvdbAbsolute = TheTVDB (Absolute)).<br/>
|
/// absolute = TheTVDB (Absolute)).<br/>
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public long? SectionID { get; set; }
|
public long? SectionID { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
/// </summary>
|
||||||
|
public enum GetSearchAllLibrariesEnableCreditsMarkerGeneration
|
||||||
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
|
[JsonProperty("0")]
|
||||||
|
Disabled,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GetSearchAllLibrariesEnableCreditsMarkerGenerationExtension
|
||||||
|
{
|
||||||
|
public static string Value(this GetSearchAllLibrariesEnableCreditsMarkerGeneration value)
|
||||||
|
{
|
||||||
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetSearchAllLibrariesEnableCreditsMarkerGeneration ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(GetSearchAllLibrariesEnableCreditsMarkerGeneration).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is GetSearchAllLibrariesEnableCreditsMarkerGeneration)
|
||||||
|
{
|
||||||
|
return (GetSearchAllLibrariesEnableCreditsMarkerGeneration)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesEnableCreditsMarkerGeneration");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost when
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
#nullable enable
|
||||||
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
/// </summary>
|
||||||
|
public enum GetSearchAllLibrariesEpisodeSort
|
||||||
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
|
[JsonProperty("0")]
|
||||||
|
OldestFirst,
|
||||||
|
[JsonProperty("1")]
|
||||||
|
NewestFirst,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GetSearchAllLibrariesEpisodeSortExtension
|
||||||
|
{
|
||||||
|
public static string Value(this GetSearchAllLibrariesEpisodeSort value)
|
||||||
|
{
|
||||||
|
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetSearchAllLibrariesEpisodeSort ToEnum(this string value)
|
||||||
|
{
|
||||||
|
foreach(var field in typeof(GetSearchAllLibrariesEpisodeSort).GetFields())
|
||||||
|
{
|
||||||
|
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||||
|
if (attributes.Length == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||||
|
if (attribute != null && attribute.PropertyName == value)
|
||||||
|
{
|
||||||
|
var enumVal = field.GetValue(null);
|
||||||
|
|
||||||
|
if (enumVal is GetSearchAllLibrariesEpisodeSort)
|
||||||
|
{
|
||||||
|
return (GetSearchAllLibrariesEpisodeSort)enumVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesEpisodeSort");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -13,12 +13,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
/// </summary>
|
||||||
public enum GetSearchAllLibrariesFlattenSeasons
|
public enum GetSearchAllLibrariesFlattenSeasons
|
||||||
{
|
{
|
||||||
|
[JsonProperty("-1")]
|
||||||
|
LibraryDefault,
|
||||||
[JsonProperty("0")]
|
[JsonProperty("0")]
|
||||||
False,
|
Hide,
|
||||||
[JsonProperty("1")]
|
[JsonProperty("1")]
|
||||||
True,
|
Show,
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GetSearchAllLibrariesFlattenSeasonsExtension
|
public static class GetSearchAllLibrariesFlattenSeasonsExtension
|
||||||
|
|||||||
@@ -87,18 +87,33 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("tagline")]
|
[JsonProperty("tagline")]
|
||||||
public string? Tagline { get; set; }
|
public string? Tagline { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("flattenSeasons")]
|
[JsonProperty("flattenSeasons")]
|
||||||
public GetSearchAllLibrariesFlattenSeasons? FlattenSeasons { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetSearchAllLibrariesFlattenSeasons.False;
|
public GetSearchAllLibrariesFlattenSeasons? FlattenSeasons { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show<br/>
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("episodeSort")]
|
||||||
|
public GetSearchAllLibrariesEpisodeSort? EpisodeSort { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("enableCreditsMarkerGeneration")]
|
||||||
|
public GetSearchAllLibrariesEnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setting that indicates the episode ordering for the show.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// None = Library default,<br/>
|
/// None = Library default,<br/>
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
/// tmdbAiring = The Movie Database (Aired),<br/>
|
||||||
/// tvdbAiring = TheTVDB (Aired),<br/>
|
/// aired = TheTVDB (Aired),<br/>
|
||||||
/// tvdbDvd = TheTVDB (DVD),<br/>
|
/// dvd = TheTVDB (DVD),<br/>
|
||||||
/// tvdbAbsolute = TheTVDB (Absolute)).<br/>
|
/// absolute = TheTVDB (Absolute)).<br/>
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show<br/>
|
/// Setting that indicates the episode ordering for the show.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// None = Library default,<br/>
|
/// None = Library default,<br/>
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
/// tmdbAiring = The Movie Database (Aired),<br/>
|
||||||
/// tvdbAiring = TheTVDB (Aired),<br/>
|
/// aired = TheTVDB (Aired),<br/>
|
||||||
/// tvdbDvd = TheTVDB (DVD),<br/>
|
/// dvd = TheTVDB (DVD),<br/>
|
||||||
/// tvdbAbsolute = TheTVDB (Absolute)).<br/>
|
/// absolute = TheTVDB (Absolute)).<br/>
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -31,11 +31,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
None,
|
None,
|
||||||
[JsonProperty("tmdbAiring")]
|
[JsonProperty("tmdbAiring")]
|
||||||
TmdbAiring,
|
TmdbAiring,
|
||||||
[JsonProperty("tvdbAiring")]
|
[JsonProperty("aired")]
|
||||||
TvdbAiring,
|
TvdbAired,
|
||||||
[JsonProperty("tvdbDvd")]
|
[JsonProperty("dvd")]
|
||||||
TvdbDvd,
|
TvdbDvd,
|
||||||
[JsonProperty("tvdbAbsolute")]
|
[JsonProperty("absolute")]
|
||||||
TvdbAbsolute,
|
TvdbAbsolute,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public int SectionKey { get; set; } = default!;
|
public int SectionKey { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media to retrieve.<br/>
|
/// The type of media to retrieve or filter by.<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 1 = movie<br/>
|
/// 1 = movie<br/>
|
||||||
|
|||||||
@@ -112,6 +112,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public List<GetTopWatchedContentRole>? Role { get; set; }
|
public List<GetTopWatchedContentRole>? Role { get; set; }
|
||||||
|
|
||||||
[JsonProperty("User")]
|
[JsonProperty("User")]
|
||||||
public List<User>? User { get; set; }
|
public List<GetTopWatchedContentUser>? User { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user