mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.8
This commit is contained in:
@@ -74,10 +74,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -95,10 +95,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -101,10 +101,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -73,10 +73,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -189,6 +189,16 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
/// </summary>
|
||||
Task<GetSearchLibraryResponse> GetSearchLibraryAsync(int sectionKey, GetSearchLibraryQueryParamType type, RetryConfig? retryConfig = null);
|
||||
|
||||
/// <summary>
|
||||
/// Search All Libraries
|
||||
///
|
||||
/// <remarks>
|
||||
/// Search the provided query across all library sections, or a single section, and return matches as hubs, split up by type.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
Task<GetSearchAllLibrariesResponse> GetSearchAllLibrariesAsync(GetSearchAllLibrariesRequest request, RetryConfig? retryConfig = null);
|
||||
|
||||
/// <summary>
|
||||
/// Get Metadata by RatingKey
|
||||
///
|
||||
@@ -241,10 +251,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
@@ -1290,6 +1300,142 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||
}
|
||||
|
||||
public async Task<GetSearchAllLibrariesResponse> GetSearchAllLibrariesAsync(GetSearchAllLibrariesRequest request, RetryConfig? retryConfig = null)
|
||||
{
|
||||
if (request == null)
|
||||
{
|
||||
request = new GetSearchAllLibrariesRequest();
|
||||
}
|
||||
request.ClientID ??= SDKConfiguration.ClientID;
|
||||
|
||||
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
|
||||
var urlString = URLBuilder.Build(baseUrl, "/library/search", request);
|
||||
|
||||
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
|
||||
httpRequest.Headers.Add("user-agent", _userAgent);
|
||||
HeaderSerializer.PopulateHeaders(ref httpRequest, request);
|
||||
|
||||
if (_securitySource != null)
|
||||
{
|
||||
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
|
||||
}
|
||||
|
||||
var hookCtx = new HookContext("get-search-all-libraries", null, _securitySource);
|
||||
|
||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||
if (retryConfig == null)
|
||||
{
|
||||
if (this.SDKConfiguration.RetryConfig != null)
|
||||
{
|
||||
retryConfig = this.SDKConfiguration.RetryConfig;
|
||||
}
|
||||
else
|
||||
{
|
||||
var backoff = new BackoffStrategy(
|
||||
initialIntervalMs: 500L,
|
||||
maxIntervalMs: 60000L,
|
||||
maxElapsedTimeMs: 3600000L,
|
||||
exponent: 1.5
|
||||
);
|
||||
retryConfig = new RetryConfig(
|
||||
strategy: RetryConfig.RetryStrategy.BACKOFF,
|
||||
backoff: backoff,
|
||||
retryConnectionErrors: true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
List<string> statusCodes = new List<string>
|
||||
{
|
||||
"5XX",
|
||||
};
|
||||
|
||||
Func<Task<HttpResponseMessage>> retrySend = async () =>
|
||||
{
|
||||
var _httpRequest = await _client.CloneAsync(httpRequest);
|
||||
return await _client.SendAsync(_httpRequest);
|
||||
};
|
||||
var retries = new LukeHagar.PlexAPI.SDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);
|
||||
|
||||
HttpResponseMessage httpResponse;
|
||||
try
|
||||
{
|
||||
httpResponse = await retries.Run();
|
||||
int _statusCode = (int)httpResponse.StatusCode;
|
||||
|
||||
if (_statusCode == 400 || _statusCode == 401 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600)
|
||||
{
|
||||
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
|
||||
if (_httpResponse != null)
|
||||
{
|
||||
httpResponse = _httpResponse;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
|
||||
if (_httpResponse != null)
|
||||
{
|
||||
httpResponse = _httpResponse;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse);
|
||||
|
||||
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
|
||||
int responseStatusCode = (int)httpResponse.StatusCode;
|
||||
if(responseStatusCode == 200)
|
||||
{
|
||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||
{
|
||||
var obj = ResponseBodyDeserializer.Deserialize<GetSearchAllLibrariesResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||
var response = new GetSearchAllLibrariesResponse()
|
||||
{
|
||||
StatusCode = responseStatusCode,
|
||||
ContentType = contentType,
|
||||
RawResponse = httpResponse
|
||||
};
|
||||
response.Object = obj;
|
||||
return response;
|
||||
}
|
||||
|
||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||
}
|
||||
else if(responseStatusCode == 400)
|
||||
{
|
||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||
{
|
||||
var obj = ResponseBodyDeserializer.Deserialize<GetSearchAllLibrariesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||
obj!.RawResponse = httpResponse;
|
||||
throw obj!;
|
||||
}
|
||||
|
||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||
}
|
||||
else if(responseStatusCode == 401)
|
||||
{
|
||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||
{
|
||||
var obj = ResponseBodyDeserializer.Deserialize<GetSearchAllLibrariesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||
obj!.RawResponse = httpResponse;
|
||||
throw obj!;
|
||||
}
|
||||
|
||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||
}
|
||||
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
|
||||
{
|
||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||
}
|
||||
|
||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
||||
}
|
||||
|
||||
public async Task<GetMetaDataByRatingKeyResponse> GetMetaDataByRatingKeyAsync(long ratingKey, RetryConfig? retryConfig = null)
|
||||
{
|
||||
var request = new GetMetaDataByRatingKeyRequest()
|
||||
|
||||
@@ -94,10 +94,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>true</IsPackable>
|
||||
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
||||
<Version>0.9.1</Version>
|
||||
<Version>0.9.2</Version>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Authors>LukeHagar</Authors>
|
||||
<Copyright>Copyright (c) LukeHagar 2024</Copyright>
|
||||
@@ -33,7 +33,7 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
|
||||
| Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
|
||||
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
|
||||
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
|
||||
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
|
||||
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
|
||||
</Description>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -90,10 +90,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesBadRequest : Exception
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchAllLibrariesErrors>? Errors { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Raw HTTP response; suitable for custom response parsing
|
||||
/// </summary>
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesErrors
|
||||
{
|
||||
|
||||
[JsonProperty("code")]
|
||||
public int? Code { get; set; }
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string? Message { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public int? Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesLibraryErrors
|
||||
{
|
||||
|
||||
[JsonProperty("code")]
|
||||
public int? Code { get; set; }
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string? Message { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public int? Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Errors;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesUnauthorized : Exception
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Raw HTTP response; suitable for custom response parsing
|
||||
/// </summary>
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,243 +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 Features
|
||||
{
|
||||
[JsonProperty("Android - Dolby Vision")]
|
||||
AndroidDolbyVision,
|
||||
[JsonProperty("Android - PiP")]
|
||||
AndroidPiP,
|
||||
[JsonProperty("CU Sunset")]
|
||||
CUSunset,
|
||||
[JsonProperty("HRK_enable_EUR")]
|
||||
HRKEnableEUR,
|
||||
[JsonProperty("TREBLE-show-features")]
|
||||
TREBLEShowFeatures,
|
||||
[JsonProperty("ad-countdown-timer")]
|
||||
AdCountdownTimer,
|
||||
[JsonProperty("adaptive_bitrate")]
|
||||
AdaptiveBitrate,
|
||||
[JsonProperty("album-types")]
|
||||
AlbumTypes,
|
||||
[JsonProperty("allow_dvr")]
|
||||
AllowDvr,
|
||||
[JsonProperty("amazon-loop-debug")]
|
||||
AmazonLoopDebug,
|
||||
[JsonProperty("avod-ad-analysis")]
|
||||
AvodAdAnalysis,
|
||||
[JsonProperty("avod-new-media")]
|
||||
AvodNewMedia,
|
||||
[JsonProperty("blacklist_get_signin")]
|
||||
BlacklistGetSignin,
|
||||
[JsonProperty("boost-voices")]
|
||||
BoostVoices,
|
||||
[JsonProperty("camera_upload")]
|
||||
CameraUpload,
|
||||
[JsonProperty("client-radio-stations")]
|
||||
ClientRadioStations,
|
||||
[JsonProperty("cloudflare-turnstile-required")]
|
||||
CloudflareTurnstileRequired,
|
||||
[JsonProperty("cloudsync")]
|
||||
Cloudsync,
|
||||
[JsonProperty("collections")]
|
||||
Collections,
|
||||
[JsonProperty("comments_and_replies_push_notifications")]
|
||||
CommentsAndRepliesPushNotifications,
|
||||
[JsonProperty("community_access_plex_tv")]
|
||||
CommunityAccessPlexTv,
|
||||
[JsonProperty("companions_sonos")]
|
||||
CompanionsSonos,
|
||||
[JsonProperty("content_filter")]
|
||||
ContentFilter,
|
||||
[JsonProperty("custom-home-removal")]
|
||||
CustomHomeRemoval,
|
||||
[JsonProperty("disable_home_user_friendships")]
|
||||
DisableHomeUserFriendships,
|
||||
[JsonProperty("disable_sharing_friendships")]
|
||||
DisableSharingFriendships,
|
||||
[JsonProperty("downloads-gating")]
|
||||
DownloadsGating,
|
||||
[JsonProperty("drm_support")]
|
||||
DrmSupport,
|
||||
[JsonProperty("dvr")]
|
||||
Dvr,
|
||||
[JsonProperty("dvr-block-unsupported-countries")]
|
||||
DvrBlockUnsupportedCountries,
|
||||
[JsonProperty("epg-recent-channels")]
|
||||
EpgRecentChannels,
|
||||
[JsonProperty("exclude restrictions")]
|
||||
ExcludeRestrictions,
|
||||
[JsonProperty("federated-auth")]
|
||||
FederatedAuth,
|
||||
[JsonProperty("friend_request_push_notifications")]
|
||||
FriendRequestPushNotifications,
|
||||
[JsonProperty("grandfather-sync")]
|
||||
GrandfatherSync,
|
||||
[JsonProperty("guided-upgrade")]
|
||||
GuidedUpgrade,
|
||||
[JsonProperty("hardware_transcoding")]
|
||||
HardwareTranscoding,
|
||||
[JsonProperty("home")]
|
||||
Home,
|
||||
[JsonProperty("hwtranscode")]
|
||||
Hwtranscode,
|
||||
[JsonProperty("imagga-v2")]
|
||||
ImaggaV2,
|
||||
[JsonProperty("increase-password-complexity")]
|
||||
IncreasePasswordComplexity,
|
||||
[JsonProperty("ios14-privacy-banner")]
|
||||
Ios14PrivacyBanner,
|
||||
[JsonProperty("iterable-notification-tokens")]
|
||||
IterableNotificationTokens,
|
||||
[JsonProperty("item_clusters")]
|
||||
ItemClusters,
|
||||
[JsonProperty("keep-payment-method")]
|
||||
KeepPaymentMethod,
|
||||
[JsonProperty("kevin-bacon")]
|
||||
KevinBacon,
|
||||
[JsonProperty("korea-consent")]
|
||||
KoreaConsent,
|
||||
[JsonProperty("le_isrg_root_x1")]
|
||||
LeIsrgRootX1,
|
||||
[JsonProperty("lets_encrypt")]
|
||||
LetsEncrypt,
|
||||
[JsonProperty("lightning-dvr-pivot")]
|
||||
LightningDvrPivot,
|
||||
[JsonProperty("live-tv-support-incomplete-segments")]
|
||||
LiveTvSupportIncompleteSegments,
|
||||
[JsonProperty("livetv")]
|
||||
Livetv,
|
||||
[JsonProperty("lyrics")]
|
||||
Lyrics,
|
||||
[JsonProperty("metadata_search")]
|
||||
MetadataSearch,
|
||||
[JsonProperty("music-analysis")]
|
||||
MusicAnalysis,
|
||||
[JsonProperty("music_videos")]
|
||||
MusicVideos,
|
||||
[JsonProperty("new_plex_pass_prices")]
|
||||
NewPlexPassPrices,
|
||||
[JsonProperty("news-provider-sunset-modal")]
|
||||
NewsProviderSunsetModal,
|
||||
[JsonProperty("nominatim")]
|
||||
Nominatim,
|
||||
[JsonProperty("pass")]
|
||||
Pass,
|
||||
[JsonProperty("photos-favorites")]
|
||||
PhotosFavorites,
|
||||
[JsonProperty("photos-metadata-edition")]
|
||||
PhotosMetadataEdition,
|
||||
[JsonProperty("photosV6-edit")]
|
||||
PhotosV6Edit,
|
||||
[JsonProperty("photosV6-tv-albums")]
|
||||
PhotosV6TvAlbums,
|
||||
[JsonProperty("pms_health")]
|
||||
PmsHealth,
|
||||
[JsonProperty("premium-dashboard")]
|
||||
PremiumDashboard,
|
||||
[JsonProperty("premium_music_metadata")]
|
||||
PremiumMusicMetadata,
|
||||
[JsonProperty("radio")]
|
||||
Radio,
|
||||
[JsonProperty("rate-limit-client-token")]
|
||||
RateLimitClientToken,
|
||||
[JsonProperty("scrobbling-service-plex-tv")]
|
||||
ScrobblingServicePlexTv,
|
||||
[JsonProperty("session_bandwidth_restrictions")]
|
||||
SessionBandwidthRestrictions,
|
||||
[JsonProperty("session_kick")]
|
||||
SessionKick,
|
||||
[JsonProperty("shared_server_notification")]
|
||||
SharedServerNotification,
|
||||
[JsonProperty("shared_source_notification")]
|
||||
SharedSourceNotification,
|
||||
[JsonProperty("signin_notification")]
|
||||
SigninNotification,
|
||||
[JsonProperty("signin_with_apple")]
|
||||
SigninWithApple,
|
||||
[JsonProperty("silence-removal")]
|
||||
SilenceRemoval,
|
||||
[JsonProperty("sleep-timer")]
|
||||
SleepTimer,
|
||||
[JsonProperty("spring_serve_ad_provider")]
|
||||
SpringServeAdProvider,
|
||||
[JsonProperty("sync")]
|
||||
Sync,
|
||||
[JsonProperty("sweet-fades")]
|
||||
SweetFades,
|
||||
[JsonProperty("transcoder_cache")]
|
||||
TranscoderCache,
|
||||
[JsonProperty("trailers")]
|
||||
Trailers,
|
||||
[JsonProperty("tuner-sharing")]
|
||||
TunerSharing,
|
||||
[JsonProperty("two-factor-authentication")]
|
||||
TwoFactorAuthentication,
|
||||
[JsonProperty("unsupportedtuners")]
|
||||
Unsupportedtuners,
|
||||
[JsonProperty("upgrade-3ds2")]
|
||||
Upgrade3ds2,
|
||||
[JsonProperty("visualizers")]
|
||||
Visualizers,
|
||||
[JsonProperty("vod-schema")]
|
||||
VodSchema,
|
||||
[JsonProperty("vod_cloudflare")]
|
||||
VodCloudflare,
|
||||
[JsonProperty("volume-leveling")]
|
||||
VolumeLeveling,
|
||||
[JsonProperty("watch-together-invite")]
|
||||
WatchTogetherInvite,
|
||||
[JsonProperty("watchlist-rss")]
|
||||
WatchlistRss,
|
||||
[JsonProperty("web_server_dashboard")]
|
||||
WebServerDashboard,
|
||||
[JsonProperty("webhooks")]
|
||||
Webhooks,
|
||||
}
|
||||
|
||||
public static class FeaturesExtension
|
||||
{
|
||||
public static string Value(this Features value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static Features ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(Features).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 Features)
|
||||
{
|
||||
return (Features)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum Features");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -90,6 +90,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public int Hidden { get; set; } = default!;
|
||||
|
||||
[JsonProperty("Location")]
|
||||
public List<Location> Location { get; set; } = default!;
|
||||
public List<GetAllLibrariesLocation> Location { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetAllLibrariesLocation
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("path")]
|
||||
public string Path { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetLibraryItemsLocation
|
||||
{
|
||||
|
||||
[JsonProperty("path")]
|
||||
public string? Path { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -21,43 +21,43 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int Duration { get; set; } = default!;
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public int Bitrate { get; set; } = default!;
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public int Width { get; set; } = default!;
|
||||
public int? Width { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public int Height { get; set; } = default!;
|
||||
public int? Height { get; set; }
|
||||
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double AspectRatio { get; set; } = default!;
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("audioChannels")]
|
||||
public int AudioChannels { get; set; } = default!;
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("audioCodec")]
|
||||
public string AudioCodec { get; set; } = default!;
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoCodec")]
|
||||
public string VideoCodec { get; set; } = default!;
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoResolution")]
|
||||
public string VideoResolution { get; set; } = default!;
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string Container { get; set; } = default!;
|
||||
|
||||
[JsonProperty("videoFrameRate")]
|
||||
public string VideoFrameRate { get; set; } = default!;
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string VideoProfile { get; set; } = default!;
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("hasVoiceActivity")]
|
||||
public bool? HasVoiceActivity { get; set; }
|
||||
|
||||
@@ -199,6 +199,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("Role")]
|
||||
public List<GetLibraryItemsRole>? Role { 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/>
|
||||
///
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int Duration { get; set; } = default!;
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("file")]
|
||||
public string File { get; set; } = default!;
|
||||
@@ -52,7 +52,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string VideoProfile { get; set; } = default!;
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
|
||||
@@ -199,6 +199,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
[JsonProperty("Role")]
|
||||
public List<Role>? Role { get; set; }
|
||||
|
||||
[JsonProperty("Location")]
|
||||
public List<Location>? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/>
|
||||
///
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesCollection
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesCountry
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesDirector
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesFlattenSeasons
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
False,
|
||||
[JsonProperty("1")]
|
||||
True,
|
||||
}
|
||||
|
||||
public static class GetSearchAllLibrariesFlattenSeasonsExtension
|
||||
{
|
||||
public static string Value(this GetSearchAllLibrariesFlattenSeasons value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesFlattenSeasons ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetSearchAllLibrariesFlattenSeasons).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 GetSearchAllLibrariesFlattenSeasons)
|
||||
{
|
||||
return (GetSearchAllLibrariesFlattenSeasons)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesFlattenSeasons");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesGenre
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesHasThumbnail
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
False,
|
||||
[JsonProperty("1")]
|
||||
True,
|
||||
}
|
||||
|
||||
public static class GetSearchAllLibrariesHasThumbnailExtension
|
||||
{
|
||||
public static string Value(this GetSearchAllLibrariesHasThumbnail value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesHasThumbnail ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetSearchAllLibrariesHasThumbnail).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 GetSearchAllLibrariesHasThumbnail)
|
||||
{
|
||||
return (GetSearchAllLibrariesHasThumbnail)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesHasThumbnail");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesImage
|
||||
{
|
||||
|
||||
[JsonProperty("alt")]
|
||||
public string Alt { get; set; } = default!;
|
||||
|
||||
[JsonProperty("type")]
|
||||
public GetSearchAllLibrariesLibraryType Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesLibraryType
|
||||
{
|
||||
[JsonProperty("coverPoster")]
|
||||
CoverPoster,
|
||||
[JsonProperty("background")]
|
||||
Background,
|
||||
[JsonProperty("snapshot")]
|
||||
Snapshot,
|
||||
[JsonProperty("clearLogo")]
|
||||
ClearLogo,
|
||||
}
|
||||
|
||||
public static class GetSearchAllLibrariesLibraryTypeExtension
|
||||
{
|
||||
public static string Value(this GetSearchAllLibrariesLibraryType value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesLibraryType ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetSearchAllLibrariesLibraryType).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 GetSearchAllLibrariesLibraryType)
|
||||
{
|
||||
return (GetSearchAllLibrariesLibraryType)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesLibraryType");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesLocation
|
||||
{
|
||||
|
||||
[JsonProperty("path")]
|
||||
public string? Path { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesMedia
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public int? Width { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public int? Height { get; set; }
|
||||
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("audioChannels")]
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("audioCodec")]
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoResolution")]
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string Container { get; set; } = default!;
|
||||
|
||||
[JsonProperty("videoFrameRate")]
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("hasVoiceActivity")]
|
||||
public bool? HasVoiceActivity { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public GetSearchAllLibrariesOptimizedForStreaming? OptimizedForStreaming { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetSearchAllLibrariesOptimizedForStreaming.Disable;
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("Part")]
|
||||
public List<GetSearchAllLibrariesPart> Part { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public double Size { get; set; } = default!;
|
||||
|
||||
[JsonProperty("SearchResult")]
|
||||
public List<SearchResult> SearchResult { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesMediaGuid
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Can be one of the following formats:<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public string Id { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesMetaDataRating
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// A URI or path to the rating image.
|
||||
/// </summary>
|
||||
[JsonProperty("image")]
|
||||
public string Image { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The value of the rating.
|
||||
/// </summary>
|
||||
[JsonProperty("value")]
|
||||
public float Value { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The type of rating (e.g., audience, critic).
|
||||
/// </summary>
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using NodaTime;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class 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>
|
||||
/// </summary>
|
||||
[JsonProperty("ratingKey")]
|
||||
public string RatingKey { get; set; } = default!;
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string Guid { get; set; } = default!;
|
||||
|
||||
[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<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("type")]
|
||||
public GetSearchAllLibrariesType Type { get; set; } = default!;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
[JsonProperty("slug")]
|
||||
public string? Slug { get; set; }
|
||||
|
||||
[JsonProperty("contentRating")]
|
||||
public string? ContentRating { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string Summary { get; set; } = default!;
|
||||
|
||||
[JsonProperty("rating")]
|
||||
public double? Rating { get; set; }
|
||||
|
||||
[JsonProperty("audienceRating")]
|
||||
public double? AudienceRating { get; set; }
|
||||
|
||||
[JsonProperty("year")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[JsonProperty("seasonCount")]
|
||||
public int? SeasonCount { get; set; }
|
||||
|
||||
[JsonProperty("tagline")]
|
||||
public string? Tagline { get; set; }
|
||||
|
||||
[JsonProperty("flattenSeasons")]
|
||||
public GetSearchAllLibrariesFlattenSeasons? FlattenSeasons { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetSearchAllLibrariesFlattenSeasons.False;
|
||||
|
||||
/// <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; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("banner")]
|
||||
public string? Banner { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unix epoch datetime in seconds
|
||||
/// </summary>
|
||||
[JsonProperty("addedAt")]
|
||||
public long AddedAt { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Unix epoch datetime in seconds
|
||||
/// </summary>
|
||||
[JsonProperty("updatedAt")]
|
||||
public long? UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty("audienceRatingImage")]
|
||||
public string? AudienceRatingImage { get; set; }
|
||||
|
||||
[JsonProperty("chapterSource")]
|
||||
public string? ChapterSource { get; set; }
|
||||
|
||||
[JsonProperty("primaryExtraKey")]
|
||||
public string? PrimaryExtraKey { get; set; }
|
||||
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
|
||||
[JsonProperty("grandparentRatingKey")]
|
||||
public string? GrandparentRatingKey { get; set; }
|
||||
|
||||
[JsonProperty("grandparentGuid")]
|
||||
public string? GrandparentGuid { get; set; }
|
||||
|
||||
[JsonProperty("grandparentKey")]
|
||||
public string? GrandparentKey { get; set; }
|
||||
|
||||
[JsonProperty("grandparentTitle")]
|
||||
public string? GrandparentTitle { get; set; }
|
||||
|
||||
[JsonProperty("grandparentThumb")]
|
||||
public string? GrandparentThumb { get; set; }
|
||||
|
||||
[JsonProperty("parentSlug")]
|
||||
public string? ParentSlug { get; set; }
|
||||
|
||||
[JsonProperty("grandparentSlug")]
|
||||
public string? GrandparentSlug { get; set; }
|
||||
|
||||
[JsonProperty("grandparentArt")]
|
||||
public string? GrandparentArt { get; set; }
|
||||
|
||||
[JsonProperty("grandparentTheme")]
|
||||
public string? GrandparentTheme { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Media object is only included when type query is `4` or higher.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("Media")]
|
||||
public List<GetSearchAllLibrariesMedia>? Media { get; set; }
|
||||
|
||||
[JsonProperty("Genre")]
|
||||
public List<GetSearchAllLibrariesGenre>? Genre { get; set; }
|
||||
|
||||
[JsonProperty("Country")]
|
||||
public List<GetSearchAllLibrariesCountry>? Country { get; set; }
|
||||
|
||||
[JsonProperty("Director")]
|
||||
public List<GetSearchAllLibrariesDirector>? Director { get; set; }
|
||||
|
||||
[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; }
|
||||
}
|
||||
}
|
||||
@@ -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 GetSearchAllLibrariesOptimizedForStreaming
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesPart
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("file")]
|
||||
public string File { get; set; } = default!;
|
||||
|
||||
[JsonProperty("size")]
|
||||
public long Size { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The container format of the media file.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[JsonProperty("container")]
|
||||
public string Container { get; set; } = default!;
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
|
||||
[JsonProperty("hasThumbnail")]
|
||||
public GetSearchAllLibrariesHasThumbnail? HasThumbnail { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.GetSearchAllLibrariesHasThumbnail.False;
|
||||
|
||||
[JsonProperty("Stream")]
|
||||
public List<GetSearchAllLibrariesStream>? Stream { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetSearchAllLibrariesRequest
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The search query term.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=query")]
|
||||
public string Query { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")]
|
||||
public string? ClientID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Limit the number of results returned.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit")]
|
||||
public long? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv.<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=false,name=searchTypes")]
|
||||
public List<SearchTypes>? SearchTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether to include collections in the search results.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeCollections")]
|
||||
public QueryParamIncludeCollections? IncludeCollections { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.QueryParamIncludeCollections.Disable;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to include external media in the search results.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeExternalMedia")]
|
||||
public QueryParamIncludeExternalMedia? IncludeExternalMedia { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.QueryParamIncludeExternalMedia.Disable;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using System.Net.Http;
|
||||
using System;
|
||||
|
||||
public class GetSearchAllLibrariesResponse
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// HTTP response content type for this operation
|
||||
/// </summary>
|
||||
public string? ContentType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// HTTP response status code for this operation
|
||||
/// </summary>
|
||||
public int StatusCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Raw HTTP response; suitable for custom response parsing
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The libraries available on the Server
|
||||
/// </summary>
|
||||
public GetSearchAllLibrariesResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
/// <summary>
|
||||
/// The libraries available on the Server
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetSearchAllLibrariesMediaContainer MediaContainer { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesRole
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The ID of the tag or actor.
|
||||
/// </summary>
|
||||
[JsonProperty("id")]
|
||||
public long? Id { get; set; }
|
||||
|
||||
/// <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.
|
||||
/// </summary>
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
|
||||
/// <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.
|
||||
/// </summary>
|
||||
[JsonProperty("role")]
|
||||
public string? Role { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Setting that indicates the episode ordering for the show <br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// None = Library default, <br/>
|
||||
/// tmdbAiring = The Movie Database (Aired), <br/>
|
||||
/// aired = TheTVDB (Aired), <br/>
|
||||
/// dvd = TheTVDB (DVD), <br/>
|
||||
/// absolute = TheTVDB (Absolute)).<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetSearchAllLibrariesShowOrdering
|
||||
{
|
||||
[JsonProperty("None")]
|
||||
None,
|
||||
[JsonProperty("tmdbAiring")]
|
||||
TmdbAiring,
|
||||
[JsonProperty("aired")]
|
||||
Aired,
|
||||
[JsonProperty("dvd")]
|
||||
Dvd,
|
||||
[JsonProperty("absolute")]
|
||||
Absolute,
|
||||
}
|
||||
|
||||
public static class GetSearchAllLibrariesShowOrderingExtension
|
||||
{
|
||||
public static string Value(this GetSearchAllLibrariesShowOrdering value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesShowOrdering ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetSearchAllLibrariesShowOrdering).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 GetSearchAllLibrariesShowOrdering)
|
||||
{
|
||||
return (GetSearchAllLibrariesShowOrdering)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesShowOrdering");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,234 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 type of media content<br/>
|
||||
///
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
public enum GetSearchAllLibrariesType
|
||||
{
|
||||
[JsonProperty("movie")]
|
||||
Movie,
|
||||
[JsonProperty("show")]
|
||||
TvShow,
|
||||
[JsonProperty("season")]
|
||||
Season,
|
||||
[JsonProperty("episode")]
|
||||
Episode,
|
||||
}
|
||||
|
||||
public static class GetSearchAllLibrariesTypeExtension
|
||||
{
|
||||
public static string Value(this GetSearchAllLibrariesType value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetSearchAllLibrariesType ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetSearchAllLibrariesType).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 GetSearchAllLibrariesType)
|
||||
{
|
||||
return (GetSearchAllLibrariesType)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetSearchAllLibrariesType");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetSearchAllLibrariesUltraBlurColors
|
||||
{
|
||||
|
||||
[JsonProperty("topLeft")]
|
||||
public string TopLeft { get; set; } = default!;
|
||||
|
||||
[JsonProperty("topRight")]
|
||||
public string TopRight { get; set; } = default!;
|
||||
|
||||
[JsonProperty("bottomRight")]
|
||||
public string BottomRight { get; set; } = default!;
|
||||
|
||||
[JsonProperty("bottomLeft")]
|
||||
public string BottomLeft { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GetSearchAllLibrariesWriter
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,243 +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 GetTokenDetailsFeatures
|
||||
{
|
||||
[JsonProperty("Android - Dolby Vision")]
|
||||
AndroidDolbyVision,
|
||||
[JsonProperty("Android - PiP")]
|
||||
AndroidPiP,
|
||||
[JsonProperty("CU Sunset")]
|
||||
CUSunset,
|
||||
[JsonProperty("HRK_enable_EUR")]
|
||||
HRKEnableEUR,
|
||||
[JsonProperty("TREBLE-show-features")]
|
||||
TREBLEShowFeatures,
|
||||
[JsonProperty("ad-countdown-timer")]
|
||||
AdCountdownTimer,
|
||||
[JsonProperty("adaptive_bitrate")]
|
||||
AdaptiveBitrate,
|
||||
[JsonProperty("album-types")]
|
||||
AlbumTypes,
|
||||
[JsonProperty("allow_dvr")]
|
||||
AllowDvr,
|
||||
[JsonProperty("amazon-loop-debug")]
|
||||
AmazonLoopDebug,
|
||||
[JsonProperty("avod-ad-analysis")]
|
||||
AvodAdAnalysis,
|
||||
[JsonProperty("avod-new-media")]
|
||||
AvodNewMedia,
|
||||
[JsonProperty("blacklist_get_signin")]
|
||||
BlacklistGetSignin,
|
||||
[JsonProperty("boost-voices")]
|
||||
BoostVoices,
|
||||
[JsonProperty("camera_upload")]
|
||||
CameraUpload,
|
||||
[JsonProperty("client-radio-stations")]
|
||||
ClientRadioStations,
|
||||
[JsonProperty("cloudflare-turnstile-required")]
|
||||
CloudflareTurnstileRequired,
|
||||
[JsonProperty("cloudsync")]
|
||||
Cloudsync,
|
||||
[JsonProperty("collections")]
|
||||
Collections,
|
||||
[JsonProperty("comments_and_replies_push_notifications")]
|
||||
CommentsAndRepliesPushNotifications,
|
||||
[JsonProperty("community_access_plex_tv")]
|
||||
CommunityAccessPlexTv,
|
||||
[JsonProperty("companions_sonos")]
|
||||
CompanionsSonos,
|
||||
[JsonProperty("content_filter")]
|
||||
ContentFilter,
|
||||
[JsonProperty("custom-home-removal")]
|
||||
CustomHomeRemoval,
|
||||
[JsonProperty("disable_home_user_friendships")]
|
||||
DisableHomeUserFriendships,
|
||||
[JsonProperty("disable_sharing_friendships")]
|
||||
DisableSharingFriendships,
|
||||
[JsonProperty("downloads-gating")]
|
||||
DownloadsGating,
|
||||
[JsonProperty("drm_support")]
|
||||
DrmSupport,
|
||||
[JsonProperty("dvr")]
|
||||
Dvr,
|
||||
[JsonProperty("dvr-block-unsupported-countries")]
|
||||
DvrBlockUnsupportedCountries,
|
||||
[JsonProperty("epg-recent-channels")]
|
||||
EpgRecentChannels,
|
||||
[JsonProperty("exclude restrictions")]
|
||||
ExcludeRestrictions,
|
||||
[JsonProperty("federated-auth")]
|
||||
FederatedAuth,
|
||||
[JsonProperty("friend_request_push_notifications")]
|
||||
FriendRequestPushNotifications,
|
||||
[JsonProperty("grandfather-sync")]
|
||||
GrandfatherSync,
|
||||
[JsonProperty("guided-upgrade")]
|
||||
GuidedUpgrade,
|
||||
[JsonProperty("hardware_transcoding")]
|
||||
HardwareTranscoding,
|
||||
[JsonProperty("home")]
|
||||
Home,
|
||||
[JsonProperty("hwtranscode")]
|
||||
Hwtranscode,
|
||||
[JsonProperty("imagga-v2")]
|
||||
ImaggaV2,
|
||||
[JsonProperty("increase-password-complexity")]
|
||||
IncreasePasswordComplexity,
|
||||
[JsonProperty("ios14-privacy-banner")]
|
||||
Ios14PrivacyBanner,
|
||||
[JsonProperty("iterable-notification-tokens")]
|
||||
IterableNotificationTokens,
|
||||
[JsonProperty("item_clusters")]
|
||||
ItemClusters,
|
||||
[JsonProperty("keep-payment-method")]
|
||||
KeepPaymentMethod,
|
||||
[JsonProperty("kevin-bacon")]
|
||||
KevinBacon,
|
||||
[JsonProperty("korea-consent")]
|
||||
KoreaConsent,
|
||||
[JsonProperty("le_isrg_root_x1")]
|
||||
LeIsrgRootX1,
|
||||
[JsonProperty("lets_encrypt")]
|
||||
LetsEncrypt,
|
||||
[JsonProperty("lightning-dvr-pivot")]
|
||||
LightningDvrPivot,
|
||||
[JsonProperty("live-tv-support-incomplete-segments")]
|
||||
LiveTvSupportIncompleteSegments,
|
||||
[JsonProperty("livetv")]
|
||||
Livetv,
|
||||
[JsonProperty("lyrics")]
|
||||
Lyrics,
|
||||
[JsonProperty("metadata_search")]
|
||||
MetadataSearch,
|
||||
[JsonProperty("music-analysis")]
|
||||
MusicAnalysis,
|
||||
[JsonProperty("music_videos")]
|
||||
MusicVideos,
|
||||
[JsonProperty("new_plex_pass_prices")]
|
||||
NewPlexPassPrices,
|
||||
[JsonProperty("news-provider-sunset-modal")]
|
||||
NewsProviderSunsetModal,
|
||||
[JsonProperty("nominatim")]
|
||||
Nominatim,
|
||||
[JsonProperty("pass")]
|
||||
Pass,
|
||||
[JsonProperty("photos-favorites")]
|
||||
PhotosFavorites,
|
||||
[JsonProperty("photos-metadata-edition")]
|
||||
PhotosMetadataEdition,
|
||||
[JsonProperty("photosV6-edit")]
|
||||
PhotosV6Edit,
|
||||
[JsonProperty("photosV6-tv-albums")]
|
||||
PhotosV6TvAlbums,
|
||||
[JsonProperty("pms_health")]
|
||||
PmsHealth,
|
||||
[JsonProperty("premium-dashboard")]
|
||||
PremiumDashboard,
|
||||
[JsonProperty("premium_music_metadata")]
|
||||
PremiumMusicMetadata,
|
||||
[JsonProperty("radio")]
|
||||
Radio,
|
||||
[JsonProperty("rate-limit-client-token")]
|
||||
RateLimitClientToken,
|
||||
[JsonProperty("scrobbling-service-plex-tv")]
|
||||
ScrobblingServicePlexTv,
|
||||
[JsonProperty("session_bandwidth_restrictions")]
|
||||
SessionBandwidthRestrictions,
|
||||
[JsonProperty("session_kick")]
|
||||
SessionKick,
|
||||
[JsonProperty("shared_server_notification")]
|
||||
SharedServerNotification,
|
||||
[JsonProperty("shared_source_notification")]
|
||||
SharedSourceNotification,
|
||||
[JsonProperty("signin_notification")]
|
||||
SigninNotification,
|
||||
[JsonProperty("signin_with_apple")]
|
||||
SigninWithApple,
|
||||
[JsonProperty("silence-removal")]
|
||||
SilenceRemoval,
|
||||
[JsonProperty("sleep-timer")]
|
||||
SleepTimer,
|
||||
[JsonProperty("spring_serve_ad_provider")]
|
||||
SpringServeAdProvider,
|
||||
[JsonProperty("sync")]
|
||||
Sync,
|
||||
[JsonProperty("sweet-fades")]
|
||||
SweetFades,
|
||||
[JsonProperty("transcoder_cache")]
|
||||
TranscoderCache,
|
||||
[JsonProperty("trailers")]
|
||||
Trailers,
|
||||
[JsonProperty("tuner-sharing")]
|
||||
TunerSharing,
|
||||
[JsonProperty("two-factor-authentication")]
|
||||
TwoFactorAuthentication,
|
||||
[JsonProperty("unsupportedtuners")]
|
||||
Unsupportedtuners,
|
||||
[JsonProperty("upgrade-3ds2")]
|
||||
Upgrade3ds2,
|
||||
[JsonProperty("visualizers")]
|
||||
Visualizers,
|
||||
[JsonProperty("vod-schema")]
|
||||
VodSchema,
|
||||
[JsonProperty("vod_cloudflare")]
|
||||
VodCloudflare,
|
||||
[JsonProperty("volume-leveling")]
|
||||
VolumeLeveling,
|
||||
[JsonProperty("watch-together-invite")]
|
||||
WatchTogetherInvite,
|
||||
[JsonProperty("watchlist-rss")]
|
||||
WatchlistRss,
|
||||
[JsonProperty("web_server_dashboard")]
|
||||
WebServerDashboard,
|
||||
[JsonProperty("webhooks")]
|
||||
Webhooks,
|
||||
}
|
||||
|
||||
public static class GetTokenDetailsFeaturesExtension
|
||||
{
|
||||
public static string Value(this GetTokenDetailsFeatures value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetTokenDetailsFeatures ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetTokenDetailsFeatures).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 GetTokenDetailsFeatures)
|
||||
{
|
||||
return (GetTokenDetailsFeatures)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetTokenDetailsFeatures");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// List of features allowed on your Plex Pass subscription
|
||||
/// </summary>
|
||||
[JsonProperty("features")]
|
||||
public List<GetTokenDetailsFeatures>? Features { get; set; }
|
||||
public List<string>? Features { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the account's Plex Pass subscription is active
|
||||
|
||||
@@ -15,10 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class Location
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("path")]
|
||||
public string Path { get; set; } = default!;
|
||||
public string? Path { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -21,43 +21,43 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public int Id { get; set; } = default!;
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int Duration { get; set; } = default!;
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public int Bitrate { get; set; } = default!;
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public int Width { get; set; } = default!;
|
||||
public int? Width { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public int Height { get; set; } = default!;
|
||||
public int? Height { get; set; }
|
||||
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double AspectRatio { get; set; } = default!;
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("audioChannels")]
|
||||
public int AudioChannels { get; set; } = default!;
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("audioCodec")]
|
||||
public string AudioCodec { get; set; } = default!;
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoCodec")]
|
||||
public string VideoCodec { get; set; } = default!;
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoResolution")]
|
||||
public string VideoResolution { get; set; } = default!;
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string Container { get; set; } = default!;
|
||||
|
||||
[JsonProperty("videoFrameRate")]
|
||||
public string VideoFrameRate { get; set; } = default!;
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string VideoProfile { get; set; } = default!;
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("hasVoiceActivity")]
|
||||
public bool? HasVoiceActivity { get; set; }
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int Duration { get; set; } = default!;
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("file")]
|
||||
public string File { get; set; } = default!;
|
||||
@@ -52,7 +52,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string VideoProfile { get; set; } = default!;
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("indexes")]
|
||||
public string? Indexes { get; set; }
|
||||
|
||||
@@ -1,243 +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 PostUsersSignInDataAuthenticationFeatures
|
||||
{
|
||||
[JsonProperty("Android - Dolby Vision")]
|
||||
AndroidDolbyVision,
|
||||
[JsonProperty("Android - PiP")]
|
||||
AndroidPiP,
|
||||
[JsonProperty("CU Sunset")]
|
||||
CUSunset,
|
||||
[JsonProperty("HRK_enable_EUR")]
|
||||
HRKEnableEUR,
|
||||
[JsonProperty("TREBLE-show-features")]
|
||||
TREBLEShowFeatures,
|
||||
[JsonProperty("ad-countdown-timer")]
|
||||
AdCountdownTimer,
|
||||
[JsonProperty("adaptive_bitrate")]
|
||||
AdaptiveBitrate,
|
||||
[JsonProperty("album-types")]
|
||||
AlbumTypes,
|
||||
[JsonProperty("allow_dvr")]
|
||||
AllowDvr,
|
||||
[JsonProperty("amazon-loop-debug")]
|
||||
AmazonLoopDebug,
|
||||
[JsonProperty("avod-ad-analysis")]
|
||||
AvodAdAnalysis,
|
||||
[JsonProperty("avod-new-media")]
|
||||
AvodNewMedia,
|
||||
[JsonProperty("blacklist_get_signin")]
|
||||
BlacklistGetSignin,
|
||||
[JsonProperty("boost-voices")]
|
||||
BoostVoices,
|
||||
[JsonProperty("camera_upload")]
|
||||
CameraUpload,
|
||||
[JsonProperty("client-radio-stations")]
|
||||
ClientRadioStations,
|
||||
[JsonProperty("cloudflare-turnstile-required")]
|
||||
CloudflareTurnstileRequired,
|
||||
[JsonProperty("cloudsync")]
|
||||
Cloudsync,
|
||||
[JsonProperty("collections")]
|
||||
Collections,
|
||||
[JsonProperty("comments_and_replies_push_notifications")]
|
||||
CommentsAndRepliesPushNotifications,
|
||||
[JsonProperty("community_access_plex_tv")]
|
||||
CommunityAccessPlexTv,
|
||||
[JsonProperty("companions_sonos")]
|
||||
CompanionsSonos,
|
||||
[JsonProperty("content_filter")]
|
||||
ContentFilter,
|
||||
[JsonProperty("custom-home-removal")]
|
||||
CustomHomeRemoval,
|
||||
[JsonProperty("disable_home_user_friendships")]
|
||||
DisableHomeUserFriendships,
|
||||
[JsonProperty("disable_sharing_friendships")]
|
||||
DisableSharingFriendships,
|
||||
[JsonProperty("downloads-gating")]
|
||||
DownloadsGating,
|
||||
[JsonProperty("drm_support")]
|
||||
DrmSupport,
|
||||
[JsonProperty("dvr")]
|
||||
Dvr,
|
||||
[JsonProperty("dvr-block-unsupported-countries")]
|
||||
DvrBlockUnsupportedCountries,
|
||||
[JsonProperty("epg-recent-channels")]
|
||||
EpgRecentChannels,
|
||||
[JsonProperty("exclude restrictions")]
|
||||
ExcludeRestrictions,
|
||||
[JsonProperty("federated-auth")]
|
||||
FederatedAuth,
|
||||
[JsonProperty("friend_request_push_notifications")]
|
||||
FriendRequestPushNotifications,
|
||||
[JsonProperty("grandfather-sync")]
|
||||
GrandfatherSync,
|
||||
[JsonProperty("guided-upgrade")]
|
||||
GuidedUpgrade,
|
||||
[JsonProperty("hardware_transcoding")]
|
||||
HardwareTranscoding,
|
||||
[JsonProperty("home")]
|
||||
Home,
|
||||
[JsonProperty("hwtranscode")]
|
||||
Hwtranscode,
|
||||
[JsonProperty("imagga-v2")]
|
||||
ImaggaV2,
|
||||
[JsonProperty("increase-password-complexity")]
|
||||
IncreasePasswordComplexity,
|
||||
[JsonProperty("ios14-privacy-banner")]
|
||||
Ios14PrivacyBanner,
|
||||
[JsonProperty("iterable-notification-tokens")]
|
||||
IterableNotificationTokens,
|
||||
[JsonProperty("item_clusters")]
|
||||
ItemClusters,
|
||||
[JsonProperty("keep-payment-method")]
|
||||
KeepPaymentMethod,
|
||||
[JsonProperty("kevin-bacon")]
|
||||
KevinBacon,
|
||||
[JsonProperty("korea-consent")]
|
||||
KoreaConsent,
|
||||
[JsonProperty("le_isrg_root_x1")]
|
||||
LeIsrgRootX1,
|
||||
[JsonProperty("lets_encrypt")]
|
||||
LetsEncrypt,
|
||||
[JsonProperty("lightning-dvr-pivot")]
|
||||
LightningDvrPivot,
|
||||
[JsonProperty("live-tv-support-incomplete-segments")]
|
||||
LiveTvSupportIncompleteSegments,
|
||||
[JsonProperty("livetv")]
|
||||
Livetv,
|
||||
[JsonProperty("lyrics")]
|
||||
Lyrics,
|
||||
[JsonProperty("metadata_search")]
|
||||
MetadataSearch,
|
||||
[JsonProperty("music-analysis")]
|
||||
MusicAnalysis,
|
||||
[JsonProperty("music_videos")]
|
||||
MusicVideos,
|
||||
[JsonProperty("new_plex_pass_prices")]
|
||||
NewPlexPassPrices,
|
||||
[JsonProperty("news-provider-sunset-modal")]
|
||||
NewsProviderSunsetModal,
|
||||
[JsonProperty("nominatim")]
|
||||
Nominatim,
|
||||
[JsonProperty("pass")]
|
||||
Pass,
|
||||
[JsonProperty("photos-favorites")]
|
||||
PhotosFavorites,
|
||||
[JsonProperty("photos-metadata-edition")]
|
||||
PhotosMetadataEdition,
|
||||
[JsonProperty("photosV6-edit")]
|
||||
PhotosV6Edit,
|
||||
[JsonProperty("photosV6-tv-albums")]
|
||||
PhotosV6TvAlbums,
|
||||
[JsonProperty("pms_health")]
|
||||
PmsHealth,
|
||||
[JsonProperty("premium-dashboard")]
|
||||
PremiumDashboard,
|
||||
[JsonProperty("premium_music_metadata")]
|
||||
PremiumMusicMetadata,
|
||||
[JsonProperty("radio")]
|
||||
Radio,
|
||||
[JsonProperty("rate-limit-client-token")]
|
||||
RateLimitClientToken,
|
||||
[JsonProperty("scrobbling-service-plex-tv")]
|
||||
ScrobblingServicePlexTv,
|
||||
[JsonProperty("session_bandwidth_restrictions")]
|
||||
SessionBandwidthRestrictions,
|
||||
[JsonProperty("session_kick")]
|
||||
SessionKick,
|
||||
[JsonProperty("shared_server_notification")]
|
||||
SharedServerNotification,
|
||||
[JsonProperty("shared_source_notification")]
|
||||
SharedSourceNotification,
|
||||
[JsonProperty("signin_notification")]
|
||||
SigninNotification,
|
||||
[JsonProperty("signin_with_apple")]
|
||||
SigninWithApple,
|
||||
[JsonProperty("silence-removal")]
|
||||
SilenceRemoval,
|
||||
[JsonProperty("sleep-timer")]
|
||||
SleepTimer,
|
||||
[JsonProperty("spring_serve_ad_provider")]
|
||||
SpringServeAdProvider,
|
||||
[JsonProperty("sync")]
|
||||
Sync,
|
||||
[JsonProperty("sweet-fades")]
|
||||
SweetFades,
|
||||
[JsonProperty("transcoder_cache")]
|
||||
TranscoderCache,
|
||||
[JsonProperty("trailers")]
|
||||
Trailers,
|
||||
[JsonProperty("tuner-sharing")]
|
||||
TunerSharing,
|
||||
[JsonProperty("two-factor-authentication")]
|
||||
TwoFactorAuthentication,
|
||||
[JsonProperty("unsupportedtuners")]
|
||||
Unsupportedtuners,
|
||||
[JsonProperty("upgrade-3ds2")]
|
||||
Upgrade3ds2,
|
||||
[JsonProperty("visualizers")]
|
||||
Visualizers,
|
||||
[JsonProperty("vod-schema")]
|
||||
VodSchema,
|
||||
[JsonProperty("vod_cloudflare")]
|
||||
VodCloudflare,
|
||||
[JsonProperty("volume-leveling")]
|
||||
VolumeLeveling,
|
||||
[JsonProperty("watch-together-invite")]
|
||||
WatchTogetherInvite,
|
||||
[JsonProperty("watchlist-rss")]
|
||||
WatchlistRss,
|
||||
[JsonProperty("web_server_dashboard")]
|
||||
WebServerDashboard,
|
||||
[JsonProperty("webhooks")]
|
||||
Webhooks,
|
||||
}
|
||||
|
||||
public static class PostUsersSignInDataAuthenticationFeaturesExtension
|
||||
{
|
||||
public static string Value(this PostUsersSignInDataAuthenticationFeatures value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSignInDataAuthenticationFeatures ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSignInDataAuthenticationFeatures).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 PostUsersSignInDataAuthenticationFeatures)
|
||||
{
|
||||
return (PostUsersSignInDataAuthenticationFeatures)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSignInDataAuthenticationFeatures");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// List of features allowed on your Plex Pass subscription
|
||||
/// </summary>
|
||||
[JsonProperty("features")]
|
||||
public List<PostUsersSignInDataAuthenticationFeatures>? Features { get; set; }
|
||||
public List<string>? Features { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the account's Plex Pass subscription is active
|
||||
|
||||
@@ -1,243 +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 PostUsersSignInDataFeatures
|
||||
{
|
||||
[JsonProperty("Android - Dolby Vision")]
|
||||
AndroidDolbyVision,
|
||||
[JsonProperty("Android - PiP")]
|
||||
AndroidPiP,
|
||||
[JsonProperty("CU Sunset")]
|
||||
CUSunset,
|
||||
[JsonProperty("HRK_enable_EUR")]
|
||||
HRKEnableEUR,
|
||||
[JsonProperty("TREBLE-show-features")]
|
||||
TREBLEShowFeatures,
|
||||
[JsonProperty("ad-countdown-timer")]
|
||||
AdCountdownTimer,
|
||||
[JsonProperty("adaptive_bitrate")]
|
||||
AdaptiveBitrate,
|
||||
[JsonProperty("album-types")]
|
||||
AlbumTypes,
|
||||
[JsonProperty("allow_dvr")]
|
||||
AllowDvr,
|
||||
[JsonProperty("amazon-loop-debug")]
|
||||
AmazonLoopDebug,
|
||||
[JsonProperty("avod-ad-analysis")]
|
||||
AvodAdAnalysis,
|
||||
[JsonProperty("avod-new-media")]
|
||||
AvodNewMedia,
|
||||
[JsonProperty("blacklist_get_signin")]
|
||||
BlacklistGetSignin,
|
||||
[JsonProperty("boost-voices")]
|
||||
BoostVoices,
|
||||
[JsonProperty("camera_upload")]
|
||||
CameraUpload,
|
||||
[JsonProperty("client-radio-stations")]
|
||||
ClientRadioStations,
|
||||
[JsonProperty("cloudflare-turnstile-required")]
|
||||
CloudflareTurnstileRequired,
|
||||
[JsonProperty("cloudsync")]
|
||||
Cloudsync,
|
||||
[JsonProperty("collections")]
|
||||
Collections,
|
||||
[JsonProperty("comments_and_replies_push_notifications")]
|
||||
CommentsAndRepliesPushNotifications,
|
||||
[JsonProperty("community_access_plex_tv")]
|
||||
CommunityAccessPlexTv,
|
||||
[JsonProperty("companions_sonos")]
|
||||
CompanionsSonos,
|
||||
[JsonProperty("content_filter")]
|
||||
ContentFilter,
|
||||
[JsonProperty("custom-home-removal")]
|
||||
CustomHomeRemoval,
|
||||
[JsonProperty("disable_home_user_friendships")]
|
||||
DisableHomeUserFriendships,
|
||||
[JsonProperty("disable_sharing_friendships")]
|
||||
DisableSharingFriendships,
|
||||
[JsonProperty("downloads-gating")]
|
||||
DownloadsGating,
|
||||
[JsonProperty("drm_support")]
|
||||
DrmSupport,
|
||||
[JsonProperty("dvr")]
|
||||
Dvr,
|
||||
[JsonProperty("dvr-block-unsupported-countries")]
|
||||
DvrBlockUnsupportedCountries,
|
||||
[JsonProperty("epg-recent-channels")]
|
||||
EpgRecentChannels,
|
||||
[JsonProperty("exclude restrictions")]
|
||||
ExcludeRestrictions,
|
||||
[JsonProperty("federated-auth")]
|
||||
FederatedAuth,
|
||||
[JsonProperty("friend_request_push_notifications")]
|
||||
FriendRequestPushNotifications,
|
||||
[JsonProperty("grandfather-sync")]
|
||||
GrandfatherSync,
|
||||
[JsonProperty("guided-upgrade")]
|
||||
GuidedUpgrade,
|
||||
[JsonProperty("hardware_transcoding")]
|
||||
HardwareTranscoding,
|
||||
[JsonProperty("home")]
|
||||
Home,
|
||||
[JsonProperty("hwtranscode")]
|
||||
Hwtranscode,
|
||||
[JsonProperty("imagga-v2")]
|
||||
ImaggaV2,
|
||||
[JsonProperty("increase-password-complexity")]
|
||||
IncreasePasswordComplexity,
|
||||
[JsonProperty("ios14-privacy-banner")]
|
||||
Ios14PrivacyBanner,
|
||||
[JsonProperty("iterable-notification-tokens")]
|
||||
IterableNotificationTokens,
|
||||
[JsonProperty("item_clusters")]
|
||||
ItemClusters,
|
||||
[JsonProperty("keep-payment-method")]
|
||||
KeepPaymentMethod,
|
||||
[JsonProperty("kevin-bacon")]
|
||||
KevinBacon,
|
||||
[JsonProperty("korea-consent")]
|
||||
KoreaConsent,
|
||||
[JsonProperty("le_isrg_root_x1")]
|
||||
LeIsrgRootX1,
|
||||
[JsonProperty("lets_encrypt")]
|
||||
LetsEncrypt,
|
||||
[JsonProperty("lightning-dvr-pivot")]
|
||||
LightningDvrPivot,
|
||||
[JsonProperty("live-tv-support-incomplete-segments")]
|
||||
LiveTvSupportIncompleteSegments,
|
||||
[JsonProperty("livetv")]
|
||||
Livetv,
|
||||
[JsonProperty("lyrics")]
|
||||
Lyrics,
|
||||
[JsonProperty("metadata_search")]
|
||||
MetadataSearch,
|
||||
[JsonProperty("music-analysis")]
|
||||
MusicAnalysis,
|
||||
[JsonProperty("music_videos")]
|
||||
MusicVideos,
|
||||
[JsonProperty("new_plex_pass_prices")]
|
||||
NewPlexPassPrices,
|
||||
[JsonProperty("news-provider-sunset-modal")]
|
||||
NewsProviderSunsetModal,
|
||||
[JsonProperty("nominatim")]
|
||||
Nominatim,
|
||||
[JsonProperty("pass")]
|
||||
Pass,
|
||||
[JsonProperty("photos-favorites")]
|
||||
PhotosFavorites,
|
||||
[JsonProperty("photos-metadata-edition")]
|
||||
PhotosMetadataEdition,
|
||||
[JsonProperty("photosV6-edit")]
|
||||
PhotosV6Edit,
|
||||
[JsonProperty("photosV6-tv-albums")]
|
||||
PhotosV6TvAlbums,
|
||||
[JsonProperty("pms_health")]
|
||||
PmsHealth,
|
||||
[JsonProperty("premium-dashboard")]
|
||||
PremiumDashboard,
|
||||
[JsonProperty("premium_music_metadata")]
|
||||
PremiumMusicMetadata,
|
||||
[JsonProperty("radio")]
|
||||
Radio,
|
||||
[JsonProperty("rate-limit-client-token")]
|
||||
RateLimitClientToken,
|
||||
[JsonProperty("scrobbling-service-plex-tv")]
|
||||
ScrobblingServicePlexTv,
|
||||
[JsonProperty("session_bandwidth_restrictions")]
|
||||
SessionBandwidthRestrictions,
|
||||
[JsonProperty("session_kick")]
|
||||
SessionKick,
|
||||
[JsonProperty("shared_server_notification")]
|
||||
SharedServerNotification,
|
||||
[JsonProperty("shared_source_notification")]
|
||||
SharedSourceNotification,
|
||||
[JsonProperty("signin_notification")]
|
||||
SigninNotification,
|
||||
[JsonProperty("signin_with_apple")]
|
||||
SigninWithApple,
|
||||
[JsonProperty("silence-removal")]
|
||||
SilenceRemoval,
|
||||
[JsonProperty("sleep-timer")]
|
||||
SleepTimer,
|
||||
[JsonProperty("spring_serve_ad_provider")]
|
||||
SpringServeAdProvider,
|
||||
[JsonProperty("sync")]
|
||||
Sync,
|
||||
[JsonProperty("sweet-fades")]
|
||||
SweetFades,
|
||||
[JsonProperty("transcoder_cache")]
|
||||
TranscoderCache,
|
||||
[JsonProperty("trailers")]
|
||||
Trailers,
|
||||
[JsonProperty("tuner-sharing")]
|
||||
TunerSharing,
|
||||
[JsonProperty("two-factor-authentication")]
|
||||
TwoFactorAuthentication,
|
||||
[JsonProperty("unsupportedtuners")]
|
||||
Unsupportedtuners,
|
||||
[JsonProperty("upgrade-3ds2")]
|
||||
Upgrade3ds2,
|
||||
[JsonProperty("visualizers")]
|
||||
Visualizers,
|
||||
[JsonProperty("vod-schema")]
|
||||
VodSchema,
|
||||
[JsonProperty("vod_cloudflare")]
|
||||
VodCloudflare,
|
||||
[JsonProperty("volume-leveling")]
|
||||
VolumeLeveling,
|
||||
[JsonProperty("watch-together-invite")]
|
||||
WatchTogetherInvite,
|
||||
[JsonProperty("watchlist-rss")]
|
||||
WatchlistRss,
|
||||
[JsonProperty("web_server_dashboard")]
|
||||
WebServerDashboard,
|
||||
[JsonProperty("webhooks")]
|
||||
Webhooks,
|
||||
}
|
||||
|
||||
public static class PostUsersSignInDataFeaturesExtension
|
||||
{
|
||||
public static string Value(this PostUsersSignInDataFeatures value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSignInDataFeatures ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSignInDataFeatures).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 PostUsersSignInDataFeatures)
|
||||
{
|
||||
return (PostUsersSignInDataFeatures)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSignInDataFeatures");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// List of features allowed on your Plex Pass subscription
|
||||
/// </summary>
|
||||
[JsonProperty("features")]
|
||||
public List<PostUsersSignInDataFeatures>? Features { get; set; }
|
||||
public List<string>? Features { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the account's Plex Pass subscription is active
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to include collections in the search results.
|
||||
/// </summary>
|
||||
public enum QueryParamIncludeCollections
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to include external media in the search results.
|
||||
/// </summary>
|
||||
public enum QueryParamIncludeExternalMedia
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
25
LukeHagar/PlexAPI/SDK/Models/Requests/SearchResult.cs
Normal file
25
LukeHagar/PlexAPI/SDK/Models/Requests/SearchResult.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class SearchResult
|
||||
{
|
||||
|
||||
[JsonProperty("score")]
|
||||
public float Score { get; set; } = default!;
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public GetSearchAllLibrariesMetadata Metadata { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
63
LukeHagar/PlexAPI/SDK/Models/Requests/SearchTypes.cs
Normal file
63
LukeHagar/PlexAPI/SDK/Models/Requests/SearchTypes.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 SearchTypes
|
||||
{
|
||||
[JsonProperty("movies")]
|
||||
Movies,
|
||||
[JsonProperty("music")]
|
||||
Music,
|
||||
[JsonProperty("otherVideos")]
|
||||
OtherVideos,
|
||||
[JsonProperty("people")]
|
||||
People,
|
||||
[JsonProperty("tv")]
|
||||
Tv,
|
||||
}
|
||||
|
||||
public static class SearchTypesExtension
|
||||
{
|
||||
public static string Value(this SearchTypes value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static SearchTypes ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(SearchTypes).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 SearchTypes)
|
||||
{
|
||||
return (SearchTypes)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum SearchTypes");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,7 +24,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// List of features allowed on your Plex Pass subscription
|
||||
/// </summary>
|
||||
[JsonProperty("features")]
|
||||
public List<Features>? Features { get; set; }
|
||||
public List<string>? Features { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the account's Plex Pass subscription is active
|
||||
|
||||
@@ -146,10 +146,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -143,10 +143,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
/// | Swift | <a href="https://github.com/LukeHagar/plexswift">GitHub</a> | <a href="https://github.com/LukeHagar/plexswift/releases">Releases</a> | - |<br/>
|
||||
/// | PHP | <a href="https://github.com/LukeHagar/plexphp">GitHub</a> | <a href="https://github.com/LukeHagar/plexphp/releases">Releases</a> | - |<br/>
|
||||
/// | Java | <a href="https://github.com/LukeHagar/plexjava">GitHub</a> | <a href="https://github.com/LukeHagar/plexjava/releases">Releases</a> | - |<br/>
|
||||
/// | C# | <a href="https://github.com/LukeHagar/plexcsharp">GitHub</a> | <a href="https://github.com/LukeHagar/plexcsharp/releases">Releases</a> | - <br/>
|
||||
/// | C# | <a href="https://github.com/LukeHagar/plexcsharp">GitHub</a> | <a href="https://github.com/LukeHagar/plexcsharp/releases">Releases</a> | -<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
@@ -322,7 +322,7 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
/// | Swift | <a href="https://github.com/LukeHagar/plexswift">GitHub</a> | <a href="https://github.com/LukeHagar/plexswift/releases">Releases</a> | - |<br/>
|
||||
/// | PHP | <a href="https://github.com/LukeHagar/plexphp">GitHub</a> | <a href="https://github.com/LukeHagar/plexphp/releases">Releases</a> | - |<br/>
|
||||
/// | Java | <a href="https://github.com/LukeHagar/plexjava">GitHub</a> | <a href="https://github.com/LukeHagar/plexjava/releases">Releases</a> | - |<br/>
|
||||
/// | C# | <a href="https://github.com/LukeHagar/plexcsharp">GitHub</a> | <a href="https://github.com/LukeHagar/plexcsharp/releases">Releases</a> | - <br/>
|
||||
/// | C# | <a href="https://github.com/LukeHagar/plexcsharp">GitHub</a> | <a href="https://github.com/LukeHagar/plexcsharp/releases">Releases</a> | -<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
@@ -331,10 +331,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private int _serverIndex = 0;
|
||||
private ISpeakeasyHttpClient _client;
|
||||
|
||||
@@ -87,10 +87,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -126,10 +126,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -80,10 +80,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -71,10 +71,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -74,10 +74,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -62,10 +62,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -59,10 +59,10 @@ namespace LukeHagar.PlexAPI.SDK
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.9.1";
|
||||
private const string _sdkVersion = "0.9.2";
|
||||
private const string _sdkGenVersion = "2.429.0";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.1 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.9.2 2.429.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||
|
||||
Reference in New Issue
Block a user