mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4197184f92 |
File diff suppressed because one or more lines are too long
@@ -17,9 +17,10 @@ generation:
|
||||
oAuth2ClientCredentialsEnabled: true
|
||||
oAuth2PasswordEnabled: false
|
||||
csharp:
|
||||
version: 0.15.0
|
||||
version: 0.15.1
|
||||
additionalDependencies: []
|
||||
author: LukeHagar
|
||||
baseErrorName: PlexAPIError
|
||||
clientServerStatusCodesAsErrors: true
|
||||
defaultErrorName: SDKException
|
||||
disableNamespacePascalCasingApr2024: true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.555.2
|
||||
speakeasyVersion: 1.557.0
|
||||
sources:
|
||||
my-source:
|
||||
sourceNamespace: my-source
|
||||
@@ -16,19 +16,19 @@ sources:
|
||||
- main
|
||||
plexapi:
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:78d07ad78ff60d0e9918696208d8c68a562e170d4e9c431797c02995fb8816d0
|
||||
sourceBlobDigest: sha256:d38dd2a36c1b2fd73409267f7b30c2d5d45d709616141803ea01db424ec68ae4
|
||||
sourceRevisionDigest: sha256:dafcc1192236829b85bc924e0462432c0eb7318a17c542f46e3dd05a9a6265df
|
||||
sourceBlobDigest: sha256:bc072115d585e1695cb8393db901a3d36be1dcd57a69bad2b91a1ba7ac3c9c4b
|
||||
tags:
|
||||
- latest
|
||||
- speakeasy-sdk-regen-1748996711
|
||||
- speakeasy-sdk-regen-1749428820
|
||||
targets:
|
||||
plexcsharp:
|
||||
source: plexapi
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:78d07ad78ff60d0e9918696208d8c68a562e170d4e9c431797c02995fb8816d0
|
||||
sourceBlobDigest: sha256:d38dd2a36c1b2fd73409267f7b30c2d5d45d709616141803ea01db424ec68ae4
|
||||
sourceRevisionDigest: sha256:dafcc1192236829b85bc924e0462432c0eb7318a17c542f46e3dd05a9a6265df
|
||||
sourceBlobDigest: sha256:bc072115d585e1695cb8393db901a3d36be1dcd57a69bad2b91a1ba7ac3c9c4b
|
||||
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
||||
codeSamplesRevisionDigest: sha256:5609267a659a1b1fdebdd8516758904fc983fb919b5b5a8bbd0044567e8bfa0f
|
||||
codeSamplesRevisionDigest: sha256:3e40165c9db5020b3885878073275cf7a8e9cfc5dc3f4a81b48c209581c6a041
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: latest
|
||||
|
||||
@@ -74,8 +74,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Activities(SDKConfig config)
|
||||
|
||||
@@ -95,8 +95,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Authentication(SDKConfig config)
|
||||
|
||||
@@ -101,8 +101,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Butler(SDKConfig config)
|
||||
|
||||
@@ -73,8 +73,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Hubs(SDKConfig config)
|
||||
|
||||
@@ -319,8 +319,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Library(SDKConfig config)
|
||||
|
||||
@@ -94,8 +94,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Log(SDKConfig config)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>true</IsPackable>
|
||||
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
||||
<Version>0.15.0</Version>
|
||||
<Version>0.15.1</Version>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Authors>LukeHagar</Authors>
|
||||
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
||||
|
||||
@@ -90,8 +90,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Media(SDKConfig config)
|
||||
|
||||
@@ -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 EnableCreditsMarkerGeneration
|
||||
{
|
||||
[JsonProperty("-1")]
|
||||
LibraryDefault,
|
||||
[JsonProperty("0")]
|
||||
Disabled,
|
||||
}
|
||||
|
||||
public static class EnableCreditsMarkerGenerationExtension
|
||||
{
|
||||
public static string Value(this EnableCreditsMarkerGeneration value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static EnableCreditsMarkerGeneration ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(EnableCreditsMarkerGeneration).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||
if (attribute != null && attribute.PropertyName == value)
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is EnableCreditsMarkerGeneration)
|
||||
{
|
||||
return (EnableCreditsMarkerGeneration)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum EnableCreditsMarkerGeneration");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 EpisodeSort
|
||||
{
|
||||
[JsonProperty("-1")]
|
||||
LibraryDefault,
|
||||
[JsonProperty("0")]
|
||||
OldestFirst,
|
||||
[JsonProperty("1")]
|
||||
NewestFirst,
|
||||
}
|
||||
|
||||
public static class EpisodeSortExtension
|
||||
{
|
||||
public static string Value(this EpisodeSort value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static EpisodeSort ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(EpisodeSort).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||
if (attribute != null && attribute.PropertyName == value)
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is EpisodeSort)
|
||||
{
|
||||
return (EpisodeSort)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum EpisodeSort");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -14,7 +14,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// 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).<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum FlattenSeasons
|
||||
{
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// Identifier for the view mode.
|
||||
/// </summary>
|
||||
[JsonProperty("viewMode")]
|
||||
public string ViewMode { get; set; } = default!;
|
||||
public string? ViewMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// An array of actor entries for media items.
|
||||
|
||||
@@ -15,7 +15,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetLibraryItemsCollection
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The user-made collection this media item belongs to
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,21 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetLibraryItemsCountry
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the country.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The country of origin of this media item
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetLibraryItemsDirector
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unique identifier for the director.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The role of Director
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The absolute URL of the thumbnail image for the director.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -29,8 +29,5 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("advanced")]
|
||||
public bool? Advanced { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetLibraryItemsGenre
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the genre.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The genre name of this media-item<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -12,14 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class MediaGuid
|
||||
public class GetLibraryItemsGuids
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Can be one of the following formats:<br/>
|
||||
/// The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
@@ -13,6 +13,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the part has a thumbnail.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetLibraryItemsHasThumbnail
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public string Alt { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public GetLibraryItemsLibraryResponse200Type Type { get; set; } = default!;
|
||||
public GetLibraryItemsLibraryResponseType Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
|
||||
@@ -1,64 +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>
|
||||
/// The direction of the sort. Can be either `asc` or `desc`.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetLibraryItemsLibraryActiveDirection
|
||||
{
|
||||
[JsonProperty("asc")]
|
||||
Ascending,
|
||||
[JsonProperty("desc")]
|
||||
Descending,
|
||||
}
|
||||
|
||||
public static class GetLibraryItemsLibraryActiveDirectionExtension
|
||||
{
|
||||
public static string Value(this GetLibraryItemsLibraryActiveDirection value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetLibraryItemsLibraryActiveDirection ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetLibraryItemsLibraryActiveDirection).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 GetLibraryItemsLibraryActiveDirection)
|
||||
{
|
||||
return (GetLibraryItemsLibraryActiveDirection)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsLibraryActiveDirection");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,64 +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>
|
||||
/// The direction of the sort. Can be either `asc` or `desc`.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetLibraryItemsLibraryDefaultDirection
|
||||
{
|
||||
[JsonProperty("asc")]
|
||||
Ascending,
|
||||
[JsonProperty("desc")]
|
||||
Descending,
|
||||
}
|
||||
|
||||
public static class GetLibraryItemsLibraryDefaultDirectionExtension
|
||||
{
|
||||
public static string Value(this GetLibraryItemsLibraryDefaultDirection value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetLibraryItemsLibraryDefaultDirection ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetLibraryItemsLibraryDefaultDirection).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 GetLibraryItemsLibraryDefaultDirection)
|
||||
{
|
||||
return (GetLibraryItemsLibraryDefaultDirection)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsLibraryDefaultDirection");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,30 +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 GetLibraryItemsLibraryField
|
||||
{
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("subType")]
|
||||
public string? SubType { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,26 +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 GetLibraryItemsLibraryFieldType
|
||||
{
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("Operator")]
|
||||
public List<GetLibraryItemsLibraryOperator> Operator { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetLibraryItemsLibraryOptimizedForStreamingType
|
||||
{
|
||||
private GetLibraryItemsLibraryOptimizedForStreamingType(string value) { Value = value; }
|
||||
|
||||
public string Value { get; private set; }
|
||||
public static GetLibraryItemsLibraryOptimizedForStreamingType GetLibraryItemsOptimizedForStreaming1 { get { return new GetLibraryItemsLibraryOptimizedForStreamingType("get-library-items_optimizedForStreaming_1"); } }
|
||||
|
||||
public static GetLibraryItemsLibraryOptimizedForStreamingType Boolean { get { return new GetLibraryItemsLibraryOptimizedForStreamingType("boolean"); } }
|
||||
|
||||
public static GetLibraryItemsLibraryOptimizedForStreamingType Null { get { return new GetLibraryItemsLibraryOptimizedForStreamingType("null"); } }
|
||||
|
||||
public override string ToString() { return Value; }
|
||||
public static implicit operator String(GetLibraryItemsLibraryOptimizedForStreamingType v) { return v.Value; }
|
||||
public static GetLibraryItemsLibraryOptimizedForStreamingType FromString(string v) {
|
||||
switch(v) {
|
||||
case "get-library-items_optimizedForStreaming_1": return GetLibraryItemsOptimizedForStreaming1;
|
||||
case "boolean": return Boolean;
|
||||
case "null": return Null;
|
||||
default: throw new ArgumentException("Invalid value for GetLibraryItemsLibraryOptimizedForStreamingType");
|
||||
}
|
||||
}
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj == null || GetType() != obj.GetType())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return Value.Equals(((GetLibraryItemsLibraryOptimizedForStreamingType)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<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(GetLibraryItemsLibraryOptimizedForStreaming.GetLibraryItemsLibraryOptimizedForStreamingConverter))]
|
||||
public class GetLibraryItemsLibraryOptimizedForStreaming {
|
||||
public GetLibraryItemsLibraryOptimizedForStreaming(GetLibraryItemsLibraryOptimizedForStreamingType type) {
|
||||
Type = type;
|
||||
}
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public GetLibraryItemsOptimizedForStreaming1? GetLibraryItemsOptimizedForStreaming1 { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public bool? Boolean { get; set; }
|
||||
|
||||
public GetLibraryItemsLibraryOptimizedForStreamingType Type { get; set; }
|
||||
|
||||
|
||||
public static GetLibraryItemsLibraryOptimizedForStreaming CreateGetLibraryItemsOptimizedForStreaming1(GetLibraryItemsOptimizedForStreaming1 getLibraryItemsOptimizedForStreaming1) {
|
||||
GetLibraryItemsLibraryOptimizedForStreamingType typ = GetLibraryItemsLibraryOptimizedForStreamingType.GetLibraryItemsOptimizedForStreaming1;
|
||||
|
||||
GetLibraryItemsLibraryOptimizedForStreaming res = new GetLibraryItemsLibraryOptimizedForStreaming(typ);
|
||||
res.GetLibraryItemsOptimizedForStreaming1 = getLibraryItemsOptimizedForStreaming1;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetLibraryItemsLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
|
||||
GetLibraryItemsLibraryOptimizedForStreamingType typ = GetLibraryItemsLibraryOptimizedForStreamingType.Boolean;
|
||||
|
||||
GetLibraryItemsLibraryOptimizedForStreaming res = new GetLibraryItemsLibraryOptimizedForStreaming(typ);
|
||||
res.Boolean = boolean;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetLibraryItemsLibraryOptimizedForStreaming CreateNull() {
|
||||
GetLibraryItemsLibraryOptimizedForStreamingType typ = GetLibraryItemsLibraryOptimizedForStreamingType.Null;
|
||||
return new GetLibraryItemsLibraryOptimizedForStreaming(typ);
|
||||
}
|
||||
|
||||
public class GetLibraryItemsLibraryOptimizedForStreamingConverter : JsonConverter
|
||||
{
|
||||
|
||||
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetLibraryItemsLibraryOptimizedForStreaming);
|
||||
|
||||
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 GetLibraryItemsLibraryOptimizedForStreaming(GetLibraryItemsLibraryOptimizedForStreamingType.GetLibraryItemsOptimizedForStreaming1)
|
||||
{
|
||||
GetLibraryItemsOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetLibraryItemsOptimizedForStreaming1>(json)
|
||||
};
|
||||
}
|
||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||
{
|
||||
fallbackCandidates.Add((typeof(GetLibraryItemsOptimizedForStreaming1), new GetLibraryItemsLibraryOptimizedForStreaming(GetLibraryItemsLibraryOptimizedForStreamingType.GetLibraryItemsOptimizedForStreaming1), "GetLibraryItemsOptimizedForStreaming1"));
|
||||
}
|
||||
catch (ResponseBodyDeserializer.DeserializationException)
|
||||
{
|
||||
// try next option
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var converted = Convert.ToBoolean(json);
|
||||
return new GetLibraryItemsLibraryOptimizedForStreaming(GetLibraryItemsLibraryOptimizedForStreamingType.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;
|
||||
}
|
||||
GetLibraryItemsLibraryOptimizedForStreaming res = (GetLibraryItemsLibraryOptimizedForStreaming)value;
|
||||
if (GetLibraryItemsLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetLibraryItemsLibraryOptimizedForStreamingType.Null))
|
||||
{
|
||||
writer.WriteRawValue("null");
|
||||
return;
|
||||
}
|
||||
if (res.GetLibraryItemsOptimizedForStreaming1 != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibraryItemsOptimizedForStreaming1));
|
||||
return;
|
||||
}
|
||||
if (res.Boolean != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,61 +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;
|
||||
|
||||
public enum GetLibraryItemsLibraryResponse200Type
|
||||
{
|
||||
[JsonProperty("coverPoster")]
|
||||
CoverPoster,
|
||||
[JsonProperty("background")]
|
||||
Background,
|
||||
[JsonProperty("snapshot")]
|
||||
Snapshot,
|
||||
[JsonProperty("clearLogo")]
|
||||
ClearLogo,
|
||||
}
|
||||
|
||||
public static class GetLibraryItemsLibraryResponse200TypeExtension
|
||||
{
|
||||
public static string Value(this GetLibraryItemsLibraryResponse200Type value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetLibraryItemsLibraryResponse200Type ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetLibraryItemsLibraryResponse200Type).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 GetLibraryItemsLibraryResponse200Type)
|
||||
{
|
||||
return (GetLibraryItemsLibraryResponse200Type)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsLibraryResponse200Type");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,33 +9,53 @@
|
||||
#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;
|
||||
using System;
|
||||
|
||||
public class GetLibraryItemsLibraryResponseType
|
||||
public enum GetLibraryItemsLibraryResponseType
|
||||
{
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
[JsonProperty("active")]
|
||||
public bool Active { get; set; } = default!;
|
||||
|
||||
[JsonProperty("Filter")]
|
||||
public List<GetLibraryItemsLibraryFilter>? Filter { get; set; }
|
||||
|
||||
[JsonProperty("Sort")]
|
||||
public List<GetLibraryItemsLibrarySort>? Sort { get; set; }
|
||||
|
||||
[JsonProperty("Field")]
|
||||
public List<GetLibraryItemsLibraryField>? Field { get; set; }
|
||||
[JsonProperty("coverPoster")]
|
||||
CoverPoster,
|
||||
[JsonProperty("background")]
|
||||
Background,
|
||||
[JsonProperty("snapshot")]
|
||||
Snapshot,
|
||||
[JsonProperty("clearLogo")]
|
||||
ClearLogo,
|
||||
}
|
||||
|
||||
public static class GetLibraryItemsLibraryResponseTypeExtension
|
||||
{
|
||||
public static string Value(this GetLibraryItemsLibraryResponseType value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetLibraryItemsLibraryResponseType ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetLibraryItemsLibraryResponseType).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 GetLibraryItemsLibraryResponseType)
|
||||
{
|
||||
return (GetLibraryItemsLibraryResponseType)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsLibraryResponseType");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,57 +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;
|
||||
|
||||
public class GetLibraryItemsLibrarySort
|
||||
{
|
||||
|
||||
[JsonProperty("default")]
|
||||
public string? Default { get; set; }
|
||||
|
||||
[JsonProperty("active")]
|
||||
public bool? Active { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The direction of the sort. Can be either `asc` or `desc`.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("activeDirection")]
|
||||
public GetLibraryItemsLibraryActiveDirection? ActiveDirection { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibraryItemsLibraryActiveDirection.Ascending;
|
||||
|
||||
/// <summary>
|
||||
/// The direction of the sort. Can be either `asc` or `desc`.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("defaultDirection")]
|
||||
public GetLibraryItemsLibraryDefaultDirection? DefaultDirection { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibraryItemsLibraryDefaultDirection.Ascending;
|
||||
|
||||
[JsonProperty("descKey")]
|
||||
public string? DescKey { get; set; }
|
||||
|
||||
[JsonProperty("firstCharacterKey")]
|
||||
public string? FirstCharacterKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -9,72 +9,33 @@
|
||||
#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;
|
||||
|
||||
/// <summary>
|
||||
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetLibraryItemsLibraryType
|
||||
public class GetLibraryItemsLibraryType
|
||||
{
|
||||
[JsonProperty("movie")]
|
||||
Movie,
|
||||
[JsonProperty("show")]
|
||||
TvShow,
|
||||
[JsonProperty("season")]
|
||||
Season,
|
||||
[JsonProperty("episode")]
|
||||
Episode,
|
||||
[JsonProperty("artist")]
|
||||
Artist,
|
||||
[JsonProperty("album")]
|
||||
Album,
|
||||
[JsonProperty("track")]
|
||||
Track,
|
||||
[JsonProperty("photoalbum")]
|
||||
PhotoAlbum,
|
||||
[JsonProperty("photo")]
|
||||
Photo,
|
||||
[JsonProperty("collection")]
|
||||
Collection,
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
[JsonProperty("active")]
|
||||
public bool Active { get; set; } = default!;
|
||||
|
||||
[JsonProperty("Filter")]
|
||||
public List<GetLibraryItemsFilter>? Filter { get; set; }
|
||||
|
||||
[JsonProperty("Sort")]
|
||||
public List<GetLibraryItemsSort>? Sort { get; set; }
|
||||
|
||||
[JsonProperty("Field")]
|
||||
public List<GetLibraryItemsField>? Field { get; set; }
|
||||
}
|
||||
|
||||
public static class GetLibraryItemsLibraryTypeExtension
|
||||
{
|
||||
public static string Value(this GetLibraryItemsLibraryType value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetLibraryItemsLibraryType ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetLibraryItemsLibraryType).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 GetLibraryItemsLibraryType)
|
||||
{
|
||||
return (GetLibraryItemsLibraryType)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsLibraryType");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -12,10 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
/// <summary>
|
||||
/// The folder path for the media item.
|
||||
/// </summary>
|
||||
public class GetLibraryItemsLocation
|
||||
{
|
||||
|
||||
[JsonProperty("path")]
|
||||
public string? Path { get; set; }
|
||||
public string Path { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
@@ -17,58 +18,121 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetLibraryItemsMedia
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unique media identifier.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Duration of the media in milliseconds.
|
||||
/// </summary>
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bitrate in bits per second.
|
||||
/// </summary>
|
||||
[JsonProperty("bitrate")]
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video width in pixels.
|
||||
/// </summary>
|
||||
[JsonProperty("width")]
|
||||
public int? Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video height in pixels.
|
||||
/// </summary>
|
||||
[JsonProperty("height")]
|
||||
public int? Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Aspect ratio of the video.
|
||||
/// </summary>
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
public float? AspectRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of audio channels.
|
||||
/// </summary>
|
||||
[JsonProperty("audioChannels")]
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("displayOffset")]
|
||||
public int? DisplayOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Audio codec used.
|
||||
/// </summary>
|
||||
[JsonProperty("audioCodec")]
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video codec used.
|
||||
/// </summary>
|
||||
[JsonProperty("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video resolution (e.g., 4k).
|
||||
/// </summary>
|
||||
[JsonProperty("videoResolution")]
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Container format of the media.
|
||||
/// </summary>
|
||||
[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")]
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video profile (e.g., main 10).
|
||||
/// </summary>
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether voice activity is detected.
|
||||
/// </summary>
|
||||
[JsonProperty("hasVoiceActivity")]
|
||||
public bool? HasVoiceActivity { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public GetLibraryItemsOptimizedForStreaming? OptimizedForStreaming { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibraryItemsOptimizedForStreaming.Disable;
|
||||
/// <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")]
|
||||
public GetLibraryItemsOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether the media has 64-bit offsets.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// This is relevant for media files that may require larger offsets than what 32-bit integers can provide.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("Part")]
|
||||
public List<GetLibraryItemsPart> Part { get; set; } = default!;
|
||||
public List<GetLibraryItemsPart>? Part { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -14,81 +14,128 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public class GetLibraryItemsMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("Type")]
|
||||
public List<GetLibraryItemsType>? Type { get; set; }
|
||||
|
||||
[JsonProperty("FieldType")]
|
||||
public List<GetLibraryItemsFieldType>? FieldType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of media items returned in this response.
|
||||
/// </summary>
|
||||
[JsonProperty("size")]
|
||||
public int Size { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Total number of media items in the library.
|
||||
/// </summary>
|
||||
[JsonProperty("totalSize")]
|
||||
public int TotalSize { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Offset value for pagination.
|
||||
/// </summary>
|
||||
[JsonProperty("offset")]
|
||||
public int Offset { get; set; } = default!;
|
||||
public long Offset { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The content type or mode.
|
||||
/// </summary>
|
||||
[JsonProperty("content")]
|
||||
public string Content { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether syncing is allowed.
|
||||
/// </summary>
|
||||
[JsonProperty("allowSync")]
|
||||
public bool AllowSync { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Specifies whether caching is disabled.
|
||||
/// </summary>
|
||||
[JsonProperty("nocache")]
|
||||
public bool? Nocache { get; set; }
|
||||
public bool Nocache { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// URL for the background artwork of the media container.
|
||||
/// </summary>
|
||||
[JsonProperty("art")]
|
||||
public string Art { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// An plugin identifier for the media container.
|
||||
/// </summary>
|
||||
[JsonProperty("identifier")]
|
||||
public string Identifier { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long LibrarySectionID { get; set; } = default!;
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string LibrarySectionTitle { get; set; } = default!;
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The universally unique identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionUUID")]
|
||||
public string LibrarySectionUUID { get; set; } = default!;
|
||||
public string? LibrarySectionUUID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The prefix used for media tag resource paths.
|
||||
/// </summary>
|
||||
[JsonProperty("mediaTagPrefix")]
|
||||
public string MediaTagPrefix { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The version number for media tags.
|
||||
/// </summary>
|
||||
[JsonProperty("mediaTagVersion")]
|
||||
public int MediaTagVersion { get; set; } = default!;
|
||||
public long MediaTagVersion { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// URL for the thumbnail image of the media container.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string Thumb { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The primary title of the media container.
|
||||
/// </summary>
|
||||
[JsonProperty("title1")]
|
||||
public string Title1 { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The secondary title of the media container.
|
||||
/// </summary>
|
||||
[JsonProperty("title2")]
|
||||
public string Title2 { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Identifier for the view group layout.
|
||||
/// </summary>
|
||||
[JsonProperty("viewGroup")]
|
||||
public string ViewGroup { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Identifier for the view mode.
|
||||
/// </summary>
|
||||
[JsonProperty("viewMode")]
|
||||
public int? ViewMode { get; set; }
|
||||
public string? ViewMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the media container has mixed parents.
|
||||
/// </summary>
|
||||
[JsonProperty("mixedParents")]
|
||||
public bool? MixedParents { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// An array of metadata items.
|
||||
/// </summary>
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetLibraryItemsMetadata>? Metadata { get; set; }
|
||||
public List<GetLibraryItemsMetadata> Metadata { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/>
|
||||
|
||||
@@ -25,9 +25,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
|
||||
[JsonProperty("Type")]
|
||||
public List<GetLibraryItemsLibraryResponseType>? Type { get; set; }
|
||||
public List<GetLibraryItemsLibraryType>? Type { get; set; }
|
||||
|
||||
[JsonProperty("FieldType")]
|
||||
public List<GetLibraryItemsLibraryFieldType>? FieldType { get; set; }
|
||||
public List<GetLibraryItemsFieldType>? FieldType { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -15,129 +15,163 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using NodaTime;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public class GetLibraryItemsMetadata
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The rating key (Media ID) of this media item.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// Note: This is always an integer, but is represented as a string in the API.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// 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>
|
||||
[JsonProperty("ratingKey")]
|
||||
public string RatingKey { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The unique key for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The globally unique identifier for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("guid")]
|
||||
public string Guid { get; set; } = default!;
|
||||
|
||||
/// <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")]
|
||||
public string? Studio { get; set; }
|
||||
|
||||
[JsonProperty("skipChildren")]
|
||||
public bool? SkipChildren { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
[JsonProperty("type")]
|
||||
public GetLibraryItemsType Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// The title of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("type")]
|
||||
public GetLibraryItemsLibraryType Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
[JsonProperty("slug")]
|
||||
public string? Slug { get; set; }
|
||||
/// <summary>
|
||||
/// The banner image URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("banner")]
|
||||
public string Banner { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The sort title used for ordering media items.
|
||||
/// </summary>
|
||||
[JsonProperty("titleSort")]
|
||||
public string TitleSort { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The content rating for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("contentRating")]
|
||||
public string? ContentRating { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A synopsis of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("summary")]
|
||||
public string Summary { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The critic rating for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("rating")]
|
||||
public double? Rating { get; set; }
|
||||
public float Rating { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The audience rating for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("audienceRating")]
|
||||
public double? AudienceRating { get; set; }
|
||||
public double AudienceRating { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The release year of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("year")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[JsonProperty("seasonCount")]
|
||||
public int? SeasonCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A brief tagline for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("tagline")]
|
||||
public string? Tagline { get; set; }
|
||||
public string Tagline { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
/// The thumbnail image URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("flattenSeasons")]
|
||||
public FlattenSeasons? FlattenSeasons { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
/// </summary>
|
||||
[JsonProperty("episodeSort")]
|
||||
public EpisodeSort? EpisodeSort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
/// </summary>
|
||||
[JsonProperty("enableCreditsMarkerGeneration")]
|
||||
public EnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates the episode ordering for the show.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// 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")]
|
||||
public string? Thumb { get; set; }
|
||||
public string Thumb { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The art image URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
public string Art { get; set; } = default!;
|
||||
|
||||
[JsonProperty("banner")]
|
||||
public string? Banner { get; set; }
|
||||
/// <summary>
|
||||
/// The theme URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("theme")]
|
||||
public string Theme { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The index position of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("index")]
|
||||
public int Index { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The number of leaf items (end nodes) under this media item.
|
||||
/// </summary>
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of leaf items that have been viewed.
|
||||
/// </summary>
|
||||
[JsonProperty("viewedLeafCount")]
|
||||
public int? ViewedLeafCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of child items associated with this media item.
|
||||
/// </summary>
|
||||
[JsonProperty("childCount")]
|
||||
public int ChildCount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The total number of seasons (for TV shows).
|
||||
/// </summary>
|
||||
[JsonProperty("seasonCount")]
|
||||
public int SeasonCount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The duration of the media item in milliseconds.
|
||||
/// </summary>
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
public int Duration { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The original release date of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unix epoch datetime in seconds
|
||||
/// </summary>
|
||||
[JsonProperty("addedAt")]
|
||||
public long AddedAt { get; set; } = default!;
|
||||
|
||||
@@ -147,52 +181,233 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("updatedAt")]
|
||||
public long? UpdatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL for the audience rating image.
|
||||
/// </summary>
|
||||
[JsonProperty("audienceRatingImage")]
|
||||
public string? AudienceRatingImage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The source from which chapter data is derived.
|
||||
/// </summary>
|
||||
[JsonProperty("chapterSource")]
|
||||
public string? ChapterSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The primary extra key associated with this media item.
|
||||
/// </summary>
|
||||
[JsonProperty("primaryExtraKey")]
|
||||
public string? PrimaryExtraKey { get; set; }
|
||||
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
/// <summary>
|
||||
/// The original title of the media item (if different).
|
||||
/// </summary>
|
||||
[JsonProperty("originalTitle")]
|
||||
public string? OriginalTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The rating key of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentRatingKey")]
|
||||
public string? ParentRatingKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The rating key of the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentRatingKey")]
|
||||
public string? GrandparentRatingKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The GUID of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentGuid")]
|
||||
public string? ParentGuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The GUID of the grandparent media item.
|
||||
/// </summary>
|
||||
[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; }
|
||||
|
||||
/// <summary>
|
||||
/// The slug for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentSlug")]
|
||||
public string? GrandparentSlug { get; set; }
|
||||
|
||||
[JsonProperty("grandparentArt")]
|
||||
public string? GrandparentArt { get; set; }
|
||||
/// <summary>
|
||||
/// The key of the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentKey")]
|
||||
public string? GrandparentKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The key of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentKey")]
|
||||
public string? ParentKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentTitle")]
|
||||
public string? GrandparentTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The thumbnail URL for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentThumb")]
|
||||
public string? GrandparentThumb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The theme URL for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentTheme")]
|
||||
public string? GrandparentTheme { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Media object is only included when type query is `4` or higher.<br/>
|
||||
/// The art URL for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentArt")]
|
||||
public string? GrandparentArt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentTitle")]
|
||||
public string? ParentTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The index position of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentIndex")]
|
||||
public int? ParentIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The thumbnail URL for the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentThumb")]
|
||||
public string? ParentThumb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL for the rating image.
|
||||
/// </summary>
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of times this media item has been viewed.
|
||||
/// </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 times this media item has been skipped.
|
||||
/// </summary>
|
||||
[JsonProperty("skipCount")]
|
||||
public int? SkipCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
|
||||
/// </summary>
|
||||
[JsonProperty("subtype")]
|
||||
public string? Subtype { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Unix timestamp representing the last time the item was rated.
|
||||
/// </summary>
|
||||
[JsonProperty("lastRatedAt")]
|
||||
public long? LastRatedAt { 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>
|
||||
/// Unix timestamp for when the media item was last viewed.
|
||||
/// </summary>
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The rating provided by a user for the item. This value is expressed as a decimal number.
|
||||
/// </summary>
|
||||
[JsonProperty("userRating")]
|
||||
public float? UserRating { get; set; }
|
||||
|
||||
[JsonProperty("Image")]
|
||||
public List<GetLibraryItemsImage>? Image { get; set; }
|
||||
|
||||
[JsonProperty("UltraBlurColors")]
|
||||
public GetLibraryItemsUltraBlurColors? UltraBlurColors { get; set; }
|
||||
|
||||
[JsonProperty("Guid")]
|
||||
public List<GetLibraryItemsGuids>? Guids { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The key corresponding to the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates the episode ordering for the show.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// Options:<br/>
|
||||
/// - 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; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("flattenSeasons")]
|
||||
public FlattenSeasons? FlattenSeasons { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether child items should be skipped.
|
||||
/// </summary>
|
||||
[JsonProperty("skipChildren")]
|
||||
public bool? SkipChildren { get; set; }
|
||||
|
||||
[JsonProperty("Media")]
|
||||
public List<GetLibraryItemsMedia>? Media { get; set; }
|
||||
|
||||
@@ -208,105 +423,31 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("Writer")]
|
||||
public List<GetLibraryItemsWriter>? Writer { get; set; }
|
||||
|
||||
[JsonProperty("Producer")]
|
||||
public List<GetLibraryItemsProducer>? Producer { get; set; }
|
||||
|
||||
[JsonProperty("Collection")]
|
||||
public List<GetLibraryItemsCollection>? Collection { get; set; }
|
||||
|
||||
[JsonProperty("Role")]
|
||||
public List<GetLibraryItemsRole>? Role { get; set; }
|
||||
|
||||
[JsonProperty("Rating")]
|
||||
public List<Ratings>? Ratings { get; set; }
|
||||
|
||||
[JsonProperty("Similar")]
|
||||
public List<GetLibraryItemsSimilar>? Similar { get; set; }
|
||||
|
||||
[JsonProperty("Location")]
|
||||
public List<GetLibraryItemsLocation>? 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")]
|
||||
public List<MediaGuid>? MediaGuid { get; set; }
|
||||
[JsonProperty("Chapter")]
|
||||
public List<Chapter>? Chapter { get; set; }
|
||||
|
||||
[JsonProperty("UltraBlurColors")]
|
||||
public GetLibraryItemsUltraBlurColors? UltraBlurColors { get; set; }
|
||||
[JsonProperty("Marker")]
|
||||
public List<Marker>? Marker { get; set; }
|
||||
|
||||
[JsonProperty("Rating")]
|
||||
public List<MetaDataRating>? MetaDataRating { get; set; }
|
||||
|
||||
[JsonProperty("Image")]
|
||||
public List<GetLibraryItemsImage>? 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; }
|
||||
[JsonProperty("Extras")]
|
||||
public Extras? Extras { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,12 +9,191 @@
|
||||
#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 enum GetLibraryItemsOptimizedForStreaming
|
||||
|
||||
public class GetLibraryItemsOptimizedForStreamingType
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
private GetLibraryItemsOptimizedForStreamingType(string value) { Value = value; }
|
||||
|
||||
public string Value { get; private set; }
|
||||
public static GetLibraryItemsOptimizedForStreamingType OptimizedForStreaming1 { get { return new GetLibraryItemsOptimizedForStreamingType("optimizedForStreaming_1"); } }
|
||||
|
||||
public static GetLibraryItemsOptimizedForStreamingType Boolean { get { return new GetLibraryItemsOptimizedForStreamingType("boolean"); } }
|
||||
|
||||
public static GetLibraryItemsOptimizedForStreamingType Null { get { return new GetLibraryItemsOptimizedForStreamingType("null"); } }
|
||||
|
||||
public override string ToString() { return Value; }
|
||||
public static implicit operator String(GetLibraryItemsOptimizedForStreamingType v) { return v.Value; }
|
||||
public static GetLibraryItemsOptimizedForStreamingType FromString(string v) {
|
||||
switch(v) {
|
||||
case "optimizedForStreaming_1": return OptimizedForStreaming1;
|
||||
case "boolean": return Boolean;
|
||||
case "null": return Null;
|
||||
default: throw new ArgumentException("Invalid value for GetLibraryItemsOptimizedForStreamingType");
|
||||
}
|
||||
}
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj == null || GetType() != obj.GetType())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return Value.Equals(((GetLibraryItemsOptimizedForStreamingType)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(GetLibraryItemsOptimizedForStreaming.GetLibraryItemsOptimizedForStreamingConverter))]
|
||||
public class GetLibraryItemsOptimizedForStreaming {
|
||||
public GetLibraryItemsOptimizedForStreaming(GetLibraryItemsOptimizedForStreamingType type) {
|
||||
Type = type;
|
||||
}
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public OptimizedForStreaming1? OptimizedForStreaming1 { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public bool? Boolean { get; set; }
|
||||
|
||||
public GetLibraryItemsOptimizedForStreamingType Type { get; set; }
|
||||
|
||||
|
||||
public static GetLibraryItemsOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1) {
|
||||
GetLibraryItemsOptimizedForStreamingType typ = GetLibraryItemsOptimizedForStreamingType.OptimizedForStreaming1;
|
||||
|
||||
GetLibraryItemsOptimizedForStreaming res = new GetLibraryItemsOptimizedForStreaming(typ);
|
||||
res.OptimizedForStreaming1 = optimizedForStreaming1;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetLibraryItemsOptimizedForStreaming CreateBoolean(bool boolean) {
|
||||
GetLibraryItemsOptimizedForStreamingType typ = GetLibraryItemsOptimizedForStreamingType.Boolean;
|
||||
|
||||
GetLibraryItemsOptimizedForStreaming res = new GetLibraryItemsOptimizedForStreaming(typ);
|
||||
res.Boolean = boolean;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetLibraryItemsOptimizedForStreaming CreateNull() {
|
||||
GetLibraryItemsOptimizedForStreamingType typ = GetLibraryItemsOptimizedForStreamingType.Null;
|
||||
return new GetLibraryItemsOptimizedForStreaming(typ);
|
||||
}
|
||||
|
||||
public class GetLibraryItemsOptimizedForStreamingConverter : JsonConverter
|
||||
{
|
||||
|
||||
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetLibraryItemsOptimizedForStreaming);
|
||||
|
||||
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 GetLibraryItemsOptimizedForStreaming(GetLibraryItemsOptimizedForStreamingType.OptimizedForStreaming1)
|
||||
{
|
||||
OptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<OptimizedForStreaming1>(json)
|
||||
};
|
||||
}
|
||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||
{
|
||||
fallbackCandidates.Add((typeof(OptimizedForStreaming1), new GetLibraryItemsOptimizedForStreaming(GetLibraryItemsOptimizedForStreamingType.OptimizedForStreaming1), "OptimizedForStreaming1"));
|
||||
}
|
||||
catch (ResponseBodyDeserializer.DeserializationException)
|
||||
{
|
||||
// try next option
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var converted = Convert.ToBoolean(json);
|
||||
return new GetLibraryItemsOptimizedForStreaming(GetLibraryItemsOptimizedForStreamingType.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;
|
||||
}
|
||||
GetLibraryItemsOptimizedForStreaming res = (GetLibraryItemsOptimizedForStreaming)value;
|
||||
if (GetLibraryItemsOptimizedForStreamingType.FromString(res.Type).Equals(GetLibraryItemsOptimizedForStreamingType.Null))
|
||||
{
|
||||
writer.WriteRawValue("null");
|
||||
return;
|
||||
}
|
||||
if (res.OptimizedForStreaming1 != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.OptimizedForStreaming1));
|
||||
return;
|
||||
}
|
||||
if (res.Boolean != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -10,12 +10,11 @@
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesCollection
|
||||
public enum GetLibraryItemsOptimizedForStreaming1
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
Zero = 0,
|
||||
One = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,58 +9,94 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetLibraryItemsPart
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the part is accessible.
|
||||
/// </summary>
|
||||
[JsonProperty("accessible")]
|
||||
public bool? Accessible { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the part exists.
|
||||
/// </summary>
|
||||
[JsonProperty("exists")]
|
||||
public bool? Exists { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unique part identifier.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Key to access this part.
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Duration of the part in milliseconds.
|
||||
/// </summary>
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// File path for the part.
|
||||
/// </summary>
|
||||
[JsonProperty("file")]
|
||||
public string File { get; set; } = default!;
|
||||
|
||||
[JsonProperty("size")]
|
||||
public long Size { get; set; } = default!;
|
||||
public string? File { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The container format of the media file.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// File size in bytes.
|
||||
/// </summary>
|
||||
[JsonProperty("size")]
|
||||
public long? Size { get; set; }
|
||||
|
||||
[JsonProperty("packetLength")]
|
||||
public int? PacketLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Container format of the part.
|
||||
/// </summary>
|
||||
[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")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
public GetLibraryItemsLibraryOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("hasThumbnail")]
|
||||
public GetLibraryItemsHasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetLibraryItemsHasThumbnail.False;
|
||||
|
||||
[JsonProperty("Stream")]
|
||||
public List<GetLibraryItemsStream>? Stream { 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 GetLibraryItemsProducer
|
||||
{
|
||||
|
||||
/// <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; }
|
||||
}
|
||||
}
|
||||
@@ -16,39 +16,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The ID of the tag or actor.
|
||||
/// The unique identifier for the role.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public long? Id { get; set; }
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The filter used to find the actor or tag.
|
||||
/// </summary>
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The thumbnail of the actor
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the tag or actor.
|
||||
/// The display tag for the actor (typically the actor's name).
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Unique identifier for the tag.
|
||||
/// </summary>
|
||||
[JsonProperty("tagKey")]
|
||||
public string? TagKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The role of the actor or tag in the media.
|
||||
/// The role played by the actor in the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("role")]
|
||||
public string? Role { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The absolute URL of the thumbnail image for the actor.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,25 +12,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesMetaDataRating
|
||||
public class GetLibraryItemsSimilar
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A URI or path to the rating image.
|
||||
/// The unique similar item identifier.
|
||||
/// </summary>
|
||||
[JsonProperty("image")]
|
||||
public string Image { get; set; } = default!;
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The value of the rating.
|
||||
/// The filter string for similar items.
|
||||
/// </summary>
|
||||
[JsonProperty("value")]
|
||||
public float Value { get; set; } = default!;
|
||||
[JsonProperty("filter")]
|
||||
public string Filter { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The type of rating (e.g., audience, critic).
|
||||
/// The tag or title of the similar content.
|
||||
/// </summary>
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
[JsonProperty("tag")]
|
||||
public string Tag { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -1,234 +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 GetLibraryItemsStream
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Type of stream (1 = video, 2 = audio, 3 = subtitle)
|
||||
/// </summary>
|
||||
[JsonProperty("streamType")]
|
||||
public long StreamType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if this is the default stream
|
||||
/// </summary>
|
||||
[JsonProperty("default")]
|
||||
public bool? Default { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the stream is selected
|
||||
/// </summary>
|
||||
[JsonProperty("selected")]
|
||||
public bool? Selected { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Codec used by the stream
|
||||
/// </summary>
|
||||
[JsonProperty("codec")]
|
||||
public string Codec { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The index of the stream
|
||||
/// </summary>
|
||||
[JsonProperty("index")]
|
||||
public long Index { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The bitrate of the stream in kbps
|
||||
/// </summary>
|
||||
[JsonProperty("bitrate")]
|
||||
public long? Bitrate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The color primaries of the video 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>
|
||||
[JsonProperty("language")]
|
||||
public string? Language { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Language tag of the stream
|
||||
/// </summary>
|
||||
[JsonProperty("languageTag")]
|
||||
public string? LanguageTag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Language code of the stream
|
||||
/// </summary>
|
||||
[JsonProperty("languageCode")]
|
||||
public string? LanguageCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The audio channel layout
|
||||
/// </summary>
|
||||
[JsonProperty("audioChannelLayout")]
|
||||
public string? AudioChannelLayout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Sampling rate of the audio stream in Hz
|
||||
/// </summary>
|
||||
[JsonProperty("samplingRate")]
|
||||
public long? SamplingRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Title of the subtitle track (for subtitle streams)
|
||||
/// </summary>
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the subtitle stream can auto-sync
|
||||
/// </summary>
|
||||
[JsonProperty("canAutoSync")]
|
||||
public bool? CanAutoSync { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,36 +9,72 @@
|
||||
#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;
|
||||
using System;
|
||||
|
||||
public class GetLibraryItemsType
|
||||
/// <summary>
|
||||
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetLibraryItemsType
|
||||
{
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("subtype")]
|
||||
public string? Subtype { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
[JsonProperty("active")]
|
||||
public bool Active { get; set; } = default!;
|
||||
|
||||
[JsonProperty("Filter")]
|
||||
public List<GetLibraryItemsFilter>? Filter { get; set; }
|
||||
|
||||
[JsonProperty("Sort")]
|
||||
public List<GetLibraryItemsSort>? Sort { get; set; }
|
||||
|
||||
[JsonProperty("Field")]
|
||||
public List<GetLibraryItemsField>? Field { get; set; }
|
||||
[JsonProperty("movie")]
|
||||
Movie,
|
||||
[JsonProperty("show")]
|
||||
TvShow,
|
||||
[JsonProperty("season")]
|
||||
Season,
|
||||
[JsonProperty("episode")]
|
||||
Episode,
|
||||
[JsonProperty("artist")]
|
||||
Artist,
|
||||
[JsonProperty("album")]
|
||||
Album,
|
||||
[JsonProperty("track")]
|
||||
Track,
|
||||
[JsonProperty("photoalbum")]
|
||||
PhotoAlbum,
|
||||
[JsonProperty("photo")]
|
||||
Photo,
|
||||
[JsonProperty("collection")]
|
||||
Collection,
|
||||
}
|
||||
|
||||
public static class GetLibraryItemsTypeExtension
|
||||
{
|
||||
public static string Value(this GetLibraryItemsType value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetLibraryItemsType ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetLibraryItemsType).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 GetLibraryItemsType)
|
||||
{
|
||||
return (GetLibraryItemsType)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetLibraryItemsType");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,7 +15,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetLibraryItemsWriter
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unique identifier for the writer.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The role of Writer
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The absolute URL of the thumbnail image for the writer.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
private GetLibrarySectionsAllLibraryOptimizedForStreamingType(string value) { Value = value; }
|
||||
|
||||
public string Value { get; private set; }
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType GetLibrarySectionsAllOptimizedForStreaming1 { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("get-library-sections-all_optimizedForStreaming_1"); } }
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType GetLibrarySectionsAllOptimizedForStreamingLibrary1 { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("get-library-sections-all_optimizedForStreaming_Library_1"); } }
|
||||
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType Boolean { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("boolean"); } }
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public static implicit operator String(GetLibrarySectionsAllLibraryOptimizedForStreamingType v) { return v.Value; }
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType FromString(string v) {
|
||||
switch(v) {
|
||||
case "get-library-sections-all_optimizedForStreaming_1": return GetLibrarySectionsAllOptimizedForStreaming1;
|
||||
case "get-library-sections-all_optimizedForStreaming_Library_1": return GetLibrarySectionsAllOptimizedForStreamingLibrary1;
|
||||
case "boolean": return Boolean;
|
||||
case "null": return Null;
|
||||
default: throw new ArgumentException("Invalid value for GetLibrarySectionsAllLibraryOptimizedForStreamingType");
|
||||
@@ -66,7 +66,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
}
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public GetLibrarySectionsAllOptimizedForStreaming1? GetLibrarySectionsAllOptimizedForStreaming1 { get; set; }
|
||||
public GetLibrarySectionsAllOptimizedForStreamingLibrary1? GetLibrarySectionsAllOptimizedForStreamingLibrary1 { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public bool? Boolean { get; set; }
|
||||
@@ -74,11 +74,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public GetLibrarySectionsAllLibraryOptimizedForStreamingType Type { get; set; }
|
||||
|
||||
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreaming1(GetLibrarySectionsAllOptimizedForStreaming1 getLibrarySectionsAllOptimizedForStreaming1) {
|
||||
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1;
|
||||
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreamingLibrary1(GetLibrarySectionsAllOptimizedForStreamingLibrary1 getLibrarySectionsAllOptimizedForStreamingLibrary1) {
|
||||
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreamingLibrary1;
|
||||
|
||||
GetLibrarySectionsAllLibraryOptimizedForStreaming res = new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
|
||||
res.GetLibrarySectionsAllOptimizedForStreaming1 = getLibrarySectionsAllOptimizedForStreaming1;
|
||||
res.GetLibrarySectionsAllOptimizedForStreamingLibrary1 = getLibrarySectionsAllOptimizedForStreamingLibrary1;
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -114,14 +114,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
|
||||
try
|
||||
{
|
||||
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1)
|
||||
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreamingLibrary1)
|
||||
{
|
||||
GetLibrarySectionsAllOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetLibrarySectionsAllOptimizedForStreaming1>(json)
|
||||
GetLibrarySectionsAllOptimizedForStreamingLibrary1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetLibrarySectionsAllOptimizedForStreamingLibrary1>(json)
|
||||
};
|
||||
}
|
||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||
{
|
||||
fallbackCandidates.Add((typeof(GetLibrarySectionsAllOptimizedForStreaming1), new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1), "GetLibrarySectionsAllOptimizedForStreaming1"));
|
||||
fallbackCandidates.Add((typeof(GetLibrarySectionsAllOptimizedForStreamingLibrary1), new GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreamingLibrary1), "GetLibrarySectionsAllOptimizedForStreamingLibrary1"));
|
||||
}
|
||||
catch (ResponseBodyDeserializer.DeserializationException)
|
||||
{
|
||||
@@ -180,9 +180,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
writer.WriteRawValue("null");
|
||||
return;
|
||||
}
|
||||
if (res.GetLibrarySectionsAllOptimizedForStreaming1 != null)
|
||||
if (res.GetLibrarySectionsAllOptimizedForStreamingLibrary1 != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibrarySectionsAllOptimizedForStreaming1));
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibrarySectionsAllOptimizedForStreamingLibrary1));
|
||||
return;
|
||||
}
|
||||
if (res.Boolean != null)
|
||||
|
||||
@@ -63,13 +63,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// The unique identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long LibrarySectionID { get; set; } = default!;
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string LibrarySectionTitle { get; set; } = default!;
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The universally unique identifier for the library section.
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// The original release date of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate OriginallyAvailableAt { get; set; } = default!;
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public long AddedAt { get; set; } = default!;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
private GetLibrarySectionsAllOptimizedForStreamingType(string value) { Value = value; }
|
||||
|
||||
public string Value { get; private set; }
|
||||
public static GetLibrarySectionsAllOptimizedForStreamingType OptimizedForStreaming1 { get { return new GetLibrarySectionsAllOptimizedForStreamingType("optimizedForStreaming_1"); } }
|
||||
public static GetLibrarySectionsAllOptimizedForStreamingType GetLibrarySectionsAllOptimizedForStreaming1 { get { return new GetLibrarySectionsAllOptimizedForStreamingType("get-library-sections-all_optimizedForStreaming_1"); } }
|
||||
|
||||
public static GetLibrarySectionsAllOptimizedForStreamingType Boolean { get { return new GetLibrarySectionsAllOptimizedForStreamingType("boolean"); } }
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public static implicit operator String(GetLibrarySectionsAllOptimizedForStreamingType v) { return v.Value; }
|
||||
public static GetLibrarySectionsAllOptimizedForStreamingType FromString(string v) {
|
||||
switch(v) {
|
||||
case "optimizedForStreaming_1": return OptimizedForStreaming1;
|
||||
case "get-library-sections-all_optimizedForStreaming_1": return GetLibrarySectionsAllOptimizedForStreaming1;
|
||||
case "boolean": return Boolean;
|
||||
case "null": return Null;
|
||||
default: throw new ArgumentException("Invalid value for GetLibrarySectionsAllOptimizedForStreamingType");
|
||||
@@ -66,7 +66,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
}
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public OptimizedForStreaming1? OptimizedForStreaming1 { get; set; }
|
||||
public GetLibrarySectionsAllOptimizedForStreaming1? GetLibrarySectionsAllOptimizedForStreaming1 { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public bool? Boolean { get; set; }
|
||||
@@ -74,11 +74,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public GetLibrarySectionsAllOptimizedForStreamingType Type { get; set; }
|
||||
|
||||
|
||||
public static GetLibrarySectionsAllOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1) {
|
||||
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.OptimizedForStreaming1;
|
||||
public static GetLibrarySectionsAllOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreaming1(GetLibrarySectionsAllOptimizedForStreaming1 getLibrarySectionsAllOptimizedForStreaming1) {
|
||||
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1;
|
||||
|
||||
GetLibrarySectionsAllOptimizedForStreaming res = new GetLibrarySectionsAllOptimizedForStreaming(typ);
|
||||
res.OptimizedForStreaming1 = optimizedForStreaming1;
|
||||
res.GetLibrarySectionsAllOptimizedForStreaming1 = getLibrarySectionsAllOptimizedForStreaming1;
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -114,14 +114,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
|
||||
try
|
||||
{
|
||||
return new GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType.OptimizedForStreaming1)
|
||||
return new GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1)
|
||||
{
|
||||
OptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<OptimizedForStreaming1>(json)
|
||||
GetLibrarySectionsAllOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetLibrarySectionsAllOptimizedForStreaming1>(json)
|
||||
};
|
||||
}
|
||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||
{
|
||||
fallbackCandidates.Add((typeof(OptimizedForStreaming1), new GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType.OptimizedForStreaming1), "OptimizedForStreaming1"));
|
||||
fallbackCandidates.Add((typeof(GetLibrarySectionsAllOptimizedForStreaming1), new GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1), "GetLibrarySectionsAllOptimizedForStreaming1"));
|
||||
}
|
||||
catch (ResponseBodyDeserializer.DeserializationException)
|
||||
{
|
||||
@@ -180,9 +180,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
writer.WriteRawValue("null");
|
||||
return;
|
||||
}
|
||||
if (res.OptimizedForStreaming1 != null)
|
||||
if (res.GetLibrarySectionsAllOptimizedForStreaming1 != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.OptimizedForStreaming1));
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibrarySectionsAllOptimizedForStreaming1));
|
||||
return;
|
||||
}
|
||||
if (res.Boolean != null)
|
||||
|
||||
@@ -11,21 +11,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Stream type:<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// - 1 = video<br/>
|
||||
/// - 2 = audio<br/>
|
||||
/// - 3 = subtitle<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum StreamType
|
||||
public enum GetLibrarySectionsAllOptimizedForStreamingLibrary1
|
||||
{
|
||||
Video = 1,
|
||||
Audio = 2,
|
||||
Subtitle = 3,
|
||||
Zero = 0,
|
||||
One = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,6 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -26,14 +25,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// Stream type:<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// - 1 = video<br/>
|
||||
/// - 2 = audio<br/>
|
||||
/// - 3 = subtitle<br/>
|
||||
/// - VIDEO = 1<br/>
|
||||
/// - AUDIO = 2<br/>
|
||||
/// - SUBTITLE = 3<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("streamType")]
|
||||
public GetLibrarySectionsAllStreamType StreamType { get; set; } = default!;
|
||||
public long StreamType { get; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Format of the stream (e.g., srt).
|
||||
|
||||
@@ -1,31 +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;
|
||||
|
||||
/// <summary>
|
||||
/// Stream type:<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// - 1 = video<br/>
|
||||
/// - 2 = audio<br/>
|
||||
/// - 3 = subtitle<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetLibrarySectionsAllStreamType
|
||||
{
|
||||
Video = 1,
|
||||
Audio = 2,
|
||||
Subtitle = 3,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
|
||||
/// <summary>
|
||||
/// Attributes associated with the marker.
|
||||
/// </summary>
|
||||
public class GetMediaMetaDataAttributes
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The identifier for the attributes.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The version number of the marker attributes.
|
||||
/// </summary>
|
||||
[JsonProperty("version")]
|
||||
public long? Version { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,22 +12,28 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetLibraryItemsLibraryFilter
|
||||
/// <summary>
|
||||
/// The thumbnail for the chapter
|
||||
/// </summary>
|
||||
public class GetMediaMetaDataChapter
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("filter")]
|
||||
public string Filter { get; set; } = default!;
|
||||
|
||||
[JsonProperty("filterType")]
|
||||
public string FilterType { get; set; } = default!;
|
||||
[JsonProperty("index")]
|
||||
public long Index { get; set; } = default!;
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
[JsonProperty("startTimeOffset")]
|
||||
public long StartTimeOffset { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
[JsonProperty("endTimeOffset")]
|
||||
public long EndTimeOffset { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
[JsonProperty("thumb")]
|
||||
public string Thumb { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -12,13 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetLibraryItemsLibraryOperator
|
||||
public class GetMediaMetaDataExtras
|
||||
{
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
/// <summary>
|
||||
/// The size of the extras.
|
||||
/// </summary>
|
||||
[JsonProperty("size")]
|
||||
public long? Size { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the part has a thumbnail.
|
||||
/// Indicates if the part has a thumbnail.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetMediaMetaDataHasThumbnail
|
||||
{
|
||||
|
||||
@@ -57,7 +57,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(GetMediaMetaDataLibraryOptimizedForStreaming.GetMediaMetaDataLibraryOptimizedForStreamingConverter))]
|
||||
public class GetMediaMetaDataLibraryOptimizedForStreaming {
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
/// <summary>
|
||||
/// The final status of the marker
|
||||
/// </summary>
|
||||
public class GetMediaMetaDataMarker
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("startTimeOffset")]
|
||||
public long StartTimeOffset { get; set; } = default!;
|
||||
|
||||
[JsonProperty("endTimeOffset")]
|
||||
public long EndTimeOffset { get; set; } = default!;
|
||||
|
||||
[JsonProperty("final")]
|
||||
public bool? Final { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Attributes associated with the marker.
|
||||
/// </summary>
|
||||
[JsonProperty("Attributes")]
|
||||
public GetMediaMetaDataAttributes? Attributes { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// File container type.
|
||||
/// Container format of the media.
|
||||
/// </summary>
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
@@ -121,12 +121,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public GetMediaMetaDataOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether the media has 64-bit offsets.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// This is relevant for media files that may require larger offsets than what 32-bit integers can provide.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// An array of parts for this media item.
|
||||
/// </summary>
|
||||
[JsonProperty("Part")]
|
||||
public List<GetMediaMetaDataPart>? Part { get; set; }
|
||||
}
|
||||
|
||||
@@ -39,13 +39,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// The unique identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long LibrarySectionID { get; set; } = default!;
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string LibrarySectionTitle { get; set; } = default!;
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The universally unique identifier for the library section.
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// The original release date of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate OriginallyAvailableAt { get; set; } = default!;
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public long AddedAt { get; set; } = default!;
|
||||
@@ -353,19 +353,19 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// The identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long LibrarySectionID { get; set; } = default!;
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string LibrarySectionTitle { get; set; } = default!;
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The key corresponding to the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string LibrarySectionKey { get; set; } = default!;
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
[JsonProperty("Guid")]
|
||||
public List<GetMediaMetaDataGuids>? Guids { get; set; }
|
||||
@@ -392,7 +392,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public List<GetMediaMetaDataRole>? Role { get; set; }
|
||||
|
||||
[JsonProperty("Rating")]
|
||||
public List<Ratings>? Ratings { get; set; }
|
||||
public List<GetMediaMetaDataRatings>? Ratings { get; set; }
|
||||
|
||||
[JsonProperty("Similar")]
|
||||
public List<GetMediaMetaDataSimilar>? Similar { get; set; }
|
||||
@@ -401,12 +401,12 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public List<GetMediaMetaDataLocation>? Location { get; set; }
|
||||
|
||||
[JsonProperty("Chapter")]
|
||||
public List<Chapter>? Chapter { get; set; }
|
||||
public List<GetMediaMetaDataChapter>? Chapter { get; set; }
|
||||
|
||||
[JsonProperty("Marker")]
|
||||
public List<Marker>? Marker { get; set; }
|
||||
public List<GetMediaMetaDataMarker>? Marker { get; set; }
|
||||
|
||||
[JsonProperty("Extras")]
|
||||
public Extras? Extras { get; set; }
|
||||
public GetMediaMetaDataExtras? Extras { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// Key to access this part.
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
@@ -55,13 +55,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// File path for the part.
|
||||
/// </summary>
|
||||
[JsonProperty("file")]
|
||||
public string File { get; set; } = default!;
|
||||
public string? File { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// File size in bytes.
|
||||
/// </summary>
|
||||
[JsonProperty("size")]
|
||||
public long Size { get; set; } = default!;
|
||||
public long? Size { get; set; }
|
||||
|
||||
[JsonProperty("packetLength")]
|
||||
public int? PacketLength { get; set; }
|
||||
@@ -88,7 +88,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public GetMediaMetaDataLibraryOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||
@@ -96,9 +100,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("hasThumbnail")]
|
||||
public GetMediaMetaDataHasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetMediaMetaDataHasThumbnail.False;
|
||||
|
||||
/// <summary>
|
||||
/// An array of streams for this part.
|
||||
/// </summary>
|
||||
[JsonProperty("Stream")]
|
||||
public List<GetMediaMetaDataStream>? Stream { get; set; }
|
||||
}
|
||||
|
||||
@@ -12,17 +12,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class MetaDataRating
|
||||
public class GetMediaMetaDataRatings
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A URI or path to the rating image.
|
||||
/// The image or reference for the rating.
|
||||
/// </summary>
|
||||
[JsonProperty("image")]
|
||||
public string Image { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The value of the rating.
|
||||
/// The rating value.
|
||||
/// </summary>
|
||||
[JsonProperty("value")]
|
||||
public float Value { get; set; } = default!;
|
||||
@@ -9,7 +9,6 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -26,14 +25,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// Stream type:<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// - 1 = video<br/>
|
||||
/// - 2 = audio<br/>
|
||||
/// - 3 = subtitle<br/>
|
||||
/// - VIDEO = 1<br/>
|
||||
/// - AUDIO = 2<br/>
|
||||
/// - SUBTITLE = 3<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("streamType")]
|
||||
public GetMediaMetaDataStreamType StreamType { get; set; } = default!;
|
||||
public long StreamType { get; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Format of the stream (e.g., srt).
|
||||
@@ -51,7 +50,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// Codec used by the stream.
|
||||
/// </summary>
|
||||
[JsonProperty("codec")]
|
||||
public string Codec { get; set; } = default!;
|
||||
public string? Codec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Index of the stream.
|
||||
@@ -255,13 +254,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// Display title for the stream.
|
||||
/// </summary>
|
||||
[JsonProperty("displayTitle")]
|
||||
public string DisplayTitle { get; set; } = default!;
|
||||
public string? DisplayTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Extended display title for the stream.
|
||||
/// </summary>
|
||||
[JsonProperty("extendedDisplayTitle")]
|
||||
public string ExtendedDisplayTitle { get; set; } = default!;
|
||||
public string? ExtendedDisplayTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if this stream is selected (applicable for audio streams).
|
||||
|
||||
@@ -170,19 +170,19 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// The identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long LibrarySectionID { get; set; } = default!;
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The key corresponding to the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string LibrarySectionKey { get; set; } = default!;
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string LibrarySectionTitle { get; set; } = default!;
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The original title of the media item (if different).
|
||||
@@ -194,7 +194,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// The original release date of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate OriginallyAvailableAt { get; set; } = default!;
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The GUID of the parent media item.
|
||||
|
||||
@@ -15,7 +15,21 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetSearchAllLibrariesCountry
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the country.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The country of origin of this media item
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetSearchAllLibrariesDirector
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unique identifier for the director.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The role of Director
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The absolute URL of the thumbnail image for the director.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesDirectory
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier path for the search result item.
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
/// <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!;
|
||||
|
||||
[JsonProperty("librarySectionType")]
|
||||
public long LibrarySectionType { get; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The type of the directory.
|
||||
/// </summary>
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The filter string used to query this specific item in the library.
|
||||
/// </summary>
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The type of tag associated with this search result (e.g., Director, Actor).
|
||||
/// </summary>
|
||||
[JsonProperty("tagType")]
|
||||
public long TagType { get; } = 4;
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the tag associated with this search result.
|
||||
/// </summary>
|
||||
[JsonProperty("tagKey")]
|
||||
public string? TagKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL to the thumbnail image associated with this search result.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of items associated with this search result.
|
||||
/// </summary>
|
||||
[JsonProperty("count")]
|
||||
public long? Count { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -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 GetSearchAllLibrariesEnableCreditsMarkerGeneration
|
||||
{
|
||||
[JsonProperty("-1")]
|
||||
LibraryDefault,
|
||||
[JsonProperty("0")]
|
||||
Disabled,
|
||||
}
|
||||
|
||||
public static class GetSearchAllLibrariesEnableCreditsMarkerGenerationExtension
|
||||
{
|
||||
public static string Value(this GetSearchAllLibrariesEnableCreditsMarkerGeneration value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesEnableCreditsMarkerGeneration ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetSearchAllLibrariesEnableCreditsMarkerGeneration).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||
if (attribute != null && attribute.PropertyName == value)
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is GetSearchAllLibrariesEnableCreditsMarkerGeneration)
|
||||
{
|
||||
return (GetSearchAllLibrariesEnableCreditsMarkerGeneration)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesEnableCreditsMarkerGeneration");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 GetSearchAllLibrariesEpisodeSort
|
||||
{
|
||||
[JsonProperty("-1")]
|
||||
LibraryDefault,
|
||||
[JsonProperty("0")]
|
||||
OldestFirst,
|
||||
[JsonProperty("1")]
|
||||
NewestFirst,
|
||||
}
|
||||
|
||||
public static class GetSearchAllLibrariesEpisodeSortExtension
|
||||
{
|
||||
public static string Value(this GetSearchAllLibrariesEpisodeSort value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesEpisodeSort ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetSearchAllLibrariesEpisodeSort).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var attribute = attributes[0] as JsonPropertyAttribute;
|
||||
if (attribute != null && attribute.PropertyName == value)
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is GetSearchAllLibrariesEpisodeSort)
|
||||
{
|
||||
return (GetSearchAllLibrariesEpisodeSort)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesEpisodeSort");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -14,7 +14,11 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// 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).<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetSearchAllLibrariesFlattenSeasons
|
||||
{
|
||||
|
||||
@@ -15,7 +15,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetSearchAllLibrariesGenre
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the genre.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The genre name of this media-item<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -12,14 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesMediaGuid
|
||||
public class GetSearchAllLibrariesGuids
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Can be one of the following formats:<br/>
|
||||
/// The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
@@ -13,6 +13,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the part has a thumbnail.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetSearchAllLibrariesHasThumbnail
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
|
||||
@@ -0,0 +1,203 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesLibraryOptimizedForStreamingType
|
||||
{
|
||||
private GetSearchAllLibrariesLibraryOptimizedForStreamingType(string value) { Value = value; }
|
||||
|
||||
public string Value { get; private set; }
|
||||
public static GetSearchAllLibrariesLibraryOptimizedForStreamingType GetSearchAllLibrariesOptimizedForStreamingLibrary1 { get { return new GetSearchAllLibrariesLibraryOptimizedForStreamingType("get-search-all-libraries_optimizedForStreaming_Library_1"); } }
|
||||
|
||||
public static GetSearchAllLibrariesLibraryOptimizedForStreamingType Boolean { get { return new GetSearchAllLibrariesLibraryOptimizedForStreamingType("boolean"); } }
|
||||
|
||||
public static GetSearchAllLibrariesLibraryOptimizedForStreamingType Null { get { return new GetSearchAllLibrariesLibraryOptimizedForStreamingType("null"); } }
|
||||
|
||||
public override string ToString() { return Value; }
|
||||
public static implicit operator String(GetSearchAllLibrariesLibraryOptimizedForStreamingType v) { return v.Value; }
|
||||
public static GetSearchAllLibrariesLibraryOptimizedForStreamingType FromString(string v) {
|
||||
switch(v) {
|
||||
case "get-search-all-libraries_optimizedForStreaming_Library_1": return GetSearchAllLibrariesOptimizedForStreamingLibrary1;
|
||||
case "boolean": return Boolean;
|
||||
case "null": return Null;
|
||||
default: throw new ArgumentException("Invalid value for GetSearchAllLibrariesLibraryOptimizedForStreamingType");
|
||||
}
|
||||
}
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj == null || GetType() != obj.GetType())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return Value.Equals(((GetSearchAllLibrariesLibraryOptimizedForStreamingType)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<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(GetSearchAllLibrariesLibraryOptimizedForStreaming.GetSearchAllLibrariesLibraryOptimizedForStreamingConverter))]
|
||||
public class GetSearchAllLibrariesLibraryOptimizedForStreaming {
|
||||
public GetSearchAllLibrariesLibraryOptimizedForStreaming(GetSearchAllLibrariesLibraryOptimizedForStreamingType type) {
|
||||
Type = type;
|
||||
}
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public GetSearchAllLibrariesOptimizedForStreamingLibrary1? GetSearchAllLibrariesOptimizedForStreamingLibrary1 { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public bool? Boolean { get; set; }
|
||||
|
||||
public GetSearchAllLibrariesLibraryOptimizedForStreamingType Type { get; set; }
|
||||
|
||||
|
||||
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateGetSearchAllLibrariesOptimizedForStreamingLibrary1(GetSearchAllLibrariesOptimizedForStreamingLibrary1 getSearchAllLibrariesOptimizedForStreamingLibrary1) {
|
||||
GetSearchAllLibrariesLibraryOptimizedForStreamingType typ = GetSearchAllLibrariesLibraryOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreamingLibrary1;
|
||||
|
||||
GetSearchAllLibrariesLibraryOptimizedForStreaming res = new GetSearchAllLibrariesLibraryOptimizedForStreaming(typ);
|
||||
res.GetSearchAllLibrariesOptimizedForStreamingLibrary1 = getSearchAllLibrariesOptimizedForStreamingLibrary1;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
|
||||
GetSearchAllLibrariesLibraryOptimizedForStreamingType typ = GetSearchAllLibrariesLibraryOptimizedForStreamingType.Boolean;
|
||||
|
||||
GetSearchAllLibrariesLibraryOptimizedForStreaming res = new GetSearchAllLibrariesLibraryOptimizedForStreaming(typ);
|
||||
res.Boolean = boolean;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateNull() {
|
||||
GetSearchAllLibrariesLibraryOptimizedForStreamingType typ = GetSearchAllLibrariesLibraryOptimizedForStreamingType.Null;
|
||||
return new GetSearchAllLibrariesLibraryOptimizedForStreaming(typ);
|
||||
}
|
||||
|
||||
public class GetSearchAllLibrariesLibraryOptimizedForStreamingConverter : JsonConverter
|
||||
{
|
||||
|
||||
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetSearchAllLibrariesLibraryOptimizedForStreaming);
|
||||
|
||||
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 GetSearchAllLibrariesLibraryOptimizedForStreaming(GetSearchAllLibrariesLibraryOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreamingLibrary1)
|
||||
{
|
||||
GetSearchAllLibrariesOptimizedForStreamingLibrary1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetSearchAllLibrariesOptimizedForStreamingLibrary1>(json)
|
||||
};
|
||||
}
|
||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||
{
|
||||
fallbackCandidates.Add((typeof(GetSearchAllLibrariesOptimizedForStreamingLibrary1), new GetSearchAllLibrariesLibraryOptimizedForStreaming(GetSearchAllLibrariesLibraryOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreamingLibrary1), "GetSearchAllLibrariesOptimizedForStreamingLibrary1"));
|
||||
}
|
||||
catch (ResponseBodyDeserializer.DeserializationException)
|
||||
{
|
||||
// try next option
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var converted = Convert.ToBoolean(json);
|
||||
return new GetSearchAllLibrariesLibraryOptimizedForStreaming(GetSearchAllLibrariesLibraryOptimizedForStreamingType.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;
|
||||
}
|
||||
GetSearchAllLibrariesLibraryOptimizedForStreaming res = (GetSearchAllLibrariesLibraryOptimizedForStreaming)value;
|
||||
if (GetSearchAllLibrariesLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetSearchAllLibrariesLibraryOptimizedForStreamingType.Null))
|
||||
{
|
||||
writer.WriteRawValue("null");
|
||||
return;
|
||||
}
|
||||
if (res.GetSearchAllLibrariesOptimizedForStreamingLibrary1 != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.GetSearchAllLibrariesOptimizedForStreamingLibrary1));
|
||||
return;
|
||||
}
|
||||
if (res.Boolean != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
/// <summary>
|
||||
/// The folder path for the media item.
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesLocation
|
||||
{
|
||||
|
||||
[JsonProperty("path")]
|
||||
public string? Path { get; set; }
|
||||
public string Path { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
@@ -17,58 +18,121 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetSearchAllLibrariesMedia
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unique media identifier.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Duration of the media in milliseconds.
|
||||
/// </summary>
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bitrate in bits per second.
|
||||
/// </summary>
|
||||
[JsonProperty("bitrate")]
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video width in pixels.
|
||||
/// </summary>
|
||||
[JsonProperty("width")]
|
||||
public int? Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video height in pixels.
|
||||
/// </summary>
|
||||
[JsonProperty("height")]
|
||||
public int? Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Aspect ratio of the video.
|
||||
/// </summary>
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
public float? AspectRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of audio channels.
|
||||
/// </summary>
|
||||
[JsonProperty("audioChannels")]
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("displayOffset")]
|
||||
public int? DisplayOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Audio codec used.
|
||||
/// </summary>
|
||||
[JsonProperty("audioCodec")]
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video codec used.
|
||||
/// </summary>
|
||||
[JsonProperty("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video resolution (e.g., 4k).
|
||||
/// </summary>
|
||||
[JsonProperty("videoResolution")]
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Container format of the media.
|
||||
/// </summary>
|
||||
[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")]
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Video profile (e.g., main 10).
|
||||
/// </summary>
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether voice activity is detected.
|
||||
/// </summary>
|
||||
[JsonProperty("hasVoiceActivity")]
|
||||
public bool? HasVoiceActivity { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public GetSearchAllLibrariesOptimizedForStreaming? OptimizedForStreaming { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetSearchAllLibrariesOptimizedForStreaming.Disable;
|
||||
/// <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")]
|
||||
public GetSearchAllLibrariesOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether the media has 64-bit offsets.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// This is relevant for media files that may require larger offsets than what 32-bit integers can provide.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("Part")]
|
||||
public List<GetSearchAllLibrariesPart> Part { get; set; } = default!;
|
||||
public List<GetSearchAllLibrariesPart>? Part { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -17,8 +17,53 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetSearchAllLibrariesMediaContainer
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Number of media items returned in this response.
|
||||
/// </summary>
|
||||
[JsonProperty("size")]
|
||||
public double Size { get; set; } = default!;
|
||||
public int Size { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether syncing is allowed.
|
||||
/// </summary>
|
||||
[JsonProperty("allowSync")]
|
||||
public bool AllowSync { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// An plugin identifier for the media container.
|
||||
/// </summary>
|
||||
[JsonProperty("identifier")]
|
||||
public string Identifier { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The universally unique identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionUUID")]
|
||||
public string? LibrarySectionUUID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The prefix used for media tag resource paths.
|
||||
/// </summary>
|
||||
[JsonProperty("mediaTagPrefix")]
|
||||
public string MediaTagPrefix { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The version number for media tags.
|
||||
/// </summary>
|
||||
[JsonProperty("mediaTagVersion")]
|
||||
public long MediaTagVersion { get; set; } = default!;
|
||||
|
||||
[JsonProperty("SearchResult")]
|
||||
public List<SearchResult> SearchResult { get; set; } = default!;
|
||||
|
||||
@@ -15,129 +15,163 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using NodaTime;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesMetadata
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The rating key (Media ID) of this media item.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// Note: This is always an integer, but is represented as a string in the API.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// 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>
|
||||
[JsonProperty("ratingKey")]
|
||||
public string RatingKey { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The unique key for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The globally unique identifier for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("guid")]
|
||||
public string Guid { get; set; } = default!;
|
||||
|
||||
/// <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")]
|
||||
public string? Studio { get; set; }
|
||||
|
||||
[JsonProperty("skipChildren")]
|
||||
public bool? SkipChildren { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("type")]
|
||||
public GetSearchAllLibrariesType Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The title of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
[JsonProperty("slug")]
|
||||
public string? Slug { get; set; }
|
||||
/// <summary>
|
||||
/// The banner image URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("banner")]
|
||||
public string Banner { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The sort title used for ordering media items.
|
||||
/// </summary>
|
||||
[JsonProperty("titleSort")]
|
||||
public string TitleSort { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The content rating for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("contentRating")]
|
||||
public string? ContentRating { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A synopsis of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("summary")]
|
||||
public string Summary { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The critic rating for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("rating")]
|
||||
public double? Rating { get; set; }
|
||||
public float Rating { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The audience rating for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("audienceRating")]
|
||||
public double? AudienceRating { get; set; }
|
||||
public double AudienceRating { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The release year of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("year")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[JsonProperty("seasonCount")]
|
||||
public int? SeasonCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A brief tagline for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("tagline")]
|
||||
public string? Tagline { get; set; }
|
||||
public string Tagline { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
/// The thumbnail image URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("flattenSeasons")]
|
||||
public GetSearchAllLibrariesFlattenSeasons? FlattenSeasons { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
/// </summary>
|
||||
[JsonProperty("episodeSort")]
|
||||
public GetSearchAllLibrariesEpisodeSort? EpisodeSort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
/// </summary>
|
||||
[JsonProperty("enableCreditsMarkerGeneration")]
|
||||
public GetSearchAllLibrariesEnableCreditsMarkerGeneration? EnableCreditsMarkerGeneration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates the episode ordering for the show.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// 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 GetSearchAllLibrariesShowOrdering? ShowOrdering { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
public string Thumb { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The art image URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
public string Art { get; set; } = default!;
|
||||
|
||||
[JsonProperty("banner")]
|
||||
public string? Banner { get; set; }
|
||||
/// <summary>
|
||||
/// The theme URL for the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("theme")]
|
||||
public string Theme { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The index position of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("index")]
|
||||
public int Index { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The number of leaf items (end nodes) under this media item.
|
||||
/// </summary>
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of leaf items that have been viewed.
|
||||
/// </summary>
|
||||
[JsonProperty("viewedLeafCount")]
|
||||
public int? ViewedLeafCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of child items associated with this media item.
|
||||
/// </summary>
|
||||
[JsonProperty("childCount")]
|
||||
public int ChildCount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The total number of seasons (for TV shows).
|
||||
/// </summary>
|
||||
[JsonProperty("seasonCount")]
|
||||
public int SeasonCount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The duration of the media item in milliseconds.
|
||||
/// </summary>
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
public int Duration { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The original release date of the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unix epoch datetime in seconds
|
||||
/// </summary>
|
||||
[JsonProperty("addedAt")]
|
||||
public long AddedAt { get; set; } = default!;
|
||||
|
||||
@@ -147,52 +181,239 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("updatedAt")]
|
||||
public long? UpdatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The release year of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentYear")]
|
||||
public int? ParentYear { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL for the audience rating image.
|
||||
/// </summary>
|
||||
[JsonProperty("audienceRatingImage")]
|
||||
public string? AudienceRatingImage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The source from which chapter data is derived.
|
||||
/// </summary>
|
||||
[JsonProperty("chapterSource")]
|
||||
public string? ChapterSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The primary extra key associated with this media item.
|
||||
/// </summary>
|
||||
[JsonProperty("primaryExtraKey")]
|
||||
public string? PrimaryExtraKey { get; set; }
|
||||
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
/// <summary>
|
||||
/// The original title of the media item (if different).
|
||||
/// </summary>
|
||||
[JsonProperty("originalTitle")]
|
||||
public string? OriginalTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The rating key of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentRatingKey")]
|
||||
public string? ParentRatingKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The rating key of the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentRatingKey")]
|
||||
public string? GrandparentRatingKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The GUID of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentGuid")]
|
||||
public string? ParentGuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The GUID of the grandparent media item.
|
||||
/// </summary>
|
||||
[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; }
|
||||
|
||||
/// <summary>
|
||||
/// The slug for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentSlug")]
|
||||
public string? GrandparentSlug { get; set; }
|
||||
|
||||
[JsonProperty("grandparentArt")]
|
||||
public string? GrandparentArt { get; set; }
|
||||
/// <summary>
|
||||
/// The key of the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentKey")]
|
||||
public string? GrandparentKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The key of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentKey")]
|
||||
public string? ParentKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentTitle")]
|
||||
public string? GrandparentTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The thumbnail URL for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentThumb")]
|
||||
public string? GrandparentThumb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The theme URL for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentTheme")]
|
||||
public string? GrandparentTheme { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Media object is only included when type query is `4` or higher.<br/>
|
||||
/// The art URL for the grandparent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("grandparentArt")]
|
||||
public string? GrandparentArt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentTitle")]
|
||||
public string? ParentTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The index position of the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentIndex")]
|
||||
public int? ParentIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The thumbnail URL for the parent media item.
|
||||
/// </summary>
|
||||
[JsonProperty("parentThumb")]
|
||||
public string? ParentThumb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL for the rating image.
|
||||
/// </summary>
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of times this media item has been viewed.
|
||||
/// </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 times this media item has been skipped.
|
||||
/// </summary>
|
||||
[JsonProperty("skipCount")]
|
||||
public int? SkipCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
|
||||
/// </summary>
|
||||
[JsonProperty("subtype")]
|
||||
public string? Subtype { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Unix timestamp representing the last time the item was rated.
|
||||
/// </summary>
|
||||
[JsonProperty("lastRatedAt")]
|
||||
public long? LastRatedAt { 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>
|
||||
/// Unix timestamp for when the media item was last viewed.
|
||||
/// </summary>
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The rating provided by a user for the item. This value is expressed as a decimal number.
|
||||
/// </summary>
|
||||
[JsonProperty("userRating")]
|
||||
public float? UserRating { get; set; }
|
||||
|
||||
[JsonProperty("Image")]
|
||||
public List<GetSearchAllLibrariesImage>? Image { get; set; }
|
||||
|
||||
[JsonProperty("UltraBlurColors")]
|
||||
public GetSearchAllLibrariesUltraBlurColors? UltraBlurColors { get; set; }
|
||||
|
||||
[JsonProperty("Guid")]
|
||||
public List<GetSearchAllLibrariesGuids>? Guids { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The identifier for the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionID")]
|
||||
public long? LibrarySectionID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The title of the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The key corresponding to the library section.
|
||||
/// </summary>
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates the episode ordering for the show.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// Options:<br/>
|
||||
/// - 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 GetSearchAllLibrariesShowOrdering? ShowOrdering { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("flattenSeasons")]
|
||||
public GetSearchAllLibrariesFlattenSeasons? FlattenSeasons { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether child items should be skipped.
|
||||
/// </summary>
|
||||
[JsonProperty("skipChildren")]
|
||||
public bool? SkipChildren { get; set; }
|
||||
|
||||
[JsonProperty("Media")]
|
||||
public List<GetSearchAllLibrariesMedia>? Media { get; set; }
|
||||
|
||||
@@ -208,105 +429,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("Writer")]
|
||||
public List<GetSearchAllLibrariesWriter>? Writer { get; set; }
|
||||
|
||||
[JsonProperty("Collection")]
|
||||
public List<GetSearchAllLibrariesCollection>? Collection { get; set; }
|
||||
|
||||
[JsonProperty("Role")]
|
||||
public List<GetSearchAllLibrariesRole>? Role { get; set; }
|
||||
|
||||
[JsonProperty("Location")]
|
||||
public List<GetSearchAllLibrariesLocation>? 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")]
|
||||
public List<GetSearchAllLibrariesMediaGuid>? MediaGuid { get; set; }
|
||||
|
||||
[JsonProperty("UltraBlurColors")]
|
||||
public GetSearchAllLibrariesUltraBlurColors? UltraBlurColors { get; set; }
|
||||
|
||||
[JsonProperty("Rating")]
|
||||
public List<GetSearchAllLibrariesMetaDataRating>? MetaDataRating { get; set; }
|
||||
|
||||
[JsonProperty("Image")]
|
||||
public List<GetSearchAllLibrariesImage>? 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; }
|
||||
}
|
||||
}
|
||||
@@ -9,12 +9,191 @@
|
||||
#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 enum GetSearchAllLibrariesOptimizedForStreaming
|
||||
|
||||
public class GetSearchAllLibrariesOptimizedForStreamingType
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
private GetSearchAllLibrariesOptimizedForStreamingType(string value) { Value = value; }
|
||||
|
||||
public string Value { get; private set; }
|
||||
public static GetSearchAllLibrariesOptimizedForStreamingType GetSearchAllLibrariesOptimizedForStreaming1 { get { return new GetSearchAllLibrariesOptimizedForStreamingType("get-search-all-libraries_optimizedForStreaming_1"); } }
|
||||
|
||||
public static GetSearchAllLibrariesOptimizedForStreamingType Boolean { get { return new GetSearchAllLibrariesOptimizedForStreamingType("boolean"); } }
|
||||
|
||||
public static GetSearchAllLibrariesOptimizedForStreamingType Null { get { return new GetSearchAllLibrariesOptimizedForStreamingType("null"); } }
|
||||
|
||||
public override string ToString() { return Value; }
|
||||
public static implicit operator String(GetSearchAllLibrariesOptimizedForStreamingType v) { return v.Value; }
|
||||
public static GetSearchAllLibrariesOptimizedForStreamingType FromString(string v) {
|
||||
switch(v) {
|
||||
case "get-search-all-libraries_optimizedForStreaming_1": return GetSearchAllLibrariesOptimizedForStreaming1;
|
||||
case "boolean": return Boolean;
|
||||
case "null": return Null;
|
||||
default: throw new ArgumentException("Invalid value for GetSearchAllLibrariesOptimizedForStreamingType");
|
||||
}
|
||||
}
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj == null || GetType() != obj.GetType())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return Value.Equals(((GetSearchAllLibrariesOptimizedForStreamingType)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(GetSearchAllLibrariesOptimizedForStreaming.GetSearchAllLibrariesOptimizedForStreamingConverter))]
|
||||
public class GetSearchAllLibrariesOptimizedForStreaming {
|
||||
public GetSearchAllLibrariesOptimizedForStreaming(GetSearchAllLibrariesOptimizedForStreamingType type) {
|
||||
Type = type;
|
||||
}
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public GetSearchAllLibrariesOptimizedForStreaming1? GetSearchAllLibrariesOptimizedForStreaming1 { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public bool? Boolean { get; set; }
|
||||
|
||||
public GetSearchAllLibrariesOptimizedForStreamingType Type { get; set; }
|
||||
|
||||
|
||||
public static GetSearchAllLibrariesOptimizedForStreaming CreateGetSearchAllLibrariesOptimizedForStreaming1(GetSearchAllLibrariesOptimizedForStreaming1 getSearchAllLibrariesOptimizedForStreaming1) {
|
||||
GetSearchAllLibrariesOptimizedForStreamingType typ = GetSearchAllLibrariesOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreaming1;
|
||||
|
||||
GetSearchAllLibrariesOptimizedForStreaming res = new GetSearchAllLibrariesOptimizedForStreaming(typ);
|
||||
res.GetSearchAllLibrariesOptimizedForStreaming1 = getSearchAllLibrariesOptimizedForStreaming1;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesOptimizedForStreaming CreateBoolean(bool boolean) {
|
||||
GetSearchAllLibrariesOptimizedForStreamingType typ = GetSearchAllLibrariesOptimizedForStreamingType.Boolean;
|
||||
|
||||
GetSearchAllLibrariesOptimizedForStreaming res = new GetSearchAllLibrariesOptimizedForStreaming(typ);
|
||||
res.Boolean = boolean;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesOptimizedForStreaming CreateNull() {
|
||||
GetSearchAllLibrariesOptimizedForStreamingType typ = GetSearchAllLibrariesOptimizedForStreamingType.Null;
|
||||
return new GetSearchAllLibrariesOptimizedForStreaming(typ);
|
||||
}
|
||||
|
||||
public class GetSearchAllLibrariesOptimizedForStreamingConverter : JsonConverter
|
||||
{
|
||||
|
||||
public override bool CanConvert(System.Type objectType) => objectType == typeof(GetSearchAllLibrariesOptimizedForStreaming);
|
||||
|
||||
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 GetSearchAllLibrariesOptimizedForStreaming(GetSearchAllLibrariesOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreaming1)
|
||||
{
|
||||
GetSearchAllLibrariesOptimizedForStreaming1 = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember<GetSearchAllLibrariesOptimizedForStreaming1>(json)
|
||||
};
|
||||
}
|
||||
catch (ResponseBodyDeserializer.MissingMemberException)
|
||||
{
|
||||
fallbackCandidates.Add((typeof(GetSearchAllLibrariesOptimizedForStreaming1), new GetSearchAllLibrariesOptimizedForStreaming(GetSearchAllLibrariesOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreaming1), "GetSearchAllLibrariesOptimizedForStreaming1"));
|
||||
}
|
||||
catch (ResponseBodyDeserializer.DeserializationException)
|
||||
{
|
||||
// try next option
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var converted = Convert.ToBoolean(json);
|
||||
return new GetSearchAllLibrariesOptimizedForStreaming(GetSearchAllLibrariesOptimizedForStreamingType.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;
|
||||
}
|
||||
GetSearchAllLibrariesOptimizedForStreaming res = (GetSearchAllLibrariesOptimizedForStreaming)value;
|
||||
if (GetSearchAllLibrariesOptimizedForStreamingType.FromString(res.Type).Equals(GetSearchAllLibrariesOptimizedForStreamingType.Null))
|
||||
{
|
||||
writer.WriteRawValue("null");
|
||||
return;
|
||||
}
|
||||
if (res.GetSearchAllLibrariesOptimizedForStreaming1 != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.GetSearchAllLibrariesOptimizedForStreaming1));
|
||||
return;
|
||||
}
|
||||
if (res.Boolean != null)
|
||||
{
|
||||
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,21 +11,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Stream type:<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// - 1 = video<br/>
|
||||
/// - 2 = audio<br/>
|
||||
/// - 3 = subtitle<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetMediaMetaDataStreamType
|
||||
public enum GetSearchAllLibrariesOptimizedForStreaming1
|
||||
{
|
||||
Video = 1,
|
||||
Audio = 2,
|
||||
Subtitle = 3,
|
||||
Zero = 0,
|
||||
One = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
public enum GetSearchAllLibrariesOptimizedForStreamingLibrary1
|
||||
{
|
||||
Zero = 0,
|
||||
One = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,58 +9,94 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetSearchAllLibrariesPart
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the part is accessible.
|
||||
/// </summary>
|
||||
[JsonProperty("accessible")]
|
||||
public bool? Accessible { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the part exists.
|
||||
/// </summary>
|
||||
[JsonProperty("exists")]
|
||||
public bool? Exists { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unique part identifier.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Key to access this part.
|
||||
/// </summary>
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Duration of the part in milliseconds.
|
||||
/// </summary>
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// File path for the part.
|
||||
/// </summary>
|
||||
[JsonProperty("file")]
|
||||
public string File { get; set; } = default!;
|
||||
|
||||
[JsonProperty("size")]
|
||||
public long Size { get; set; } = default!;
|
||||
public string? File { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The container format of the media file.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// File size in bytes.
|
||||
/// </summary>
|
||||
[JsonProperty("size")]
|
||||
public long? Size { get; set; }
|
||||
|
||||
[JsonProperty("packetLength")]
|
||||
public int? PacketLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Container format of the part.
|
||||
/// </summary>
|
||||
[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")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
public GetSearchAllLibrariesLibraryOptimizedForStreaming? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("hasThumbnail")]
|
||||
public GetSearchAllLibrariesHasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetSearchAllLibrariesHasThumbnail.False;
|
||||
|
||||
[JsonProperty("Stream")]
|
||||
public List<GetSearchAllLibrariesStream>? Stream { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,39 +16,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The ID of the tag or actor.
|
||||
/// The unique identifier for the role.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// NOTE: This is different for each Plex server and is not globally unique.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public long? Id { get; set; }
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The filter used to find the actor or tag.
|
||||
/// </summary>
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The thumbnail of the actor
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the tag or actor.
|
||||
/// The display tag for the actor (typically the actor's name).
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Unique identifier for the tag.
|
||||
/// </summary>
|
||||
[JsonProperty("tagKey")]
|
||||
public string? TagKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The role of the actor or tag in the media.
|
||||
/// The role played by the actor in the media item.
|
||||
/// </summary>
|
||||
[JsonProperty("role")]
|
||||
public string? Role { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The absolute URL of the thumbnail image for the actor.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -17,11 +17,12 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// 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/>
|
||||
/// Options:<br/>
|
||||
/// - None = Library default<br/>
|
||||
/// - tmdbAiring = The Movie Database (Aired)<br/>
|
||||
/// - aired = TheTVDB (Aired)<br/>
|
||||
/// - dvd = TheTVDB (DVD)<br/>
|
||||
/// - absolute = TheTVDB (Absolute)<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
|
||||
@@ -1,234 +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 GetSearchAllLibrariesStream
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Type of stream (1 = video, 2 = audio, 3 = subtitle)
|
||||
/// </summary>
|
||||
[JsonProperty("streamType")]
|
||||
public long StreamType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if this is the default stream
|
||||
/// </summary>
|
||||
[JsonProperty("default")]
|
||||
public bool? Default { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the stream is selected
|
||||
/// </summary>
|
||||
[JsonProperty("selected")]
|
||||
public bool? Selected { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Codec used by the stream
|
||||
/// </summary>
|
||||
[JsonProperty("codec")]
|
||||
public string Codec { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The index of the stream
|
||||
/// </summary>
|
||||
[JsonProperty("index")]
|
||||
public long Index { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The bitrate of the stream in kbps
|
||||
/// </summary>
|
||||
[JsonProperty("bitrate")]
|
||||
public long? Bitrate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The color primaries of the video 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>
|
||||
[JsonProperty("language")]
|
||||
public string? Language { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Language tag of the stream
|
||||
/// </summary>
|
||||
[JsonProperty("languageTag")]
|
||||
public string? LanguageTag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Language code of the stream
|
||||
/// </summary>
|
||||
[JsonProperty("languageCode")]
|
||||
public string? LanguageCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The audio channel layout
|
||||
/// </summary>
|
||||
[JsonProperty("audioChannelLayout")]
|
||||
public string? AudioChannelLayout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Sampling rate of the audio stream in Hz
|
||||
/// </summary>
|
||||
[JsonProperty("samplingRate")]
|
||||
public long? SamplingRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Title of the subtitle track (for subtitle streams)
|
||||
/// </summary>
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the subtitle stream can auto-sync
|
||||
/// </summary>
|
||||
[JsonProperty("canAutoSync")]
|
||||
public bool? CanAutoSync { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetSearchAllLibrariesWriter
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unique identifier for the writer.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The role of Writer
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
public string Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The absolute URL of the thumbnail image for the writer.
|
||||
/// </summary>
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,10 +16,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class SearchResult
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The score of the search result, typically a float value between 0 and 1.
|
||||
/// </summary>
|
||||
[JsonProperty("score")]
|
||||
public float Score { get; set; } = default!;
|
||||
|
||||
[JsonProperty("Directory")]
|
||||
public GetSearchAllLibrariesDirectory? Directory { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public GetSearchAllLibrariesMetadata Metadata { get; set; } = default!;
|
||||
public GetSearchAllLibrariesMetadata? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -17,11 +17,12 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// 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/>
|
||||
/// Options:<br/>
|
||||
/// - None = Library default<br/>
|
||||
/// - tmdbAiring = The Movie Database (Aired)<br/>
|
||||
/// - aired = TheTVDB (Aired)<br/>
|
||||
/// - dvd = TheTVDB (DVD)<br/>
|
||||
/// - absolute = TheTVDB (Absolute)<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
@@ -26,14 +25,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// Stream type:<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// - 1 = video<br/>
|
||||
/// - 2 = audio<br/>
|
||||
/// - 3 = subtitle<br/>
|
||||
/// - VIDEO = 1<br/>
|
||||
/// - AUDIO = 2<br/>
|
||||
/// - SUBTITLE = 3<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("streamType")]
|
||||
public StreamType StreamType { get; set; } = default!;
|
||||
public long StreamType { get; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Format of the stream (e.g., srt).
|
||||
|
||||
@@ -146,8 +146,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Playlists(SDKConfig config)
|
||||
|
||||
@@ -143,8 +143,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Plex(SDKConfig config)
|
||||
|
||||
@@ -292,8 +292,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
public IServer Server { get; private set; }
|
||||
public IMedia Media { get; private set; }
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{"port", "32400"},
|
||||
},
|
||||
};
|
||||
UserAgent = "speakeasy-sdk/csharp 0.15.0 2.620.2 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
UserAgent = "speakeasy-sdk/csharp 0.15.1 2.623.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
SecuritySource = null;
|
||||
Hooks = new SDKHooks();
|
||||
RetryConfig = null;
|
||||
|
||||
@@ -87,8 +87,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Search(SDKConfig config)
|
||||
|
||||
@@ -126,8 +126,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Server(SDKConfig config)
|
||||
|
||||
@@ -80,8 +80,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Sessions(SDKConfig config)
|
||||
|
||||
@@ -71,8 +71,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Statistics(SDKConfig config)
|
||||
|
||||
@@ -74,8 +74,8 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.15.0";
|
||||
private const string _sdkGenVersion = "2.620.2";
|
||||
private const string _sdkVersion = "0.15.1";
|
||||
private const string _sdkGenVersion = "2.623.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
|
||||
public Updater(SDKConfig config)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user