ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.615.2

This commit is contained in:
speakeasybot
2025-09-15 00:26:45 +00:00
parent 1f5d4ff03a
commit 8563e8fef2
246 changed files with 8601 additions and 2253 deletions

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// type of playlist to create
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Filter
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The library type
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetLibraryItemsLibraryOptimizedForStreamingType
{
private GetLibraryItemsLibraryOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetLibraryItemsLibraryOptimizedForStreamingType GetLibraryItemsOptimizedForStreaming1 { get { return new GetLibraryItemsLibraryOptimizedForStreamingType("get-library-items_optimizedForStreaming_1"); } }
public static GetLibraryItemsLibraryOptimizedForStreamingType Boolean { get { return new GetLibraryItemsLibraryOptimizedForStreamingType("boolean"); } }
public static GetLibraryItemsLibraryOptimizedForStreamingType Null { get { return new GetLibraryItemsLibraryOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -64,8 +64,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[JsonConverter(typeof(GetLibraryItemsLibraryOptimizedForStreaming.GetLibraryItemsLibraryOptimizedForStreamingConverter))]
public class GetLibraryItemsLibraryOptimizedForStreaming {
public GetLibraryItemsLibraryOptimizedForStreaming(GetLibraryItemsLibraryOptimizedForStreamingType type) {
public class GetLibraryItemsLibraryOptimizedForStreaming
{
public GetLibraryItemsLibraryOptimizedForStreaming(GetLibraryItemsLibraryOptimizedForStreamingType type)
{
Type = type;
}
@@ -76,17 +78,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetLibraryItemsLibraryOptimizedForStreamingType Type { get; set; }
public static GetLibraryItemsLibraryOptimizedForStreaming CreateGetLibraryItemsOptimizedForStreaming1(GetLibraryItemsOptimizedForStreaming1 getLibraryItemsOptimizedForStreaming1) {
public static GetLibraryItemsLibraryOptimizedForStreaming CreateGetLibraryItemsOptimizedForStreaming1(GetLibraryItemsOptimizedForStreaming1 getLibraryItemsOptimizedForStreaming1)
{
GetLibraryItemsLibraryOptimizedForStreamingType typ = GetLibraryItemsLibraryOptimizedForStreamingType.GetLibraryItemsOptimizedForStreaming1;
GetLibraryItemsLibraryOptimizedForStreaming res = new GetLibraryItemsLibraryOptimizedForStreaming(typ);
res.GetLibraryItemsOptimizedForStreaming1 = getLibraryItemsOptimizedForStreaming1;
return res;
}
public static GetLibraryItemsLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetLibraryItemsLibraryOptimizedForStreaming CreateBoolean(bool boolean)
{
GetLibraryItemsLibraryOptimizedForStreamingType typ = GetLibraryItemsLibraryOptimizedForStreamingType.Boolean;
GetLibraryItemsLibraryOptimizedForStreaming res = new GetLibraryItemsLibraryOptimizedForStreaming(typ);
@@ -94,7 +95,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetLibraryItemsLibraryOptimizedForStreaming CreateNull() {
public static GetLibraryItemsLibraryOptimizedForStreaming CreateNull()
{
GetLibraryItemsLibraryOptimizedForStreamingType typ = GetLibraryItemsLibraryOptimizedForStreamingType.Null;
return new GetLibraryItemsLibraryOptimizedForStreaming(typ);
}
@@ -178,23 +180,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetLibraryItemsLibraryOptimizedForStreaming res = (GetLibraryItemsLibraryOptimizedForStreaming)value;
if (GetLibraryItemsLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetLibraryItemsLibraryOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetLibraryItemsOptimizedForStreaming1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibraryItemsOptimizedForStreaming1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class GetLibraryItemsLibraryResponseType : IEquatable<GetLibraryItemsLibraryResponseType>
{

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetLibraryItemsOptimizedForStreamingType
{
private GetLibraryItemsOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetLibraryItemsOptimizedForStreamingType OptimizedForStreaming1 { get { return new GetLibraryItemsOptimizedForStreamingType("optimizedForStreaming_1"); } }
public static GetLibraryItemsOptimizedForStreamingType Boolean { get { return new GetLibraryItemsOptimizedForStreamingType("boolean"); } }
public static GetLibraryItemsOptimizedForStreamingType Null { get { return new GetLibraryItemsOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -60,8 +60,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetLibraryItemsOptimizedForStreaming.GetLibraryItemsOptimizedForStreamingConverter))]
public class GetLibraryItemsOptimizedForStreaming {
public GetLibraryItemsOptimizedForStreaming(GetLibraryItemsOptimizedForStreamingType type) {
public class GetLibraryItemsOptimizedForStreaming
{
public GetLibraryItemsOptimizedForStreaming(GetLibraryItemsOptimizedForStreamingType type)
{
Type = type;
}
@@ -72,17 +74,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetLibraryItemsOptimizedForStreamingType Type { get; set; }
public static GetLibraryItemsOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1) {
public static GetLibraryItemsOptimizedForStreaming CreateOptimizedForStreaming1(OptimizedForStreaming1 optimizedForStreaming1)
{
GetLibraryItemsOptimizedForStreamingType typ = GetLibraryItemsOptimizedForStreamingType.OptimizedForStreaming1;
GetLibraryItemsOptimizedForStreaming res = new GetLibraryItemsOptimizedForStreaming(typ);
res.OptimizedForStreaming1 = optimizedForStreaming1;
return res;
}
public static GetLibraryItemsOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetLibraryItemsOptimizedForStreaming CreateBoolean(bool boolean)
{
GetLibraryItemsOptimizedForStreamingType typ = GetLibraryItemsOptimizedForStreamingType.Boolean;
GetLibraryItemsOptimizedForStreaming res = new GetLibraryItemsOptimizedForStreaming(typ);
@@ -90,7 +91,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetLibraryItemsOptimizedForStreaming CreateNull() {
public static GetLibraryItemsOptimizedForStreaming CreateNull()
{
GetLibraryItemsOptimizedForStreamingType typ = GetLibraryItemsOptimizedForStreamingType.Null;
return new GetLibraryItemsOptimizedForStreaming(typ);
}
@@ -174,23 +176,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetLibraryItemsOptimizedForStreaming res = (GetLibraryItemsOptimizedForStreaming)value;
if (GetLibraryItemsOptimizedForStreamingType.FromString(res.Type).Equals(GetLibraryItemsOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.OptimizedForStreaming1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.OptimizedForStreaming1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetLibrarySectionsAllLibraryOptimizedForStreamingType
{
private GetLibrarySectionsAllLibraryOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType GetLibrarySectionsAllOptimizedForStreamingLibrary1 { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("get-library-sections-all_optimizedForStreaming_Library_1"); } }
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType Boolean { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("boolean"); } }
public static GetLibrarySectionsAllLibraryOptimizedForStreamingType Null { get { return new GetLibrarySectionsAllLibraryOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -60,8 +60,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetLibrarySectionsAllLibraryOptimizedForStreaming.GetLibrarySectionsAllLibraryOptimizedForStreamingConverter))]
public class GetLibrarySectionsAllLibraryOptimizedForStreaming {
public GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType type) {
public class GetLibrarySectionsAllLibraryOptimizedForStreaming
{
public GetLibrarySectionsAllLibraryOptimizedForStreaming(GetLibrarySectionsAllLibraryOptimizedForStreamingType type)
{
Type = type;
}
@@ -72,17 +74,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetLibrarySectionsAllLibraryOptimizedForStreamingType Type { get; set; }
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreamingLibrary1(GetLibrarySectionsAllOptimizedForStreamingLibrary1 getLibrarySectionsAllOptimizedForStreamingLibrary1) {
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreamingLibrary1(GetLibrarySectionsAllOptimizedForStreamingLibrary1 getLibrarySectionsAllOptimizedForStreamingLibrary1)
{
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreamingLibrary1;
GetLibrarySectionsAllLibraryOptimizedForStreaming res = new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
res.GetLibrarySectionsAllOptimizedForStreamingLibrary1 = getLibrarySectionsAllOptimizedForStreamingLibrary1;
return res;
}
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateBoolean(bool boolean)
{
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.Boolean;
GetLibrarySectionsAllLibraryOptimizedForStreaming res = new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
@@ -90,7 +91,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateNull() {
public static GetLibrarySectionsAllLibraryOptimizedForStreaming CreateNull()
{
GetLibrarySectionsAllLibraryOptimizedForStreamingType typ = GetLibrarySectionsAllLibraryOptimizedForStreamingType.Null;
return new GetLibrarySectionsAllLibraryOptimizedForStreaming(typ);
}
@@ -174,23 +176,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetLibrarySectionsAllLibraryOptimizedForStreaming res = (GetLibrarySectionsAllLibraryOptimizedForStreaming)value;
if (GetLibrarySectionsAllLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetLibrarySectionsAllLibraryOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetLibrarySectionsAllOptimizedForStreamingLibrary1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibrarySectionsAllOptimizedForStreamingLibrary1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class GetLibrarySectionsAllLibraryResponseType : IEquatable<GetLibrarySectionsAllLibraryResponseType>
{

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetLibrarySectionsAllOptimizedForStreamingType
{
private GetLibrarySectionsAllOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetLibrarySectionsAllOptimizedForStreamingType GetLibrarySectionsAllOptimizedForStreaming1 { get { return new GetLibrarySectionsAllOptimizedForStreamingType("get-library-sections-all_optimizedForStreaming_1"); } }
public static GetLibrarySectionsAllOptimizedForStreamingType Boolean { get { return new GetLibrarySectionsAllOptimizedForStreamingType("boolean"); } }
public static GetLibrarySectionsAllOptimizedForStreamingType Null { get { return new GetLibrarySectionsAllOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -60,8 +60,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetLibrarySectionsAllOptimizedForStreaming.GetLibrarySectionsAllOptimizedForStreamingConverter))]
public class GetLibrarySectionsAllOptimizedForStreaming {
public GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType type) {
public class GetLibrarySectionsAllOptimizedForStreaming
{
public GetLibrarySectionsAllOptimizedForStreaming(GetLibrarySectionsAllOptimizedForStreamingType type)
{
Type = type;
}
@@ -72,17 +74,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetLibrarySectionsAllOptimizedForStreamingType Type { get; set; }
public static GetLibrarySectionsAllOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreaming1(GetLibrarySectionsAllOptimizedForStreaming1 getLibrarySectionsAllOptimizedForStreaming1) {
public static GetLibrarySectionsAllOptimizedForStreaming CreateGetLibrarySectionsAllOptimizedForStreaming1(GetLibrarySectionsAllOptimizedForStreaming1 getLibrarySectionsAllOptimizedForStreaming1)
{
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.GetLibrarySectionsAllOptimizedForStreaming1;
GetLibrarySectionsAllOptimizedForStreaming res = new GetLibrarySectionsAllOptimizedForStreaming(typ);
res.GetLibrarySectionsAllOptimizedForStreaming1 = getLibrarySectionsAllOptimizedForStreaming1;
return res;
}
public static GetLibrarySectionsAllOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetLibrarySectionsAllOptimizedForStreaming CreateBoolean(bool boolean)
{
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.Boolean;
GetLibrarySectionsAllOptimizedForStreaming res = new GetLibrarySectionsAllOptimizedForStreaming(typ);
@@ -90,7 +91,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetLibrarySectionsAllOptimizedForStreaming CreateNull() {
public static GetLibrarySectionsAllOptimizedForStreaming CreateNull()
{
GetLibrarySectionsAllOptimizedForStreamingType typ = GetLibrarySectionsAllOptimizedForStreamingType.Null;
return new GetLibrarySectionsAllOptimizedForStreaming(typ);
}
@@ -174,23 +176,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetLibrarySectionsAllOptimizedForStreaming res = (GetLibrarySectionsAllOptimizedForStreaming)value;
if (GetLibrarySectionsAllOptimizedForStreamingType.FromString(res.Type).Equals(GetLibrarySectionsAllOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetLibrarySectionsAllOptimizedForStreaming1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetLibrarySectionsAllOptimizedForStreaming1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetMediaMetaDataLibraryOptimizedForStreamingType
{
private GetMediaMetaDataLibraryOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetMediaMetaDataLibraryOptimizedForStreamingType GetMediaMetaDataOptimizedForStreamingLibrary1 { get { return new GetMediaMetaDataLibraryOptimizedForStreamingType("get-media-meta-data_optimizedForStreaming_Library_1"); } }
public static GetMediaMetaDataLibraryOptimizedForStreamingType Boolean { get { return new GetMediaMetaDataLibraryOptimizedForStreamingType("boolean"); } }
public static GetMediaMetaDataLibraryOptimizedForStreamingType Null { get { return new GetMediaMetaDataLibraryOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -64,8 +64,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[JsonConverter(typeof(GetMediaMetaDataLibraryOptimizedForStreaming.GetMediaMetaDataLibraryOptimizedForStreamingConverter))]
public class GetMediaMetaDataLibraryOptimizedForStreaming {
public GetMediaMetaDataLibraryOptimizedForStreaming(GetMediaMetaDataLibraryOptimizedForStreamingType type) {
public class GetMediaMetaDataLibraryOptimizedForStreaming
{
public GetMediaMetaDataLibraryOptimizedForStreaming(GetMediaMetaDataLibraryOptimizedForStreamingType type)
{
Type = type;
}
@@ -76,17 +78,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetMediaMetaDataLibraryOptimizedForStreamingType Type { get; set; }
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateGetMediaMetaDataOptimizedForStreamingLibrary1(GetMediaMetaDataOptimizedForStreamingLibrary1 getMediaMetaDataOptimizedForStreamingLibrary1) {
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateGetMediaMetaDataOptimizedForStreamingLibrary1(GetMediaMetaDataOptimizedForStreamingLibrary1 getMediaMetaDataOptimizedForStreamingLibrary1)
{
GetMediaMetaDataLibraryOptimizedForStreamingType typ = GetMediaMetaDataLibraryOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreamingLibrary1;
GetMediaMetaDataLibraryOptimizedForStreaming res = new GetMediaMetaDataLibraryOptimizedForStreaming(typ);
res.GetMediaMetaDataOptimizedForStreamingLibrary1 = getMediaMetaDataOptimizedForStreamingLibrary1;
return res;
}
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateBoolean(bool boolean)
{
GetMediaMetaDataLibraryOptimizedForStreamingType typ = GetMediaMetaDataLibraryOptimizedForStreamingType.Boolean;
GetMediaMetaDataLibraryOptimizedForStreaming res = new GetMediaMetaDataLibraryOptimizedForStreaming(typ);
@@ -94,7 +95,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateNull() {
public static GetMediaMetaDataLibraryOptimizedForStreaming CreateNull()
{
GetMediaMetaDataLibraryOptimizedForStreamingType typ = GetMediaMetaDataLibraryOptimizedForStreamingType.Null;
return new GetMediaMetaDataLibraryOptimizedForStreaming(typ);
}
@@ -178,23 +180,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetMediaMetaDataLibraryOptimizedForStreaming res = (GetMediaMetaDataLibraryOptimizedForStreaming)value;
if (GetMediaMetaDataLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetMediaMetaDataLibraryOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetMediaMetaDataOptimizedForStreamingLibrary1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetMediaMetaDataOptimizedForStreamingLibrary1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class GetMediaMetaDataLibraryType : IEquatable<GetMediaMetaDataLibraryType>
{

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetMediaMetaDataOptimizedForStreamingType
{
private GetMediaMetaDataOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetMediaMetaDataOptimizedForStreamingType GetMediaMetaDataOptimizedForStreaming1 { get { return new GetMediaMetaDataOptimizedForStreamingType("get-media-meta-data_optimizedForStreaming_1"); } }
public static GetMediaMetaDataOptimizedForStreamingType Boolean { get { return new GetMediaMetaDataOptimizedForStreamingType("boolean"); } }
public static GetMediaMetaDataOptimizedForStreamingType Null { get { return new GetMediaMetaDataOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -60,8 +60,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetMediaMetaDataOptimizedForStreaming.GetMediaMetaDataOptimizedForStreamingConverter))]
public class GetMediaMetaDataOptimizedForStreaming {
public GetMediaMetaDataOptimizedForStreaming(GetMediaMetaDataOptimizedForStreamingType type) {
public class GetMediaMetaDataOptimizedForStreaming
{
public GetMediaMetaDataOptimizedForStreaming(GetMediaMetaDataOptimizedForStreamingType type)
{
Type = type;
}
@@ -72,17 +74,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetMediaMetaDataOptimizedForStreamingType Type { get; set; }
public static GetMediaMetaDataOptimizedForStreaming CreateGetMediaMetaDataOptimizedForStreaming1(GetMediaMetaDataOptimizedForStreaming1 getMediaMetaDataOptimizedForStreaming1) {
public static GetMediaMetaDataOptimizedForStreaming CreateGetMediaMetaDataOptimizedForStreaming1(GetMediaMetaDataOptimizedForStreaming1 getMediaMetaDataOptimizedForStreaming1)
{
GetMediaMetaDataOptimizedForStreamingType typ = GetMediaMetaDataOptimizedForStreamingType.GetMediaMetaDataOptimizedForStreaming1;
GetMediaMetaDataOptimizedForStreaming res = new GetMediaMetaDataOptimizedForStreaming(typ);
res.GetMediaMetaDataOptimizedForStreaming1 = getMediaMetaDataOptimizedForStreaming1;
return res;
}
public static GetMediaMetaDataOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetMediaMetaDataOptimizedForStreaming CreateBoolean(bool boolean)
{
GetMediaMetaDataOptimizedForStreamingType typ = GetMediaMetaDataOptimizedForStreamingType.Boolean;
GetMediaMetaDataOptimizedForStreaming res = new GetMediaMetaDataOptimizedForStreaming(typ);
@@ -90,7 +91,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetMediaMetaDataOptimizedForStreaming CreateNull() {
public static GetMediaMetaDataOptimizedForStreaming CreateNull()
{
GetMediaMetaDataOptimizedForStreamingType typ = GetMediaMetaDataOptimizedForStreamingType.Null;
return new GetMediaMetaDataOptimizedForStreaming(typ);
}
@@ -174,23 +176,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetMediaMetaDataOptimizedForStreaming res = (GetMediaMetaDataOptimizedForStreaming)value;
if (GetMediaMetaDataOptimizedForStreamingType.FromString(res.Type).Equals(GetMediaMetaDataOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetMediaMetaDataOptimizedForStreaming1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetMediaMetaDataOptimizedForStreaming1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class GetRecentlyAddedHubsResponseType : IEquatable<GetRecentlyAddedHubsResponseType>
{

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetRecentlyAddedOptimizedForStreamingType
{
private GetRecentlyAddedOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetRecentlyAddedOptimizedForStreamingType GetRecentlyAddedOptimizedForStreaming1 { get { return new GetRecentlyAddedOptimizedForStreamingType("get-recently-added_optimizedForStreaming_1"); } }
public static GetRecentlyAddedOptimizedForStreamingType Boolean { get { return new GetRecentlyAddedOptimizedForStreamingType("boolean"); } }
public static GetRecentlyAddedOptimizedForStreamingType Null { get { return new GetRecentlyAddedOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -60,8 +60,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetRecentlyAddedOptimizedForStreaming.GetRecentlyAddedOptimizedForStreamingConverter))]
public class GetRecentlyAddedOptimizedForStreaming {
public GetRecentlyAddedOptimizedForStreaming(GetRecentlyAddedOptimizedForStreamingType type) {
public class GetRecentlyAddedOptimizedForStreaming
{
public GetRecentlyAddedOptimizedForStreaming(GetRecentlyAddedOptimizedForStreamingType type)
{
Type = type;
}
@@ -72,17 +74,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetRecentlyAddedOptimizedForStreamingType Type { get; set; }
public static GetRecentlyAddedOptimizedForStreaming CreateGetRecentlyAddedOptimizedForStreaming1(GetRecentlyAddedOptimizedForStreaming1 getRecentlyAddedOptimizedForStreaming1) {
public static GetRecentlyAddedOptimizedForStreaming CreateGetRecentlyAddedOptimizedForStreaming1(GetRecentlyAddedOptimizedForStreaming1 getRecentlyAddedOptimizedForStreaming1)
{
GetRecentlyAddedOptimizedForStreamingType typ = GetRecentlyAddedOptimizedForStreamingType.GetRecentlyAddedOptimizedForStreaming1;
GetRecentlyAddedOptimizedForStreaming res = new GetRecentlyAddedOptimizedForStreaming(typ);
res.GetRecentlyAddedOptimizedForStreaming1 = getRecentlyAddedOptimizedForStreaming1;
return res;
}
public static GetRecentlyAddedOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetRecentlyAddedOptimizedForStreaming CreateBoolean(bool boolean)
{
GetRecentlyAddedOptimizedForStreamingType typ = GetRecentlyAddedOptimizedForStreamingType.Boolean;
GetRecentlyAddedOptimizedForStreaming res = new GetRecentlyAddedOptimizedForStreaming(typ);
@@ -90,7 +91,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetRecentlyAddedOptimizedForStreaming CreateNull() {
public static GetRecentlyAddedOptimizedForStreaming CreateNull()
{
GetRecentlyAddedOptimizedForStreamingType typ = GetRecentlyAddedOptimizedForStreamingType.Null;
return new GetRecentlyAddedOptimizedForStreaming(typ);
}
@@ -174,23 +176,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetRecentlyAddedOptimizedForStreaming res = (GetRecentlyAddedOptimizedForStreaming)value;
if (GetRecentlyAddedOptimizedForStreamingType.FromString(res.Type).Equals(GetRecentlyAddedOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetRecentlyAddedOptimizedForStreaming1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetRecentlyAddedOptimizedForStreaming1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).<br/>
///

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetSearchAllLibrariesLibraryOptimizedForStreamingType
{
private GetSearchAllLibrariesLibraryOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetSearchAllLibrariesLibraryOptimizedForStreamingType GetSearchAllLibrariesOptimizedForStreamingLibrary1 { get { return new GetSearchAllLibrariesLibraryOptimizedForStreamingType("get-search-all-libraries_optimizedForStreaming_Library_1"); } }
public static GetSearchAllLibrariesLibraryOptimizedForStreamingType Boolean { get { return new GetSearchAllLibrariesLibraryOptimizedForStreamingType("boolean"); } }
public static GetSearchAllLibrariesLibraryOptimizedForStreamingType Null { get { return new GetSearchAllLibrariesLibraryOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -64,8 +64,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// </remarks>
/// </summary>
[JsonConverter(typeof(GetSearchAllLibrariesLibraryOptimizedForStreaming.GetSearchAllLibrariesLibraryOptimizedForStreamingConverter))]
public class GetSearchAllLibrariesLibraryOptimizedForStreaming {
public GetSearchAllLibrariesLibraryOptimizedForStreaming(GetSearchAllLibrariesLibraryOptimizedForStreamingType type) {
public class GetSearchAllLibrariesLibraryOptimizedForStreaming
{
public GetSearchAllLibrariesLibraryOptimizedForStreaming(GetSearchAllLibrariesLibraryOptimizedForStreamingType type)
{
Type = type;
}
@@ -76,17 +78,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetSearchAllLibrariesLibraryOptimizedForStreamingType Type { get; set; }
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateGetSearchAllLibrariesOptimizedForStreamingLibrary1(GetSearchAllLibrariesOptimizedForStreamingLibrary1 getSearchAllLibrariesOptimizedForStreamingLibrary1) {
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateGetSearchAllLibrariesOptimizedForStreamingLibrary1(GetSearchAllLibrariesOptimizedForStreamingLibrary1 getSearchAllLibrariesOptimizedForStreamingLibrary1)
{
GetSearchAllLibrariesLibraryOptimizedForStreamingType typ = GetSearchAllLibrariesLibraryOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreamingLibrary1;
GetSearchAllLibrariesLibraryOptimizedForStreaming res = new GetSearchAllLibrariesLibraryOptimizedForStreaming(typ);
res.GetSearchAllLibrariesOptimizedForStreamingLibrary1 = getSearchAllLibrariesOptimizedForStreamingLibrary1;
return res;
}
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateBoolean(bool boolean)
{
GetSearchAllLibrariesLibraryOptimizedForStreamingType typ = GetSearchAllLibrariesLibraryOptimizedForStreamingType.Boolean;
GetSearchAllLibrariesLibraryOptimizedForStreaming res = new GetSearchAllLibrariesLibraryOptimizedForStreaming(typ);
@@ -94,7 +95,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateNull() {
public static GetSearchAllLibrariesLibraryOptimizedForStreaming CreateNull()
{
GetSearchAllLibrariesLibraryOptimizedForStreamingType typ = GetSearchAllLibrariesLibraryOptimizedForStreamingType.Null;
return new GetSearchAllLibrariesLibraryOptimizedForStreaming(typ);
}
@@ -178,23 +180,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetSearchAllLibrariesLibraryOptimizedForStreaming res = (GetSearchAllLibrariesLibraryOptimizedForStreaming)value;
if (GetSearchAllLibrariesLibraryOptimizedForStreamingType.FromString(res.Type).Equals(GetSearchAllLibrariesLibraryOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetSearchAllLibrariesOptimizedForStreamingLibrary1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetSearchAllLibrariesOptimizedForStreamingLibrary1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class GetSearchAllLibrariesLibraryType : IEquatable<GetSearchAllLibrariesLibraryType>
{

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class GetSearchAllLibrariesOptimizedForStreamingType
{
private GetSearchAllLibrariesOptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static GetSearchAllLibrariesOptimizedForStreamingType GetSearchAllLibrariesOptimizedForStreaming1 { get { return new GetSearchAllLibrariesOptimizedForStreamingType("get-search-all-libraries_optimizedForStreaming_1"); } }
public static GetSearchAllLibrariesOptimizedForStreamingType Boolean { get { return new GetSearchAllLibrariesOptimizedForStreamingType("boolean"); } }
public static GetSearchAllLibrariesOptimizedForStreamingType Null { get { return new GetSearchAllLibrariesOptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -60,8 +60,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(GetSearchAllLibrariesOptimizedForStreaming.GetSearchAllLibrariesOptimizedForStreamingConverter))]
public class GetSearchAllLibrariesOptimizedForStreaming {
public GetSearchAllLibrariesOptimizedForStreaming(GetSearchAllLibrariesOptimizedForStreamingType type) {
public class GetSearchAllLibrariesOptimizedForStreaming
{
public GetSearchAllLibrariesOptimizedForStreaming(GetSearchAllLibrariesOptimizedForStreamingType type)
{
Type = type;
}
@@ -72,17 +74,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public GetSearchAllLibrariesOptimizedForStreamingType Type { get; set; }
public static GetSearchAllLibrariesOptimizedForStreaming CreateGetSearchAllLibrariesOptimizedForStreaming1(GetSearchAllLibrariesOptimizedForStreaming1 getSearchAllLibrariesOptimizedForStreaming1) {
public static GetSearchAllLibrariesOptimizedForStreaming CreateGetSearchAllLibrariesOptimizedForStreaming1(GetSearchAllLibrariesOptimizedForStreaming1 getSearchAllLibrariesOptimizedForStreaming1)
{
GetSearchAllLibrariesOptimizedForStreamingType typ = GetSearchAllLibrariesOptimizedForStreamingType.GetSearchAllLibrariesOptimizedForStreaming1;
GetSearchAllLibrariesOptimizedForStreaming res = new GetSearchAllLibrariesOptimizedForStreaming(typ);
res.GetSearchAllLibrariesOptimizedForStreaming1 = getSearchAllLibrariesOptimizedForStreaming1;
return res;
}
public static GetSearchAllLibrariesOptimizedForStreaming CreateBoolean(bool boolean) {
public static GetSearchAllLibrariesOptimizedForStreaming CreateBoolean(bool boolean)
{
GetSearchAllLibrariesOptimizedForStreamingType typ = GetSearchAllLibrariesOptimizedForStreamingType.Boolean;
GetSearchAllLibrariesOptimizedForStreaming res = new GetSearchAllLibrariesOptimizedForStreaming(typ);
@@ -90,7 +91,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static GetSearchAllLibrariesOptimizedForStreaming CreateNull() {
public static GetSearchAllLibrariesOptimizedForStreaming CreateNull()
{
GetSearchAllLibrariesOptimizedForStreamingType typ = GetSearchAllLibrariesOptimizedForStreamingType.Null;
return new GetSearchAllLibrariesOptimizedForStreaming(typ);
}
@@ -174,23 +176,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
GetSearchAllLibrariesOptimizedForStreaming res = (GetSearchAllLibrariesOptimizedForStreaming)value;
if (GetSearchAllLibrariesOptimizedForStreamingType.FromString(res.Type).Equals(GetSearchAllLibrariesOptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.GetSearchAllLibrariesOptimizedForStreaming1 != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.GetSearchAllLibrariesOptimizedForStreaming1));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Setting that indicates the episode ordering for the show.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media content in the Plex library. This can represent videos, music, or photos.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// String representation of subscriptionActive
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// String representation of subscriptionActive
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class GetTokenDetailsStatus : IEquatable<GetTokenDetailsStatus>
{

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// An integer log level to write to the PMS log with.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of library to filter. Can be &quot;movie&quot; or &quot;show&quot;, or all if not present.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Your current mailing list status (active or unsubscribed)
/// </summary>

View File

@@ -17,17 +17,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
public class OptimizedForStreamingType
{
private OptimizedForStreamingType(string value) { Value = value; }
public string Value { get; private set; }
public static OptimizedForStreamingType One { get { return new OptimizedForStreamingType("1"); } }
public static OptimizedForStreamingType Boolean { get { return new OptimizedForStreamingType("boolean"); } }
public static OptimizedForStreamingType Null { get { return new OptimizedForStreamingType("null"); } }
public override string ToString() { return Value; }
@@ -60,8 +60,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
/// Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
/// </summary>
[JsonConverter(typeof(OptimizedForStreaming.OptimizedForStreamingConverter))]
public class OptimizedForStreaming {
public OptimizedForStreaming(OptimizedForStreamingType type) {
public class OptimizedForStreaming
{
public OptimizedForStreaming(OptimizedForStreamingType type)
{
Type = type;
}
@@ -72,17 +74,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
public bool? Boolean { get; set; }
public OptimizedForStreamingType Type { get; set; }
public static OptimizedForStreaming CreateOne(One one) {
public static OptimizedForStreaming CreateOne(One one)
{
OptimizedForStreamingType typ = OptimizedForStreamingType.One;
OptimizedForStreaming res = new OptimizedForStreaming(typ);
res.One = one;
return res;
}
public static OptimizedForStreaming CreateBoolean(bool boolean) {
public static OptimizedForStreaming CreateBoolean(bool boolean)
{
OptimizedForStreamingType typ = OptimizedForStreamingType.Boolean;
OptimizedForStreaming res = new OptimizedForStreaming(typ);
@@ -90,7 +91,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
return res;
}
public static OptimizedForStreaming CreateNull() {
public static OptimizedForStreaming CreateNull()
{
OptimizedForStreamingType typ = OptimizedForStreamingType.Null;
return new OptimizedForStreaming(typ);
}
@@ -174,23 +176,25 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
writer.WriteRawValue("null");
return;
}
OptimizedForStreaming res = (OptimizedForStreaming)value;
if (OptimizedForStreamingType.FromString(res.Type).Equals(OptimizedForStreamingType.Null))
{
writer.WriteRawValue("null");
return;
}
if (res.One != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.One));
return;
}
if (res.Boolean != null)
{
writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean));
return;
}
}
}

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The name of the task to be started.
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// limit to a type of playlist.
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// String representation of subscriptionActive
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// String representation of subscriptionActive
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Your current mailing list status (active or unsubscribed)
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class PostUsersSignInDataState : IEquatable<PostUsersSignInDataState>
{

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class PostUsersSignInDataStatus : IEquatable<PostUsersSignInDataStatus>
{

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// type of playlists to return (default is all).
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
[JsonConverter(typeof(OpenEnumConverter))]
public class SearchTypes : IEquatable<SearchTypes>
{

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Setting that indicates the episode ordering for the show.<br/>
///

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The state of the media item
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Current friend request status
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// A key representing a specific tag within the section.
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// the name of the task to be started.
/// </summary>

View File

@@ -15,7 +15,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The type of media to retrieve or filter by.<br/>
///