mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-09 12:37:46 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.148.0
This commit is contained in:
31
PlexAPI/Models/Requests/AddPlaylistContentsMediaContainer.cs
Normal file
31
PlexAPI/Models/Requests/AddPlaylistContentsMediaContainer.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class AddPlaylistContentsMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("leafCountAdded")]
|
||||
public int? LeafCountAdded { get; set; }
|
||||
|
||||
[JsonProperty("leafCountRequested")]
|
||||
public int? LeafCountRequested { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<AddPlaylistContentsMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
57
PlexAPI/Models/Requests/AddPlaylistContentsMetadata.cs
Normal file
57
PlexAPI/Models/Requests/AddPlaylistContentsMetadata.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class AddPlaylistContentsMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("smart")]
|
||||
public bool? Smart { get; set; }
|
||||
|
||||
[JsonProperty("playlistType")]
|
||||
public string? PlaylistType { get; set; }
|
||||
|
||||
[JsonProperty("composite")]
|
||||
public string? Composite { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class AddPlaylistContentsPlaylistsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<AddPlaylistContentsErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,6 @@ namespace PlexAPI.Models.Requests
|
||||
/// the play queue to add to a playlist
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=playQueueID")]
|
||||
public double PlayQueueID { get; set; } = default!;
|
||||
public double? PlayQueueID { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Playlist Updated
|
||||
/// </summary>
|
||||
public AddPlaylistContentsResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public AddPlaylistContentsResponseBody? Object { get; set; }
|
||||
public AddPlaylistContentsPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// Playlist Updated
|
||||
/// </summary>
|
||||
public class AddPlaylistContentsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<AddPlaylistContentsErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public AddPlaylistContentsMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
25
PlexAPI/Models/Requests/CreatePlaylistMediaContainer.cs
Normal file
25
PlexAPI/Models/Requests/CreatePlaylistMediaContainer.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class CreatePlaylistMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<CreatePlaylistMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
66
PlexAPI/Models/Requests/CreatePlaylistMetadata.cs
Normal file
66
PlexAPI/Models/Requests/CreatePlaylistMetadata.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class CreatePlaylistMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("smart")]
|
||||
public bool? Smart { get; set; }
|
||||
|
||||
[JsonProperty("playlistType")]
|
||||
public string? PlaylistType { get; set; }
|
||||
|
||||
[JsonProperty("icon")]
|
||||
public string? Icon { get; set; }
|
||||
|
||||
[JsonProperty("viewCount")]
|
||||
public int? ViewCount { get; set; }
|
||||
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty("composite")]
|
||||
public string? Composite { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,10 +16,10 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLatestLibraryItemsResponseBody
|
||||
public class CreatePlaylistPlaylistsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLatestLibraryItemsErrors>? Errors { get; set; }
|
||||
public List<CreatePlaylistErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,7 @@ namespace PlexAPI.Models.Requests
|
||||
/// the content URI for the playlist
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=uri")]
|
||||
public string? Uri { get; set; }
|
||||
public string Uri { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// the play queue to copy to a playlist
|
||||
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// returns all playlists
|
||||
/// </summary>
|
||||
public CreatePlaylistResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public CreatePlaylistResponseBody? Object { get; set; }
|
||||
public CreatePlaylistPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// returns all playlists
|
||||
/// </summary>
|
||||
public class CreatePlaylistResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<CreatePlaylistErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public CreatePlaylistMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,12 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>
|
||||
/// Force overwriting of duplicate playlists. <br/>
|
||||
///
|
||||
/// <remarks>
|
||||
/// The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/>
|
||||
/// By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>
|
||||
/// The `force` argument is used to disable overwriting. <br/>
|
||||
/// If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/>
|
||||
///
|
||||
/// </remarks>
|
||||
/// </summary>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#nullable enable
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System;
|
||||
|
||||
@@ -35,11 +34,11 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// Available Clients
|
||||
/// </summary>
|
||||
public List<ResponseBody>? ResponseBodies { get; set; }
|
||||
public GetAvailableClientsResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetAvailableClientsResponseBody? Object { get; set; }
|
||||
public GetAvailableClientsServerResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// Available Clients
|
||||
/// </summary>
|
||||
public class GetAvailableClientsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetAvailableClientsErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetAvailableClientsMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetAvailableClientsServerResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetAvailableClientsErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 class GetCommonLibraryItemsRequest
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// the Id of the library to query
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId")]
|
||||
public double SectionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// item type
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||
public double Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// the filter parameter
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter")]
|
||||
public string? Filter { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Net.Http;
|
||||
using System;
|
||||
|
||||
public class GetCommonLibraryItemsResponse
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// HTTP response content type for this operation
|
||||
/// </summary>
|
||||
public string? ContentType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// HTTP response status code for this operation
|
||||
/// </summary>
|
||||
public int StatusCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Raw HTTP response; suitable for custom response parsing
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetCommonLibraryItemsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,10 +16,10 @@ namespace PlexAPI.Models.Requests
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetCommonLibraryItemsResponseBody
|
||||
public class GetGlobalHubsHubsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetCommonLibraryItemsErrors>? Errors { get; set; }
|
||||
public List<GetGlobalHubsErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
31
PlexAPI/Models/Requests/GetGlobalHubsMediaContainer.cs
Normal file
31
PlexAPI/Models/Requests/GetGlobalHubsMediaContainer.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetGlobalHubsMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("allowSync")]
|
||||
public bool? AllowSync { get; set; }
|
||||
|
||||
[JsonProperty("identifier")]
|
||||
public string? Identifier { get; set; }
|
||||
|
||||
[JsonProperty("Hub")]
|
||||
public List<Hub>? Hub { get; set; }
|
||||
}
|
||||
}
|
||||
69
PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs
Normal file
69
PlexAPI/Models/Requests/GetGlobalHubsMetadata.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetGlobalHubsMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("titleSort")]
|
||||
public string? TitleSort { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("smart")]
|
||||
public bool? Smart { get; set; }
|
||||
|
||||
[JsonProperty("playlistType")]
|
||||
public string? PlaylistType { get; set; }
|
||||
|
||||
[JsonProperty("composite")]
|
||||
public string? Composite { get; set; }
|
||||
|
||||
[JsonProperty("icon")]
|
||||
public string? Icon { get; set; }
|
||||
|
||||
[JsonProperty("viewCount")]
|
||||
public int? ViewCount { get; set; }
|
||||
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// returns global hubs
|
||||
/// </summary>
|
||||
public GetGlobalHubsResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetGlobalHubsResponseBody? Object { get; set; }
|
||||
public GetGlobalHubsHubsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// returns global hubs
|
||||
/// </summary>
|
||||
public class GetGlobalHubsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetGlobalHubsErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetGlobalHubsMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 class GetLatestLibraryItemsRequest
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// the Id of the library to query
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId")]
|
||||
public double SectionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// item type
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||
public double Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// the filter parameter
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter")]
|
||||
public string? Filter { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Net.Http;
|
||||
using System;
|
||||
|
||||
public class GetLatestLibraryItemsResponse
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// HTTP response content type for this operation
|
||||
/// </summary>
|
||||
public string? ContentType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// HTTP response status code for this operation
|
||||
/// </summary>
|
||||
public int StatusCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Raw HTTP response; suitable for custom response parsing
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetLatestLibraryItemsResponseBody? Object { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,10 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class ResponseBody
|
||||
public class GetLibraryHubsCountry
|
||||
{
|
||||
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetAvailableClientsMediaContainer? MediaContainer { get; set; }
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryHubsDirector.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryHubsDirector.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryHubsDirector
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryHubsGenre.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryHubsGenre.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryHubsGenre
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
55
PlexAPI/Models/Requests/GetLibraryHubsHub.cs
Normal file
55
PlexAPI/Models/Requests/GetLibraryHubsHub.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetLibraryHubsHub
|
||||
{
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("hubIdentifier")]
|
||||
public string? HubIdentifier { get; set; }
|
||||
|
||||
[JsonProperty("context")]
|
||||
public string? Context { get; set; }
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("more")]
|
||||
public bool? More { get; set; }
|
||||
|
||||
[JsonProperty("style")]
|
||||
public string? Style { get; set; }
|
||||
|
||||
[JsonProperty("hubKey")]
|
||||
public string? HubKey { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetLibraryHubsMetadata>? Metadata { get; set; }
|
||||
|
||||
[JsonProperty("promoted")]
|
||||
public bool? Promoted { get; set; }
|
||||
|
||||
[JsonProperty("random")]
|
||||
public bool? Random { get; set; }
|
||||
}
|
||||
}
|
||||
25
PlexAPI/Models/Requests/GetLibraryHubsHubsResponseBody.cs
Normal file
25
PlexAPI/Models/Requests/GetLibraryHubsHubsResponseBody.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibraryHubsHubsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryHubsErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
70
PlexAPI/Models/Requests/GetLibraryHubsMedia.cs
Normal file
70
PlexAPI/Models/Requests/GetLibraryHubsMedia.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetLibraryHubsMedia
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public int? Width { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public int? Height { get; set; }
|
||||
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioChannels")]
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("audioCodec")]
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoResolution")]
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("videoFrameRate")]
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public int? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("Part")]
|
||||
public List<GetLibraryHubsPart>? Part { get; set; }
|
||||
}
|
||||
}
|
||||
40
PlexAPI/Models/Requests/GetLibraryHubsMediaContainer.cs
Normal file
40
PlexAPI/Models/Requests/GetLibraryHubsMediaContainer.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetLibraryHubsMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("allowSync")]
|
||||
public bool? AllowSync { get; set; }
|
||||
|
||||
[JsonProperty("identifier")]
|
||||
public string? Identifier { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public int? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionUUID")]
|
||||
public string? LibrarySectionUUID { get; set; }
|
||||
|
||||
[JsonProperty("Hub")]
|
||||
public List<GetLibraryHubsHub>? Hub { get; set; }
|
||||
}
|
||||
}
|
||||
122
PlexAPI/Models/Requests/GetLibraryHubsMetadata.cs
Normal file
122
PlexAPI/Models/Requests/GetLibraryHubsMetadata.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 NodaTime;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetLibraryHubsMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("studio")]
|
||||
public string? Studio { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public int? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
[JsonProperty("contentRating")]
|
||||
public string? ContentRating { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("rating")]
|
||||
public double? Rating { get; set; }
|
||||
|
||||
[JsonProperty("audienceRating")]
|
||||
public double? AudienceRating { get; set; }
|
||||
|
||||
[JsonProperty("viewCount")]
|
||||
public int? ViewCount { get; set; }
|
||||
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
[JsonProperty("year")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[JsonProperty("tagline")]
|
||||
public string? Tagline { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty("audienceRatingImage")]
|
||||
public string? AudienceRatingImage { get; set; }
|
||||
|
||||
[JsonProperty("primaryExtraKey")]
|
||||
public string? PrimaryExtraKey { get; set; }
|
||||
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
|
||||
[JsonProperty("Media")]
|
||||
public List<GetLibraryHubsMedia>? Media { get; set; }
|
||||
|
||||
[JsonProperty("Genre")]
|
||||
public List<GetLibraryHubsGenre>? Genre { get; set; }
|
||||
|
||||
[JsonProperty("Country")]
|
||||
public List<GetLibraryHubsCountry>? Country { get; set; }
|
||||
|
||||
[JsonProperty("Director")]
|
||||
public List<GetLibraryHubsDirector>? Director { get; set; }
|
||||
|
||||
[JsonProperty("Role")]
|
||||
public List<GetLibraryHubsRole>? Role { get; set; }
|
||||
|
||||
[JsonProperty("Writer")]
|
||||
public List<GetLibraryHubsWriter>? Writer { get; set; }
|
||||
|
||||
[JsonProperty("skipCount")]
|
||||
public int? SkipCount { get; set; }
|
||||
|
||||
[JsonProperty("chapterSource")]
|
||||
public string? ChapterSource { get; set; }
|
||||
}
|
||||
}
|
||||
48
PlexAPI/Models/Requests/GetLibraryHubsPart.cs
Normal file
48
PlexAPI/Models/Requests/GetLibraryHubsPart.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryHubsPart
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("file")]
|
||||
public string? File { get; set; }
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The hubs specific to the library
|
||||
/// </summary>
|
||||
public GetLibraryHubsResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetLibraryHubsResponseBody? Object { get; set; }
|
||||
public GetLibraryHubsHubsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// The hubs specific to the library
|
||||
/// </summary>
|
||||
public class GetLibraryHubsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryHubsErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetLibraryHubsMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryHubsRole.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryHubsRole.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryHubsRole
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryHubsWriter.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryHubsWriter.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryHubsWriter
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryItemsCountry.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryItemsCountry.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryItemsCountry
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryItemsDirector.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryItemsDirector.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryItemsDirector
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryItemsGenre.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryItemsGenre.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryItemsGenre
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
61
PlexAPI/Models/Requests/GetLibraryItemsMedia.cs
Normal file
61
PlexAPI/Models/Requests/GetLibraryItemsMedia.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetLibraryItemsMedia
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public int? Width { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public int? Height { get; set; }
|
||||
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioChannels")]
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("audioCodec")]
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoResolution")]
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("videoFrameRate")]
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("Part")]
|
||||
public List<GetLibraryItemsPart>? Part { get; set; }
|
||||
}
|
||||
}
|
||||
64
PlexAPI/Models/Requests/GetLibraryItemsMediaContainer.cs
Normal file
64
PlexAPI/Models/Requests/GetLibraryItemsMediaContainer.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetLibraryItemsMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("allowSync")]
|
||||
public bool? AllowSync { get; set; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("identifier")]
|
||||
public string? Identifier { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public int? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionUUID")]
|
||||
public string? LibrarySectionUUID { get; set; }
|
||||
|
||||
[JsonProperty("mediaTagPrefix")]
|
||||
public string? MediaTagPrefix { get; set; }
|
||||
|
||||
[JsonProperty("mediaTagVersion")]
|
||||
public int? MediaTagVersion { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("title1")]
|
||||
public string? Title1 { get; set; }
|
||||
|
||||
[JsonProperty("title2")]
|
||||
public string? Title2 { get; set; }
|
||||
|
||||
[JsonProperty("viewGroup")]
|
||||
public string? ViewGroup { get; set; }
|
||||
|
||||
[JsonProperty("viewMode")]
|
||||
public int? ViewMode { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetLibraryItemsMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
122
PlexAPI/Models/Requests/GetLibraryItemsMetadata.cs
Normal file
122
PlexAPI/Models/Requests/GetLibraryItemsMetadata.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 NodaTime;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetLibraryItemsMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("studio")]
|
||||
public string? Studio { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("contentRating")]
|
||||
public string? ContentRating { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("rating")]
|
||||
public double? Rating { get; set; }
|
||||
|
||||
[JsonProperty("audienceRating")]
|
||||
public double? AudienceRating { get; set; }
|
||||
|
||||
[JsonProperty("year")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[JsonProperty("tagline")]
|
||||
public string? Tagline { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty("audienceRatingImage")]
|
||||
public string? AudienceRatingImage { get; set; }
|
||||
|
||||
[JsonProperty("chapterSource")]
|
||||
public string? ChapterSource { get; set; }
|
||||
|
||||
[JsonProperty("primaryExtraKey")]
|
||||
public string? PrimaryExtraKey { get; set; }
|
||||
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
|
||||
[JsonProperty("Media")]
|
||||
public List<GetLibraryItemsMedia>? Media { get; set; }
|
||||
|
||||
[JsonProperty("Genre")]
|
||||
public List<GetLibraryItemsGenre>? Genre { get; set; }
|
||||
|
||||
[JsonProperty("Country")]
|
||||
public List<GetLibraryItemsCountry>? Country { get; set; }
|
||||
|
||||
[JsonProperty("Director")]
|
||||
public List<GetLibraryItemsDirector>? Director { get; set; }
|
||||
|
||||
[JsonProperty("Writer")]
|
||||
public List<GetLibraryItemsWriter>? Writer { get; set; }
|
||||
|
||||
[JsonProperty("Role")]
|
||||
public List<GetLibraryItemsRole>? Role { get; set; }
|
||||
|
||||
[JsonProperty("titleSort")]
|
||||
public string? TitleSort { get; set; }
|
||||
|
||||
[JsonProperty("viewCount")]
|
||||
public int? ViewCount { get; set; }
|
||||
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
[JsonProperty("originalTitle")]
|
||||
public string? OriginalTitle { get; set; }
|
||||
|
||||
[JsonProperty("viewOffset")]
|
||||
public int? ViewOffset { get; set; }
|
||||
|
||||
[JsonProperty("skipCount")]
|
||||
public int? SkipCount { get; set; }
|
||||
}
|
||||
}
|
||||
39
PlexAPI/Models/Requests/GetLibraryItemsPart.cs
Normal file
39
PlexAPI/Models/Requests/GetLibraryItemsPart.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryItemsPart
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("file")]
|
||||
public string? File { get; set; }
|
||||
|
||||
[JsonProperty("size")]
|
||||
public long? Size { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -19,18 +19,12 @@ namespace PlexAPI.Models.Requests
|
||||
/// the Id of the library to query
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sectionId")]
|
||||
public double SectionId { get; set; } = default!;
|
||||
public long SectionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// item type
|
||||
/// A key representing a specific tag within the section.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=type")]
|
||||
public double? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// the filter parameter
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter")]
|
||||
public string? Filter { get; set; }
|
||||
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=tag")]
|
||||
public Tag Tag { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ namespace PlexAPI.Models.Requests
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// The contents of the library by section and tag
|
||||
/// </summary>
|
||||
public GetLibraryItemsResponseBody? Object { get; set; }
|
||||
}
|
||||
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// The contents of the library by section and tag
|
||||
/// </summary>
|
||||
public class GetLibraryItemsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryItemsErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetLibraryItemsMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryItemsRole.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryItemsRole.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryItemsRole
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetLibraryItemsWriter.cs
Normal file
21
PlexAPI/Models/Requests/GetLibraryItemsWriter.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetLibraryItemsWriter
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
33
PlexAPI/Models/Requests/GetMetadataChildrenDirectory.cs
Normal file
33
PlexAPI/Models/Requests/GetMetadataChildrenDirectory.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetMetadataChildrenDirectory
|
||||
{
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("viewedLeafCount")]
|
||||
public int? ViewedLeafCount { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenLibraryResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMetadataChildrenErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
88
PlexAPI/Models/Requests/GetMetadataChildrenMediaContainer.cs
Normal file
88
PlexAPI/Models/Requests/GetMetadataChildrenMediaContainer.cs
Normal file
@@ -0,0 +1,88 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetMetadataChildrenMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("allowSync")]
|
||||
public bool? AllowSync { get; set; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("identifier")]
|
||||
public string? Identifier { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public int? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionUUID")]
|
||||
public string? LibrarySectionUUID { get; set; }
|
||||
|
||||
[JsonProperty("mediaTagPrefix")]
|
||||
public string? MediaTagPrefix { get; set; }
|
||||
|
||||
[JsonProperty("mediaTagVersion")]
|
||||
public int? MediaTagVersion { get; set; }
|
||||
|
||||
[JsonProperty("nocache")]
|
||||
public bool? Nocache { get; set; }
|
||||
|
||||
[JsonProperty("parentIndex")]
|
||||
public int? ParentIndex { get; set; }
|
||||
|
||||
[JsonProperty("parentTitle")]
|
||||
public string? ParentTitle { get; set; }
|
||||
|
||||
[JsonProperty("parentYear")]
|
||||
public int? ParentYear { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("theme")]
|
||||
public string? Theme { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("title1")]
|
||||
public string? Title1 { get; set; }
|
||||
|
||||
[JsonProperty("title2")]
|
||||
public string? Title2 { get; set; }
|
||||
|
||||
[JsonProperty("viewGroup")]
|
||||
public string? ViewGroup { get; set; }
|
||||
|
||||
[JsonProperty("viewMode")]
|
||||
public int? ViewMode { get; set; }
|
||||
|
||||
[JsonProperty("Directory")]
|
||||
public List<GetMetadataChildrenDirectory>? Directory { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetMetadataChildrenMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
99
PlexAPI/Models/Requests/GetMetadataChildrenMetadata.cs
Normal file
99
PlexAPI/Models/Requests/GetMetadataChildrenMetadata.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetMetadataChildrenMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("parentRatingKey")]
|
||||
public string? ParentRatingKey { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("parentGuid")]
|
||||
public string? ParentGuid { get; set; }
|
||||
|
||||
[JsonProperty("parentStudio")]
|
||||
public string? ParentStudio { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("parentKey")]
|
||||
public string? ParentKey { get; set; }
|
||||
|
||||
[JsonProperty("parentTitle")]
|
||||
public string? ParentTitle { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("index")]
|
||||
public int? Index { get; set; }
|
||||
|
||||
[JsonProperty("parentIndex")]
|
||||
public int? ParentIndex { get; set; }
|
||||
|
||||
[JsonProperty("viewCount")]
|
||||
public int? ViewCount { get; set; }
|
||||
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
[JsonProperty("parentYear")]
|
||||
public int? ParentYear { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("parentThumb")]
|
||||
public string? ParentThumb { get; set; }
|
||||
|
||||
[JsonProperty("parentTheme")]
|
||||
public string? ParentTheme { get; set; }
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("viewedLeafCount")]
|
||||
public int? ViewedLeafCount { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty("userRating")]
|
||||
public int? UserRating { get; set; }
|
||||
|
||||
[JsonProperty("skipCount")]
|
||||
public int? SkipCount { get; set; }
|
||||
|
||||
[JsonProperty("lastRatedAt")]
|
||||
public int? LastRatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The children of the library item.
|
||||
/// </summary>
|
||||
public GetMetadataChildrenResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetMetadataChildrenResponseBody? Object { get; set; }
|
||||
public GetMetadataChildrenLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// The children of the library item.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMetadataChildrenErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetMetadataChildrenMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,16 +12,16 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetLibraryItemsErrors
|
||||
public class GetMetadataCountry
|
||||
{
|
||||
|
||||
[JsonProperty("code")]
|
||||
public double? Code { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string? Message { get; set; }
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public double? Status { get; set; }
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
33
PlexAPI/Models/Requests/GetMetadataDirector.cs
Normal file
33
PlexAPI/Models/Requests/GetMetadataDirector.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetMetadataDirector
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
|
||||
[JsonProperty("tagKey")]
|
||||
public string? TagKey { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,16 +12,16 @@ namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetCommonLibraryItemsErrors
|
||||
public class GetMetadataGenre
|
||||
{
|
||||
|
||||
[JsonProperty("code")]
|
||||
public double? Code { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string? Message { get; set; }
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public double? Status { get; set; }
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
25
PlexAPI/Models/Requests/GetMetadataLibraryResponseBody.cs
Normal file
25
PlexAPI/Models/Requests/GetMetadataLibraryResponseBody.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMetadataLibraryResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMetadataErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
70
PlexAPI/Models/Requests/GetMetadataMedia.cs
Normal file
70
PlexAPI/Models/Requests/GetMetadataMedia.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetMetadataMedia
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public int? Width { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public int? Height { get; set; }
|
||||
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioChannels")]
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("audioCodec")]
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoResolution")]
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("videoFrameRate")]
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public int? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("Part")]
|
||||
public List<GetMetadataPart>? Part { get; set; }
|
||||
}
|
||||
}
|
||||
46
PlexAPI/Models/Requests/GetMetadataMediaContainer.cs
Normal file
46
PlexAPI/Models/Requests/GetMetadataMediaContainer.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetMetadataMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("allowSync")]
|
||||
public bool? AllowSync { get; set; }
|
||||
|
||||
[JsonProperty("identifier")]
|
||||
public string? Identifier { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public int? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionUUID")]
|
||||
public string? LibrarySectionUUID { get; set; }
|
||||
|
||||
[JsonProperty("mediaTagPrefix")]
|
||||
public string? MediaTagPrefix { get; set; }
|
||||
|
||||
[JsonProperty("mediaTagVersion")]
|
||||
public int? MediaTagVersion { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetMetadataMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
119
PlexAPI/Models/Requests/GetMetadataMetadata.cs
Normal file
119
PlexAPI/Models/Requests/GetMetadataMetadata.cs
Normal file
@@ -0,0 +1,119 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 NodaTime;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetMetadataMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("studio")]
|
||||
public string? Studio { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public int? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
[JsonProperty("contentRating")]
|
||||
public string? ContentRating { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("rating")]
|
||||
public double? Rating { get; set; }
|
||||
|
||||
[JsonProperty("audienceRating")]
|
||||
public double? AudienceRating { get; set; }
|
||||
|
||||
[JsonProperty("year")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[JsonProperty("tagline")]
|
||||
public string? Tagline { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty("audienceRatingImage")]
|
||||
public string? AudienceRatingImage { get; set; }
|
||||
|
||||
[JsonProperty("hasPremiumPrimaryExtra")]
|
||||
public string? HasPremiumPrimaryExtra { get; set; }
|
||||
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
|
||||
[JsonProperty("Media")]
|
||||
public List<GetMetadataMedia>? Media { get; set; }
|
||||
|
||||
[JsonProperty("Genre")]
|
||||
public List<GetMetadataGenre>? Genre { get; set; }
|
||||
|
||||
[JsonProperty("Country")]
|
||||
public List<GetMetadataCountry>? Country { get; set; }
|
||||
|
||||
[JsonProperty("Guid")]
|
||||
public List<Guids>? Guids { get; set; }
|
||||
|
||||
[JsonProperty("Rating")]
|
||||
public List<Ratings>? Ratings { get; set; }
|
||||
|
||||
[JsonProperty("Director")]
|
||||
public List<GetMetadataDirector>? Director { get; set; }
|
||||
|
||||
[JsonProperty("Writer")]
|
||||
public List<GetMetadataWriter>? Writer { get; set; }
|
||||
|
||||
[JsonProperty("Role")]
|
||||
public List<GetMetadataRole>? Role { get; set; }
|
||||
|
||||
[JsonProperty("Producer")]
|
||||
public List<Producer>? Producer { get; set; }
|
||||
}
|
||||
}
|
||||
52
PlexAPI/Models/Requests/GetMetadataPart.cs
Normal file
52
PlexAPI/Models/Requests/GetMetadataPart.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetMetadataPart
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("file")]
|
||||
public string? File { get; set; }
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("Stream")]
|
||||
public List<Stream>? Stream { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The metadata of the library item.
|
||||
/// </summary>
|
||||
public GetMetadataResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetMetadataResponseBody? Object { get; set; }
|
||||
public GetMetadataLibraryResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// The metadata of the library item.
|
||||
/// </summary>
|
||||
public class GetMetadataResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMetadataErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetMetadataMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
36
PlexAPI/Models/Requests/GetMetadataRole.cs
Normal file
36
PlexAPI/Models/Requests/GetMetadataRole.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetMetadataRole
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
|
||||
[JsonProperty("tagKey")]
|
||||
public string? TagKey { get; set; }
|
||||
|
||||
[JsonProperty("role")]
|
||||
public string? Role { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
33
PlexAPI/Models/Requests/GetMetadataWriter.cs
Normal file
33
PlexAPI/Models/Requests/GetMetadataWriter.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetMetadataWriter
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("filter")]
|
||||
public string? Filter { get; set; }
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
|
||||
[JsonProperty("tagKey")]
|
||||
public string? TagKey { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetOnDeckGuids.cs
Normal file
21
PlexAPI/Models/Requests/GetOnDeckGuids.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetOnDeckGuids
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public string? Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -123,6 +123,6 @@ namespace PlexAPI.Models.Requests
|
||||
public List<GetOnDeckMedia>? Media { get; set; }
|
||||
|
||||
[JsonProperty("Guid")]
|
||||
public List<Guids>? Guids { get; set; }
|
||||
public List<GetOnDeckGuids>? Guids { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,6 @@ namespace PlexAPI.Models.Requests
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("Stream")]
|
||||
public List<Stream>? Stream { get; set; }
|
||||
public List<GetOnDeckStream>? Stream { get; set; }
|
||||
}
|
||||
}
|
||||
87
PlexAPI/Models/Requests/GetOnDeckStream.cs
Normal file
87
PlexAPI/Models/Requests/GetOnDeckStream.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetOnDeckStream
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public double? Id { get; set; }
|
||||
|
||||
[JsonProperty("streamType")]
|
||||
public double? StreamType { get; set; }
|
||||
|
||||
[JsonProperty("default")]
|
||||
public bool? Default { get; set; }
|
||||
|
||||
[JsonProperty("codec")]
|
||||
public string? Codec { get; set; }
|
||||
|
||||
[JsonProperty("index")]
|
||||
public double? Index { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public double? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("language")]
|
||||
public string? Language { get; set; }
|
||||
|
||||
[JsonProperty("languageTag")]
|
||||
public string? LanguageTag { get; set; }
|
||||
|
||||
[JsonProperty("languageCode")]
|
||||
public string? LanguageCode { get; set; }
|
||||
|
||||
[JsonProperty("bitDepth")]
|
||||
public double? BitDepth { get; set; }
|
||||
|
||||
[JsonProperty("chromaLocation")]
|
||||
public string? ChromaLocation { get; set; }
|
||||
|
||||
[JsonProperty("chromaSubsampling")]
|
||||
public string? ChromaSubsampling { get; set; }
|
||||
|
||||
[JsonProperty("codedHeight")]
|
||||
public double? CodedHeight { get; set; }
|
||||
|
||||
[JsonProperty("codedWidth")]
|
||||
public double? CodedWidth { get; set; }
|
||||
|
||||
[JsonProperty("colorRange")]
|
||||
public string? ColorRange { get; set; }
|
||||
|
||||
[JsonProperty("frameRate")]
|
||||
public double? FrameRate { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public double? Height { get; set; }
|
||||
|
||||
[JsonProperty("level")]
|
||||
public double? Level { get; set; }
|
||||
|
||||
[JsonProperty("profile")]
|
||||
public string? Profile { get; set; }
|
||||
|
||||
[JsonProperty("refFrames")]
|
||||
public double? RefFrames { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public double? Width { get; set; }
|
||||
|
||||
[JsonProperty("displayTitle")]
|
||||
public string? DisplayTitle { get; set; }
|
||||
|
||||
[JsonProperty("extendedDisplayTitle")]
|
||||
public string? ExtendedDisplayTitle { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetPlaylistContentsCountry.cs
Normal file
21
PlexAPI/Models/Requests/GetPlaylistContentsCountry.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistContentsCountry
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetPlaylistContentsDirector.cs
Normal file
21
PlexAPI/Models/Requests/GetPlaylistContentsDirector.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistContentsDirector
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetPlaylistContentsGenre.cs
Normal file
21
PlexAPI/Models/Requests/GetPlaylistContentsGenre.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistContentsGenre
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
70
PlexAPI/Models/Requests/GetPlaylistContentsMedia.cs
Normal file
70
PlexAPI/Models/Requests/GetPlaylistContentsMedia.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetPlaylistContentsMedia
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("bitrate")]
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
[JsonProperty("width")]
|
||||
public int? Width { get; set; }
|
||||
|
||||
[JsonProperty("height")]
|
||||
public int? Height { get; set; }
|
||||
|
||||
[JsonProperty("aspectRatio")]
|
||||
public double? AspectRatio { get; set; }
|
||||
|
||||
[JsonProperty("audioChannels")]
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
[JsonProperty("audioCodec")]
|
||||
public string? AudioCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[JsonProperty("videoResolution")]
|
||||
public string? VideoResolution { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("videoFrameRate")]
|
||||
public string? VideoFrameRate { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public int? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
|
||||
[JsonProperty("Part")]
|
||||
public List<GetPlaylistContentsPart>? Part { get; set; }
|
||||
}
|
||||
}
|
||||
46
PlexAPI/Models/Requests/GetPlaylistContentsMediaContainer.cs
Normal file
46
PlexAPI/Models/Requests/GetPlaylistContentsMediaContainer.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetPlaylistContentsMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("composite")]
|
||||
public string? Composite { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("playlistType")]
|
||||
public string? PlaylistType { get; set; }
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("smart")]
|
||||
public bool? Smart { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetPlaylistContentsMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
116
PlexAPI/Models/Requests/GetPlaylistContentsMetadata.cs
Normal file
116
PlexAPI/Models/Requests/GetPlaylistContentsMetadata.cs
Normal file
@@ -0,0 +1,116 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 NodaTime;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class GetPlaylistContentsMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("studio")]
|
||||
public string? Studio { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("titleSort")]
|
||||
public string? TitleSort { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionTitle")]
|
||||
public string? LibrarySectionTitle { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public int? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionKey")]
|
||||
public string? LibrarySectionKey { get; set; }
|
||||
|
||||
[JsonProperty("contentRating")]
|
||||
public string? ContentRating { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("rating")]
|
||||
public double? Rating { get; set; }
|
||||
|
||||
[JsonProperty("audienceRating")]
|
||||
public double? AudienceRating { get; set; }
|
||||
|
||||
[JsonProperty("year")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[JsonProperty("tagline")]
|
||||
public string? Tagline { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("art")]
|
||||
public string? Art { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
|
||||
[JsonProperty("audienceRatingImage")]
|
||||
public string? AudienceRatingImage { get; set; }
|
||||
|
||||
[JsonProperty("hasPremiumExtras")]
|
||||
public string? HasPremiumExtras { get; set; }
|
||||
|
||||
[JsonProperty("hasPremiumPrimaryExtra")]
|
||||
public string? HasPremiumPrimaryExtra { get; set; }
|
||||
|
||||
[JsonProperty("ratingImage")]
|
||||
public string? RatingImage { get; set; }
|
||||
|
||||
[JsonProperty("Media")]
|
||||
public List<GetPlaylistContentsMedia>? Media { get; set; }
|
||||
|
||||
[JsonProperty("Genre")]
|
||||
public List<GetPlaylistContentsGenre>? Genre { get; set; }
|
||||
|
||||
[JsonProperty("Country")]
|
||||
public List<GetPlaylistContentsCountry>? Country { get; set; }
|
||||
|
||||
[JsonProperty("Director")]
|
||||
public List<GetPlaylistContentsDirector>? Director { get; set; }
|
||||
|
||||
[JsonProperty("Writer")]
|
||||
public List<GetPlaylistContentsWriter>? Writer { get; set; }
|
||||
|
||||
[JsonProperty("Role")]
|
||||
public List<GetPlaylistContentsRole>? Role { get; set; }
|
||||
}
|
||||
}
|
||||
48
PlexAPI/Models/Requests/GetPlaylistContentsPart.cs
Normal file
48
PlexAPI/Models/Requests/GetPlaylistContentsPart.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistContentsPart
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("file")]
|
||||
public string? File { get; set; }
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("audioProfile")]
|
||||
public string? AudioProfile { get; set; }
|
||||
|
||||
[JsonProperty("container")]
|
||||
public string? Container { get; set; }
|
||||
|
||||
[JsonProperty("has64bitOffsets")]
|
||||
public bool? Has64bitOffsets { get; set; }
|
||||
|
||||
[JsonProperty("optimizedForStreaming")]
|
||||
public bool? OptimizedForStreaming { get; set; }
|
||||
|
||||
[JsonProperty("videoProfile")]
|
||||
public string? VideoProfile { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistContentsPlaylistsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistContentsErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The playlist contents
|
||||
/// </summary>
|
||||
public GetPlaylistContentsResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetPlaylistContentsResponseBody? Object { get; set; }
|
||||
public GetPlaylistContentsPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// The playlist contents
|
||||
/// </summary>
|
||||
public class GetPlaylistContentsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistContentsErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetPlaylistContentsMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetPlaylistContentsRole.cs
Normal file
21
PlexAPI/Models/Requests/GetPlaylistContentsRole.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistContentsRole
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
21
PlexAPI/Models/Requests/GetPlaylistContentsWriter.cs
Normal file
21
PlexAPI/Models/Requests/GetPlaylistContentsWriter.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistContentsWriter
|
||||
{
|
||||
|
||||
[JsonProperty("tag")]
|
||||
public string? Tag { get; set; }
|
||||
}
|
||||
}
|
||||
25
PlexAPI/Models/Requests/GetPlaylistMediaContainer.cs
Normal file
25
PlexAPI/Models/Requests/GetPlaylistMediaContainer.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetPlaylistMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetPlaylistMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
63
PlexAPI/Models/Requests/GetPlaylistMetadata.cs
Normal file
63
PlexAPI/Models/Requests/GetPlaylistMetadata.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("content")]
|
||||
public string? Content { get; set; }
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("smart")]
|
||||
public bool? Smart { get; set; }
|
||||
|
||||
[JsonProperty("playlistType")]
|
||||
public string? PlaylistType { get; set; }
|
||||
|
||||
[JsonProperty("composite")]
|
||||
public string? Composite { get; set; }
|
||||
|
||||
[JsonProperty("icon")]
|
||||
public string? Icon { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
25
PlexAPI/Models/Requests/GetPlaylistPlaylistsResponseBody.cs
Normal file
25
PlexAPI/Models/Requests/GetPlaylistPlaylistsResponseBody.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistPlaylistsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The playlist
|
||||
/// </summary>
|
||||
public GetPlaylistResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetPlaylistResponseBody? Object { get; set; }
|
||||
public GetPlaylistPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// The playlist
|
||||
/// </summary>
|
||||
public class GetPlaylistResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetPlaylistMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
25
PlexAPI/Models/Requests/GetPlaylistsMediaContainer.cs
Normal file
25
PlexAPI/Models/Requests/GetPlaylistsMediaContainer.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetPlaylistsMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetPlaylistsMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
66
PlexAPI/Models/Requests/GetPlaylistsMetadata.cs
Normal file
66
PlexAPI/Models/Requests/GetPlaylistsMetadata.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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;
|
||||
|
||||
public class GetPlaylistsMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("guid")]
|
||||
public string? Guid { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("summary")]
|
||||
public string? Summary { get; set; }
|
||||
|
||||
[JsonProperty("smart")]
|
||||
public bool? Smart { get; set; }
|
||||
|
||||
[JsonProperty("playlistType")]
|
||||
public string? PlaylistType { get; set; }
|
||||
|
||||
[JsonProperty("composite")]
|
||||
public string? Composite { get; set; }
|
||||
|
||||
[JsonProperty("icon")]
|
||||
public string? Icon { get; set; }
|
||||
|
||||
[JsonProperty("viewCount")]
|
||||
public int? ViewCount { get; set; }
|
||||
|
||||
[JsonProperty("lastViewedAt")]
|
||||
public int? LastViewedAt { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[JsonProperty("leafCount")]
|
||||
public int? LeafCount { get; set; }
|
||||
|
||||
[JsonProperty("addedAt")]
|
||||
public int? AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("updatedAt")]
|
||||
public int? UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
25
PlexAPI/Models/Requests/GetPlaylistsPlaylistsResponseBody.cs
Normal file
25
PlexAPI/Models/Requests/GetPlaylistsPlaylistsResponseBody.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistsPlaylistsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistsErrors>? Errors { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// returns all playlists
|
||||
/// </summary>
|
||||
public GetPlaylistsResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetPlaylistsResponseBody? Object { get; set; }
|
||||
public GetPlaylistsPlaylistsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// returns all playlists
|
||||
/// </summary>
|
||||
public class GetPlaylistsResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistsErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetPlaylistsMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ namespace PlexAPI.Models.Requests
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The Transcode Sessions
|
||||
/// The Server Identity information
|
||||
/// </summary>
|
||||
public GetServerIdentityResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace PlexAPI.Models.Requests
|
||||
using Newtonsoft.Json;
|
||||
|
||||
/// <summary>
|
||||
/// The Transcode Sessions
|
||||
/// The Server Identity information
|
||||
/// </summary>
|
||||
public class GetServerIdentityResponseBody
|
||||
{
|
||||
|
||||
25
PlexAPI/Models/Requests/GetSessionHistoryMediaContainer.cs
Normal file
25
PlexAPI/Models/Requests/GetSessionHistoryMediaContainer.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 System.Collections.Generic;
|
||||
|
||||
public class GetSessionHistoryMediaContainer
|
||||
{
|
||||
|
||||
[JsonProperty("size")]
|
||||
public int? Size { get; set; }
|
||||
|
||||
[JsonProperty("Metadata")]
|
||||
public List<GetSessionHistoryMetadata>? Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
76
PlexAPI/Models/Requests/GetSessionHistoryMetadata.cs
Normal file
76
PlexAPI/Models/Requests/GetSessionHistoryMetadata.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasyapi.dev). 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 NodaTime;
|
||||
|
||||
public class GetSessionHistoryMetadata
|
||||
{
|
||||
|
||||
[JsonProperty("historyKey")]
|
||||
public string? HistoryKey { get; set; }
|
||||
|
||||
[JsonProperty("key")]
|
||||
public string? Key { get; set; }
|
||||
|
||||
[JsonProperty("ratingKey")]
|
||||
public string? RatingKey { get; set; }
|
||||
|
||||
[JsonProperty("librarySectionID")]
|
||||
public string? LibrarySectionID { get; set; }
|
||||
|
||||
[JsonProperty("parentKey")]
|
||||
public string? ParentKey { get; set; }
|
||||
|
||||
[JsonProperty("grandparentKey")]
|
||||
public string? GrandparentKey { get; set; }
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonProperty("grandparentTitle")]
|
||||
public string? GrandparentTitle { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[JsonProperty("thumb")]
|
||||
public string? Thumb { get; set; }
|
||||
|
||||
[JsonProperty("parentThumb")]
|
||||
public string? ParentThumb { get; set; }
|
||||
|
||||
[JsonProperty("grandparentThumb")]
|
||||
public string? GrandparentThumb { get; set; }
|
||||
|
||||
[JsonProperty("grandparentArt")]
|
||||
public string? GrandparentArt { get; set; }
|
||||
|
||||
[JsonProperty("index")]
|
||||
public int? Index { get; set; }
|
||||
|
||||
[JsonProperty("parentIndex")]
|
||||
public int? ParentIndex { get; set; }
|
||||
|
||||
[JsonProperty("originallyAvailableAt")]
|
||||
public LocalDate? OriginallyAvailableAt { get; set; }
|
||||
|
||||
[JsonProperty("viewedAt")]
|
||||
public int? ViewedAt { get; set; }
|
||||
|
||||
[JsonProperty("accountID")]
|
||||
public int? AccountID { get; set; }
|
||||
|
||||
[JsonProperty("deviceID")]
|
||||
public int? DeviceID { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,14 @@ namespace PlexAPI.Models.Requests
|
||||
/// </summary>
|
||||
public HttpResponseMessage RawResponse { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// List of Plex Sessions
|
||||
/// </summary>
|
||||
public GetSessionHistoryResponseBody? TwoHundredApplicationJsonObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public GetSessionHistoryResponseBody? Object { get; set; }
|
||||
public GetSessionHistorySessionsResponseBody? FourHundredAndOneApplicationJsonObject { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,15 +11,14 @@
|
||||
namespace PlexAPI.Models.Requests
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// List of Plex Sessions
|
||||
/// </summary>
|
||||
public class GetSessionHistoryResponseBody
|
||||
{
|
||||
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSessionHistoryErrors>? Errors { get; set; }
|
||||
[JsonProperty("MediaContainer")]
|
||||
public GetSessionHistoryMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user