mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc8bc7366d |
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9
|
||||
management:
|
||||
docChecksum: 2ad2b4c59994082e04faa0c3e7675f3e
|
||||
docChecksum: 5ae5b1296191bd5cc5d4f6cd38df8bff
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: 1.377.3
|
||||
generationVersion: 2.404.2
|
||||
releaseVersion: 0.4.0
|
||||
configChecksum: 0e72845e7bb366c3b8a4e13005a8fcfe
|
||||
speakeasyVersion: 1.378.1
|
||||
generationVersion: 2.404.3
|
||||
releaseVersion: 0.4.1
|
||||
configChecksum: c11547fd2dc431993d988a8717e7bfe9
|
||||
repoURL: https://github.com/LukeHagar/plexcsharp.git
|
||||
repoSubDirectory: .
|
||||
published: true
|
||||
@@ -157,6 +157,11 @@ generatedFiles:
|
||||
- PlexAPI/Models/Requests/GetTokenByPinIdAuthPinContainer.cs
|
||||
- PlexAPI/Models/Requests/GetTokenByPinIdResponse.cs
|
||||
- PlexAPI/Models/Requests/MailingListStatus.cs
|
||||
- PlexAPI/Models/Requests/AutoSelectSubtitle.cs
|
||||
- PlexAPI/Models/Requests/DefaultSubtitleAccessibility.cs
|
||||
- PlexAPI/Models/Requests/DefaultSubtitleForced.cs
|
||||
- PlexAPI/Models/Requests/WatchedIndicator.cs
|
||||
- PlexAPI/Models/Requests/MediaReviewsVisibility.cs
|
||||
- PlexAPI/Models/Requests/UserProfile.cs
|
||||
- PlexAPI/Models/Requests/GetUserDetailsStatus.cs
|
||||
- PlexAPI/Models/Requests/Services.cs
|
||||
@@ -408,25 +413,30 @@ generatedFiles:
|
||||
- PlexAPI/Models/Requests/Skip.cs
|
||||
- PlexAPI/Models/Requests/ApplyUpdatesRequest.cs
|
||||
- PlexAPI/Models/Requests/ApplyUpdatesResponse.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataRequestBody.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataRequest.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataMailingListStatus.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataUserProfile.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataStatus.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataServices.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataFeatures.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataUserStatus.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataSubscription.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataUserFeatures.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataUserResponseStatus.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataUserSubscription.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataState.cs
|
||||
- PlexAPI/Models/Requests/PostSignInRequestBody.cs
|
||||
- PlexAPI/Models/Requests/PostSignInRequest.cs
|
||||
- PlexAPI/Models/Requests/PostSignInMailingListStatus.cs
|
||||
- PlexAPI/Models/Requests/PostSignInAutoSelectSubtitle.cs
|
||||
- PlexAPI/Models/Requests/PostSignInDefaultSubtitleAccessibility.cs
|
||||
- PlexAPI/Models/Requests/PostSignInDefaultSubtitleForced.cs
|
||||
- PlexAPI/Models/Requests/PostSignInWatchedIndicator.cs
|
||||
- PlexAPI/Models/Requests/PostSignInMediaReviewsVisibility.cs
|
||||
- PlexAPI/Models/Requests/PostSignInUserProfile.cs
|
||||
- PlexAPI/Models/Requests/PostSignInStatus.cs
|
||||
- PlexAPI/Models/Requests/PostSignInServices.cs
|
||||
- PlexAPI/Models/Requests/PostSignInFeatures.cs
|
||||
- PlexAPI/Models/Requests/PostSignInUserStatus.cs
|
||||
- PlexAPI/Models/Requests/PostSignInSubscription.cs
|
||||
- PlexAPI/Models/Requests/PostSignInUserFeatures.cs
|
||||
- PlexAPI/Models/Requests/PostSignInUserResponseStatus.cs
|
||||
- PlexAPI/Models/Requests/PostSignInUserSubscription.cs
|
||||
- PlexAPI/Models/Requests/PostSignInState.cs
|
||||
- PlexAPI/Models/Requests/InternalPaymentMethod.cs
|
||||
- PlexAPI/Models/Requests/Billing.cs
|
||||
- PlexAPI/Models/Requests/PastSubscription.cs
|
||||
- PlexAPI/Models/Requests/Trials.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataUserPlexAccount.cs
|
||||
- PlexAPI/Models/Requests/PostUsersSigninDataResponse.cs
|
||||
- PlexAPI/Models/Requests/PostSignInUserPlexAccount.cs
|
||||
- PlexAPI/Models/Requests/PostSignInResponse.cs
|
||||
- PlexAPI/Models/Requests/PathParamFilter.cs
|
||||
- PlexAPI/Models/Requests/Libtype.cs
|
||||
- PlexAPI/Models/Requests/IncludeCollections.cs
|
||||
@@ -572,8 +582,8 @@ generatedFiles:
|
||||
- PlexAPI/Models/Errors/CheckForUpdatesResponseBody.cs
|
||||
- PlexAPI/Models/Errors/ApplyUpdatesErrors.cs
|
||||
- PlexAPI/Models/Errors/ApplyUpdatesResponseBody.cs
|
||||
- PlexAPI/Models/Errors/PostUsersSigninDataErrors.cs
|
||||
- PlexAPI/Models/Errors/PostUsersSigninDataResponseBody.cs
|
||||
- PlexAPI/Models/Errors/PostSignInErrors.cs
|
||||
- PlexAPI/Models/Errors/PostSignInResponseBody.cs
|
||||
- PlexAPI/Models/Errors/GetWatchlistErrors.cs
|
||||
- PlexAPI/Models/Errors/GetWatchlistResponseBody.cs
|
||||
- PlexAPI/Models/Components/Security.cs
|
||||
@@ -664,6 +674,11 @@ generatedFiles:
|
||||
- docs/Models/Requests/GetTokenByPinIdAuthPinContainer.md
|
||||
- docs/Models/Requests/GetTokenByPinIdResponse.md
|
||||
- docs/Models/Requests/MailingListStatus.md
|
||||
- docs/Models/Requests/AutoSelectSubtitle.md
|
||||
- docs/Models/Requests/DefaultSubtitleAccessibility.md
|
||||
- docs/Models/Requests/DefaultSubtitleForced.md
|
||||
- docs/Models/Requests/WatchedIndicator.md
|
||||
- docs/Models/Requests/MediaReviewsVisibility.md
|
||||
- docs/Models/Requests/UserProfile.md
|
||||
- docs/Models/Requests/GetUserDetailsStatus.md
|
||||
- docs/Models/Requests/Services.md
|
||||
@@ -915,25 +930,30 @@ generatedFiles:
|
||||
- docs/Models/Requests/Skip.md
|
||||
- docs/Models/Requests/ApplyUpdatesRequest.md
|
||||
- docs/Models/Requests/ApplyUpdatesResponse.md
|
||||
- docs/Models/Requests/PostUsersSigninDataRequestBody.md
|
||||
- docs/Models/Requests/PostUsersSigninDataRequest.md
|
||||
- docs/Models/Requests/PostUsersSigninDataMailingListStatus.md
|
||||
- docs/Models/Requests/PostUsersSigninDataUserProfile.md
|
||||
- docs/Models/Requests/PostUsersSigninDataStatus.md
|
||||
- docs/Models/Requests/PostUsersSigninDataServices.md
|
||||
- docs/Models/Requests/PostUsersSigninDataFeatures.md
|
||||
- docs/Models/Requests/PostUsersSigninDataUserStatus.md
|
||||
- docs/Models/Requests/PostUsersSigninDataSubscription.md
|
||||
- docs/Models/Requests/PostUsersSigninDataUserFeatures.md
|
||||
- docs/Models/Requests/PostUsersSigninDataUserResponseStatus.md
|
||||
- docs/Models/Requests/PostUsersSigninDataUserSubscription.md
|
||||
- docs/Models/Requests/PostUsersSigninDataState.md
|
||||
- docs/Models/Requests/PostSignInRequestBody.md
|
||||
- docs/Models/Requests/PostSignInRequest.md
|
||||
- docs/Models/Requests/PostSignInMailingListStatus.md
|
||||
- docs/Models/Requests/PostSignInAutoSelectSubtitle.md
|
||||
- docs/Models/Requests/PostSignInDefaultSubtitleAccessibility.md
|
||||
- docs/Models/Requests/PostSignInDefaultSubtitleForced.md
|
||||
- docs/Models/Requests/PostSignInWatchedIndicator.md
|
||||
- docs/Models/Requests/PostSignInMediaReviewsVisibility.md
|
||||
- docs/Models/Requests/PostSignInUserProfile.md
|
||||
- docs/Models/Requests/PostSignInStatus.md
|
||||
- docs/Models/Requests/PostSignInServices.md
|
||||
- docs/Models/Requests/PostSignInFeatures.md
|
||||
- docs/Models/Requests/PostSignInUserStatus.md
|
||||
- docs/Models/Requests/PostSignInSubscription.md
|
||||
- docs/Models/Requests/PostSignInUserFeatures.md
|
||||
- docs/Models/Requests/PostSignInUserResponseStatus.md
|
||||
- docs/Models/Requests/PostSignInUserSubscription.md
|
||||
- docs/Models/Requests/PostSignInState.md
|
||||
- docs/Models/Requests/InternalPaymentMethod.md
|
||||
- docs/Models/Requests/Billing.md
|
||||
- docs/Models/Requests/PastSubscription.md
|
||||
- docs/Models/Requests/Trials.md
|
||||
- docs/Models/Requests/PostUsersSigninDataUserPlexAccount.md
|
||||
- docs/Models/Requests/PostUsersSigninDataResponse.md
|
||||
- docs/Models/Requests/PostSignInUserPlexAccount.md
|
||||
- docs/Models/Requests/PostSignInResponse.md
|
||||
- docs/Models/Requests/PathParamFilter.md
|
||||
- docs/Models/Requests/Libtype.md
|
||||
- docs/Models/Requests/IncludeCollections.md
|
||||
@@ -1079,8 +1099,8 @@ generatedFiles:
|
||||
- docs/Models/Errors/CheckForUpdatesResponseBody.md
|
||||
- docs/Models/Errors/ApplyUpdatesErrors.md
|
||||
- docs/Models/Errors/ApplyUpdatesResponseBody.md
|
||||
- docs/Models/Errors/PostUsersSigninDataErrors.md
|
||||
- docs/Models/Errors/PostUsersSigninDataResponseBody.md
|
||||
- docs/Models/Errors/PostSignInErrors.md
|
||||
- docs/Models/Errors/PostSignInResponseBody.md
|
||||
- docs/Models/Errors/GetWatchlistErrors.md
|
||||
- docs/Models/Errors/GetWatchlistResponseBody.md
|
||||
- docs/Models/Components/Security.md
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: true
|
||||
csharp:
|
||||
version: 0.4.0
|
||||
version: 0.4.1
|
||||
additionalDependencies: []
|
||||
author: LukeHagar
|
||||
clientServerStatusCodesAsErrors: true
|
||||
|
||||
@@ -2,8 +2,8 @@ speakeasyVersion: 1.321.0
|
||||
sources:
|
||||
my-source:
|
||||
sourceNamespace: my-source
|
||||
sourceRevisionDigest: sha256:15b51e83587ffa99b9534e1343c332817af732e91a7a3317354e5e286abb559b
|
||||
sourceBlobDigest: sha256:dd6f90b552b01f3e1a76d15a9202d64ba0dcc4cb192794e85213096a7d64a9c4
|
||||
sourceRevisionDigest: sha256:f9e2111241453dcdf0c358ee4cc67c2da25786065dfce0778c51e357cca85470
|
||||
sourceBlobDigest: sha256:5ebcd8b28a73ab3b3265a5e7a7c43136d2eeccb8fd62f2db4e7aacf3e3e3d2ce
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -11,8 +11,8 @@ targets:
|
||||
plexcsharp:
|
||||
source: my-source
|
||||
sourceNamespace: my-source
|
||||
sourceRevisionDigest: sha256:15b51e83587ffa99b9534e1343c332817af732e91a7a3317354e5e286abb559b
|
||||
sourceBlobDigest: sha256:dd6f90b552b01f3e1a76d15a9202d64ba0dcc4cb192794e85213096a7d64a9c4
|
||||
sourceRevisionDigest: sha256:f9e2111241453dcdf0c358ee4cc67c2da25786065dfce0778c51e357cca85470
|
||||
sourceBlobDigest: sha256:5ebcd8b28a73ab3b3265a5e7a7c43136d2eeccb8fd62f2db4e7aacf3e3e3d2ce
|
||||
outLocation: /github/workspace/repo
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
|
||||
@@ -74,10 +74,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -65,10 +65,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -101,10 +101,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -63,10 +63,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -241,10 +241,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -94,10 +94,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -72,10 +72,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace PlexAPI.Models.Errors
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
|
||||
public class PostUsersSigninDataErrors
|
||||
public class PostSignInErrors
|
||||
{
|
||||
|
||||
[JsonProperty("code")]
|
||||
@@ -19,11 +19,11 @@ namespace PlexAPI.Models.Errors
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class PostUsersSigninDataResponseBody : Exception
|
||||
public class PostSignInResponseBody : Exception
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<PostUsersSigninDataErrors>? Errors { get; set; }
|
||||
public List<PostSignInErrors>? Errors { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Raw HTTP response; suitable for custom response parsing
|
||||
60
PlexAPI/Models/Requests/AutoSelectSubtitle.cs
Normal file
60
PlexAPI/Models/Requests/AutoSelectSubtitle.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
/// </summary>
|
||||
public enum AutoSelectSubtitle
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class AutoSelectSubtitleExtension
|
||||
{
|
||||
public static string Value(this AutoSelectSubtitle value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static AutoSelectSubtitle ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(AutoSelectSubtitle).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 AutoSelectSubtitle)
|
||||
{
|
||||
return (AutoSelectSubtitle)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum AutoSelectSubtitle");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
60
PlexAPI/Models/Requests/DefaultSubtitleAccessibility.cs
Normal file
60
PlexAPI/Models/Requests/DefaultSubtitleAccessibility.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
||||
/// </summary>
|
||||
public enum DefaultSubtitleAccessibility
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class DefaultSubtitleAccessibilityExtension
|
||||
{
|
||||
public static string Value(this DefaultSubtitleAccessibility value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static DefaultSubtitleAccessibility ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(DefaultSubtitleAccessibility).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 DefaultSubtitleAccessibility)
|
||||
{
|
||||
return (DefaultSubtitleAccessibility)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum DefaultSubtitleAccessibility");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
60
PlexAPI/Models/Requests/DefaultSubtitleForced.cs
Normal file
60
PlexAPI/Models/Requests/DefaultSubtitleForced.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
/// </summary>
|
||||
public enum DefaultSubtitleForced
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class DefaultSubtitleForcedExtension
|
||||
{
|
||||
public static string Value(this DefaultSubtitleForced value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static DefaultSubtitleForced ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(DefaultSubtitleForced).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 DefaultSubtitleForced)
|
||||
{
|
||||
return (DefaultSubtitleForced)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum DefaultSubtitleForced");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,7 +13,6 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
public class GetUserDetailsSubscription
|
||||
{
|
||||
@@ -34,7 +33,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// Date the account subscribed to Plex Pass
|
||||
/// </summary>
|
||||
[JsonProperty("subscribedAt")]
|
||||
public DateTime? SubscribedAt { get; set; }
|
||||
public string? SubscribedAt { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace PlexAPI.Models.Requests
|
||||
public string? Pin { get; set; }
|
||||
|
||||
[JsonProperty("profile")]
|
||||
public List<UserProfile> Profile { get; set; } = default!;
|
||||
public UserProfile Profile { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// If the account has a Plex Home PIN enabled
|
||||
|
||||
@@ -18,8 +18,8 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public enum MailingListStatus
|
||||
{
|
||||
[JsonProperty("subscribed")]
|
||||
Subscribed,
|
||||
[JsonProperty("active")]
|
||||
Active,
|
||||
[JsonProperty("unsubscribed")]
|
||||
Unsubscribed,
|
||||
}
|
||||
|
||||
20
PlexAPI/Models/Requests/MediaReviewsVisibility.cs
Normal file
20
PlexAPI/Models/Requests/MediaReviewsVisibility.cs
Normal file
@@ -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 PlexAPI.Models.Requests
|
||||
{
|
||||
using PlexAPI.Utils;
|
||||
|
||||
public enum MediaReviewsVisibility
|
||||
{
|
||||
Zero = 0,
|
||||
One = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -12,7 +12,6 @@ namespace PlexAPI.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class PastSubscription
|
||||
{
|
||||
@@ -63,9 +62,9 @@ namespace PlexAPI.Models.Requests
|
||||
public string? Transfer { get; set; }
|
||||
|
||||
[JsonProperty("state")]
|
||||
public PostUsersSigninDataState State { get; set; } = default!;
|
||||
public PostSignInState State { get; set; } = default!;
|
||||
|
||||
[JsonProperty("billing")]
|
||||
public List<Billing> Billing { get; set; } = default!;
|
||||
public Billing Billing { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
60
PlexAPI/Models/Requests/PostSignInAutoSelectSubtitle.cs
Normal file
60
PlexAPI/Models/Requests/PostSignInAutoSelectSubtitle.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
/// </summary>
|
||||
public enum PostSignInAutoSelectSubtitle
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class PostSignInAutoSelectSubtitleExtension
|
||||
{
|
||||
public static string Value(this PostSignInAutoSelectSubtitle value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostSignInAutoSelectSubtitle ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostSignInAutoSelectSubtitle).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 PostSignInAutoSelectSubtitle)
|
||||
{
|
||||
return (PostSignInAutoSelectSubtitle)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInAutoSelectSubtitle");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
||||
/// </summary>
|
||||
public enum PostSignInDefaultSubtitleAccessibility
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class PostSignInDefaultSubtitleAccessibilityExtension
|
||||
{
|
||||
public static string Value(this PostSignInDefaultSubtitleAccessibility value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostSignInDefaultSubtitleAccessibility ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostSignInDefaultSubtitleAccessibility).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 PostSignInDefaultSubtitleAccessibility)
|
||||
{
|
||||
return (PostSignInDefaultSubtitleAccessibility)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInDefaultSubtitleAccessibility");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
60
PlexAPI/Models/Requests/PostSignInDefaultSubtitleForced.cs
Normal file
60
PlexAPI/Models/Requests/PostSignInDefaultSubtitleForced.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
/// </summary>
|
||||
public enum PostSignInDefaultSubtitleForced
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class PostSignInDefaultSubtitleForcedExtension
|
||||
{
|
||||
public static string Value(this PostSignInDefaultSubtitleForced value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostSignInDefaultSubtitleForced ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostSignInDefaultSubtitleForced).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 PostSignInDefaultSubtitleForced)
|
||||
{
|
||||
return (PostSignInDefaultSubtitleForced)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInDefaultSubtitleForced");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
public enum PostUsersSigninDataFeatures
|
||||
public enum PostSignInFeatures
|
||||
{
|
||||
[JsonProperty("Android - Dolby Vision")]
|
||||
AndroidDolbyVision,
|
||||
@@ -135,16 +135,16 @@ namespace PlexAPI.Models.Requests
|
||||
WebServerDashboard,
|
||||
}
|
||||
|
||||
public static class PostUsersSigninDataFeaturesExtension
|
||||
public static class PostSignInFeaturesExtension
|
||||
{
|
||||
public static string Value(this PostUsersSigninDataFeatures value)
|
||||
public static string Value(this PostSignInFeatures value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSigninDataFeatures ToEnum(this string value)
|
||||
public static PostSignInFeatures ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSigninDataFeatures).GetFields())
|
||||
foreach(var field in typeof(PostSignInFeatures).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -157,14 +157,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is PostUsersSigninDataFeatures)
|
||||
if (enumVal is PostSignInFeatures)
|
||||
{
|
||||
return (PostUsersSigninDataFeatures)enumVal;
|
||||
return (PostSignInFeatures)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSigninDataFeatures");
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInFeatures");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,24 +16,24 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// Your current mailing list status
|
||||
/// </summary>
|
||||
public enum PostUsersSigninDataMailingListStatus
|
||||
public enum PostSignInMailingListStatus
|
||||
{
|
||||
[JsonProperty("subscribed")]
|
||||
Subscribed,
|
||||
[JsonProperty("active")]
|
||||
Active,
|
||||
[JsonProperty("unsubscribed")]
|
||||
Unsubscribed,
|
||||
}
|
||||
|
||||
public static class PostUsersSigninDataMailingListStatusExtension
|
||||
public static class PostSignInMailingListStatusExtension
|
||||
{
|
||||
public static string Value(this PostUsersSigninDataMailingListStatus value)
|
||||
public static string Value(this PostSignInMailingListStatus value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSigninDataMailingListStatus ToEnum(this string value)
|
||||
public static PostSignInMailingListStatus ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSigninDataMailingListStatus).GetFields())
|
||||
foreach(var field in typeof(PostSignInMailingListStatus).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -46,14 +46,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is PostUsersSigninDataMailingListStatus)
|
||||
if (enumVal is PostSignInMailingListStatus)
|
||||
{
|
||||
return (PostUsersSigninDataMailingListStatus)enumVal;
|
||||
return (PostSignInMailingListStatus)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSigninDataMailingListStatus");
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInMailingListStatus");
|
||||
}
|
||||
}
|
||||
|
||||
20
PlexAPI/Models/Requests/PostSignInMediaReviewsVisibility.cs
Normal file
20
PlexAPI/Models/Requests/PostSignInMediaReviewsVisibility.cs
Normal file
@@ -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 PlexAPI.Models.Requests
|
||||
{
|
||||
using PlexAPI.Utils;
|
||||
|
||||
public enum PostSignInMediaReviewsVisibility
|
||||
{
|
||||
Zero = 0,
|
||||
One = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -12,7 +12,7 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
|
||||
public class PostUsersSigninDataRequest
|
||||
public class PostSignInRequest
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -31,6 +31,6 @@ namespace PlexAPI.Models.Requests
|
||||
/// Login credentials
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("request:mediaType=application/x-www-form-urlencoded")]
|
||||
public PostUsersSigninDataRequestBody? RequestBody { get; set; }
|
||||
public PostSignInRequestBody? RequestBody { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// Login credentials
|
||||
/// </summary>
|
||||
public class PostUsersSigninDataRequestBody
|
||||
public class PostSignInRequestBody
|
||||
{
|
||||
|
||||
[SpeakeasyMetadata("form:name=login")]
|
||||
@@ -14,7 +14,7 @@ namespace PlexAPI.Models.Requests
|
||||
using System.Net.Http;
|
||||
using System;
|
||||
|
||||
public class PostUsersSigninDataResponse
|
||||
public class PostSignInResponse
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -35,6 +35,6 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// Returns the user account data with a valid auth token
|
||||
/// </summary>
|
||||
public PostUsersSigninDataUserPlexAccount? UserPlexAccount { get; set; }
|
||||
public PostSignInUserPlexAccount? UserPlexAccount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
|
||||
public class PostUsersSigninDataServices
|
||||
public class PostSignInServices
|
||||
{
|
||||
|
||||
[JsonProperty("identifier")]
|
||||
@@ -29,6 +29,6 @@ namespace PlexAPI.Models.Requests
|
||||
public string? Secret { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public PostUsersSigninDataStatus Status { get; set; } = default!;
|
||||
public PostSignInStatus Status { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -13,22 +13,22 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
public enum PostUsersSigninDataState
|
||||
public enum PostSignInState
|
||||
{
|
||||
[JsonProperty("ended")]
|
||||
Ended,
|
||||
}
|
||||
|
||||
public static class PostUsersSigninDataStateExtension
|
||||
public static class PostSignInStateExtension
|
||||
{
|
||||
public static string Value(this PostUsersSigninDataState value)
|
||||
public static string Value(this PostSignInState value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSigninDataState ToEnum(this string value)
|
||||
public static PostSignInState ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSigninDataState).GetFields())
|
||||
foreach(var field in typeof(PostSignInState).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -41,14 +41,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is PostUsersSigninDataState)
|
||||
if (enumVal is PostSignInState)
|
||||
{
|
||||
return (PostUsersSigninDataState)enumVal;
|
||||
return (PostSignInState)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSigninDataState");
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInState");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
public enum PostUsersSigninDataStatus
|
||||
public enum PostSignInStatus
|
||||
{
|
||||
[JsonProperty("online")]
|
||||
Online,
|
||||
@@ -21,16 +21,16 @@ namespace PlexAPI.Models.Requests
|
||||
Offline,
|
||||
}
|
||||
|
||||
public static class PostUsersSigninDataStatusExtension
|
||||
public static class PostSignInStatusExtension
|
||||
{
|
||||
public static string Value(this PostUsersSigninDataStatus value)
|
||||
public static string Value(this PostSignInStatus value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSigninDataStatus ToEnum(this string value)
|
||||
public static PostSignInStatus ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSigninDataStatus).GetFields())
|
||||
foreach(var field in typeof(PostSignInStatus).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -43,14 +43,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is PostUsersSigninDataStatus)
|
||||
if (enumVal is PostSignInStatus)
|
||||
{
|
||||
return (PostUsersSigninDataStatus)enumVal;
|
||||
return (PostSignInStatus)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSigninDataStatus");
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInStatus");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,19 +13,18 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// If the account’s Plex Pass subscription is active
|
||||
/// </summary>
|
||||
public class PostUsersSigninDataSubscription
|
||||
public class PostSignInSubscription
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// List of features allowed on your Plex Pass subscription
|
||||
/// </summary>
|
||||
[JsonProperty("features")]
|
||||
public List<PostUsersSigninDataFeatures>? Features { get; set; }
|
||||
public List<PostSignInFeatures>? Features { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the account's Plex Pass subscription is active
|
||||
@@ -37,13 +36,13 @@ namespace PlexAPI.Models.Requests
|
||||
/// Date the account subscribed to Plex Pass
|
||||
/// </summary>
|
||||
[JsonProperty("subscribedAt")]
|
||||
public DateTime? SubscribedAt { get; set; }
|
||||
public string? SubscribedAt { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
[JsonProperty("status")]
|
||||
public PostUsersSigninDataUserStatus? Status { get; set; }
|
||||
public PostSignInUserStatus? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Payment service used for your Plex Pass subscription
|
||||
@@ -13,7 +13,7 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
public enum PostUsersSigninDataUserFeatures
|
||||
public enum PostSignInUserFeatures
|
||||
{
|
||||
[JsonProperty("Android - Dolby Vision")]
|
||||
AndroidDolbyVision,
|
||||
@@ -135,16 +135,16 @@ namespace PlexAPI.Models.Requests
|
||||
WebServerDashboard,
|
||||
}
|
||||
|
||||
public static class PostUsersSigninDataUserFeaturesExtension
|
||||
public static class PostSignInUserFeaturesExtension
|
||||
{
|
||||
public static string Value(this PostUsersSigninDataUserFeatures value)
|
||||
public static string Value(this PostSignInUserFeatures value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSigninDataUserFeatures ToEnum(this string value)
|
||||
public static PostSignInUserFeatures ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSigninDataUserFeatures).GetFields())
|
||||
foreach(var field in typeof(PostSignInUserFeatures).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -157,14 +157,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is PostUsersSigninDataUserFeatures)
|
||||
if (enumVal is PostSignInUserFeatures)
|
||||
{
|
||||
return (PostUsersSigninDataUserFeatures)enumVal;
|
||||
return (PostSignInUserFeatures)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSigninDataUserFeatures");
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInUserFeatures");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// Returns the user account data with a valid auth token
|
||||
/// </summary>
|
||||
public class PostUsersSigninDataUserPlexAccount
|
||||
public class PostSignInUserPlexAccount
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -157,7 +157,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// Your current mailing list status
|
||||
/// </summary>
|
||||
[JsonProperty("mailingListStatus")]
|
||||
public PostUsersSigninDataMailingListStatus MailingListStatus { get; set; } = default!;
|
||||
public PostSignInMailingListStatus MailingListStatus { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of accounts allowed in the Plex Home
|
||||
@@ -173,7 +173,7 @@ namespace PlexAPI.Models.Requests
|
||||
public string? Pin { get; set; }
|
||||
|
||||
[JsonProperty("profile")]
|
||||
public List<PostUsersSigninDataUserProfile> Profile { get; set; } = default!;
|
||||
public PostSignInUserProfile Profile { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// If the account has a Plex Home PIN enabled
|
||||
@@ -206,13 +206,13 @@ namespace PlexAPI.Models.Requests
|
||||
public string ScrobbleTypes { get; set; } = default!;
|
||||
|
||||
[JsonProperty("services")]
|
||||
public List<PostUsersSigninDataServices> Services { get; set; } = default!;
|
||||
public List<PostSignInServices> Services { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// If the account’s Plex Pass subscription is active
|
||||
/// </summary>
|
||||
[JsonProperty("subscription")]
|
||||
public PostUsersSigninDataSubscription Subscription { get; set; } = default!;
|
||||
public PostSignInSubscription Subscription { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Description of the Plex Pass subscription
|
||||
@@ -221,7 +221,7 @@ namespace PlexAPI.Models.Requests
|
||||
public string? SubscriptionDescription { get; set; }
|
||||
|
||||
[JsonProperty("subscriptions")]
|
||||
public List<PostUsersSigninDataUserSubscription> Subscriptions { get; set; } = default!;
|
||||
public List<PostSignInUserSubscription> Subscriptions { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// URL of the account thumbnail
|
||||
@@ -10,9 +10,10 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
|
||||
public class PostUsersSigninDataUserProfile
|
||||
public class PostSignInUserProfile
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -24,37 +25,37 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// The preferred audio language for the account
|
||||
/// </summary>
|
||||
[JsonProperty("defaultAudioLanguage")]
|
||||
[JsonProperty("defaultAudioLanguage", NullValueHandling = NullValueHandling.Include)]
|
||||
public string? DefaultAudioLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The preferred subtitle language for the account
|
||||
/// </summary>
|
||||
[JsonProperty("defaultSubtitleLanguage")]
|
||||
[JsonProperty("defaultSubtitleLanguage", NullValueHandling = NullValueHandling.Include)]
|
||||
public string? DefaultSubtitleLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
/// </summary>
|
||||
[JsonProperty("autoSelectSubtitle")]
|
||||
public long? AutoSelectSubtitle { get; set; }
|
||||
public PostSignInAutoSelectSubtitle? AutoSelectSubtitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
||||
/// </summary>
|
||||
[JsonProperty("defaultSubtitleAccessibility")]
|
||||
public long? DefaultSubtitleAccessibility { get; set; }
|
||||
public PostSignInDefaultSubtitleAccessibility? DefaultSubtitleAccessibility { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
/// </summary>
|
||||
[JsonProperty("defaultSubtitleForced")]
|
||||
public long? DefaultSubtitleForced { get; set; }
|
||||
public PostSignInDefaultSubtitleForced? DefaultSubtitleForced { get; set; }
|
||||
|
||||
[JsonProperty("watchedIndicator")]
|
||||
public long? WatchedIndicator { get; set; }
|
||||
public PostSignInWatchedIndicator? WatchedIndicator { get; set; }
|
||||
|
||||
[JsonProperty("mediaReviewsVisibility")]
|
||||
public long? MediaReviewsVisibility { get; set; }
|
||||
public PostSignInMediaReviewsVisibility? MediaReviewsVisibility { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
public enum PostUsersSigninDataUserStatus
|
||||
public enum PostSignInUserResponseStatus
|
||||
{
|
||||
[JsonProperty("Inactive")]
|
||||
Inactive,
|
||||
@@ -24,16 +24,16 @@ namespace PlexAPI.Models.Requests
|
||||
Active,
|
||||
}
|
||||
|
||||
public static class PostUsersSigninDataUserStatusExtension
|
||||
public static class PostSignInUserResponseStatusExtension
|
||||
{
|
||||
public static string Value(this PostUsersSigninDataUserStatus value)
|
||||
public static string Value(this PostSignInUserResponseStatus value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSigninDataUserStatus ToEnum(this string value)
|
||||
public static PostSignInUserResponseStatus ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSigninDataUserStatus).GetFields())
|
||||
foreach(var field in typeof(PostSignInUserResponseStatus).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -46,14 +46,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is PostUsersSigninDataUserStatus)
|
||||
if (enumVal is PostSignInUserResponseStatus)
|
||||
{
|
||||
return (PostUsersSigninDataUserStatus)enumVal;
|
||||
return (PostSignInUserResponseStatus)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSigninDataUserStatus");
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInUserResponseStatus");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
public enum PostUsersSigninDataUserResponseStatus
|
||||
public enum PostSignInUserStatus
|
||||
{
|
||||
[JsonProperty("Inactive")]
|
||||
Inactive,
|
||||
@@ -24,16 +24,16 @@ namespace PlexAPI.Models.Requests
|
||||
Active,
|
||||
}
|
||||
|
||||
public static class PostUsersSigninDataUserResponseStatusExtension
|
||||
public static class PostSignInUserStatusExtension
|
||||
{
|
||||
public static string Value(this PostUsersSigninDataUserResponseStatus value)
|
||||
public static string Value(this PostSignInUserStatus value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostUsersSigninDataUserResponseStatus ToEnum(this string value)
|
||||
public static PostSignInUserStatus ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostUsersSigninDataUserResponseStatus).GetFields())
|
||||
foreach(var field in typeof(PostSignInUserStatus).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -46,14 +46,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is PostUsersSigninDataUserResponseStatus)
|
||||
if (enumVal is PostSignInUserStatus)
|
||||
{
|
||||
return (PostUsersSigninDataUserResponseStatus)enumVal;
|
||||
return (PostSignInUserStatus)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostUsersSigninDataUserResponseStatus");
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInUserStatus");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,16 +13,15 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
public class PostUsersSigninDataUserSubscription
|
||||
public class PostSignInUserSubscription
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// List of features allowed on your Plex Pass subscription
|
||||
/// </summary>
|
||||
[JsonProperty("features")]
|
||||
public List<PostUsersSigninDataUserFeatures>? Features { get; set; }
|
||||
public List<PostSignInUserFeatures>? Features { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the account's Plex Pass subscription is active
|
||||
@@ -34,13 +33,13 @@ namespace PlexAPI.Models.Requests
|
||||
/// Date the account subscribed to Plex Pass
|
||||
/// </summary>
|
||||
[JsonProperty("subscribedAt")]
|
||||
public DateTime? SubscribedAt { get; set; }
|
||||
public string? SubscribedAt { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
[JsonProperty("status")]
|
||||
public PostUsersSigninDataUserResponseStatus? Status { get; set; }
|
||||
public PostSignInUserResponseStatus? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Payment service used for your Plex Pass subscription
|
||||
57
PlexAPI/Models/Requests/PostSignInWatchedIndicator.cs
Normal file
57
PlexAPI/Models/Requests/PostSignInWatchedIndicator.cs
Normal file
@@ -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 PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
public enum PostSignInWatchedIndicator
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class PostSignInWatchedIndicatorExtension
|
||||
{
|
||||
public static string Value(this PostSignInWatchedIndicator value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static PostSignInWatchedIndicator ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(PostSignInWatchedIndicator).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 PostSignInWatchedIndicator)
|
||||
{
|
||||
return (PostSignInWatchedIndicator)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum PostSignInWatchedIndicator");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,7 +13,6 @@ namespace PlexAPI.Models.Requests
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// If the account’s Plex Pass subscription is active
|
||||
@@ -37,7 +36,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// Date the account subscribed to Plex Pass
|
||||
/// </summary>
|
||||
[JsonProperty("subscribedAt")]
|
||||
public DateTime? SubscribedAt { get; set; }
|
||||
public string? SubscribedAt { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Models.Requests;
|
||||
using PlexAPI.Utils;
|
||||
|
||||
public class UserProfile
|
||||
@@ -24,37 +25,37 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// The preferred audio language for the account
|
||||
/// </summary>
|
||||
[JsonProperty("defaultAudioLanguage")]
|
||||
[JsonProperty("defaultAudioLanguage", NullValueHandling = NullValueHandling.Include)]
|
||||
public string? DefaultAudioLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The preferred subtitle language for the account
|
||||
/// </summary>
|
||||
[JsonProperty("defaultSubtitleLanguage")]
|
||||
[JsonProperty("defaultSubtitleLanguage", NullValueHandling = NullValueHandling.Include)]
|
||||
public string? DefaultSubtitleLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
/// </summary>
|
||||
[JsonProperty("autoSelectSubtitle")]
|
||||
public long? AutoSelectSubtitle { get; set; }
|
||||
public AutoSelectSubtitle? AutoSelectSubtitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
||||
/// </summary>
|
||||
[JsonProperty("defaultSubtitleAccessibility")]
|
||||
public long? DefaultSubtitleAccessibility { get; set; }
|
||||
public DefaultSubtitleAccessibility? DefaultSubtitleAccessibility { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
/// </summary>
|
||||
[JsonProperty("defaultSubtitleForced")]
|
||||
public long? DefaultSubtitleForced { get; set; }
|
||||
public DefaultSubtitleForced? DefaultSubtitleForced { get; set; }
|
||||
|
||||
[JsonProperty("watchedIndicator")]
|
||||
public long? WatchedIndicator { get; set; }
|
||||
public WatchedIndicator? WatchedIndicator { get; set; }
|
||||
|
||||
[JsonProperty("mediaReviewsVisibility")]
|
||||
public long? MediaReviewsVisibility { get; set; }
|
||||
public MediaReviewsVisibility? MediaReviewsVisibility { get; set; }
|
||||
}
|
||||
}
|
||||
57
PlexAPI/Models/Requests/WatchedIndicator.cs
Normal file
57
PlexAPI/Models/Requests/WatchedIndicator.cs
Normal file
@@ -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 PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using PlexAPI.Utils;
|
||||
using System;
|
||||
|
||||
public enum WatchedIndicator
|
||||
{
|
||||
[JsonProperty("0")]
|
||||
Zero,
|
||||
[JsonProperty("1")]
|
||||
One,
|
||||
}
|
||||
|
||||
public static class WatchedIndicatorExtension
|
||||
{
|
||||
public static string Value(this WatchedIndicator value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static WatchedIndicator ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(WatchedIndicator).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 WatchedIndicator)
|
||||
{
|
||||
return (WatchedIndicator)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum WatchedIndicator");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -146,10 +146,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -158,10 +158,10 @@ namespace PlexAPI
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>true</IsPackable>
|
||||
<PackageId>PlexAPI</PackageId>
|
||||
<Version>0.4.0</Version>
|
||||
<Version>0.4.1</Version>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<Authors>LukeHagar</Authors>
|
||||
<Copyright>Copyright (c) LukeHagar 2024</Copyright>
|
||||
|
||||
@@ -277,10 +277,10 @@ namespace PlexAPI
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private int _serverIndex = 0;
|
||||
private ISpeakeasyHttpClient _client;
|
||||
|
||||
@@ -87,10 +87,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -117,10 +117,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -80,10 +80,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -71,10 +71,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -74,10 +74,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace PlexAPI
|
||||
/// Sign in user with username and password and return user data with Plex authentication token
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
Task<PostUsersSigninDataResponse> PostUsersSigninDataAsync(string? xPlexClientIdentifier = null, PostUsersSigninDataRequestBody? requestBody = null, string? serverUrl = null);
|
||||
Task<PostSignInResponse> PostSignInAsync(string? xPlexClientIdentifier = null, PostSignInRequestBody? requestBody = null, string? serverUrl = null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -52,17 +52,17 @@ namespace PlexAPI
|
||||
public class User: IUser
|
||||
{
|
||||
/// <summary>
|
||||
/// List of server URLs available for the post-users-signin-data operation.
|
||||
/// List of server URLs available for the post-sign-in operation.
|
||||
/// </summary>
|
||||
public static readonly string[] PostUsersSigninDataServerList = {
|
||||
public static readonly string[] PostSignInServerList = {
|
||||
"https://plex.tv/api/v2",
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
@@ -75,16 +75,16 @@ namespace PlexAPI
|
||||
SDKConfiguration = config;
|
||||
}
|
||||
|
||||
public async Task<PostUsersSigninDataResponse> PostUsersSigninDataAsync(string? xPlexClientIdentifier = null, PostUsersSigninDataRequestBody? requestBody = null, string? serverUrl = null)
|
||||
public async Task<PostSignInResponse> PostSignInAsync(string? xPlexClientIdentifier = null, PostSignInRequestBody? requestBody = null, string? serverUrl = null)
|
||||
{
|
||||
var request = new PostUsersSigninDataRequest()
|
||||
var request = new PostSignInRequest()
|
||||
{
|
||||
XPlexClientIdentifier = xPlexClientIdentifier,
|
||||
RequestBody = requestBody,
|
||||
};
|
||||
request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier;
|
||||
|
||||
string baseUrl = Utilities.TemplateUrl(PostUsersSigninDataServerList[0], new Dictionary<string, string>(){
|
||||
string baseUrl = Utilities.TemplateUrl(PostSignInServerList[0], new Dictionary<string, string>(){
|
||||
});
|
||||
if (serverUrl != null)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ namespace PlexAPI
|
||||
httpRequest.Content = serializedBody;
|
||||
}
|
||||
|
||||
var hookCtx = new HookContext("post-users-signin-data", null, null);
|
||||
var hookCtx = new HookContext("post-sign-in", null, null);
|
||||
|
||||
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
|
||||
|
||||
@@ -143,8 +143,8 @@ namespace PlexAPI
|
||||
{
|
||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||
{
|
||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSigninDataUserPlexAccount>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||
var response = new PostUsersSigninDataResponse()
|
||||
var obj = ResponseBodyDeserializer.Deserialize<PostSignInUserPlexAccount>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||
var response = new PostSignInResponse()
|
||||
{
|
||||
StatusCode = responseStatusCode,
|
||||
ContentType = contentType,
|
||||
@@ -166,7 +166,7 @@ namespace PlexAPI
|
||||
{
|
||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||
{
|
||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSigninDataResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||
var obj = ResponseBodyDeserializer.Deserialize<PostSignInResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
||||
obj!.RawResponse = httpResponse;
|
||||
throw obj!;
|
||||
}
|
||||
|
||||
@@ -62,10 +62,10 @@ namespace PlexAPI
|
||||
{
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -59,10 +59,10 @@ namespace PlexAPI
|
||||
};
|
||||
public SDKConfig SDKConfiguration { get; private set; }
|
||||
private const string _language = "csharp";
|
||||
private const string _sdkVersion = "0.4.0";
|
||||
private const string _sdkGenVersion = "2.404.2";
|
||||
private const string _sdkVersion = "0.4.1";
|
||||
private const string _sdkGenVersion = "2.404.3";
|
||||
private const string _openapiDocVersion = "0.0.3";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.404.2 0.0.3 PlexAPI";
|
||||
private const string _userAgent = "speakeasy-sdk/csharp 0.4.1 2.404.3 0.0.3 PlexAPI";
|
||||
private string _serverUrl = "";
|
||||
private ISpeakeasyHttpClient _client;
|
||||
private Func<PlexAPI.Models.Components.Security>? _securitySource;
|
||||
|
||||
@@ -161,7 +161,7 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
||||
|
||||
### [User](docs/sdks/user/README.md)
|
||||
|
||||
* [PostUsersSigninData](docs/sdks/user/README.md#postuserssignindata) - Get User SignIn Data
|
||||
* [PostSignIn](docs/sdks/user/README.md#postsignin) - Get User SignIn Data
|
||||
|
||||
### [Watchlist](docs/sdks/watchlist/README.md)
|
||||
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -64,4 +64,14 @@ Based on:
|
||||
### Generated
|
||||
- [csharp v0.4.0] .
|
||||
### Releases
|
||||
- [NuGet v0.4.0] https://www.nuget.org/packages/PlexAPI/0.4.0 - .
|
||||
- [NuGet v0.4.0] https://www.nuget.org/packages/PlexAPI/0.4.0 - .
|
||||
|
||||
## 2024-08-25 00:09:48
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.378.1 (2.404.3) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [csharp v0.4.1] .
|
||||
### Releases
|
||||
- [NuGet v0.4.1] https://www.nuget.org/packages/PlexAPI/0.4.1 - .
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataErrors
|
||||
# PostSignInErrors
|
||||
|
||||
|
||||
## Fields
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataResponseBody
|
||||
# PostSignInResponseBody
|
||||
|
||||
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,5 +7,5 @@ Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
||||
| `Errors` | List<[PostUsersSigninDataErrors](../../Models/Errors/PostUsersSigninDataErrors.md)> | :heavy_minus_sign: | N/A |
|
||||
| `Errors` | List<[PostSignInErrors](../../Models/Errors/PostSignInErrors.md)> | :heavy_minus_sign: | N/A |
|
||||
| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
||||
11
docs/Models/Requests/AutoSelectSubtitle.md
Normal file
11
docs/Models/Requests/AutoSelectSubtitle.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# AutoSelectSubtitle
|
||||
|
||||
The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
11
docs/Models/Requests/DefaultSubtitleAccessibility.md
Normal file
11
docs/Models/Requests/DefaultSubtitleAccessibility.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# DefaultSubtitleAccessibility
|
||||
|
||||
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
11
docs/Models/Requests/DefaultSubtitleForced.md
Normal file
11
docs/Models/Requests/DefaultSubtitleForced.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# DefaultSubtitleForced
|
||||
|
||||
The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
@@ -7,7 +7,7 @@
|
||||
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||
| `Features` | List<[GetUserDetailsFeatures](../../Models/Requests/GetUserDetailsFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | |
|
||||
| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true |
|
||||
| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `SubscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `Status` | [GetUserDetailsPlexResponseStatus](../../Models/Requests/GetUserDetailsPlexResponseStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive |
|
||||
| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | |
|
||||
| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | |
|
||||
@@ -32,7 +32,7 @@ Logged in user details
|
||||
| `MailingListStatus` | [MailingListStatus](../../Models/Requests/MailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
||||
| `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
|
||||
| ~~`Pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
||||
| `Profile` | List<[UserProfile](../../Models/Requests/UserProfile.md)> | :heavy_check_mark: | N/A | |
|
||||
| `Profile` | [UserProfile](../../Models/Requests/UserProfile.md) | :heavy_check_mark: | N/A | |
|
||||
| `Protected` | *bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
|
||||
| `RememberExpiresAt` | *int* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 |
|
||||
| `Restricted` | *bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
|
||||
|
||||
@@ -7,5 +7,5 @@ Your current mailing list status
|
||||
|
||||
| Name | Value |
|
||||
| -------------- | -------------- |
|
||||
| `Subscribed` | subscribed |
|
||||
| `Active` | active |
|
||||
| `Unsubscribed` | unsubscribed |
|
||||
9
docs/Models/Requests/MediaReviewsVisibility.md
Normal file
9
docs/Models/Requests/MediaReviewsVisibility.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# MediaReviewsVisibility
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
@@ -3,20 +3,20 @@
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `Id` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `Mode` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `RenewsAt` | *int* | :heavy_check_mark: | Unix epoch datetime | |
|
||||
| `EndsAt` | *int* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
|
||||
| `Canceled` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `GracePeriod` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `OnHold` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanReactivate` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanUpgrade` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanDowngrade` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanConvert` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `Type` | *string* | :heavy_check_mark: | N/A | plexpass |
|
||||
| `Transfer` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `State` | [PostUsersSigninDataState](../../Models/Requests/PostUsersSigninDataState.md) | :heavy_check_mark: | N/A | ended |
|
||||
| `Billing` | List<[Billing](../../Models/Requests/Billing.md)> | :heavy_check_mark: | N/A | |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
||||
| `Id` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `Mode` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `RenewsAt` | *int* | :heavy_check_mark: | Unix epoch datetime | |
|
||||
| `EndsAt` | *int* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
|
||||
| `Canceled` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `GracePeriod` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `OnHold` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanReactivate` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanUpgrade` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanDowngrade` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `CanConvert` | *bool* | :heavy_minus_sign: | N/A | false |
|
||||
| `Type` | *string* | :heavy_check_mark: | N/A | plexpass |
|
||||
| `Transfer` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `State` | [PostSignInState](../../Models/Requests/PostSignInState.md) | :heavy_check_mark: | N/A | ended |
|
||||
| `Billing` | [Billing](../../Models/Requests/Billing.md) | :heavy_check_mark: | N/A | |
|
||||
11
docs/Models/Requests/PostSignInAutoSelectSubtitle.md
Normal file
11
docs/Models/Requests/PostSignInAutoSelectSubtitle.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# PostSignInAutoSelectSubtitle
|
||||
|
||||
The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
@@ -0,0 +1,11 @@
|
||||
# PostSignInDefaultSubtitleAccessibility
|
||||
|
||||
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
11
docs/Models/Requests/PostSignInDefaultSubtitleForced.md
Normal file
11
docs/Models/Requests/PostSignInDefaultSubtitleForced.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# PostSignInDefaultSubtitleForced
|
||||
|
||||
The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataFeatures
|
||||
# PostSignInFeatures
|
||||
|
||||
|
||||
## Values
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataMailingListStatus
|
||||
# PostSignInMailingListStatus
|
||||
|
||||
Your current mailing list status
|
||||
|
||||
@@ -7,5 +7,5 @@ Your current mailing list status
|
||||
|
||||
| Name | Value |
|
||||
| -------------- | -------------- |
|
||||
| `Subscribed` | subscribed |
|
||||
| `Active` | active |
|
||||
| `Unsubscribed` | unsubscribed |
|
||||
9
docs/Models/Requests/PostSignInMediaReviewsVisibility.md
Normal file
9
docs/Models/Requests/PostSignInMediaReviewsVisibility.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# PostSignInMediaReviewsVisibility
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataRequest
|
||||
# PostSignInRequest
|
||||
|
||||
|
||||
## Fields
|
||||
@@ -6,4 +6,4 @@
|
||||
| Field | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | Postman |
|
||||
| `RequestBody` | [PostUsersSigninDataRequestBody](../../Models/Requests/PostUsersSigninDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||
| `RequestBody` | [PostSignInRequestBody](../../Models/Requests/PostSignInRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataRequestBody
|
||||
# PostSignInRequestBody
|
||||
|
||||
Login credentials
|
||||
|
||||
File diff suppressed because one or more lines are too long
12
docs/Models/Requests/PostSignInServices.md
Normal file
12
docs/Models/Requests/PostSignInServices.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# PostSignInServices
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
|
||||
| `Identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev |
|
||||
| `Endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv |
|
||||
| `Token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv |
|
||||
| `Secret` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `Status` | [PostSignInStatus](../../Models/Requests/PostSignInStatus.md) | :heavy_check_mark: | N/A | online |
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataState
|
||||
# PostSignInState
|
||||
|
||||
|
||||
## Values
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataStatus
|
||||
# PostSignInStatus
|
||||
|
||||
|
||||
## Values
|
||||
15
docs/Models/Requests/PostSignInSubscription.md
Normal file
15
docs/Models/Requests/PostSignInSubscription.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# PostSignInSubscription
|
||||
|
||||
If the account’s Plex Pass subscription is active
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| `Features` | List<[PostSignInFeatures](../../Models/Requests/PostSignInFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | |
|
||||
| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true |
|
||||
| `SubscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `Status` | [PostSignInUserStatus](../../Models/Requests/PostSignInUserStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive |
|
||||
| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | |
|
||||
| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | |
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataUserFeatures
|
||||
# PostSignInUserFeatures
|
||||
|
||||
|
||||
## Values
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataUserPlexAccount
|
||||
# PostSignInUserPlexAccount
|
||||
|
||||
Returns the user account data with a valid auth token
|
||||
|
||||
@@ -29,19 +29,19 @@ Returns the user account data with a valid auth token
|
||||
| `JoinedAt` | *int* | :heavy_check_mark: | Unix epoch datetime the account joined Plex | 1721154902 |
|
||||
| `Locale` | *string* | :heavy_check_mark: | The account locale | |
|
||||
| `MailingListActive` | *bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
|
||||
| `MailingListStatus` | [PostUsersSigninDataMailingListStatus](../../Models/Requests/PostUsersSigninDataMailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
||||
| `MailingListStatus` | [PostSignInMailingListStatus](../../Models/Requests/PostSignInMailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
||||
| `MaxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
|
||||
| ~~`Pin`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
||||
| `Profile` | List<[PostUsersSigninDataUserProfile](../../Models/Requests/PostUsersSigninDataUserProfile.md)> | :heavy_check_mark: | N/A | |
|
||||
| `Profile` | [PostSignInUserProfile](../../Models/Requests/PostSignInUserProfile.md) | :heavy_check_mark: | N/A | |
|
||||
| `Protected` | *bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
|
||||
| `RememberExpiresAt` | *int* | :heavy_check_mark: | Unix epoch datetime the authtoken expires | 1722364046 |
|
||||
| `Restricted` | *bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
|
||||
| `Roles` | List<*string*> | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | |
|
||||
| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | |
|
||||
| `Services` | List<[PostUsersSigninDataServices](../../Models/Requests/PostUsersSigninDataServices.md)> | :heavy_check_mark: | N/A | |
|
||||
| `Subscription` | [PostUsersSigninDataSubscription](../../Models/Requests/PostUsersSigninDataSubscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | |
|
||||
| `Services` | List<[PostSignInServices](../../Models/Requests/PostSignInServices.md)> | :heavy_check_mark: | N/A | |
|
||||
| `Subscription` | [PostSignInSubscription](../../Models/Requests/PostSignInSubscription.md) | :heavy_check_mark: | If the account’s Plex Pass subscription is active | |
|
||||
| `SubscriptionDescription` | *string* | :heavy_check_mark: | Description of the Plex Pass subscription | |
|
||||
| `Subscriptions` | List<[PostUsersSigninDataUserSubscription](../../Models/Requests/PostUsersSigninDataUserSubscription.md)> | :heavy_check_mark: | N/A | |
|
||||
| `Subscriptions` | List<[PostSignInUserSubscription](../../Models/Requests/PostSignInUserSubscription.md)> | :heavy_check_mark: | N/A | |
|
||||
| `Thumb` | *string* | :heavy_check_mark: | URL of the account thumbnail | https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101 |
|
||||
| `Title` | *string* | :heavy_check_mark: | The title of the account (username or friendly name) | UsernameTitle |
|
||||
| `TwoFactorEnabled` | *bool* | :heavy_minus_sign: | If two-factor authentication is enabled | |
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataUserProfile
|
||||
# PostSignInUserProfile
|
||||
|
||||
|
||||
## Fields
|
||||
@@ -6,10 +6,10 @@
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `AutoSelectAudio` | *bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
|
||||
| `DefaultAudioLanguage` | *string* | :heavy_minus_sign: | The preferred audio language for the account | ja |
|
||||
| `DefaultSubtitleLanguage` | *string* | :heavy_minus_sign: | The preferred subtitle language for the account | en |
|
||||
| `AutoSelectSubtitle` | *long* | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
|
||||
| `DefaultSubtitleAccessibility` | *long* | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
|
||||
| `DefaultSubtitleForced` | *long* | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
|
||||
| `WatchedIndicator` | *long* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `MediaReviewsVisibility` | *long* | :heavy_minus_sign: | N/A | 0 |
|
||||
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
|
||||
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
|
||||
| `AutoSelectSubtitle` | [PostSignInAutoSelectSubtitle](../../Models/Requests/PostSignInAutoSelectSubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
|
||||
| `DefaultSubtitleAccessibility` | [PostSignInDefaultSubtitleAccessibility](../../Models/Requests/PostSignInDefaultSubtitleAccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
|
||||
| `DefaultSubtitleForced` | [PostSignInDefaultSubtitleForced](../../Models/Requests/PostSignInDefaultSubtitleForced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
|
||||
| `WatchedIndicator` | [PostSignInWatchedIndicator](../../Models/Requests/PostSignInWatchedIndicator.md) | :heavy_minus_sign: | N/A | 1 |
|
||||
| `MediaReviewsVisibility` | [PostSignInMediaReviewsVisibility](../../Models/Requests/PostSignInMediaReviewsVisibility.md) | :heavy_minus_sign: | N/A | 0 |
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataUserStatus
|
||||
# PostSignInUserResponseStatus
|
||||
|
||||
String representation of subscriptionActive
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# PostUsersSigninDataUserResponseStatus
|
||||
# PostSignInUserStatus
|
||||
|
||||
String representation of subscriptionActive
|
||||
|
||||
13
docs/Models/Requests/PostSignInUserSubscription.md
Normal file
13
docs/Models/Requests/PostSignInUserSubscription.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# PostSignInUserSubscription
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||
| `Features` | List<[PostSignInUserFeatures](../../Models/Requests/PostSignInUserFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | |
|
||||
| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true |
|
||||
| `SubscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `Status` | [PostSignInUserResponseStatus](../../Models/Requests/PostSignInUserResponseStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive |
|
||||
| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | |
|
||||
| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | |
|
||||
9
docs/Models/Requests/PostSignInWatchedIndicator.md
Normal file
9
docs/Models/Requests/PostSignInWatchedIndicator.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# PostSignInWatchedIndicator
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
@@ -1,12 +0,0 @@
|
||||
# PostUsersSigninDataServices
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||
| `Identifier` | *string* | :heavy_check_mark: | N/A | metadata-dev |
|
||||
| `Endpoint` | *string* | :heavy_check_mark: | N/A | https://epg.provider.plex.tv |
|
||||
| `Token` | *string* | :heavy_check_mark: | N/A | DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv |
|
||||
| `Secret` | *string* | :heavy_check_mark: | N/A | |
|
||||
| `Status` | [PostUsersSigninDataStatus](../../Models/Requests/PostUsersSigninDataStatus.md) | :heavy_check_mark: | N/A | online |
|
||||
@@ -1,15 +0,0 @@
|
||||
# PostUsersSigninDataSubscription
|
||||
|
||||
If the account’s Plex Pass subscription is active
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
||||
| `Features` | List<[PostUsersSigninDataFeatures](../../Models/Requests/PostUsersSigninDataFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | |
|
||||
| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true |
|
||||
| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `Status` | [PostUsersSigninDataUserStatus](../../Models/Requests/PostUsersSigninDataUserStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive |
|
||||
| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | |
|
||||
| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | |
|
||||
@@ -1,13 +0,0 @@
|
||||
# PostUsersSigninDataUserSubscription
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
||||
| `Features` | List<[PostUsersSigninDataUserFeatures](../../Models/Requests/PostUsersSigninDataUserFeatures.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | |
|
||||
| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true |
|
||||
| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `Status` | [PostUsersSigninDataUserResponseStatus](../../Models/Requests/PostUsersSigninDataUserResponseStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive |
|
||||
| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | |
|
||||
| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | |
|
||||
@@ -5,11 +5,11 @@ If the account’s Plex Pass subscription is active
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||
| `Features` | List<[Features](../../Models/Requests/Features.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | |
|
||||
| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true |
|
||||
| `SubscribedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `Status` | [GetUserDetailsPlexStatus](../../Models/Requests/GetUserDetailsPlexStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive |
|
||||
| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | |
|
||||
| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `Features` | List<[Features](../../Models/Requests/Features.md)> | :heavy_minus_sign: | List of features allowed on your Plex Pass subscription | |
|
||||
| `Active` | *bool* | :heavy_minus_sign: | If the account's Plex Pass subscription is active | true |
|
||||
| `SubscribedAt` | *string* | :heavy_minus_sign: | Date the account subscribed to Plex Pass | 2021-04-12T18:21:12Z |
|
||||
| `Status` | [GetUserDetailsPlexStatus](../../Models/Requests/GetUserDetailsPlexStatus.md) | :heavy_minus_sign: | String representation of subscriptionActive | Inactive |
|
||||
| `PaymentService` | *string* | :heavy_minus_sign: | Payment service used for your Plex Pass subscription | |
|
||||
| `Plan` | *string* | :heavy_minus_sign: | Name of Plex Pass subscription plan | |
|
||||
@@ -6,10 +6,10 @@
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `AutoSelectAudio` | *bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
|
||||
| `DefaultAudioLanguage` | *string* | :heavy_minus_sign: | The preferred audio language for the account | ja |
|
||||
| `DefaultSubtitleLanguage` | *string* | :heavy_minus_sign: | The preferred subtitle language for the account | en |
|
||||
| `AutoSelectSubtitle` | *long* | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
|
||||
| `DefaultSubtitleAccessibility` | *long* | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
|
||||
| `DefaultSubtitleForced` | *long* | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
|
||||
| `WatchedIndicator` | *long* | :heavy_minus_sign: | N/A | 1 |
|
||||
| `MediaReviewsVisibility` | *long* | :heavy_minus_sign: | N/A | 0 |
|
||||
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
|
||||
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
|
||||
| `AutoSelectSubtitle` | [AutoSelectSubtitle](../../Models/Requests/AutoSelectSubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
|
||||
| `DefaultSubtitleAccessibility` | [DefaultSubtitleAccessibility](../../Models/Requests/DefaultSubtitleAccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
|
||||
| `DefaultSubtitleForced` | [DefaultSubtitleForced](../../Models/Requests/DefaultSubtitleForced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
|
||||
| `WatchedIndicator` | [WatchedIndicator](../../Models/Requests/WatchedIndicator.md) | :heavy_minus_sign: | N/A | 1 |
|
||||
| `MediaReviewsVisibility` | [MediaReviewsVisibility](../../Models/Requests/MediaReviewsVisibility.md) | :heavy_minus_sign: | N/A | 0 |
|
||||
9
docs/Models/Requests/WatchedIndicator.md
Normal file
9
docs/Models/Requests/WatchedIndicator.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# WatchedIndicator
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
| Name | Value |
|
||||
| ------ | ------ |
|
||||
| `Zero` | 0 |
|
||||
| `One` | 1 |
|
||||
@@ -8,9 +8,9 @@ API Calls that perform operations with Plex Media Server Users
|
||||
|
||||
### Available Operations
|
||||
|
||||
* [PostUsersSigninData](#postuserssignindata) - Get User SignIn Data
|
||||
* [PostSignIn](#postsignin) - Get User SignIn Data
|
||||
|
||||
## PostUsersSigninData
|
||||
## PostSignIn
|
||||
|
||||
Sign in user with username and password and return user data with Plex authentication token
|
||||
|
||||
@@ -23,9 +23,9 @@ using PlexAPI.Models.Components;
|
||||
|
||||
var sdk = new PlexAPISDK(xPlexClientIdentifier: "Postman");
|
||||
|
||||
var res = await sdk.User.PostUsersSigninDataAsync(
|
||||
var res = await sdk.User.PostSignInAsync(
|
||||
xPlexClientIdentifier: "Postman",
|
||||
requestBody: new PostUsersSigninDataRequestBody() {
|
||||
requestBody: new PostSignInRequestBody() {
|
||||
Login = "username@email.com",
|
||||
Password = "password123",
|
||||
});
|
||||
@@ -38,16 +38,16 @@ var res = await sdk.User.PostUsersSigninDataAsync(
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `XPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | Postman |
|
||||
| `RequestBody` | [PostUsersSigninDataRequestBody](../../Models/Requests/PostUsersSigninDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||
| `RequestBody` | [PostSignInRequestBody](../../Models/Requests/PostSignInRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||
| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||
|
||||
### Response
|
||||
|
||||
**[PostUsersSigninDataResponse](../../Models/Requests/PostUsersSigninDataResponse.md)**
|
||||
**[PostSignInResponse](../../Models/Requests/PostSignInResponse.md)**
|
||||
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- |
|
||||
| PlexAPI.Models.Errors.PostUsersSigninDataResponseBody | 401 | application/json |
|
||||
| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
|
||||
| PlexAPI.Models.Errors.PostSignInResponseBody | 401 | application/json |
|
||||
| PlexAPI.Models.Errors.SDKException | 4xx-5xx | */* |
|
||||
|
||||
Reference in New Issue
Block a user