mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 20:47:49 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.394.0
This commit is contained in:
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Playlist Updated
|
||||
/// </summary>
|
||||
public Models.Requests.AddPlaylistContentsResponseBody? Object { get; set; }
|
||||
public AddPlaylistContentsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// returns all playlists
|
||||
/// </summary>
|
||||
public Models.Requests.CreatePlaylistResponseBody? Object { get; set; }
|
||||
public CreatePlaylistResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The libraries available on the Server
|
||||
/// </summary>
|
||||
public Models.Requests.GetAllLibrariesResponseBody? Object { get; set; }
|
||||
public GetAllLibrariesResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Available Clients
|
||||
/// </summary>
|
||||
public Models.Requests.GetAvailableClientsResponseBody? Object { get; set; }
|
||||
public GetAvailableClientsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Bandwidth Statistics
|
||||
/// </summary>
|
||||
public Models.Requests.GetBandwidthStatisticsResponseBody? Object { get; set; }
|
||||
public GetBandwidthStatisticsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// All butler tasks
|
||||
/// </summary>
|
||||
public Models.Requests.GetButlerTasksResponseBody? Object { get; set; }
|
||||
public GetButlerTasksResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Devices
|
||||
/// </summary>
|
||||
public Models.Requests.GetDevicesResponseBody? Object { get; set; }
|
||||
public GetDevicesResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// returns global hubs
|
||||
/// </summary>
|
||||
public Models.Requests.GetGlobalHubsResponseBody? Object { get; set; }
|
||||
public GetGlobalHubsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Home Data
|
||||
/// </summary>
|
||||
public Models.Requests.GetHomeDataResponseBody? Object { get; set; }
|
||||
public GetHomeDataResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The details of the library
|
||||
/// </summary>
|
||||
public Models.Requests.GetLibraryDetailsResponseBody? Object { get; set; }
|
||||
public GetLibraryDetailsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The hubs specific to the library
|
||||
/// </summary>
|
||||
public Models.Requests.GetLibraryHubsResponseBody? Object { get; set; }
|
||||
public GetLibraryHubsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The contents of the library by section and tag
|
||||
/// </summary>
|
||||
public Models.Requests.GetLibraryItemsResponseBody? Object { get; set; }
|
||||
public GetLibraryItemsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Media providers and their features
|
||||
/// </summary>
|
||||
public Models.Requests.GetMediaProvidersResponseBody? Object { get; set; }
|
||||
public GetMediaProvidersResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The metadata of the library item.
|
||||
/// </summary>
|
||||
public Models.Requests.GetMetaDataByRatingKeyResponseBody? Object { get; set; }
|
||||
public GetMetaDataByRatingKeyResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The children of the library item.
|
||||
/// </summary>
|
||||
public Models.Requests.GetMetadataChildrenResponseBody? Object { get; set; }
|
||||
public GetMetadataChildrenResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// MyPlex Account
|
||||
/// </summary>
|
||||
public Models.Requests.GetMyPlexAccountResponseBody? Object { get; set; }
|
||||
public GetMyPlexAccountResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The on Deck content
|
||||
/// </summary>
|
||||
public Models.Requests.GetOnDeckResponseBody? Object { get; set; }
|
||||
public GetOnDeckResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The playlist contents
|
||||
/// </summary>
|
||||
public Models.Requests.GetPlaylistContentsResponseBody? Object { get; set; }
|
||||
public GetPlaylistContentsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The playlist
|
||||
/// </summary>
|
||||
public Models.Requests.GetPlaylistResponseBody? Object { get; set; }
|
||||
public GetPlaylistResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// returns all playlists
|
||||
/// </summary>
|
||||
public Models.Requests.GetPlaylistsResponseBody? Object { get; set; }
|
||||
public GetPlaylistsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The recently added content
|
||||
/// </summary>
|
||||
public Models.Requests.GetRecentlyAddedResponseBody? Object { get; set; }
|
||||
public GetRecentlyAddedResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Resource Statistics
|
||||
/// </summary>
|
||||
public Models.Requests.GetResourcesStatisticsResponseBody? Object { get; set; }
|
||||
public GetResourcesStatisticsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The contents of the library by section and type
|
||||
/// </summary>
|
||||
public Models.Requests.GetSearchLibraryResponseBody? Object { get; set; }
|
||||
public GetSearchLibraryResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Search Results
|
||||
/// </summary>
|
||||
public Models.Requests.GetSearchResultsResponseBody? Object { get; set; }
|
||||
public GetSearchResultsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The Server Activities
|
||||
/// </summary>
|
||||
public Models.Requests.GetServerActivitiesResponseBody? Object { get; set; }
|
||||
public GetServerActivitiesResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The Server Capabilities
|
||||
/// </summary>
|
||||
public Models.Requests.GetServerCapabilitiesResponseBody? Object { get; set; }
|
||||
public GetServerCapabilitiesResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The Server Identity information
|
||||
/// </summary>
|
||||
public Models.Requests.GetServerIdentityResponseBody? Object { get; set; }
|
||||
public GetServerIdentityResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// List of Servers
|
||||
/// </summary>
|
||||
public Models.Requests.GetServerListResponseBody? Object { get; set; }
|
||||
public GetServerListResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Server Preferences
|
||||
/// </summary>
|
||||
public Models.Requests.GetServerPreferencesResponseBody? Object { get; set; }
|
||||
public GetServerPreferencesResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -15,12 +15,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public class GetServerResourcesRequest
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Plex Authentication Token
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token")]
|
||||
public string XPlexToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The unique identifier for the client application<br/>
|
||||
///
|
||||
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// List of Plex Sessions
|
||||
/// </summary>
|
||||
public Models.Requests.GetSessionHistoryResponseBody? Object { get; set; }
|
||||
public GetSessionHistoryResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// List of Active Plex Sessions
|
||||
/// </summary>
|
||||
public Models.Requests.GetSessionsResponseBody? Object { get; set; }
|
||||
public GetSessionsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Media Statistics
|
||||
/// </summary>
|
||||
public Models.Requests.GetStatisticsResponseBody? Object { get; set; }
|
||||
public GetStatisticsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
public enum GetUserDetailsAuthenticationResponseStatus
|
||||
public enum GetTokenDetailsAuthenticationResponseStatus
|
||||
{
|
||||
[JsonProperty("Inactive")]
|
||||
Inactive,
|
||||
@@ -24,16 +24,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
Active,
|
||||
}
|
||||
|
||||
public static class GetUserDetailsAuthenticationResponseStatusExtension
|
||||
public static class GetTokenDetailsAuthenticationResponseStatusExtension
|
||||
{
|
||||
public static string Value(this GetUserDetailsAuthenticationResponseStatus value)
|
||||
public static string Value(this GetTokenDetailsAuthenticationResponseStatus value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetUserDetailsAuthenticationResponseStatus ToEnum(this string value)
|
||||
public static GetTokenDetailsAuthenticationResponseStatus ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetUserDetailsAuthenticationResponseStatus).GetFields())
|
||||
foreach(var field in typeof(GetTokenDetailsAuthenticationResponseStatus).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -46,14 +46,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is GetUserDetailsAuthenticationResponseStatus)
|
||||
if (enumVal is GetTokenDetailsAuthenticationResponseStatus)
|
||||
{
|
||||
return (GetUserDetailsAuthenticationResponseStatus)enumVal;
|
||||
return (GetTokenDetailsAuthenticationResponseStatus)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetUserDetailsAuthenticationResponseStatus");
|
||||
throw new Exception($"Unknown value {value} for enum GetTokenDetailsAuthenticationResponseStatus");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
public enum GetUserDetailsAuthenticationStatus
|
||||
public enum GetTokenDetailsAuthenticationStatus
|
||||
{
|
||||
[JsonProperty("Inactive")]
|
||||
Inactive,
|
||||
@@ -24,16 +24,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
Active,
|
||||
}
|
||||
|
||||
public static class GetUserDetailsAuthenticationStatusExtension
|
||||
public static class GetTokenDetailsAuthenticationStatusExtension
|
||||
{
|
||||
public static string Value(this GetUserDetailsAuthenticationStatus value)
|
||||
public static string Value(this GetTokenDetailsAuthenticationStatus value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetUserDetailsAuthenticationStatus ToEnum(this string value)
|
||||
public static GetTokenDetailsAuthenticationStatus ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetUserDetailsAuthenticationStatus).GetFields())
|
||||
foreach(var field in typeof(GetTokenDetailsAuthenticationStatus).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -46,14 +46,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is GetUserDetailsAuthenticationStatus)
|
||||
if (enumVal is GetTokenDetailsAuthenticationStatus)
|
||||
{
|
||||
return (GetUserDetailsAuthenticationStatus)enumVal;
|
||||
return (GetTokenDetailsAuthenticationStatus)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetUserDetailsAuthenticationStatus");
|
||||
throw new Exception($"Unknown value {value} for enum GetTokenDetailsAuthenticationStatus");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
public enum GetUserDetailsFeatures
|
||||
public enum GetTokenDetailsFeatures
|
||||
{
|
||||
[JsonProperty("Android - Dolby Vision")]
|
||||
AndroidDolbyVision,
|
||||
@@ -135,16 +135,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
WebServerDashboard,
|
||||
}
|
||||
|
||||
public static class GetUserDetailsFeaturesExtension
|
||||
public static class GetTokenDetailsFeaturesExtension
|
||||
{
|
||||
public static string Value(this GetUserDetailsFeatures value)
|
||||
public static string Value(this GetTokenDetailsFeatures value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetUserDetailsFeatures ToEnum(this string value)
|
||||
public static GetTokenDetailsFeatures ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetUserDetailsFeatures).GetFields())
|
||||
foreach(var field in typeof(GetTokenDetailsFeatures).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -157,14 +157,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is GetUserDetailsFeatures)
|
||||
if (enumVal is GetTokenDetailsFeatures)
|
||||
{
|
||||
return (GetUserDetailsFeatures)enumVal;
|
||||
return (GetTokenDetailsFeatures)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetUserDetailsFeatures");
|
||||
throw new Exception($"Unknown value {value} for enum GetTokenDetailsFeatures");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using System.Net.Http;
|
||||
using System;
|
||||
|
||||
public class GetUserDetailsResponse
|
||||
public class GetTokenDetailsResponse
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Logged in user details
|
||||
/// </summary>
|
||||
public GetUserDetailsUserPlexAccount? UserPlexAccount { get; set; }
|
||||
public GetTokenDetailsUserPlexAccount? UserPlexAccount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
public enum GetUserDetailsStatus
|
||||
public enum GetTokenDetailsStatus
|
||||
{
|
||||
[JsonProperty("online")]
|
||||
Online,
|
||||
@@ -21,16 +21,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
Offline,
|
||||
}
|
||||
|
||||
public static class GetUserDetailsStatusExtension
|
||||
public static class GetTokenDetailsStatusExtension
|
||||
{
|
||||
public static string Value(this GetUserDetailsStatus value)
|
||||
public static string Value(this GetTokenDetailsStatus value)
|
||||
{
|
||||
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
|
||||
}
|
||||
|
||||
public static GetUserDetailsStatus ToEnum(this string value)
|
||||
public static GetTokenDetailsStatus ToEnum(this string value)
|
||||
{
|
||||
foreach(var field in typeof(GetUserDetailsStatus).GetFields())
|
||||
foreach(var field in typeof(GetTokenDetailsStatus).GetFields())
|
||||
{
|
||||
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
|
||||
if (attributes.Length == 0)
|
||||
@@ -43,14 +43,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
var enumVal = field.GetValue(null);
|
||||
|
||||
if (enumVal is GetUserDetailsStatus)
|
||||
if (enumVal is GetTokenDetailsStatus)
|
||||
{
|
||||
return (GetUserDetailsStatus)enumVal;
|
||||
return (GetTokenDetailsStatus)enumVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception($"Unknown value {value} for enum GetUserDetailsStatus");
|
||||
throw new Exception($"Unknown value {value} for enum GetTokenDetailsStatus");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,14 +14,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetUserDetailsSubscription
|
||||
public class GetTokenDetailsSubscription
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// List of features allowed on your Plex Pass subscription
|
||||
/// </summary>
|
||||
[JsonProperty("features")]
|
||||
public List<GetUserDetailsFeatures>? Features { get; set; }
|
||||
public List<GetTokenDetailsFeatures>? Features { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the account's Plex Pass subscription is active
|
||||
@@ -39,7 +39,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
[JsonProperty("status")]
|
||||
public GetUserDetailsAuthenticationResponseStatus? Status { get; set; }
|
||||
public GetTokenDetailsAuthenticationResponseStatus? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Payment service used for your Plex Pass subscription
|
||||
@@ -18,7 +18,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Logged in user details
|
||||
/// </summary>
|
||||
public class GetUserDetailsUserPlexAccount
|
||||
public class GetTokenDetailsUserPlexAccount
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -221,7 +221,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public string? SubscriptionDescription { get; set; }
|
||||
|
||||
[JsonProperty("subscriptions")]
|
||||
public List<GetUserDetailsSubscription> Subscriptions { get; set; } = default!;
|
||||
public List<GetTokenDetailsSubscription> Subscriptions { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// URL of the account thumbnail
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The metadata of the library item.
|
||||
/// </summary>
|
||||
public Models.Requests.GetTopWatchedContentResponseBody? Object { get; set; }
|
||||
public GetTopWatchedContentResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The Transcode Sessions
|
||||
/// </summary>
|
||||
public Models.Requests.GetTranscodeSessionsResponseBody? Object { get; set; }
|
||||
public GetTranscodeSessionsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// The Server Updates
|
||||
/// </summary>
|
||||
public Models.Requests.GetUpdateStatusResponseBody? Object { get; set; }
|
||||
public GetUpdateStatusResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
public class GetUserDetailsRequest
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Plex Authentication Token
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Token")]
|
||||
public string XPlexToken { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// <summary>
|
||||
/// Watchlist Data
|
||||
/// </summary>
|
||||
public Models.Requests.GetWatchListResponseBody? Object { get; set; }
|
||||
public GetWatchListResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public string? Secret { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public GetUserDetailsStatus Status { get; set; } = default!;
|
||||
public GetTokenDetailsStatus Status { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
/// String representation of subscriptionActive
|
||||
/// </summary>
|
||||
[JsonProperty("status")]
|
||||
public GetUserDetailsAuthenticationStatus? Status { get; set; }
|
||||
public GetTokenDetailsAuthenticationStatus? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Payment service used for your Plex Pass subscription
|
||||
|
||||
Reference in New Issue
Block a user