mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.4
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ generation:
|
|||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
csharp:
|
csharp:
|
||||||
version: 0.14.1
|
version: 0.14.2
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.513.2
|
speakeasyVersion: 1.513.4
|
||||||
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:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
|
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
|
||||||
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
|
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1741306956
|
- speakeasy-sdk-regen-1741479619
|
||||||
targets:
|
targets:
|
||||||
plexcsharp:
|
plexcsharp:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:bf7001af017ce5072c503bfbaf60793f94549163b517489dc53e4f7b685659c0
|
sourceRevisionDigest: sha256:2066ba94b55e21d651c79003e3cf402fb77c52a0969fc52310b3383fbed038f4
|
||||||
sourceBlobDigest: sha256:ed2b29043c84f32d2efa92a126083fd9a81644a7ce9c6ac86d9aeb3493cbd6f8
|
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351
|
||||||
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
||||||
codeSamplesRevisionDigest: sha256:f8a84c2b588d4d3575642d7bc169f3d4fd9dc628300661f53492861e41d40b15
|
codeSamplesRevisionDigest: sha256:6c2afa1814b37e276f0e8369b50baff64065a76786acbe0a3843972f1f3f60c4
|
||||||
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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -269,16 +269,6 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<GetTopWatchedContentResponse> GetTopWatchedContentAsync(GetTopWatchedContentQueryParamType type, long? includeGuids = null);
|
Task<GetTopWatchedContentResponse> GetTopWatchedContentAsync(GetTopWatchedContentQueryParamType type, long? includeGuids = null);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Get On Deck
|
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
/// This endpoint will return the on deck content.<br/>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
|
||||||
Task<GetOnDeckResponse> GetOnDeckAsync();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -292,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
@@ -1934,106 +1924,5 @@ 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<GetOnDeckResponse> GetOnDeckAsync()
|
|
||||||
{
|
|
||||||
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
|
|
||||||
|
|
||||||
var urlString = baseUrl + "/library/onDeck";
|
|
||||||
|
|
||||||
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("getOnDeck", 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 >= 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<GetOnDeckResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
|
||||||
var response = new GetOnDeckResponse()
|
|
||||||
{
|
|
||||||
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<GetOnDeckBadRequest>(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<GetOnDeckUnauthorized>(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 >= 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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>true</IsPackable>
|
<IsPackable>true</IsPackable>
|
||||||
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
||||||
<Version>0.14.1</Version>
|
<Version>0.14.2</Version>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Authors>LukeHagar</Authors>
|
<Authors>LukeHagar</Authors>
|
||||||
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
||||||
|
|||||||
@@ -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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -1,34 +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.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 GetOnDeckBadRequest : Exception
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
|
||||||
public List<GetOnDeckErrors>? Errors { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("-")]
|
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +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.Errors
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
public class GetOnDeckErrors
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("code")]
|
|
||||||
public int? Code { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("message")]
|
|
||||||
public string? Message { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("status")]
|
|
||||||
public int? Status { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +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.Errors
|
|
||||||
{
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
public class GetOnDeckLibraryErrors
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("code")]
|
|
||||||
public int? Code { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("message")]
|
|
||||||
public string? Message { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("status")]
|
|
||||||
public int? Status { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +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.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 GetOnDeckUnauthorized : Exception
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
|
||||||
public List<GetOnDeckLibraryErrors>? Errors { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("-")]
|
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -15,7 +15,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Collection
|
public class Collection
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The user-made collection this media item belongs to
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,10 +12,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter query string for country media items.
|
||||||
|
/// </summary>
|
||||||
public class Country
|
public class Country
|
||||||
{
|
{
|
||||||
|
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The country of origin of this media item
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string? Filter { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Director
|
public class Director
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The role of Director
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,10 +12,26 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter query string for similar items.
|
||||||
|
/// </summary>
|
||||||
public class Genre
|
public class Genre
|
||||||
{
|
{
|
||||||
|
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The genre name of this media-item<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The country of origin of this media item
|
/// The genre name of this media-item<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string Tag { get; set; } = default!;
|
public string Tag { get; set; } = default!;
|
||||||
|
|||||||
@@ -12,18 +12,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetLibraryItemsMediaGuid
|
public class GetAllMediaLibraryGuids
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Can be one of the following formats:<br/>
|
/// The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337<br/>
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/>
|
|
||||||
///
|
///
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public string Id { get; set; } = default!;
|
public string? Id { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -107,7 +107,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// Indicates whether voice activity is detected.
|
/// Indicates whether voice activity is detected.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("hasVoiceActivity")]
|
[JsonProperty("hasVoiceActivity")]
|
||||||
public bool HasVoiceActivity { get; set; } = default!;
|
public bool? HasVoiceActivity { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
/// The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||||
@@ -128,6 +128,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// An array of parts for this media item.
|
/// An array of parts for this media item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("Part")]
|
[JsonProperty("Part")]
|
||||||
public List<GetAllMediaLibraryPart> Part { get; set; } = default!;
|
public List<GetAllMediaLibraryPart>? Part { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -98,7 +98,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// The release year of the media item.
|
/// The release year of the media item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("year")]
|
[JsonProperty("year")]
|
||||||
public int Year { get; set; } = default!;
|
public int? Year { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A brief tagline for the media item.
|
/// A brief tagline for the media item.
|
||||||
@@ -368,7 +368,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public List<GetAllMediaLibraryRole>? Role { get; set; }
|
public List<GetAllMediaLibraryRole>? Role { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Guid")]
|
[JsonProperty("Guid")]
|
||||||
public List<Guids>? Guids { get; set; }
|
public List<GetAllMediaLibraryGuids>? Guids { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Collection")]
|
[JsonProperty("Collection")]
|
||||||
public List<GetAllMediaLibraryCollection>? Collection { get; set; }
|
public List<GetAllMediaLibraryCollection>? Collection { get; set; }
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
private GetAllMediaLibraryOptimizedForStreamingType(string value) { Value = value; }
|
private GetAllMediaLibraryOptimizedForStreamingType(string value) { Value = value; }
|
||||||
|
|
||||||
public string Value { get; private set; }
|
public string Value { get; private set; }
|
||||||
public static GetAllMediaLibraryOptimizedForStreamingType One { get { return new GetAllMediaLibraryOptimizedForStreamingType("1"); } }
|
public static GetAllMediaLibraryOptimizedForStreamingType OptimizedForStreaming1 { get { return new GetAllMediaLibraryOptimizedForStreamingType("optimizedForStreaming_1"); } }
|
||||||
|
|
||||||
public static GetAllMediaLibraryOptimizedForStreamingType Boolean { get { return new GetAllMediaLibraryOptimizedForStreamingType("boolean"); } }
|
public static GetAllMediaLibraryOptimizedForStreamingType Boolean { get { return new GetAllMediaLibraryOptimizedForStreamingType("boolean"); } }
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public static implicit operator String(GetAllMediaLibraryOptimizedForStreamingType v) { return v.Value; }
|
public static implicit operator String(GetAllMediaLibraryOptimizedForStreamingType v) { return v.Value; }
|
||||||
public static GetAllMediaLibraryOptimizedForStreamingType FromString(string v) {
|
public static GetAllMediaLibraryOptimizedForStreamingType FromString(string v) {
|
||||||
switch(v) {
|
switch(v) {
|
||||||
case "1": return One;
|
case "optimizedForStreaming_1": return OptimizedForStreaming1;
|
||||||
case "boolean": return Boolean;
|
case "boolean": return Boolean;
|
||||||
case "null": return Null;
|
case "null": return Null;
|
||||||
default: throw new ArgumentException("Invalid value for GetAllMediaLibraryOptimizedForStreamingType");
|
default: throw new ArgumentException("Invalid value for GetAllMediaLibraryOptimizedForStreamingType");
|
||||||
@@ -66,7 +66,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[SpeakeasyMetadata("form:explode=true")]
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
public One? One { get; set; }
|
public OptimizedForStreaming1? OptimizedForStreaming1 { get; set; }
|
||||||
|
|
||||||
[SpeakeasyMetadata("form:explode=true")]
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
public bool? Boolean { get; set; }
|
public bool? Boolean { get; set; }
|
||||||
@@ -74,11 +74,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public GetAllMediaLibraryOptimizedForStreamingType Type { get; set; }
|
public GetAllMediaLibraryOptimizedForStreamingType Type { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public static GetAllMediaLibraryOptimizedForStreaming CreateOne(One one) {
|
public static GetAllMediaLibraryOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1) {
|
||||||
GetAllMediaLibraryOptimizedForStreamingType typ = GetAllMediaLibraryOptimizedForStreamingType.One;
|
GetAllMediaLibraryOptimizedForStreamingType typ = GetAllMediaLibraryOptimizedForStreamingType.OptimizedForStreaming1;
|
||||||
|
|
||||||
GetAllMediaLibraryOptimizedForStreaming res = new GetAllMediaLibraryOptimizedForStreaming(typ);
|
GetAllMediaLibraryOptimizedForStreaming res = new GetAllMediaLibraryOptimizedForStreaming(typ);
|
||||||
res.One = one;
|
res.OptimizedForStreaming1 = optimizedForStreaming1;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,14 +114,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return new GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType.One)
|
return new GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType.OptimizedForStreaming1)
|
||||||
{
|
{
|
||||||
One = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<One>(json)
|
OptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<OptimizedForStreaming1>(json)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||||
{
|
{
|
||||||
fallbackCandidates.Add((typeof(One), new GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType.One), "One"));
|
fallbackCandidates.Add((typeof(OptimizedForStreaming1), new GetAllMediaLibraryOptimizedForStreaming(GetAllMediaLibraryOptimizedForStreamingType.OptimizedForStreaming1), "OptimizedForStreaming1"));
|
||||||
}
|
}
|
||||||
catch (ResponseBodyDeserializer.DeserializationException)
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
{
|
{
|
||||||
@@ -180,9 +180,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
writer.WriteRawValue("null");
|
writer.WriteRawValue("null");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.One != null)
|
if (res.OptimizedForStreaming1 != null)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue(Utilities.SerializeJSON(res.One));
|
writer.WriteRawValue(Utilities.SerializeJSON(res.OptimizedForStreaming1));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.Boolean != null)
|
if (res.Boolean != null)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The name of the actor for this role
|
/// The display tag for the actor (typically the actor's name).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string Tag { get; set; } = default!;
|
public string Tag { get; set; } = default!;
|
||||||
|
|||||||
@@ -55,19 +55,19 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// Language of the stream.
|
/// Language of the stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("language")]
|
[JsonProperty("language")]
|
||||||
public string Language { get; set; } = default!;
|
public string? Language { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Language tag (e.g., en).
|
/// Language tag (e.g., en).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("languageTag")]
|
[JsonProperty("languageTag")]
|
||||||
public string LanguageTag { get; set; } = default!;
|
public string? LanguageTag { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ISO language code.
|
/// ISO language code.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("languageCode")]
|
[JsonProperty("languageCode")]
|
||||||
public string LanguageCode { get; set; } = default!;
|
public string? LanguageCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates whether header compression is enabled.
|
/// Indicates whether header compression is enabled.
|
||||||
@@ -153,6 +153,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("codedWidth")]
|
[JsonProperty("codedWidth")]
|
||||||
public int? CodedWidth { get; set; }
|
public int? CodedWidth { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("closedCaptions")]
|
||||||
|
public bool? ClosedCaptions { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color primaries used.
|
/// Color primaries used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -213,6 +216,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("scanType")]
|
[JsonProperty("scanType")]
|
||||||
public string? ScanType { get; set; }
|
public string? ScanType { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("embeddedInVideo")]
|
||||||
|
public string? EmbeddedInVideo { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of reference frames.
|
/// Number of reference frames.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -1,60 +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;
|
|
||||||
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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,62 +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;
|
|
||||||
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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,62 +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;
|
|
||||||
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
|
|
||||||
{
|
|
||||||
[JsonProperty("-1")]
|
|
||||||
LibraryDefault,
|
|
||||||
[JsonProperty("0")]
|
|
||||||
Hide,
|
|
||||||
[JsonProperty("1")]
|
|
||||||
Show,
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class GetLibraryItemsFlattenSeasonsExtension
|
|
||||||
{
|
|
||||||
public static string Value(this GetLibraryItemsFlattenSeasons value)
|
|
||||||
{
|
|
||||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static GetLibraryItemsFlattenSeasons ToEnum(this string value)
|
|
||||||
{
|
|
||||||
foreach(var field in typeof(GetLibraryItemsFlattenSeasons).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 GetLibraryItemsFlattenSeasons)
|
|
||||||
{
|
|
||||||
return (GetLibraryItemsFlattenSeasons)enumVal;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsFlattenSeasons");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -91,19 +91,19 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("flattenSeasons")]
|
[JsonProperty("flattenSeasons")]
|
||||||
public GetLibraryItemsFlattenSeasons? FlattenSeasons { get; set; }
|
public FlattenSeasons? FlattenSeasons { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("episodeSort")]
|
[JsonProperty("episodeSort")]
|
||||||
public GetLibraryItemsEpisodeSort? EpisodeSort { get; set; }
|
public EpisodeSort? EpisodeSort { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("enableCreditsMarkerGeneration")]
|
[JsonProperty("enableCreditsMarkerGeneration")]
|
||||||
public GetLibraryItemsEnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
public EnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates the episode ordering for the show.<br/>
|
/// Setting that indicates the episode ordering for the show.<br/>
|
||||||
@@ -118,7 +118,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("showOrdering")]
|
[JsonProperty("showOrdering")]
|
||||||
public GetLibraryItemsShowOrdering? ShowOrdering { get; set; }
|
public ShowOrdering? ShowOrdering { get; set; }
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
[JsonProperty("thumb")]
|
||||||
public string? Thumb { get; set; }
|
public string? Thumb { get; set; }
|
||||||
@@ -225,13 +225,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("Guid")]
|
[JsonProperty("Guid")]
|
||||||
public List<GetLibraryItemsMediaGuid>? MediaGuid { get; set; }
|
public List<MediaGuid>? MediaGuid { get; set; }
|
||||||
|
|
||||||
[JsonProperty("UltraBlurColors")]
|
[JsonProperty("UltraBlurColors")]
|
||||||
public GetLibraryItemsUltraBlurColors? UltraBlurColors { get; set; }
|
public GetLibraryItemsUltraBlurColors? UltraBlurColors { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Rating")]
|
[JsonProperty("Rating")]
|
||||||
public List<GetLibraryItemsMetaDataRating>? MetaDataRating { get; set; }
|
public List<MetaDataRating>? MetaDataRating { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Image")]
|
[JsonProperty("Image")]
|
||||||
public List<GetLibraryItemsImage>? Image { get; set; }
|
public List<GetLibraryItemsImage>? Image { get; set; }
|
||||||
|
|||||||
@@ -1,75 +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;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Setting that indicates the episode ordering for the show.<br/>
|
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
/// None = Library default,<br/>
|
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
|
||||||
/// aired = TheTVDB (Aired),<br/>
|
|
||||||
/// dvd = TheTVDB (DVD),<br/>
|
|
||||||
/// absolute = TheTVDB (Absolute)).<br/>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
|
||||||
public enum GetLibraryItemsShowOrdering
|
|
||||||
{
|
|
||||||
[JsonProperty("None")]
|
|
||||||
None,
|
|
||||||
[JsonProperty("tmdbAiring")]
|
|
||||||
TmdbAiring,
|
|
||||||
[JsonProperty("aired")]
|
|
||||||
TvdbAired,
|
|
||||||
[JsonProperty("dvd")]
|
|
||||||
TvdbDvd,
|
|
||||||
[JsonProperty("absolute")]
|
|
||||||
TvdbAbsolute,
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class GetLibraryItemsShowOrderingExtension
|
|
||||||
{
|
|
||||||
public static string Value(this GetLibraryItemsShowOrdering value)
|
|
||||||
{
|
|
||||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static GetLibraryItemsShowOrdering ToEnum(this string value)
|
|
||||||
{
|
|
||||||
foreach(var field in typeof(GetLibraryItemsShowOrdering).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 GetLibraryItemsShowOrdering)
|
|
||||||
{
|
|
||||||
return (GetLibraryItemsShowOrdering)enumVal;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsShowOrdering");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
private GetMediaMetaDataLibraryOptimizedForStreamingType(string value) { Value = value; }
|
private GetMediaMetaDataLibraryOptimizedForStreamingType(string value) { Value = value; }
|
||||||
|
|
||||||
public string Value { get; private set; }
|
public string Value { get; private set; }
|
||||||
public static GetMediaMetaDataLibraryOptimizedForStreamingType GetMediaMetaDataOptimizedForStreaming1 { get { return new GetMediaMetaDataLibraryOptimizedForStreamingType("get-media-meta-data_optimizedForStreaming_1"); } }
|
public static GetMediaMetaDataLibraryOptimizedForStreamingType GetMediaMetaDataOptimizedForStreamingLibrary1 { get { return new GetMediaMetaDataLibraryOptimizedForStreamingType("get-media-meta-data_optimizedForStreaming_Library_1"); } }
|
||||||
|
|
||||||
public static GetMediaMetaDataLibraryOptimizedForStreamingType Boolean { get { return new GetMediaMetaDataLibraryOptimizedForStreamingType("boolean"); } }
|
public static GetMediaMetaDataLibraryOptimizedForStreamingType Boolean { get { return new GetMediaMetaDataLibraryOptimizedForStreamingType("boolean"); } }
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public static implicit operator String(GetMediaMetaDataLibraryOptimizedForStreamingType v) { return v.Value; }
|
public static implicit operator String(GetMediaMetaDataLibraryOptimizedForStreamingType v) { return v.Value; }
|
||||||
public static GetMediaMetaDataLibraryOptimizedForStreamingType FromString(string v) {
|
public static GetMediaMetaDataLibraryOptimizedForStreamingType FromString(string v) {
|
||||||
switch(v) {
|
switch(v) {
|
||||||
case "get-media-meta-data_optimizedForStreaming_1": return GetMediaMetaDataOptimizedForStreaming1;
|
case "get-media-meta-data_optimizedForStreaming_Library_1": return GetMediaMetaDataOptimizedForStreamingLibrary1;
|
||||||
case "boolean": return Boolean;
|
case "boolean": return Boolean;
|
||||||
case "null": return Null;
|
case "null": return Null;
|
||||||
default: throw new ArgumentException("Invalid value for GetMediaMetaDataLibraryOptimizedForStreamingType");
|
default: throw new ArgumentException("Invalid value for GetMediaMetaDataLibraryOptimizedForStreamingType");
|
||||||
@@ -66,7 +66,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[SpeakeasyMetadata("form:explode=true")]
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
public GetMediaMetaDataOptimizedForStreaming1? GetMediaMetaDataOptimizedForStreaming1 { get; set; }
|
public GetMediaMetaDataOptimizedForStreamingLibrary1? GetMediaMetaDataOptimizedForStreamingLibrary1 { get; set; }
|
||||||
|
|
||||||
[SpeakeasyMetadata("form:explode=true")]
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
public bool? Boolean { get; set; }
|
public bool? Boolean { get; set; }
|
||||||
@@ -74,11 +74,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public GetMediaMetaDataLibraryOptimizedForStreamingType Type { get; set; }
|
public GetMediaMetaDataLibraryOptimizedForStreamingType Type { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateGetMediaMetaDataOptimizedForStreaming1(GetMediaMetaDataOptimizedForStreaming1 getMediaMetaDataOptimizedForStreaming1) {
|
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateGetMediaMetaDataOptimizedForStreamingLibrary1(GetMediaMetaDataOptimizedForStreamingLibrary1 getMediaMetaDataOptimizedForStreamingLibrary1) {
|
||||||
GetMediaMetaDataLibraryOptimizedForStreamingType typ = GetMediaMetaDataLibraryOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreaming1;
|
GetMediaMetaDataLibraryOptimizedForStreamingType typ = GetMediaMetaDataLibraryOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreamingLibrary1;
|
||||||
|
|
||||||
GetMediaMetaDataLibraryOptimizedForStreaming res = new GetMediaMetaDataLibraryOptimizedForStreaming(typ);
|
GetMediaMetaDataLibraryOptimizedForStreaming res = new GetMediaMetaDataLibraryOptimizedForStreaming(typ);
|
||||||
res.GetMediaMetaDataOptimizedForStreaming1 = getMediaMetaDataOptimizedForStreaming1;
|
res.GetMediaMetaDataOptimizedForStreamingLibrary1 = getMediaMetaDataOptimizedForStreamingLibrary1;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,14 +114,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return new GetMediaMetaDataLibraryOptimizedForStreaming(GetMediaMetaDataLibraryOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreaming1)
|
return new GetMediaMetaDataLibraryOptimizedForStreaming(GetMediaMetaDataLibraryOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreamingLibrary1)
|
||||||
{
|
{
|
||||||
GetMediaMetaDataOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetMediaMetaDataOptimizedForStreaming1>(json)
|
GetMediaMetaDataOptimizedForStreamingLibrary1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetMediaMetaDataOptimizedForStreamingLibrary1>(json)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||||
{
|
{
|
||||||
fallbackCandidates.Add((typeof(GetMediaMetaDataOptimizedForStreaming1), new GetMediaMetaDataLibraryOptimizedForStreaming(GetMediaMetaDataLibraryOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreaming1), "GetMediaMetaDataOptimizedForStreaming1"));
|
fallbackCandidates.Add((typeof(GetMediaMetaDataOptimizedForStreamingLibrary1), new GetMediaMetaDataLibraryOptimizedForStreaming(GetMediaMetaDataLibraryOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreamingLibrary1), "GetMediaMetaDataOptimizedForStreamingLibrary1"));
|
||||||
}
|
}
|
||||||
catch (ResponseBodyDeserializer.DeserializationException)
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
{
|
{
|
||||||
@@ -180,9 +180,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
writer.WriteRawValue("null");
|
writer.WriteRawValue("null");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.GetMediaMetaDataOptimizedForStreaming1 != null)
|
if (res.GetMediaMetaDataOptimizedForStreamingLibrary1 != null)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue(Utilities.SerializeJSON(res.GetMediaMetaDataOptimizedForStreaming1));
|
writer.WriteRawValue(Utilities.SerializeJSON(res.GetMediaMetaDataOptimizedForStreamingLibrary1));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.Boolean != null)
|
if (res.Boolean != null)
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// Indicates whether voice activity is detected.
|
/// Indicates whether voice activity is detected.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("hasVoiceActivity")]
|
[JsonProperty("hasVoiceActivity")]
|
||||||
public bool HasVoiceActivity { get; set; } = default!;
|
public bool? HasVoiceActivity { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
/// The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||||
@@ -128,6 +128,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// An array of parts for this media item.
|
/// An array of parts for this media item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("Part")]
|
[JsonProperty("Part")]
|
||||||
public List<GetMediaMetaDataPart> Part { get; set; } = default!;
|
public List<GetMediaMetaDataPart>? Part { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -352,13 +352,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// An array of Writer roles.
|
/// An array of Writer roles.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("Producer")]
|
[JsonProperty("Producer")]
|
||||||
public List<Producer>? Producer { get; set; }
|
public List<GetMediaMetaDataProducer>? Producer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An array of similar content objects.
|
/// An array of similar content objects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("Similar")]
|
[JsonProperty("Similar")]
|
||||||
public List<Similar>? Similar { get; set; }
|
public List<GetMediaMetaDataSimilar>? Similar { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An array of location objects.
|
/// An array of location objects.
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
private GetMediaMetaDataOptimizedForStreamingType(string value) { Value = value; }
|
private GetMediaMetaDataOptimizedForStreamingType(string value) { Value = value; }
|
||||||
|
|
||||||
public string Value { get; private set; }
|
public string Value { get; private set; }
|
||||||
public static GetMediaMetaDataOptimizedForStreamingType OptimizedForStreaming1 { get { return new GetMediaMetaDataOptimizedForStreamingType("optimizedForStreaming_1"); } }
|
public static GetMediaMetaDataOptimizedForStreamingType GetMediaMetaDataOptimizedForStreaming1 { get { return new GetMediaMetaDataOptimizedForStreamingType("get-media-meta-data_optimizedForStreaming_1"); } }
|
||||||
|
|
||||||
public static GetMediaMetaDataOptimizedForStreamingType Boolean { get { return new GetMediaMetaDataOptimizedForStreamingType("boolean"); } }
|
public static GetMediaMetaDataOptimizedForStreamingType Boolean { get { return new GetMediaMetaDataOptimizedForStreamingType("boolean"); } }
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public static implicit operator String(GetMediaMetaDataOptimizedForStreamingType v) { return v.Value; }
|
public static implicit operator String(GetMediaMetaDataOptimizedForStreamingType v) { return v.Value; }
|
||||||
public static GetMediaMetaDataOptimizedForStreamingType FromString(string v) {
|
public static GetMediaMetaDataOptimizedForStreamingType FromString(string v) {
|
||||||
switch(v) {
|
switch(v) {
|
||||||
case "optimizedForStreaming_1": return OptimizedForStreaming1;
|
case "get-media-meta-data_optimizedForStreaming_1": return GetMediaMetaDataOptimizedForStreaming1;
|
||||||
case "boolean": return Boolean;
|
case "boolean": return Boolean;
|
||||||
case "null": return Null;
|
case "null": return Null;
|
||||||
default: throw new ArgumentException("Invalid value for GetMediaMetaDataOptimizedForStreamingType");
|
default: throw new ArgumentException("Invalid value for GetMediaMetaDataOptimizedForStreamingType");
|
||||||
@@ -66,7 +66,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[SpeakeasyMetadata("form:explode=true")]
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
public OptimizedForStreaming1? OptimizedForStreaming1 { get; set; }
|
public GetMediaMetaDataOptimizedForStreaming1? GetMediaMetaDataOptimizedForStreaming1 { get; set; }
|
||||||
|
|
||||||
[SpeakeasyMetadata("form:explode=true")]
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
public bool? Boolean { get; set; }
|
public bool? Boolean { get; set; }
|
||||||
@@ -74,11 +74,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public GetMediaMetaDataOptimizedForStreamingType Type { get; set; }
|
public GetMediaMetaDataOptimizedForStreamingType Type { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public static GetMediaMetaDataOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1) {
|
public static GetMediaMetaDataOptimizedForStreaming CreateGetMediaMetaDataOptimizedForStreaming1(GetMediaMetaDataOptimizedForStreaming1 getMediaMetaDataOptimizedForStreaming1) {
|
||||||
GetMediaMetaDataOptimizedForStreamingType typ = GetMediaMetaDataOptimizedForStreamingType.OptimizedForStreaming1;
|
GetMediaMetaDataOptimizedForStreamingType typ = GetMediaMetaDataOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreaming1;
|
||||||
|
|
||||||
GetMediaMetaDataOptimizedForStreaming res = new GetMediaMetaDataOptimizedForStreaming(typ);
|
GetMediaMetaDataOptimizedForStreaming res = new GetMediaMetaDataOptimizedForStreaming(typ);
|
||||||
res.OptimizedForStreaming1 = optimizedForStreaming1;
|
res.GetMediaMetaDataOptimizedForStreaming1 = getMediaMetaDataOptimizedForStreaming1;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,14 +114,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return new GetMediaMetaDataOptimizedForStreaming(GetMediaMetaDataOptimizedForStreamingType.OptimizedForStreaming1)
|
return new GetMediaMetaDataOptimizedForStreaming(GetMediaMetaDataOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreaming1)
|
||||||
{
|
{
|
||||||
OptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<OptimizedForStreaming1>(json)
|
GetMediaMetaDataOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetMediaMetaDataOptimizedForStreaming1>(json)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||||
{
|
{
|
||||||
fallbackCandidates.Add((typeof(OptimizedForStreaming1), new GetMediaMetaDataOptimizedForStreaming(GetMediaMetaDataOptimizedForStreamingType.OptimizedForStreaming1), "OptimizedForStreaming1"));
|
fallbackCandidates.Add((typeof(GetMediaMetaDataOptimizedForStreaming1), new GetMediaMetaDataOptimizedForStreaming(GetMediaMetaDataOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreaming1), "GetMediaMetaDataOptimizedForStreaming1"));
|
||||||
}
|
}
|
||||||
catch (ResponseBodyDeserializer.DeserializationException)
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
{
|
{
|
||||||
@@ -180,9 +180,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
writer.WriteRawValue("null");
|
writer.WriteRawValue("null");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.OptimizedForStreaming1 != null)
|
if (res.GetMediaMetaDataOptimizedForStreaming1 != null)
|
||||||
{
|
{
|
||||||
writer.WriteRawValue(Utilities.SerializeJSON(res.OptimizedForStreaming1));
|
writer.WriteRawValue(Utilities.SerializeJSON(res.GetMediaMetaDataOptimizedForStreaming1));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.Boolean != null)
|
if (res.Boolean != null)
|
||||||
|
|||||||
@@ -10,12 +10,11 @@
|
|||||||
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 GetOnDeckGuids
|
public enum GetMediaMetaDataOptimizedForStreamingLibrary1
|
||||||
{
|
{
|
||||||
|
Zero = 0,
|
||||||
|
One = 1,
|
||||||
|
}
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public string? Id { 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 GetMediaMetaDataProducer
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,32 +9,28 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
{
|
{
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using System;
|
using Newtonsoft.Json;
|
||||||
using System.Net.Http;
|
|
||||||
|
|
||||||
public class GetOnDeckResponse
|
public class GetMediaMetaDataSimilar
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// HTTP response content type for this operation
|
/// The unique similar item identifier.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? ContentType { get; set; } = default!;
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// HTTP response status code for this operation
|
/// The filter string for similar items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int StatusCode { get; set; } = default!;
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// The tag or title of the similar content.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
[JsonProperty("tag")]
|
||||||
|
public string Tag { get; set; } = default!;
|
||||||
/// <summary>
|
|
||||||
/// The on Deck content
|
|
||||||
/// </summary>
|
|
||||||
public GetOnDeckResponseBody? Object { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -55,19 +55,19 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// Language of the stream.
|
/// Language of the stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("language")]
|
[JsonProperty("language")]
|
||||||
public string Language { get; set; } = default!;
|
public string? Language { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Language tag (e.g., en).
|
/// Language tag (e.g., en).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("languageTag")]
|
[JsonProperty("languageTag")]
|
||||||
public string LanguageTag { get; set; } = default!;
|
public string? LanguageTag { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ISO language code.
|
/// ISO language code.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("languageCode")]
|
[JsonProperty("languageCode")]
|
||||||
public string LanguageCode { get; set; } = default!;
|
public string? LanguageCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates whether header compression is enabled.
|
/// Indicates whether header compression is enabled.
|
||||||
@@ -153,6 +153,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("codedWidth")]
|
[JsonProperty("codedWidth")]
|
||||||
public int? CodedWidth { get; set; }
|
public int? CodedWidth { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("closedCaptions")]
|
||||||
|
public bool? ClosedCaptions { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color primaries used.
|
/// Color primaries used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -213,6 +216,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("scanType")]
|
[JsonProperty("scanType")]
|
||||||
public string? ScanType { get; set; }
|
public string? ScanType { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("embeddedInVideo")]
|
||||||
|
public string? EmbeddedInVideo { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of reference frames.
|
/// Number of reference frames.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -1,65 +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 GetOnDeckMedia
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public double? Id { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
|
||||||
public double? Duration { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("bitrate")]
|
|
||||||
public double? Bitrate { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("width")]
|
|
||||||
public double? Width { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("height")]
|
|
||||||
public double? Height { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("aspectRatio")]
|
|
||||||
public double? AspectRatio { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audioChannels")]
|
|
||||||
public double? 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("audioProfile")]
|
|
||||||
public string? AudioProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("videoProfile")]
|
|
||||||
public string? VideoProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Part")]
|
|
||||||
public List<GetOnDeckPart>? Part { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,41 +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 GetOnDeckMediaContainer
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("size")]
|
|
||||||
public double? Size { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("allowSync")]
|
|
||||||
public bool? AllowSync { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("identifier")]
|
|
||||||
public string? Identifier { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("mediaTagPrefix")]
|
|
||||||
public string? MediaTagPrefix { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("mediaTagVersion")]
|
|
||||||
public double? MediaTagVersion { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("mixedParents")]
|
|
||||||
public bool? MixedParents { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Metadata")]
|
|
||||||
public List<GetOnDeckMetadata>? Metadata { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,129 +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;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
public class GetOnDeckMetadata
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("allowSync")]
|
|
||||||
public bool? AllowSync { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionID")]
|
|
||||||
public double? LibrarySectionID { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionTitle")]
|
|
||||||
public string? LibrarySectionTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionUUID")]
|
|
||||||
public string? LibrarySectionUUID { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("ratingKey")]
|
|
||||||
public double? RatingKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("key")]
|
|
||||||
public string? Key { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentRatingKey")]
|
|
||||||
public double? ParentRatingKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentRatingKey")]
|
|
||||||
public double? GrandparentRatingKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("guid")]
|
|
||||||
public string? Guid { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentGuid")]
|
|
||||||
public string? ParentGuid { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentGuid")]
|
|
||||||
public string? GrandparentGuid { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("type")]
|
|
||||||
public string? Type { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("title")]
|
|
||||||
public string? Title { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentKey")]
|
|
||||||
public string? GrandparentKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentKey")]
|
|
||||||
public string? ParentKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionKey")]
|
|
||||||
public string? LibrarySectionKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentTitle")]
|
|
||||||
public string? GrandparentTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentTitle")]
|
|
||||||
public string? ParentTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("contentRating")]
|
|
||||||
public string? ContentRating { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("summary")]
|
|
||||||
public string? Summary { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("index")]
|
|
||||||
public double? Index { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentIndex")]
|
|
||||||
public double? ParentIndex { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("lastViewedAt")]
|
|
||||||
public double? LastViewedAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("year")]
|
|
||||||
public double? Year { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
|
||||||
public string? Thumb { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("art")]
|
|
||||||
public string? Art { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentThumb")]
|
|
||||||
public string? ParentThumb { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentThumb")]
|
|
||||||
public string? GrandparentThumb { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentArt")]
|
|
||||||
public string? GrandparentArt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentTheme")]
|
|
||||||
public string? GrandparentTheme { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
|
||||||
public double? Duration { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("originallyAvailableAt")]
|
|
||||||
public DateTime? OriginallyAvailableAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("addedAt")]
|
|
||||||
public double? AddedAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("updatedAt")]
|
|
||||||
public double? UpdatedAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Media")]
|
|
||||||
public List<GetOnDeckMedia>? Media { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Guid")]
|
|
||||||
public List<GetOnDeckGuids>? Guids { 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 GetOnDeckPart
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public double? Id { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("key")]
|
|
||||||
public string? Key { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
|
||||||
public double? Duration { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("file")]
|
|
||||||
public string? File { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("size")]
|
|
||||||
public double? Size { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("audioProfile")]
|
|
||||||
public string? AudioProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("container")]
|
|
||||||
public string? Container { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("videoProfile")]
|
|
||||||
public string? VideoProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Stream")]
|
|
||||||
public List<GetOnDeckStream>? Stream { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,87 +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 GetOnDeckStream
|
|
||||||
{
|
|
||||||
|
|
||||||
[JsonProperty("id")]
|
|
||||||
public double? Id { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("streamType")]
|
|
||||||
public double? StreamType { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("default")]
|
|
||||||
public bool? Default { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("codec")]
|
|
||||||
public string? Codec { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("index")]
|
|
||||||
public double? Index { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("bitrate")]
|
|
||||||
public double? Bitrate { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("language")]
|
|
||||||
public string? Language { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("languageTag")]
|
|
||||||
public string? LanguageTag { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("languageCode")]
|
|
||||||
public string? LanguageCode { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("bitDepth")]
|
|
||||||
public double? BitDepth { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("chromaLocation")]
|
|
||||||
public string? ChromaLocation { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("chromaSubsampling")]
|
|
||||||
public string? ChromaSubsampling { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("codedHeight")]
|
|
||||||
public double? CodedHeight { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("codedWidth")]
|
|
||||||
public double? CodedWidth { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("colorRange")]
|
|
||||||
public string? ColorRange { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("frameRate")]
|
|
||||||
public double? FrameRate { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("height")]
|
|
||||||
public double? Height { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("level")]
|
|
||||||
public double? Level { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("profile")]
|
|
||||||
public string? Profile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("refFrames")]
|
|
||||||
public double? RefFrames { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("width")]
|
|
||||||
public double? Width { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("displayTitle")]
|
|
||||||
public string? DisplayTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("extendedDisplayTitle")]
|
|
||||||
public string? ExtendedDisplayTitle { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -17,20 +17,35 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class GetRecentlyAddedMediaContainer
|
public class GetRecentlyAddedMediaContainer
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of media items returned in this response.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("size")]
|
[JsonProperty("size")]
|
||||||
public long Size { get; set; } = default!;
|
public int Size { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("offset")]
|
|
||||||
public int? Offset { get; set; }
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Total number of media items in the library.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("totalSize")]
|
[JsonProperty("totalSize")]
|
||||||
public int? TotalSize { get; set; }
|
public int TotalSize { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("identifier")]
|
/// <summary>
|
||||||
public string? Identifier { get; set; }
|
/// Offset value for pagination.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("offset")]
|
||||||
|
public long Offset { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether syncing is allowed.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("allowSync")]
|
[JsonProperty("allowSync")]
|
||||||
public bool? AllowSync { get; set; }
|
public bool AllowSync { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An plugin identifier for the media container.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("identifier")]
|
||||||
|
public string Identifier { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/>
|
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/>
|
||||||
@@ -42,6 +57,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("Meta")]
|
[JsonProperty("Meta")]
|
||||||
public Meta? Meta { get; set; }
|
public Meta? Meta { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of metadata items.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("Metadata")]
|
[JsonProperty("Metadata")]
|
||||||
public List<GetRecentlyAddedMetadata>? Metadata { get; set; }
|
public List<GetRecentlyAddedMetadata>? Metadata { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,131 +15,339 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using NodaTime;
|
using NodaTime;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unknown<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
public class GetRecentlyAddedMetadata
|
public class GetRecentlyAddedMetadata
|
||||||
{
|
{
|
||||||
|
|
||||||
|
[JsonProperty("addedAt")]
|
||||||
|
public long AddedAt { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The rating key (Media ID) of this media item.<br/>
|
/// The art image URL for the media item.
|
||||||
///
|
/// </summary>
|
||||||
/// <remarks>
|
[JsonProperty("art")]
|
||||||
/// Note: This is always an integer, but is represented as a string in the API.<br/>
|
public string Art { get; set; } = default!;
|
||||||
///
|
|
||||||
/// </remarks>
|
/// <summary>
|
||||||
|
/// The URL for the audience rating image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audienceRatingImage")]
|
||||||
|
public string? AudienceRatingImage { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The audience rating for the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audienceRating")]
|
||||||
|
public double AudienceRating { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The source from which chapter data is derived.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("chapterSource")]
|
||||||
|
public string? ChapterSource { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of child items associated with this media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("childCount")]
|
||||||
|
public int ChildCount { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The content rating for the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("contentRating")]
|
||||||
|
public string? ContentRating { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The accuracy of the creation timestamp. This value indicates the format(s) provided (for example, 'epoch,local' means both epoch and local time formats are available).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("createdAtAccuracy")]
|
||||||
|
public string? CreatedAtAccuracy { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("createdAtTZOffset")]
|
||||||
|
public string? CreatedAtTZOffset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The duration of the media item in milliseconds.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("duration")]
|
||||||
|
public int Duration { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The art URL for the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentArt")]
|
||||||
|
public string? GrandparentArt { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The GUID of the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentGuid")]
|
||||||
|
public string? GrandparentGuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The key of the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentKey")]
|
||||||
|
public string? GrandparentKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The rating key of the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentRatingKey")]
|
||||||
|
public string? GrandparentRatingKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The slug for the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentSlug")]
|
||||||
|
public string? GrandparentSlug { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The theme URL for the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentTheme")]
|
||||||
|
public string? GrandparentTheme { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The thumbnail URL for the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentThumb")]
|
||||||
|
public string? GrandparentThumb { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the grandparent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("grandparentTitle")]
|
||||||
|
public string? GrandparentTitle { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The globally unique identifier for the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("guid")]
|
||||||
|
public string Guid { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The index position of the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("index")]
|
||||||
|
public int Index { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The unique key for the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("key")]
|
||||||
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The Unix timestamp representing the last time the item was rated.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("lastRatedAt")]
|
||||||
|
public long? LastRatedAt { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unix timestamp for when the media item was last viewed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("lastViewedAt")]
|
||||||
|
public int? LastViewedAt { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of leaf items (end nodes) under this media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("leafCount")]
|
||||||
|
public int? LeafCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The identifier for the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionID")]
|
||||||
|
public long LibrarySectionID { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The key corresponding to the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionKey")]
|
||||||
|
public string LibrarySectionKey { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the library section.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("librarySectionTitle")]
|
||||||
|
public string LibrarySectionTitle { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The original title of the media item (if different).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("originalTitle")]
|
||||||
|
public string? OriginalTitle { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The original release date of the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("originallyAvailableAt")]
|
||||||
|
public LocalDate OriginallyAvailableAt { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The GUID of the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentGuid")]
|
||||||
|
public string? ParentGuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The index position of the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentIndex")]
|
||||||
|
public int? ParentIndex { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The key of the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentKey")]
|
||||||
|
public string? ParentKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The rating key of the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentRatingKey")]
|
||||||
|
public string? ParentRatingKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The slug for the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentSlug")]
|
||||||
|
public string? ParentSlug { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The studio of the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentStudio")]
|
||||||
|
public string ParentStudio { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The theme URL for the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentTheme")]
|
||||||
|
public string ParentTheme { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The thumbnail URL for the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentThumb")]
|
||||||
|
public string? ParentThumb { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentTitle")]
|
||||||
|
public string? ParentTitle { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The release year of the parent media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("parentYear")]
|
||||||
|
public int? ParentYear { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The primary extra key associated with this media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("primaryExtraKey")]
|
||||||
|
public string? PrimaryExtraKey { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The URL for the rating image.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("ratingImage")]
|
||||||
|
public string? RatingImage { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The rating key (Media ID) of this media item. Note: Although this is always an integer, it is represented as a string in the API.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("ratingKey")]
|
[JsonProperty("ratingKey")]
|
||||||
public string RatingKey { get; set; } = default!;
|
public string RatingKey { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("key")]
|
/// <summary>
|
||||||
public string Key { get; set; } = default!;
|
/// The critic rating for the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("rating")]
|
||||||
|
public float Rating { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("guid")]
|
/// <summary>
|
||||||
public string Guid { get; set; } = default!;
|
/// The total number of seasons (for TV shows).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("seasonCount")]
|
||||||
|
public int SeasonCount { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of times this media item has been skipped.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("skipCount")]
|
||||||
|
public int? SkipCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A URL‐friendly version of the media title.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("slug")]
|
||||||
|
public string Slug { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The studio that produced the media item.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("studio")]
|
[JsonProperty("studio")]
|
||||||
public string? Studio { get; set; }
|
public string? Studio { get; set; }
|
||||||
|
|
||||||
[JsonProperty("skipChildren")]
|
/// <summary>
|
||||||
public bool? SkipChildren { get; set; }
|
/// A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("librarySectionID")]
|
[JsonProperty("subtype")]
|
||||||
public long? LibrarySectionID { get; set; }
|
public string? Subtype { get; set; }
|
||||||
|
|
||||||
[JsonProperty("librarySectionTitle")]
|
|
||||||
public string? LibrarySectionTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("librarySectionKey")]
|
|
||||||
public string? LibrarySectionKey { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of media content<br/>
|
/// A synopsis of the media item.
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("type")]
|
|
||||||
public GetRecentlyAddedHubsType Type { get; set; } = default!;
|
|
||||||
|
|
||||||
[JsonProperty("title")]
|
|
||||||
public string Title { get; set; } = default!;
|
|
||||||
|
|
||||||
[JsonProperty("slug")]
|
|
||||||
public string? Slug { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("contentRating")]
|
|
||||||
public string? ContentRating { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("summary")]
|
[JsonProperty("summary")]
|
||||||
public string Summary { get; set; } = default!;
|
public string Summary { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("rating")]
|
/// <summary>
|
||||||
public double? Rating { get; set; }
|
/// A brief tagline for the media item.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("audienceRating")]
|
|
||||||
public double? AudienceRating { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("year")]
|
|
||||||
public int? Year { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("seasonCount")]
|
|
||||||
public int? SeasonCount { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("tagline")]
|
[JsonProperty("tagline")]
|
||||||
public string? Tagline { get; set; }
|
public string Tagline { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
/// The theme URL for the media item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("flattenSeasons")]
|
[JsonProperty("theme")]
|
||||||
public FlattenSeasons? FlattenSeasons { get; set; }
|
public string Theme { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
/// The thumbnail image URL for the media item.
|
||||||
/// </summary>
|
/// </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>
|
|
||||||
/// None = Library default,<br/>
|
|
||||||
/// tmdbAiring = The Movie Database (Aired),<br/>
|
|
||||||
/// aired = TheTVDB (Aired),<br/>
|
|
||||||
/// dvd = TheTVDB (DVD),<br/>
|
|
||||||
/// absolute = TheTVDB (Absolute)).<br/>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("showOrdering")]
|
|
||||||
public ShowOrdering? ShowOrdering { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("thumb")]
|
[JsonProperty("thumb")]
|
||||||
public string? Thumb { get; set; }
|
public string Thumb { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("art")]
|
|
||||||
public string? Art { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("banner")]
|
|
||||||
public string? Banner { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("duration")]
|
|
||||||
public int? Duration { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("originallyAvailableAt")]
|
|
||||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unix epoch datetime in seconds
|
/// The sort title used for ordering media items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("addedAt")]
|
[JsonProperty("titleSort")]
|
||||||
public long AddedAt { get; set; } = default!;
|
public string TitleSort { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The title of the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("type")]
|
||||||
|
public GetRecentlyAddedHubsType Type { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unix epoch datetime in seconds
|
/// Unix epoch datetime in seconds
|
||||||
@@ -147,52 +355,42 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("updatedAt")]
|
[JsonProperty("updatedAt")]
|
||||||
public long? UpdatedAt { get; set; }
|
public long? UpdatedAt { get; set; }
|
||||||
|
|
||||||
[JsonProperty("audienceRatingImage")]
|
/// <summary>
|
||||||
public string? AudienceRatingImage { get; set; }
|
/// The rating provided by a user for the item. This value is expressed as a decimal number.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("chapterSource")]
|
[JsonProperty("userRating")]
|
||||||
public string? ChapterSource { get; set; }
|
public float? UserRating { get; set; }
|
||||||
|
|
||||||
[JsonProperty("primaryExtraKey")]
|
|
||||||
public string? PrimaryExtraKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("ratingImage")]
|
|
||||||
public string? RatingImage { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentRatingKey")]
|
|
||||||
public string? GrandparentRatingKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentGuid")]
|
|
||||||
public string? GrandparentGuid { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentKey")]
|
|
||||||
public string? GrandparentKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentTitle")]
|
|
||||||
public string? GrandparentTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentThumb")]
|
|
||||||
public string? GrandparentThumb { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentSlug")]
|
|
||||||
public string? ParentSlug { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentSlug")]
|
|
||||||
public string? GrandparentSlug { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentArt")]
|
|
||||||
public string? GrandparentArt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("grandparentTheme")]
|
|
||||||
public string? GrandparentTheme { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The Media object is only included when type query is `4` or higher.<br/>
|
/// The number of times this media item has been viewed.
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonProperty("viewCount")]
|
||||||
|
public int? ViewCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The current playback offset (in milliseconds).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewOffset")]
|
||||||
|
public int? ViewOffset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The number of leaf items that have been viewed.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("viewedLeafCount")]
|
||||||
|
public int? ViewedLeafCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The release year of the media item.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("year")]
|
||||||
|
public int? Year { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("Image")]
|
||||||
|
public List<GetRecentlyAddedImage>? Image { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("UltraBlurColors")]
|
||||||
|
public UltraBlurColors? UltraBlurColors { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Media")]
|
[JsonProperty("Media")]
|
||||||
public List<Models.Requests.Media>? Media { get; set; }
|
public List<Models.Requests.Media>? Media { get; set; }
|
||||||
|
|
||||||
@@ -208,105 +406,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
[JsonProperty("Writer")]
|
[JsonProperty("Writer")]
|
||||||
public List<Writer>? Writer { get; set; }
|
public List<Writer>? Writer { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Collection")]
|
|
||||||
public List<Collection>? Collection { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Role")]
|
[JsonProperty("Role")]
|
||||||
public List<Role>? Role { get; set; }
|
public List<Role>? Role { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("Producer")]
|
||||||
|
public List<Producer>? Producer { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("Rating")]
|
||||||
|
public List<Rating>? Rating1 { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("Similar")]
|
||||||
|
public List<Similar>? Similar { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Location")]
|
[JsonProperty("Location")]
|
||||||
public List<Location>? Location { get; set; }
|
public List<Location>? Location { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/>
|
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("Guid")]
|
[JsonProperty("Guid")]
|
||||||
public List<MediaGuid>? MediaGuid { get; set; }
|
public List<Guids>? Guids { get; set; }
|
||||||
|
|
||||||
[JsonProperty("UltraBlurColors")]
|
[JsonProperty("Collection")]
|
||||||
public UltraBlurColors? UltraBlurColors { get; set; }
|
public List<Collection>? Collection { get; set; }
|
||||||
|
|
||||||
[JsonProperty("Rating")]
|
|
||||||
public List<MetaDataRating>? MetaDataRating { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("Image")]
|
|
||||||
public List<GetRecentlyAddedImage>? Image { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("titleSort")]
|
|
||||||
public string? TitleSort { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("viewCount")]
|
|
||||||
public int? ViewCount { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("lastViewedAt")]
|
|
||||||
public int? LastViewedAt { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("originalTitle")]
|
|
||||||
public string? OriginalTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("viewOffset")]
|
|
||||||
public int? ViewOffset { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("skipCount")]
|
|
||||||
public int? SkipCount { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("index")]
|
|
||||||
public int? Index { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("theme")]
|
|
||||||
public string? Theme { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("leafCount")]
|
|
||||||
public int? LeafCount { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("viewedLeafCount")]
|
|
||||||
public int? ViewedLeafCount { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("childCount")]
|
|
||||||
public int? ChildCount { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("hasPremiumExtras")]
|
|
||||||
public string? HasPremiumExtras { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("hasPremiumPrimaryExtra")]
|
|
||||||
public string? HasPremiumPrimaryExtra { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The rating key of the parent item.<br/>
|
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("parentRatingKey")]
|
|
||||||
public string? ParentRatingKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentGuid")]
|
|
||||||
public string? ParentGuid { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentStudio")]
|
|
||||||
public string? ParentStudio { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentKey")]
|
|
||||||
public string? ParentKey { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentTitle")]
|
|
||||||
public string? ParentTitle { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentIndex")]
|
|
||||||
public int? ParentIndex { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentYear")]
|
|
||||||
public int? ParentYear { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentThumb")]
|
|
||||||
public string? ParentThumb { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("parentTheme")]
|
|
||||||
public string? ParentTheme { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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 Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Numerics;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
|
||||||
|
public class GetRecentlyAddedOptimizedForStreamingType
|
||||||
|
{
|
||||||
|
private GetRecentlyAddedOptimizedForStreamingType(string value) { Value = value; }
|
||||||
|
|
||||||
|
public string Value { get; private set; }
|
||||||
|
public static GetRecentlyAddedOptimizedForStreamingType GetRecentlyAddedOptimizedForStreaming1 { get { return new GetRecentlyAddedOptimizedForStreamingType("get-recently-added_optimizedForStreaming_1"); } }
|
||||||
|
|
||||||
|
public static GetRecentlyAddedOptimizedForStreamingType Boolean { get { return new GetRecentlyAddedOptimizedForStreamingType("boolean"); } }
|
||||||
|
|
||||||
|
public static GetRecentlyAddedOptimizedForStreamingType Null { get { return new GetRecentlyAddedOptimizedForStreamingType("null"); } }
|
||||||
|
|
||||||
|
public override string ToString() { return Value; }
|
||||||
|
public static implicit operator String(GetRecentlyAddedOptimizedForStreamingType v) { return v.Value; }
|
||||||
|
public static GetRecentlyAddedOptimizedForStreamingType FromString(string v) {
|
||||||
|
switch(v) {
|
||||||
|
case "get-recently-added_optimizedForStreaming_1": return GetRecentlyAddedOptimizedForStreaming1;
|
||||||
|
case "boolean": return Boolean;
|
||||||
|
case "null": return Null;
|
||||||
|
default: throw new ArgumentException("Invalid value for GetRecentlyAddedOptimizedForStreamingType");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public override bool Equals(object? obj)
|
||||||
|
{
|
||||||
|
if (obj == null || GetType() != obj.GetType())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return Value.Equals(((GetRecentlyAddedOptimizedForStreamingType)obj).Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
return Value.GetHashCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||||
|
/// </summary>
|
||||||
|
[JsonConverter(typeof(GetRecentlyAddedOptimizedForStreaming.GetRecentlyAddedOptimizedForStreamingConverter))]
|
||||||
|
public class GetRecentlyAddedOptimizedForStreaming {
|
||||||
|
public GetRecentlyAddedOptimizedForStreaming(GetRecentlyAddedOptimizedForStreamingType type) {
|
||||||
|
Type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
|
public GetRecentlyAddedOptimizedForStreaming1? GetRecentlyAddedOptimizedForStreaming1 { get; set; }
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
|
public bool? Boolean { get; set; }
|
||||||
|
|
||||||
|
public GetRecentlyAddedOptimizedForStreamingType Type { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public static GetRecentlyAddedOptimizedForStreaming CreateGetRecentlyAddedOptimizedForStreaming1(GetRecentlyAddedOptimizedForStreaming1 getRecentlyAddedOptimizedForStreaming1) {
|
||||||
|
GetRecentlyAddedOptimizedForStreamingType typ = GetRecentlyAddedOptimizedForStreamingType.GetRecentlyAddedOptimizedForStreaming1;
|
||||||
|
|
||||||
|
GetRecentlyAddedOptimizedForStreaming res = new GetRecentlyAddedOptimizedForStreaming(typ);
|
||||||
|
res.GetRecentlyAddedOptimizedForStreaming1 = getRecentlyAddedOptimizedForStreaming1;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetRecentlyAddedOptimizedForStreaming CreateBoolean(bool boolean) {
|
||||||
|
GetRecentlyAddedOptimizedForStreamingType typ = GetRecentlyAddedOptimizedForStreamingType.Boolean;
|
||||||
|
|
||||||
|
GetRecentlyAddedOptimizedForStreaming res = new GetRecentlyAddedOptimizedForStreaming(typ);
|
||||||
|
res.Boolean = boolean;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetRecentlyAddedOptimizedForStreaming CreateNull() {
|
||||||
|
GetRecentlyAddedOptimizedForStreamingType typ = GetRecentlyAddedOptimizedForStreamingType.Null;
|
||||||
|
return new GetRecentlyAddedOptimizedForStreaming(typ);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class GetRecentlyAddedOptimizedForStreamingConverter : JsonConverter
|
||||||
|
{
|
||||||
|
|
||||||
|
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetRecentlyAddedOptimizedForStreaming);
|
||||||
|
|
||||||
|
public override bool CanRead => true;
|
||||||
|
|
||||||
|
public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer)
|
||||||
|
{
|
||||||
|
var json = JRaw.Create(reader).ToString();
|
||||||
|
if (json == "null")
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
var fallbackCandidates = new List<(System.Type, object, string)>();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return new GetRecentlyAddedOptimizedForStreaming(GetRecentlyAddedOptimizedForStreamingType.GetRecentlyAddedOptimizedForStreaming1)
|
||||||
|
{
|
||||||
|
GetRecentlyAddedOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetRecentlyAddedOptimizedForStreaming1>(json)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||||
|
{
|
||||||
|
fallbackCandidates.Add((typeof(GetRecentlyAddedOptimizedForStreaming1), new GetRecentlyAddedOptimizedForStreaming(GetRecentlyAddedOptimizedForStreamingType.GetRecentlyAddedOptimizedForStreaming1), "GetRecentlyAddedOptimizedForStreaming1"));
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
|
{
|
||||||
|
// try next option
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var converted = Convert.ToBoolean(json);
|
||||||
|
return new GetRecentlyAddedOptimizedForStreaming(GetRecentlyAddedOptimizedForStreamingType.Boolean)
|
||||||
|
{
|
||||||
|
Boolean = converted
|
||||||
|
};
|
||||||
|
}
|
||||||
|
catch (System.FormatException)
|
||||||
|
{
|
||||||
|
// try next option
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fallbackCandidates.Count > 0)
|
||||||
|
{
|
||||||
|
fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json));
|
||||||
|
foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json);
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
|
{
|
||||||
|
// try next fallback option
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new InvalidOperationException("Could not deserialize into any supported types.");
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||||
|
{
|
||||||
|
if (value == null) {
|
||||||
|
writer.WriteRawValue("null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
GetRecentlyAddedOptimizedForStreaming res = (GetRecentlyAddedOptimizedForStreaming)value;
|
||||||
|
if (GetRecentlyAddedOptimizedForStreamingType.FromString(res.Type).Equals(GetRecentlyAddedOptimizedForStreamingType.Null))
|
||||||
|
{
|
||||||
|
writer.WriteRawValue("null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (res.GetRecentlyAddedOptimizedForStreaming1 != null)
|
||||||
|
{
|
||||||
|
writer.WriteRawValue(Utilities.SerializeJSON(res.GetRecentlyAddedOptimizedForStreaming1));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (res.Boolean != null)
|
||||||
|
{
|
||||||
|
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,17 +9,12 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
{
|
{
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
/// <summary>
|
public enum GetRecentlyAddedOptimizedForStreaming1
|
||||||
/// The on Deck content
|
|
||||||
/// </summary>
|
|
||||||
public class GetOnDeckResponseBody
|
|
||||||
{
|
{
|
||||||
|
Zero = 0,
|
||||||
|
One = 1,
|
||||||
|
}
|
||||||
|
|
||||||
[JsonProperty("MediaContainer")]
|
|
||||||
public GetOnDeckMediaContainer? MediaContainer { get; set; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -13,6 +13,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the part has a thumbnail.
|
||||||
|
/// </summary>
|
||||||
public enum HasThumbnail
|
public enum HasThumbnail
|
||||||
{
|
{
|
||||||
[JsonProperty("0")]
|
[JsonProperty("0")]
|
||||||
|
|||||||
@@ -12,10 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The folder path for the media item.
|
||||||
|
/// </summary>
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("path")]
|
[JsonProperty("path")]
|
||||||
public string? Path { get; set; }
|
public string Path { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
{
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
@@ -17,58 +18,116 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unique media identifier.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public int Id { get; set; } = default!;
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Duration of the media in milliseconds.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("duration")]
|
[JsonProperty("duration")]
|
||||||
public int? Duration { get; set; }
|
public int? Duration { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bitrate in bits per second.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("bitrate")]
|
[JsonProperty("bitrate")]
|
||||||
public int? Bitrate { get; set; }
|
public int? Bitrate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video width in pixels.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("width")]
|
[JsonProperty("width")]
|
||||||
public int? Width { get; set; }
|
public int? Width { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video height in pixels.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("height")]
|
[JsonProperty("height")]
|
||||||
public int? Height { get; set; }
|
public int? Height { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Aspect ratio of the video.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("aspectRatio")]
|
[JsonProperty("aspectRatio")]
|
||||||
public double? AspectRatio { get; set; }
|
public float? AspectRatio { get; set; }
|
||||||
|
|
||||||
[JsonProperty("audioProfile")]
|
|
||||||
public string? AudioProfile { get; set; }
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of audio channels.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("audioChannels")]
|
[JsonProperty("audioChannels")]
|
||||||
public int? AudioChannels { get; set; }
|
public int? AudioChannels { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("displayOffset")]
|
||||||
|
public int? DisplayOffset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Audio codec used.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("audioCodec")]
|
[JsonProperty("audioCodec")]
|
||||||
public string? AudioCodec { get; set; }
|
public string? AudioCodec { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video codec used.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("videoCodec")]
|
[JsonProperty("videoCodec")]
|
||||||
public string? VideoCodec { get; set; }
|
public string? VideoCodec { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video resolution (e.g., 4k).
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("videoResolution")]
|
[JsonProperty("videoResolution")]
|
||||||
public string? VideoResolution { get; set; }
|
public string? VideoResolution { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// File container type.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("container")]
|
[JsonProperty("container")]
|
||||||
public string Container { get; set; } = default!;
|
public string? Container { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Frame rate of the video. Values found include NTSC, PAL, 24p<br/>
|
||||||
|
///
|
||||||
|
/// <remarks>
|
||||||
|
///
|
||||||
|
/// </remarks>
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("videoFrameRate")]
|
[JsonProperty("videoFrameRate")]
|
||||||
public string? VideoFrameRate { get; set; }
|
public string? VideoFrameRate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video profile (e.g., main 10).
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("videoProfile")]
|
[JsonProperty("videoProfile")]
|
||||||
public string? VideoProfile { get; set; }
|
public string? VideoProfile { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates whether voice activity is detected.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("hasVoiceActivity")]
|
[JsonProperty("hasVoiceActivity")]
|
||||||
public bool? HasVoiceActivity { get; set; }
|
public bool? HasVoiceActivity { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("audioProfile")]
|
||||||
|
public string? AudioProfile { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("optimizedForStreaming")]
|
[JsonProperty("optimizedForStreaming")]
|
||||||
public OptimizedForStreaming? OptimizedForStreaming { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.OptimizedForStreaming.Disable;
|
public OptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||||
|
|
||||||
[JsonProperty("has64bitOffsets")]
|
[JsonProperty("has64bitOffsets")]
|
||||||
public bool? Has64bitOffsets { get; set; }
|
public bool? Has64bitOffsets { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of parts for this media item.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("Part")]
|
[JsonProperty("Part")]
|
||||||
public List<Part> Part { get; set; } = default!;
|
public List<Part>? Part { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,12 +9,191 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
{
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Numerics;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
public enum OptimizedForStreaming
|
|
||||||
|
public class OptimizedForStreamingType
|
||||||
{
|
{
|
||||||
Disable = 0,
|
private OptimizedForStreamingType(string value) { Value = value; }
|
||||||
Enable = 1,
|
|
||||||
|
public string Value { get; private set; }
|
||||||
|
public static OptimizedForStreamingType One { get { return new OptimizedForStreamingType("1"); } }
|
||||||
|
|
||||||
|
public static OptimizedForStreamingType Boolean { get { return new OptimizedForStreamingType("boolean"); } }
|
||||||
|
|
||||||
|
public static OptimizedForStreamingType Null { get { return new OptimizedForStreamingType("null"); } }
|
||||||
|
|
||||||
|
public override string ToString() { return Value; }
|
||||||
|
public static implicit operator String(OptimizedForStreamingType v) { return v.Value; }
|
||||||
|
public static OptimizedForStreamingType FromString(string v) {
|
||||||
|
switch(v) {
|
||||||
|
case "1": return One;
|
||||||
|
case "boolean": return Boolean;
|
||||||
|
case "null": return Null;
|
||||||
|
default: throw new ArgumentException("Invalid value for OptimizedForStreamingType");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public override bool Equals(object? obj)
|
||||||
|
{
|
||||||
|
if (obj == null || GetType() != obj.GetType())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return Value.Equals(((OptimizedForStreamingType)obj).Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
return Value.GetHashCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||||
|
/// </summary>
|
||||||
|
[JsonConverter(typeof(OptimizedForStreaming.OptimizedForStreamingConverter))]
|
||||||
|
public class OptimizedForStreaming {
|
||||||
|
public OptimizedForStreaming(OptimizedForStreamingType type) {
|
||||||
|
Type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
|
public One? One { get; set; }
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("form:explode=true")]
|
||||||
|
public bool? Boolean { get; set; }
|
||||||
|
|
||||||
|
public OptimizedForStreamingType Type { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public static OptimizedForStreaming CreateOne(One one) {
|
||||||
|
OptimizedForStreamingType typ = OptimizedForStreamingType.One;
|
||||||
|
|
||||||
|
OptimizedForStreaming res = new OptimizedForStreaming(typ);
|
||||||
|
res.One = one;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static OptimizedForStreaming CreateBoolean(bool boolean) {
|
||||||
|
OptimizedForStreamingType typ = OptimizedForStreamingType.Boolean;
|
||||||
|
|
||||||
|
OptimizedForStreaming res = new OptimizedForStreaming(typ);
|
||||||
|
res.Boolean = boolean;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static OptimizedForStreaming CreateNull() {
|
||||||
|
OptimizedForStreamingType typ = OptimizedForStreamingType.Null;
|
||||||
|
return new OptimizedForStreaming(typ);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class OptimizedForStreamingConverter : JsonConverter
|
||||||
|
{
|
||||||
|
|
||||||
|
public override bool CanConvert(System.Type objectType) => objectType == typeof(OptimizedForStreaming);
|
||||||
|
|
||||||
|
public override bool CanRead => true;
|
||||||
|
|
||||||
|
public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer)
|
||||||
|
{
|
||||||
|
var json = JRaw.Create(reader).ToString();
|
||||||
|
if (json == "null")
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
var fallbackCandidates = new List<(System.Type, object, string)>();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return new OptimizedForStreaming(OptimizedForStreamingType.One)
|
||||||
|
{
|
||||||
|
One = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<One>(json)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||||
|
{
|
||||||
|
fallbackCandidates.Add((typeof(One), new OptimizedForStreaming(OptimizedForStreamingType.One), "One"));
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
|
{
|
||||||
|
// try next option
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var converted = Convert.ToBoolean(json);
|
||||||
|
return new OptimizedForStreaming(OptimizedForStreamingType.Boolean)
|
||||||
|
{
|
||||||
|
Boolean = converted
|
||||||
|
};
|
||||||
|
}
|
||||||
|
catch (System.FormatException)
|
||||||
|
{
|
||||||
|
// try next option
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fallbackCandidates.Count > 0)
|
||||||
|
{
|
||||||
|
fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json));
|
||||||
|
foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json);
|
||||||
|
}
|
||||||
|
catch (ResponseBodyDeserializer.DeserializationException)
|
||||||
|
{
|
||||||
|
// try next fallback option
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new InvalidOperationException("Could not deserialize into any supported types.");
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||||
|
{
|
||||||
|
if (value == null) {
|
||||||
|
writer.WriteRawValue("null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
OptimizedForStreaming res = (OptimizedForStreaming)value;
|
||||||
|
if (OptimizedForStreamingType.FromString(res.Type).Equals(OptimizedForStreamingType.Null))
|
||||||
|
{
|
||||||
|
writer.WriteRawValue("null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (res.One != null)
|
||||||
|
{
|
||||||
|
writer.WriteRawValue(Utilities.SerializeJSON(res.One));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (res.Boolean != null)
|
||||||
|
{
|
||||||
|
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||||
{
|
{
|
||||||
|
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
@@ -17,49 +18,87 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Part
|
public class Part
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("id")]
|
/// <summary>
|
||||||
public int Id { get; set; } = default!;
|
/// 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")]
|
[JsonProperty("key")]
|
||||||
public string Key { get; set; } = default!;
|
public string Key { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("indexes")]
|
||||||
|
public string? Indexes { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Duration of the part in milliseconds.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("duration")]
|
[JsonProperty("duration")]
|
||||||
public int? Duration { get; set; }
|
public int? Duration { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// File path for the part.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("file")]
|
[JsonProperty("file")]
|
||||||
public string File { get; set; } = default!;
|
public string File { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// File size in bytes.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("size")]
|
[JsonProperty("size")]
|
||||||
public long Size { get; set; } = default!;
|
public long Size { get; set; } = default!;
|
||||||
|
|
||||||
|
[JsonProperty("packetLength")]
|
||||||
|
public int? PacketLength { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The container format of the media file.<br/>
|
/// Container format of the part.
|
||||||
///
|
|
||||||
/// <remarks>
|
|
||||||
///
|
|
||||||
/// </remarks>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("container")]
|
[JsonProperty("container")]
|
||||||
public string Container { get; set; } = default!;
|
public string? Container { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video profile for the part.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("videoProfile")]
|
||||||
|
public string? VideoProfile { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("audioProfile")]
|
[JsonProperty("audioProfile")]
|
||||||
public string? AudioProfile { get; set; }
|
public string? AudioProfile { get; set; }
|
||||||
|
|
||||||
[JsonProperty("has64bitOffsets")]
|
[JsonProperty("has64bitOffsets")]
|
||||||
public bool? Has64bitOffsets { get; set; }
|
public bool? Has64bitOffsets { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("optimizedForStreaming")]
|
[JsonProperty("optimizedForStreaming")]
|
||||||
public bool? OptimizedForStreaming { get; set; }
|
public GetRecentlyAddedOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||||
|
|
||||||
[JsonProperty("videoProfile")]
|
|
||||||
public string? VideoProfile { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("indexes")]
|
|
||||||
public string? Indexes { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("hasThumbnail")]
|
[JsonProperty("hasThumbnail")]
|
||||||
public HasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.HasThumbnail.False;
|
public HasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.HasThumbnail.False;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of streams for this part.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("Stream")]
|
[JsonProperty("Stream")]
|
||||||
public List<Stream>? Stream { get; set; }
|
public List<Stream>? Stream { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,37 +16,31 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The unique role identifier.
|
/// Unique identifier for the producer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public long Id { get; set; } = default!;
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The filter string for the role.
|
/// The filter string used to query this producer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("filter")]
|
[JsonProperty("filter")]
|
||||||
public string Filter { get; set; } = default!;
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The actor's name.
|
/// The name of the producer
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string Tag { get; set; } = default!;
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A key associated with the actor tag.
|
/// A unique key associated with the producer's tag, used for internal identification.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("tagKey")]
|
[JsonProperty("tagKey")]
|
||||||
public string TagKey { get; set; } = default!;
|
public string? TagKey { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The character name or role.
|
/// The URL of the thumbnail image for the actor.
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("role")]
|
|
||||||
public string? Role { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// URL for the role thumbnail image.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("thumb")]
|
[JsonProperty("thumb")]
|
||||||
public string? Thumb { get; set; }
|
public string? Thumb { get; set; }
|
||||||
|
|||||||
@@ -12,24 +12,18 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class GetLibraryItemsMetaDataRating
|
/// <summary>
|
||||||
|
/// The type of rating, for example 'audience' or 'critic'.
|
||||||
|
/// </summary>
|
||||||
|
public class Rating
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// A URI or path to the rating image.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("image")]
|
[JsonProperty("image")]
|
||||||
public string Image { get; set; } = default!;
|
public string Image { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The value of the rating.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("value")]
|
[JsonProperty("value")]
|
||||||
public float Value { get; set; } = default!;
|
public double Value { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The type of rating (e.g., audience, critic).
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; } = default!;
|
public string Type { get; set; } = default!;
|
||||||
}
|
}
|
||||||
@@ -16,39 +16,39 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ID of the tag or actor.
|
/// Unique identifier for the actor or role.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public long? Id { get; set; }
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The filter used to find the actor or tag.
|
/// The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("filter")]
|
[JsonProperty("filter")]
|
||||||
public string? Filter { get; set; }
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The thumbnail of the actor
|
/// The display tag for the actor (typically the actor's name).
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("thumb")]
|
|
||||||
public string? Thumb { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The name of the tag or actor.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unique identifier for the tag.
|
/// A unique key associated with the actor's tag, used for internal identification.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("tagKey")]
|
[JsonProperty("tagKey")]
|
||||||
public string? TagKey { get; set; }
|
public string? TagKey { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The role of the actor or tag in the media.
|
/// The role played by the actor in the media item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("role")]
|
[JsonProperty("role")]
|
||||||
public string? RoleValue { get; set; }
|
public string? RoleValue { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The URL of the thumbnail image for the actor.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("thumb")]
|
||||||
|
public string? Thumb { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,24 +12,18 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils;
|
using LukeHagar.PlexAPI.SDK.Utils;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The display tag for the similar item, typically the title.
|
||||||
|
/// </summary>
|
||||||
public class Similar
|
public class Similar
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The unique similar item identifier.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public long Id { get; set; } = default!;
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The filter string for similar items.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("filter")]
|
[JsonProperty("filter")]
|
||||||
public string Filter { get; set; } = default!;
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The tag or title of the similar content.
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string Tag { get; set; } = default!;
|
public string Tag { get; set; } = default!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,220 +15,283 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Stream
|
public class Stream
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unique stream identifier.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("id")]
|
[JsonProperty("id")]
|
||||||
public long Id { get; set; } = default!;
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Type of stream (1 = video, 2 = audio, 3 = subtitle)
|
/// Stream type (1=video, 2=audio, 3=subtitle).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("streamType")]
|
[JsonProperty("streamType")]
|
||||||
public long StreamType { get; set; } = default!;
|
public int StreamType { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates if this is the default stream
|
/// Indicates if this stream is default.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("default")]
|
[JsonProperty("default")]
|
||||||
public bool? Default { get; set; }
|
public bool? Default { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates if the stream is selected
|
/// Codec used by the stream.
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("selected")]
|
|
||||||
public bool? Selected { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Codec used by the stream
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("codec")]
|
[JsonProperty("codec")]
|
||||||
public string Codec { get; set; } = default!;
|
public string Codec { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The index of the stream
|
/// Index of the stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("index")]
|
[JsonProperty("index")]
|
||||||
public long Index { get; set; } = default!;
|
public int Index { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The bitrate of the stream in kbps
|
/// Bitrate of the stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("bitrate")]
|
[JsonProperty("bitrate")]
|
||||||
public long? Bitrate { get; set; }
|
public int? Bitrate { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The color primaries of the video stream
|
/// Language of the stream.
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("colorPrimaries")]
|
|
||||||
public string? ColorPrimaries { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The color range of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("colorRange")]
|
|
||||||
public string? ColorRange { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The color space of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("colorSpace")]
|
|
||||||
public string? ColorSpace { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The transfer characteristics (TRC) of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("colorTrc")]
|
|
||||||
public string? ColorTrc { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The bit depth of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("bitDepth")]
|
|
||||||
public long? BitDepth { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The chroma location of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("chromaLocation")]
|
|
||||||
public string? ChromaLocation { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The identifier of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("streamIdentifier")]
|
|
||||||
public string? StreamIdentifier { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The chroma subsampling format
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("chromaSubsampling")]
|
|
||||||
public string? ChromaSubsampling { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The coded height of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("codedHeight")]
|
|
||||||
public long? CodedHeight { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The coded width of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("codedWidth")]
|
|
||||||
public long? CodedWidth { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The frame rate of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("frameRate")]
|
|
||||||
public double? FrameRate { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Indicates if the stream has a scaling matrix
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("hasScalingMatrix")]
|
|
||||||
public bool? HasScalingMatrix { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("hearingImpaired")]
|
|
||||||
public bool? HearingImpaired { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("closedCaptions")]
|
|
||||||
public bool? ClosedCaptions { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty("embeddedInVideo")]
|
|
||||||
public string? EmbeddedInVideo { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The height of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("height")]
|
|
||||||
public long? Height { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The level of the video codec
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("level")]
|
|
||||||
public long? Level { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The profile of the video codec
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("profile")]
|
|
||||||
public string? Profile { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Number of reference frames
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("refFrames")]
|
|
||||||
public long? RefFrames { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The scan type (progressive or interlaced)
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("scanType")]
|
|
||||||
public string? ScanType { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The width of the video stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("width")]
|
|
||||||
public long? Width { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Display title of the stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("displayTitle")]
|
|
||||||
public string? DisplayTitle { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Extended display title of the stream
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("extendedDisplayTitle")]
|
|
||||||
public string? ExtendedDisplayTitle { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Number of audio channels (for audio streams)
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("channels")]
|
|
||||||
public long? Channels { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The language of the stream (for audio/subtitle streams)
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("language")]
|
[JsonProperty("language")]
|
||||||
public string? Language { get; set; }
|
public string? Language { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Language tag of the stream
|
/// Language tag (e.g., en).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("languageTag")]
|
[JsonProperty("languageTag")]
|
||||||
public string? LanguageTag { get; set; }
|
public string? LanguageTag { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Language code of the stream
|
/// ISO language code.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("languageCode")]
|
[JsonProperty("languageCode")]
|
||||||
public string? LanguageCode { get; set; }
|
public string? LanguageCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The audio channel layout
|
/// Indicates whether header compression is enabled.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("headerCompression")]
|
||||||
|
public bool? HeaderCompression { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Dolby Vision BL compatibility ID.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("DOVIBLCompatID")]
|
||||||
|
public int? 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 int? 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 int? 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 int? 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 int? CodedHeight { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Coded video width.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("codedWidth")]
|
||||||
|
public int? CodedWidth { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("closedCaptions")]
|
||||||
|
public bool? ClosedCaptions { 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 int? Height { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Video level.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("level")]
|
||||||
|
public int? 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; }
|
||||||
|
|
||||||
|
[JsonProperty("embeddedInVideo")]
|
||||||
|
public string? EmbeddedInVideo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of reference frames.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("refFrames")]
|
||||||
|
public int? RefFrames { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Width of the video stream.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("width")]
|
||||||
|
public int? 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 int? Channels { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Audio channel layout.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("audioChannelLayout")]
|
[JsonProperty("audioChannelLayout")]
|
||||||
public string? AudioChannelLayout { get; set; }
|
public string? AudioChannelLayout { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sampling rate of the audio stream in Hz
|
/// Sampling rate for the audio stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("samplingRate")]
|
[JsonProperty("samplingRate")]
|
||||||
public long? SamplingRate { get; set; }
|
public int? SamplingRate { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Title of the subtitle track (for subtitle streams)
|
/// Indicates if the stream can auto-sync.
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("title")]
|
|
||||||
public string? Title { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Indicates if the subtitle stream can auto-sync
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("canAutoSync")]
|
[JsonProperty("canAutoSync")]
|
||||||
public bool? CanAutoSync { get; set; }
|
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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,28 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public class Writer
|
public class Writer
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unique identifier for the writer.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public long Id { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The filter string used to query this writer.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("filter")]
|
||||||
|
public string Filter { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The role of Writer
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("tag")]
|
[JsonProperty("tag")]
|
||||||
public string? Tag { get; set; }
|
public string Tag { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A unique key associated with the writers tag, used for internal identification.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("tagKey")]
|
||||||
|
public string? TagKey { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -146,10 +146,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -143,10 +143,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -327,10 +327,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private int _serverIndex = 0;
|
private int _serverIndex = 0;
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
|
|||||||
@@ -87,10 +87,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -126,10 +126,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -80,10 +80,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -71,10 +71,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -45,10 +45,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -62,10 +62,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -59,10 +59,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.14.1";
|
private const string _sdkVersion = "0.14.2";
|
||||||
private const string _sdkGenVersion = "2.545.2";
|
private const string _sdkGenVersion = "2.545.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.14.1 2.545.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.14.2 2.545.4 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;
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
* [GetMediaMetaData](docs/sdks/library/README.md#getmediametadata) - Get Media Metadata
|
* [GetMediaMetaData](docs/sdks/library/README.md#getmediametadata) - Get Media Metadata
|
||||||
* [GetMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
* [GetMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
||||||
* [GetTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
* [GetTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
||||||
* [GetOnDeck](docs/sdks/library/README.md#getondeck) - Get On Deck
|
|
||||||
|
|
||||||
### [Log](docs/sdks/log/README.md)
|
### [Log](docs/sdks/log/README.md)
|
||||||
|
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -505,3 +505,13 @@ Based on:
|
|||||||
- [csharp v0.14.1] .
|
- [csharp v0.14.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NuGet v0.14.1] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.14.1 - .
|
- [NuGet v0.14.1] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.14.1 - .
|
||||||
|
|
||||||
|
## 2025-03-09 00:20:03
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.513.4 (2.545.4) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.14.2] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.14.2] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.14.2 - .
|
||||||
@@ -526,20 +526,6 @@ actions:
|
|||||||
|
|
||||||
var res = await sdk.Media.GetThumbImageAsync(req);
|
var res = await sdk.Media.GetThumbImageAsync(req);
|
||||||
|
|
||||||
// handle response
|
|
||||||
- target: $["paths"]["/library/onDeck"]["get"]
|
|
||||||
update:
|
|
||||||
x-codeSamples:
|
|
||||||
- lang: csharp
|
|
||||||
label: getOnDeck
|
|
||||||
source: |-
|
|
||||||
using LukeHagar.PlexAPI.SDK;
|
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
|
||||||
|
|
||||||
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
|
|
||||||
|
|
||||||
var res = await sdk.Library.GetOnDeckAsync();
|
|
||||||
|
|
||||||
// handle response
|
// handle response
|
||||||
- target: $["paths"]["/library/recentlyAdded"]["get"]
|
- target: $["paths"]["/library/recentlyAdded"]["get"]
|
||||||
update:
|
update:
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# GetOnDeckBadRequest
|
|
||||||
|
|
||||||
Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `Errors` | List<[GetOnDeckErrors](../../Models/Errors/GetOnDeckErrors.md)> | :heavy_minus_sign: | N/A |
|
|
||||||
| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# GetOnDeckErrors
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
|
||||||
| `Code` | *int* | :heavy_minus_sign: | N/A | 1000 |
|
|
||||||
| `Message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing |
|
|
||||||
| `Status` | *int* | :heavy_minus_sign: | N/A | 400 |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# GetOnDeckLibraryErrors
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
|
|
||||||
| `Code` | *int* | :heavy_minus_sign: | N/A | 1001 |
|
|
||||||
| `Message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated |
|
|
||||||
| `Status` | *int* | :heavy_minus_sign: | N/A | 401 |
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# GetOnDeckUnauthorized
|
|
||||||
|
|
||||||
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `Errors` | List<[GetOnDeckLibraryErrors](../../Models/Errors/GetOnDeckLibraryErrors.md)> | :heavy_minus_sign: | N/A |
|
|
||||||
| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
|
||||||
| `Tag` | *string* | :heavy_minus_sign: | N/A | Working NL Subs |
|
| `Tag` | *string* | :heavy_check_mark: | The user-made collection this media item belongs to | My Awesome Collection |
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
# Country
|
# Country
|
||||||
|
|
||||||
|
The filter query string for country media items.
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ |
|
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
||||||
| `Tag` | *string* | :heavy_minus_sign: | N/A | United States of America |
|
| `Id` | *long* | :heavy_check_mark: | N/A | 259 |
|
||||||
|
| `Tag` | *string* | :heavy_check_mark: | The country of origin of this media item | United States of America |
|
||||||
|
| `Filter` | *string* | :heavy_minus_sign: | N/A | country=19 |
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||||
| `Tag` | *string* | :heavy_minus_sign: | N/A | James Cameron |
|
| `Tag` | *string* | :heavy_check_mark: | The role of Director | Danny Boyle |
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
# Genre
|
# Genre
|
||||||
|
|
||||||
|
The filter query string for similar items.
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||||
| `Tag` | *string* | :heavy_minus_sign: | N/A | Adventure |
|
| `Id` | *long* | :heavy_check_mark: | N/A | 259 |
|
||||||
|
| `Filter` | *string* | :heavy_check_mark: | N/A | genre=19 |
|
||||||
|
| `Tag` | *string* | :heavy_check_mark: | The genre name of this media-item<br/> | Crime |
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||||
| `Tag` | *string* | :heavy_check_mark: | The country of origin of this media item | United States of America |
|
| `Tag` | *string* | :heavy_check_mark: | The genre name of this media-item<br/> | Crime |
|
||||||
8
docs/Models/Requests/GetAllMediaLibraryGuids.md
Normal file
8
docs/Models/Requests/GetAllMediaLibraryGuids.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# GetAllMediaLibraryGuids
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||||
|
| `Id` | *string* | :heavy_minus_sign: | The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337<br/> | tvdb://2337 |
|
||||||
@@ -19,8 +19,8 @@
|
|||||||
| `Container` | *string* | :heavy_minus_sign: | File container type. | mkv |
|
| `Container` | *string* | :heavy_minus_sign: | File container type. | mkv |
|
||||||
| `VideoFrameRate` | *string* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p<br/> | 24p |
|
| `VideoFrameRate` | *string* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p<br/> | 24p |
|
||||||
| `VideoProfile` | *string* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 |
|
| `VideoProfile` | *string* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 |
|
||||||
| `HasVoiceActivity` | *bool* | :heavy_check_mark: | Indicates whether voice activity is detected. | false |
|
| `HasVoiceActivity` | *bool* | :heavy_minus_sign: | Indicates whether voice activity is detected. | false |
|
||||||
| `AudioProfile` | *string* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
| `AudioProfile` | *string* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
||||||
| `OptimizedForStreaming` | [GetAllMediaLibraryOptimizedForStreaming](../../Models/Requests/GetAllMediaLibraryOptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
| `OptimizedForStreaming` | [GetAllMediaLibraryOptimizedForStreaming](../../Models/Requests/GetAllMediaLibraryOptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
||||||
| `Has64bitOffsets` | *bool* | :heavy_minus_sign: | N/A | false |
|
| `Has64bitOffsets` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||||
| `Part` | List<[GetAllMediaLibraryPart](../../Models/Requests/GetAllMediaLibraryPart.md)> | :heavy_check_mark: | An array of parts for this media item. | |
|
| `Part` | List<[GetAllMediaLibraryPart](../../Models/Requests/GetAllMediaLibraryPart.md)> | :heavy_minus_sign: | An array of parts for this media item. | |
|
||||||
@@ -20,7 +20,7 @@ Unknown
|
|||||||
| `Summary` | *string* | :heavy_check_mark: | A synopsis of the media item. | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.<br/>Once a familiar threat returns to finish what was previously started, Jake must<br/>work with Neytiri and the army of the Na'vi race to protect their home.<br/> |
|
| `Summary` | *string* | :heavy_check_mark: | A synopsis of the media item. | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.<br/>Once a familiar threat returns to finish what was previously started, Jake must<br/>work with Neytiri and the army of the Na'vi race to protect their home.<br/> |
|
||||||
| `Rating` | *float* | :heavy_check_mark: | The critic rating for the media item. | 7.6 |
|
| `Rating` | *float* | :heavy_check_mark: | The critic rating for the media item. | 7.6 |
|
||||||
| `AudienceRating` | *double* | :heavy_check_mark: | The audience rating for the media item. | 9.2 |
|
| `AudienceRating` | *double* | :heavy_check_mark: | The audience rating for the media item. | 9.2 |
|
||||||
| `Year` | *int* | :heavy_check_mark: | The release year of the media item. | 2022 |
|
| `Year` | *int* | :heavy_minus_sign: | The release year of the media item. | 2022 |
|
||||||
| `Tagline` | *string* | :heavy_check_mark: | A brief tagline for the media item. | Return to Pandora. |
|
| `Tagline` | *string* | :heavy_check_mark: | A brief tagline for the media item. | Return to Pandora. |
|
||||||
| `Thumb` | *string* | :heavy_check_mark: | The thumbnail image URL for the media item. | /library/metadata/58683/thumb/1703239236 |
|
| `Thumb` | *string* | :heavy_check_mark: | The thumbnail image URL for the media item. | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `Art` | *string* | :heavy_check_mark: | The art image URL for the media item. | /library/metadata/58683/art/1703239236 |
|
| `Art` | *string* | :heavy_check_mark: | The art image URL for the media item. | /library/metadata/58683/art/1703239236 |
|
||||||
@@ -70,5 +70,5 @@ Unknown
|
|||||||
| `Director` | List<[GetAllMediaLibraryDirector](../../Models/Requests/GetAllMediaLibraryDirector.md)> | :heavy_minus_sign: | N/A | |
|
| `Director` | List<[GetAllMediaLibraryDirector](../../Models/Requests/GetAllMediaLibraryDirector.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `Writer` | List<[GetAllMediaLibraryWriter](../../Models/Requests/GetAllMediaLibraryWriter.md)> | :heavy_minus_sign: | N/A | |
|
| `Writer` | List<[GetAllMediaLibraryWriter](../../Models/Requests/GetAllMediaLibraryWriter.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `Role` | List<[GetAllMediaLibraryRole](../../Models/Requests/GetAllMediaLibraryRole.md)> | :heavy_minus_sign: | N/A | |
|
| `Role` | List<[GetAllMediaLibraryRole](../../Models/Requests/GetAllMediaLibraryRole.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `Guids` | List<[Guids](../../Models/Requests/Guids.md)> | :heavy_minus_sign: | N/A | |
|
| `Guids` | List<[GetAllMediaLibraryGuids](../../Models/Requests/GetAllMediaLibraryGuids.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `Collection` | List<[GetAllMediaLibraryCollection](../../Models/Requests/GetAllMediaLibraryCollection.md)> | :heavy_minus_sign: | N/A | |
|
| `Collection` | List<[GetAllMediaLibraryCollection](../../Models/Requests/GetAllMediaLibraryCollection.md)> | :heavy_minus_sign: | N/A | |
|
||||||
@@ -5,10 +5,10 @@ Has this media been optimized for streaming. NOTE: This can be 0, 1, false or tr
|
|||||||
|
|
||||||
## Supported Types
|
## Supported Types
|
||||||
|
|
||||||
### One
|
### OptimizedForStreaming1
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
GetAllMediaLibraryOptimizedForStreaming.CreateOne(/* values here */);
|
GetAllMediaLibraryOptimizedForStreaming.CreateOptimizedForStreaming1(/* values here */);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Boolean
|
### Boolean
|
||||||
|
|||||||
@@ -4,5 +4,5 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
||||||
| `Tag` | *string* | :heavy_check_mark: | The name of the actor for this role | Danny Boyle |
|
| `Tag` | *string* | :heavy_check_mark: | The display tag for the actor (typically the actor's name). | Teller |
|
||||||
@@ -11,9 +11,9 @@
|
|||||||
| `Codec` | *string* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
| `Codec` | *string* | :heavy_check_mark: | Codec used by the stream. | hevc |
|
||||||
| `Index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
| `Index` | *int* | :heavy_check_mark: | Index of the stream. | 0 |
|
||||||
| `Bitrate` | *int* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
| `Bitrate` | *int* | :heavy_minus_sign: | Bitrate of the stream. | 24743 |
|
||||||
| `Language` | *string* | :heavy_check_mark: | Language of the stream. | English |
|
| `Language` | *string* | :heavy_minus_sign: | Language of the stream. | English |
|
||||||
| `LanguageTag` | *string* | :heavy_check_mark: | Language tag (e.g., en). | en |
|
| `LanguageTag` | *string* | :heavy_minus_sign: | Language tag (e.g., en). | en |
|
||||||
| `LanguageCode` | *string* | :heavy_check_mark: | ISO language code. | eng |
|
| `LanguageCode` | *string* | :heavy_minus_sign: | ISO language code. | eng |
|
||||||
| `HeaderCompression` | *bool* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
| `HeaderCompression` | *bool* | :heavy_minus_sign: | Indicates whether header compression is enabled. | true |
|
||||||
| `DOVIBLCompatID` | *int* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
| `DOVIBLCompatID` | *int* | :heavy_minus_sign: | Dolby Vision BL compatibility ID. | 1 |
|
||||||
| `DOVIBLPresent` | *bool* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
| `DOVIBLPresent` | *bool* | :heavy_minus_sign: | Indicates if Dolby Vision BL is present. | true |
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
| `ChromaSubsampling` | *string* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
| `ChromaSubsampling` | *string* | :heavy_minus_sign: | Chroma subsampling format. | 4:2:0 |
|
||||||
| `CodedHeight` | *int* | :heavy_minus_sign: | Coded video height. | 1608 |
|
| `CodedHeight` | *int* | :heavy_minus_sign: | Coded video height. | 1608 |
|
||||||
| `CodedWidth` | *int* | :heavy_minus_sign: | Coded video width. | 3840 |
|
| `CodedWidth` | *int* | :heavy_minus_sign: | Coded video width. | 3840 |
|
||||||
|
| `ClosedCaptions` | *bool* | :heavy_minus_sign: | N/A | true |
|
||||||
| `ColorPrimaries` | *string* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
| `ColorPrimaries` | *string* | :heavy_minus_sign: | Color primaries used. | bt2020 |
|
||||||
| `ColorRange` | *string* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
| `ColorRange` | *string* | :heavy_minus_sign: | Color range (e.g., tv). | tv |
|
||||||
| `ColorSpace` | *string* | :heavy_minus_sign: | Color space. | bt2020nc |
|
| `ColorSpace` | *string* | :heavy_minus_sign: | Color space. | bt2020nc |
|
||||||
@@ -39,6 +40,7 @@
|
|||||||
| `HasScalingMatrix` | *bool* | :heavy_minus_sign: | N/A | false |
|
| `HasScalingMatrix` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||||
| `Profile` | *string* | :heavy_minus_sign: | Video profile. | main 10 |
|
| `Profile` | *string* | :heavy_minus_sign: | Video profile. | main 10 |
|
||||||
| `ScanType` | *string* | :heavy_minus_sign: | N/A | progressive |
|
| `ScanType` | *string* | :heavy_minus_sign: | N/A | progressive |
|
||||||
|
| `EmbeddedInVideo` | *string* | :heavy_minus_sign: | N/A | progressive |
|
||||||
| `RefFrames` | *int* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
| `RefFrames` | *int* | :heavy_minus_sign: | Number of reference frames. | 1 |
|
||||||
| `Width` | *int* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
| `Width` | *int* | :heavy_minus_sign: | Width of the video stream. | 3840 |
|
||||||
| `DisplayTitle` | *string* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
| `DisplayTitle` | *string* | :heavy_check_mark: | Display title for the stream. | 4K DoVi/HDR10 (HEVC Main 10) |
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
| `Tag` | *string* | :heavy_check_mark: | The role of Writer | Danny Boyle |
|
| `Tag` | *string* | :heavy_check_mark: | The role of Writer | Jamie P. Hanson |
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# GetLibraryItemsEnableCreditsMarkerGeneration
|
|
||||||
|
|
||||||
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------------- | ---------------- |
|
|
||||||
| `LibraryDefault` | -1 |
|
|
||||||
| `Disabled` | 0 |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# GetLibraryItemsEpisodeSort
|
|
||||||
|
|
||||||
Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------------- | ---------------- |
|
|
||||||
| `LibraryDefault` | -1 |
|
|
||||||
| `OldestFirst` | 0 |
|
|
||||||
| `NewestFirst` | 1 |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# GetLibraryItemsFlattenSeasons
|
|
||||||
|
|
||||||
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------------- | ---------------- |
|
|
||||||
| `LibraryDefault` | -1 |
|
|
||||||
| `Hide` | 0 |
|
|
||||||
| `Show` | 1 |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# GetLibraryItemsMediaGuid
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
|
||||||
| `Id` | *string* | :heavy_check_mark: | Can be one of the following formats:<br/>imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/> | imdb://tt13015952 |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# GetLibraryItemsMetaDataRating
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
|
|
||||||
| `Image` | *string* | :heavy_check_mark: | A URI or path to the rating image. | themoviedb://image.rating |
|
|
||||||
| `Value` | *float* | :heavy_check_mark: | The value of the rating. | 3 |
|
|
||||||
| `Type` | *string* | :heavy_check_mark: | The type of rating (e.g., audience, critic). | audience |
|
|
||||||
@@ -23,10 +23,10 @@
|
|||||||
| `Year` | *int* | :heavy_minus_sign: | N/A | 2022 |
|
| `Year` | *int* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `SeasonCount` | *int* | :heavy_minus_sign: | N/A | 2022 |
|
| `SeasonCount` | *int* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `Tagline` | *string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
| `Tagline` | *string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
| `FlattenSeasons` | [GetLibraryItemsFlattenSeasons](../../Models/Requests/GetLibraryItemsFlattenSeasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
| `FlattenSeasons` | [FlattenSeasons](../../Models/Requests/FlattenSeasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
||||||
| `EpisodeSort` | [GetLibraryItemsEpisodeSort](../../Models/Requests/GetLibraryItemsEpisodeSort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
| `EpisodeSort` | [EpisodeSort](../../Models/Requests/EpisodeSort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
||||||
| `EnableCreditsMarkerGeneration` | [GetLibraryItemsEnableCreditsMarkerGeneration](../../Models/Requests/GetLibraryItemsEnableCreditsMarkerGeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
| `EnableCreditsMarkerGeneration` | [EnableCreditsMarkerGeneration](../../Models/Requests/EnableCreditsMarkerGeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
||||||
| `ShowOrdering` | [GetLibraryItemsShowOrdering](../../Models/Requests/GetLibraryItemsShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
| `ShowOrdering` | [ShowOrdering](../../Models/Requests/ShowOrdering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
||||||
| `Thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
| `Thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `Art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
| `Art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
| `Banner` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
| `Banner` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||||
@@ -55,9 +55,9 @@
|
|||||||
| `Collection` | List<[GetLibraryItemsCollection](../../Models/Requests/GetLibraryItemsCollection.md)> | :heavy_minus_sign: | N/A | |
|
| `Collection` | List<[GetLibraryItemsCollection](../../Models/Requests/GetLibraryItemsCollection.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `Role` | List<[GetLibraryItemsRole](../../Models/Requests/GetLibraryItemsRole.md)> | :heavy_minus_sign: | N/A | |
|
| `Role` | List<[GetLibraryItemsRole](../../Models/Requests/GetLibraryItemsRole.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `Location` | List<[GetLibraryItemsLocation](../../Models/Requests/GetLibraryItemsLocation.md)> | :heavy_minus_sign: | N/A | |
|
| `Location` | List<[GetLibraryItemsLocation](../../Models/Requests/GetLibraryItemsLocation.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `MediaGuid` | List<[GetLibraryItemsMediaGuid](../../Models/Requests/GetLibraryItemsMediaGuid.md)> | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
| `MediaGuid` | List<[MediaGuid](../../Models/Requests/MediaGuid.md)> | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||||
| `UltraBlurColors` | [GetLibraryItemsUltraBlurColors](../../Models/Requests/GetLibraryItemsUltraBlurColors.md) | :heavy_minus_sign: | N/A | |
|
| `UltraBlurColors` | [GetLibraryItemsUltraBlurColors](../../Models/Requests/GetLibraryItemsUltraBlurColors.md) | :heavy_minus_sign: | N/A | |
|
||||||
| `MetaDataRating` | List<[GetLibraryItemsMetaDataRating](../../Models/Requests/GetLibraryItemsMetaDataRating.md)> | :heavy_minus_sign: | N/A | |
|
| `MetaDataRating` | List<[MetaDataRating](../../Models/Requests/MetaDataRating.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `Image` | List<[GetLibraryItemsImage](../../Models/Requests/GetLibraryItemsImage.md)> | :heavy_minus_sign: | N/A | |
|
| `Image` | List<[GetLibraryItemsImage](../../Models/Requests/GetLibraryItemsImage.md)> | :heavy_minus_sign: | N/A | |
|
||||||
| `TitleSort` | *string* | :heavy_minus_sign: | N/A | Whale |
|
| `TitleSort` | *string* | :heavy_minus_sign: | N/A | Whale |
|
||||||
| `ViewCount` | *int* | :heavy_minus_sign: | N/A | 1 |
|
| `ViewCount` | *int* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
# GetLibraryItemsShowOrdering
|
|
||||||
|
|
||||||
Setting that indicates the episode ordering for the show.
|
|
||||||
None = Library default,
|
|
||||||
tmdbAiring = The Movie Database (Aired),
|
|
||||||
aired = TheTVDB (Aired),
|
|
||||||
dvd = TheTVDB (DVD),
|
|
||||||
absolute = TheTVDB (Absolute)).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| -------------- | -------------- |
|
|
||||||
| `None` | None |
|
|
||||||
| `TmdbAiring` | tmdbAiring |
|
|
||||||
| `TvdbAired` | aired |
|
|
||||||
| `TvdbDvd` | dvd |
|
|
||||||
| `TvdbAbsolute` | absolute |
|
|
||||||
@@ -5,10 +5,10 @@ Has this media been optimized for streaming. NOTE: This can be 0, 1, false or tr
|
|||||||
|
|
||||||
## Supported Types
|
## Supported Types
|
||||||
|
|
||||||
### GetMediaMetaDataOptimizedForStreaming1
|
### GetMediaMetaDataOptimizedForStreamingLibrary1
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
GetMediaMetaDataLibraryOptimizedForStreaming.CreateGetMediaMetaDataOptimizedForStreaming1(/* values here */);
|
GetMediaMetaDataLibraryOptimizedForStreaming.CreateGetMediaMetaDataOptimizedForStreamingLibrary1(/* values here */);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Boolean
|
### Boolean
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
| `Container` | *string* | :heavy_minus_sign: | File container type. | mkv |
|
| `Container` | *string* | :heavy_minus_sign: | File container type. | mkv |
|
||||||
| `VideoFrameRate` | *string* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p<br/> | 24p |
|
| `VideoFrameRate` | *string* | :heavy_minus_sign: | Frame rate of the video. Values found include NTSC, PAL, 24p<br/> | 24p |
|
||||||
| `VideoProfile` | *string* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 |
|
| `VideoProfile` | *string* | :heavy_minus_sign: | Video profile (e.g., main 10). | main 10 |
|
||||||
| `HasVoiceActivity` | *bool* | :heavy_check_mark: | Indicates whether voice activity is detected. | false |
|
| `HasVoiceActivity` | *bool* | :heavy_minus_sign: | Indicates whether voice activity is detected. | false |
|
||||||
| `AudioProfile` | *string* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
| `AudioProfile` | *string* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
||||||
| `OptimizedForStreaming` | [GetMediaMetaDataOptimizedForStreaming](../../Models/Requests/GetMediaMetaDataOptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
| `OptimizedForStreaming` | [GetMediaMetaDataOptimizedForStreaming](../../Models/Requests/GetMediaMetaDataOptimizedForStreaming.md) | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
|
||||||
| `Has64bitOffsets` | *bool* | :heavy_minus_sign: | N/A | false |
|
| `Has64bitOffsets` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||||
| `Part` | List<[GetMediaMetaDataPart](../../Models/Requests/GetMediaMetaDataPart.md)> | :heavy_check_mark: | An array of parts for this media item. | |
|
| `Part` | List<[GetMediaMetaDataPart](../../Models/Requests/GetMediaMetaDataPart.md)> | :heavy_minus_sign: | An array of parts for this media item. | |
|
||||||
@@ -63,6 +63,6 @@
|
|||||||
| `Role` | List<[GetMediaMetaDataRole](../../Models/Requests/GetMediaMetaDataRole.md)> | :heavy_minus_sign: | An array of Actor roles. | |
|
| `Role` | List<[GetMediaMetaDataRole](../../Models/Requests/GetMediaMetaDataRole.md)> | :heavy_minus_sign: | An array of Actor roles. | |
|
||||||
| `Director` | List<[GetMediaMetaDataDirector](../../Models/Requests/GetMediaMetaDataDirector.md)> | :heavy_minus_sign: | An array of Director roles. | |
|
| `Director` | List<[GetMediaMetaDataDirector](../../Models/Requests/GetMediaMetaDataDirector.md)> | :heavy_minus_sign: | An array of Director roles. | |
|
||||||
| `Writer` | List<[GetMediaMetaDataWriter](../../Models/Requests/GetMediaMetaDataWriter.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
| `Writer` | List<[GetMediaMetaDataWriter](../../Models/Requests/GetMediaMetaDataWriter.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
||||||
| `Producer` | List<[Producer](../../Models/Requests/Producer.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
| `Producer` | List<[GetMediaMetaDataProducer](../../Models/Requests/GetMediaMetaDataProducer.md)> | :heavy_minus_sign: | An array of Writer roles. | |
|
||||||
| `Similar` | List<[Similar](../../Models/Requests/Similar.md)> | :heavy_minus_sign: | An array of similar content objects. | |
|
| `Similar` | List<[GetMediaMetaDataSimilar](../../Models/Requests/GetMediaMetaDataSimilar.md)> | :heavy_minus_sign: | An array of similar content objects. | |
|
||||||
| `Location` | List<[GetMediaMetaDataLocation](../../Models/Requests/GetMediaMetaDataLocation.md)> | :heavy_minus_sign: | An array of location objects. | |
|
| `Location` | List<[GetMediaMetaDataLocation](../../Models/Requests/GetMediaMetaDataLocation.md)> | :heavy_minus_sign: | An array of location objects. | |
|
||||||
@@ -5,10 +5,10 @@ Has this media been optimized for streaming. NOTE: This can be 0, 1, false or tr
|
|||||||
|
|
||||||
## Supported Types
|
## Supported Types
|
||||||
|
|
||||||
### OptimizedForStreaming1
|
### GetMediaMetaDataOptimizedForStreaming1
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
GetMediaMetaDataOptimizedForStreaming.CreateOptimizedForStreaming1(/* values here */);
|
GetMediaMetaDataOptimizedForStreaming.CreateGetMediaMetaDataOptimizedForStreaming1(/* values here */);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Boolean
|
### Boolean
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user