mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-08 04:20:54 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.377.3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -53,15 +53,19 @@ namespace PlexAPI.Models.Requests
|
||||
return Value.GetHashCode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
[JsonConverter(typeof(LibrarySectionID.LibrarySectionIDConverter))]
|
||||
public class LibrarySectionID {
|
||||
public LibrarySectionID(LibrarySectionIDType type) {
|
||||
Type = type;
|
||||
}
|
||||
public long? Integer { get; set; }
|
||||
public string? Str { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public long? Integer { get; set; }
|
||||
|
||||
[SpeakeasyMetadata("form:explode=true")]
|
||||
public string? Str { get; set; }
|
||||
|
||||
public LibrarySectionIDType Type { get; set; }
|
||||
|
||||
@@ -116,14 +120,14 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
// try next option
|
||||
}
|
||||
|
||||
|
||||
if (json[0] == '"' && json[^1] == '"'){
|
||||
return new LibrarySectionID(LibrarySectionIDType.Str)
|
||||
{
|
||||
Str = json[1..^1]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
if (fallbackCandidates.Count > 0)
|
||||
{
|
||||
fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json));
|
||||
@@ -144,7 +148,6 @@ namespace PlexAPI.Models.Requests
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
throw new InvalidOperationException("Could not deserialize into any supported types.");
|
||||
}
|
||||
|
||||
@@ -172,8 +175,8 @@ namespace PlexAPI.Models.Requests
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user