mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.484.1
This commit is contained in:
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllLibraries.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllLibraries.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user has access to all libraries.
|
||||
/// </summary>
|
||||
public enum AllLibraries
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowCameraUpload.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowCameraUpload.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user is allowed to upload from a camera.
|
||||
/// </summary>
|
||||
public enum AllowCameraUpload
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowChannels.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowChannels.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user has access to channels.
|
||||
/// </summary>
|
||||
public enum AllowChannels
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSubtitleAdmin.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSubtitleAdmin.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user can manage subtitles.
|
||||
/// </summary>
|
||||
public enum AllowSubtitleAdmin
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSync.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowSync.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user is allowed to sync media.
|
||||
/// </summary>
|
||||
public enum AllowSync
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowTuners.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/AllowTuners.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user is allowed to use tuners.
|
||||
/// </summary>
|
||||
public enum AllowTuners
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -112,6 +112,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
public List<GetTopWatchedContentRole>? Role { get; set; }
|
||||
|
||||
[JsonProperty("User")]
|
||||
public List<User>? User { get; set; }
|
||||
public List<GetTopWatchedContentUser>? User { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class GetTopWatchedContentUser
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Container holding user and server details.
|
||||
/// </summary>
|
||||
public class GetUsersMediaContainer
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The friendly name of the Plex instance.
|
||||
/// </summary>
|
||||
public string FriendlyName { get; set; } = default!;
|
||||
|
||||
public string Identifier { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Unique Machine identifier of the Plex server.
|
||||
/// </summary>
|
||||
public string MachineIdentifier { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Total number of users.
|
||||
/// </summary>
|
||||
public long TotalSize { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Number of users in the current response.
|
||||
/// </summary>
|
||||
public long Size { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// List of users with access to the Plex server.
|
||||
/// </summary>
|
||||
public List<User> User { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
95
LukeHagar/PlexAPI/SDK/Models/Requests/GetUsersRequest.cs
Normal file
95
LukeHagar/PlexAPI/SDK/Models/Requests/GetUsersRequest.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
public class GetUsersRequest
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Client-Identifier")]
|
||||
public string ClientID { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The name of the client application. (Plex Web, Plex Media Server, etc.)
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Product")]
|
||||
public string? ClientName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A relatively friendly name for the client device
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Device")]
|
||||
public string? DeviceNickname { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the device the client application is running on. This is used to track the client application and its usage. (Chrome, Safari, etc.)
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Device-Name")]
|
||||
public string? DeviceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The resolution of the device the client application is running on. This is used to track the client application and its usage. (1487x1165,2560x1440)
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Device-Screen-Resolution")]
|
||||
public string? DeviceScreenResolution { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The version of the client application.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Version")]
|
||||
public string? ClientVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The platform of the client application.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Platform")]
|
||||
public string? Platform { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The features of the client application. This is used to track the client application and its usage. (external-media,indirect-media,hub-style-list)
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Features")]
|
||||
public string? ClientFeatures { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A potentially less friendly identifier for the device model
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Model")]
|
||||
public string? Model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The session ID of the client application. This is used to track the client application and its usage. (97e136ef-4ddd-4ff3-89a7-a5820c96c2ca)
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Session-Id")]
|
||||
public string? XPlexSessionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The language of the client application.
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Language")]
|
||||
public string? XPlexLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The version of the platform
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Platform-Version")]
|
||||
public string? PlatformVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// An authentication token, obtained from plex.tv
|
||||
/// </summary>
|
||||
[SpeakeasyMetadata("header:style=simple,explode=false,name=X-Plex-Token")]
|
||||
public string XPlexToken { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
36
LukeHagar/PlexAPI/SDK/Models/Requests/GetUsersResponse.cs
Normal file
36
LukeHagar/PlexAPI/SDK/Models/Requests/GetUsersResponse.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
|
||||
public class GetUsersResponse
|
||||
{
|
||||
|
||||
/// <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!;
|
||||
|
||||
public byte[]? Body { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Successful response with media container data in XML
|
||||
/// </summary>
|
||||
public class GetUsersResponseBody
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Container holding user and server details.
|
||||
/// </summary>
|
||||
public GetUsersMediaContainer? MediaContainer { get; set; }
|
||||
}
|
||||
}
|
||||
51
LukeHagar/PlexAPI/SDK/Models/Requests/GetUsersServer.cs
Normal file
51
LukeHagar/PlexAPI/SDK/Models/Requests/GetUsersServer.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
public class GetUsersServer
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unique ID of the server of the connected user
|
||||
/// </summary>
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// ID of the actual Plex server.
|
||||
/// </summary>
|
||||
public long ServerId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Machine identifier of the Plex server.
|
||||
/// </summary>
|
||||
public string MachineIdentifier { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Name of the Plex server of the connected user.
|
||||
/// </summary>
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
public long LastSeenAt { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Number of libraries in the server this user has access to.
|
||||
/// </summary>
|
||||
public long NumLibraries { get; set; } = default!;
|
||||
|
||||
public AllLibraries? AllLibraries { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.AllLibraries.Disable;
|
||||
|
||||
public Owned? Owned { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.Owned.Disable;
|
||||
|
||||
public Pending? Pending { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.Pending.Disable;
|
||||
}
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/Home.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/Home.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user is part of a home group.
|
||||
/// </summary>
|
||||
public enum Home
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/Owned.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/Owned.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user owns the server.
|
||||
/// </summary>
|
||||
public enum Owned
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/Pending.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/Pending.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the server is pending approval.
|
||||
/// </summary>
|
||||
public enum Pending
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/Protected.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/Protected.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether the account is protected.
|
||||
/// </summary>
|
||||
public enum Protected
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
23
LukeHagar/PlexAPI/SDK/Models/Requests/Restricted.cs
Normal file
23
LukeHagar/PlexAPI/SDK/Models/Requests/Restricted.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost when
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the user has restricted access.
|
||||
/// </summary>
|
||||
public enum Restricted
|
||||
{
|
||||
Disable = 0,
|
||||
Enable = 1,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,13 +9,87 @@
|
||||
#nullable enable
|
||||
namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
||||
{
|
||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||
using LukeHagar.PlexAPI.SDK.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class User
|
||||
{
|
||||
|
||||
[JsonProperty("id")]
|
||||
public int? Id { get; set; }
|
||||
/// <summary>
|
||||
/// User's unique ID.
|
||||
/// </summary>
|
||||
public long Id { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// User's display name.
|
||||
/// </summary>
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// User's username.
|
||||
/// </summary>
|
||||
public string Username { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// User's email address.
|
||||
/// </summary>
|
||||
public string Email { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// ID of the user's recommendation playlist.
|
||||
/// </summary>
|
||||
public string? RecommendationsPlaylistId { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// URL to the user's avatar image.
|
||||
/// </summary>
|
||||
public string Thumb { get; set; } = default!;
|
||||
|
||||
public Protected? Protected { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.Protected.Disable;
|
||||
|
||||
public Home? Home { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.Home.Disable;
|
||||
|
||||
public AllowTuners? AllowTuners { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.AllowTuners.Disable;
|
||||
|
||||
public AllowSync? AllowSync { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.AllowSync.Disable;
|
||||
|
||||
public AllowCameraUpload? AllowCameraUpload { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.AllowCameraUpload.Disable;
|
||||
|
||||
public AllowChannels? AllowChannels { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.AllowChannels.Disable;
|
||||
|
||||
public AllowSubtitleAdmin? AllowSubtitleAdmin { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.AllowSubtitleAdmin.Disable;
|
||||
|
||||
/// <summary>
|
||||
/// Filters applied for all content.
|
||||
/// </summary>
|
||||
public string? FilterAll { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Filters applied for movies.
|
||||
/// </summary>
|
||||
public string? FilterMovies { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Filters applied for music.
|
||||
/// </summary>
|
||||
public string? FilterMusic { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Filters applied for photos.
|
||||
/// </summary>
|
||||
public string? FilterPhotos { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Filters applied for television.
|
||||
/// </summary>
|
||||
public string? FilterTelevision { get; set; }
|
||||
|
||||
public Restricted? Restricted { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.Restricted.Disable;
|
||||
|
||||
/// <summary>
|
||||
/// List of servers owned by the user.
|
||||
/// </summary>
|
||||
public List<GetUsersServer> Server { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user