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.615.2
This commit is contained in:
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class AddPlaylistContentsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class AddPlaylistContentsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<AddPlaylistContentsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class AddPlaylistContentsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public AddPlaylistContentsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use AddPlaylistContentsBadRequest.Payload.Errors instead.")]
|
||||
public List<AddPlaylistContentsErrors>? Errors { get; set; }
|
||||
|
||||
public AddPlaylistContentsBadRequest(
|
||||
AddPlaylistContentsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class AddPlaylistContentsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class AddPlaylistContentsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<AddPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class AddPlaylistContentsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public AddPlaylistContentsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use AddPlaylistContentsUnauthorized.Payload.Errors instead.")]
|
||||
public List<AddPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public AddPlaylistContentsUnauthorized(
|
||||
AddPlaylistContentsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class ApplyUpdatesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class ApplyUpdatesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<ApplyUpdatesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class ApplyUpdatesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public ApplyUpdatesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ApplyUpdatesBadRequest.Payload.Errors instead.")]
|
||||
public List<ApplyUpdatesErrors>? Errors { get; set; }
|
||||
|
||||
public ApplyUpdatesBadRequest(
|
||||
ApplyUpdatesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class ApplyUpdatesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class ApplyUpdatesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<ApplyUpdatesUpdaterErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class ApplyUpdatesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public ApplyUpdatesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ApplyUpdatesUnauthorized.Payload.Errors instead.")]
|
||||
public List<ApplyUpdatesUpdaterErrors>? Errors { get; set; }
|
||||
|
||||
public ApplyUpdatesUnauthorized(
|
||||
ApplyUpdatesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class CancelServerActivitiesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class CancelServerActivitiesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<CancelServerActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class CancelServerActivitiesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public CancelServerActivitiesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CancelServerActivitiesBadRequest.Payload.Errors instead.")]
|
||||
public List<CancelServerActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
public CancelServerActivitiesBadRequest(
|
||||
CancelServerActivitiesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class CancelServerActivitiesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class CancelServerActivitiesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<CancelServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class CancelServerActivitiesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public CancelServerActivitiesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CancelServerActivitiesUnauthorized.Payload.Errors instead.")]
|
||||
public List<CancelServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
public CancelServerActivitiesUnauthorized(
|
||||
CancelServerActivitiesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class CheckForUpdatesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class CheckForUpdatesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<CheckForUpdatesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class CheckForUpdatesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public CheckForUpdatesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CheckForUpdatesBadRequest.Payload.Errors instead.")]
|
||||
public List<CheckForUpdatesErrors>? Errors { get; set; }
|
||||
|
||||
public CheckForUpdatesBadRequest(
|
||||
CheckForUpdatesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class CheckForUpdatesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class CheckForUpdatesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<CheckForUpdatesUpdaterErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class CheckForUpdatesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public CheckForUpdatesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CheckForUpdatesUnauthorized.Payload.Errors instead.")]
|
||||
public List<CheckForUpdatesUpdaterErrors>? Errors { get; set; }
|
||||
|
||||
public CheckForUpdatesUnauthorized(
|
||||
CheckForUpdatesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class ClearPlaylistContentsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class ClearPlaylistContentsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<ClearPlaylistContentsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class ClearPlaylistContentsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public ClearPlaylistContentsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ClearPlaylistContentsBadRequest.Payload.Errors instead.")]
|
||||
public List<ClearPlaylistContentsErrors>? Errors { get; set; }
|
||||
|
||||
public ClearPlaylistContentsBadRequest(
|
||||
ClearPlaylistContentsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class ClearPlaylistContentsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class ClearPlaylistContentsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<ClearPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class ClearPlaylistContentsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public ClearPlaylistContentsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ClearPlaylistContentsUnauthorized.Payload.Errors instead.")]
|
||||
public List<ClearPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public ClearPlaylistContentsUnauthorized(
|
||||
ClearPlaylistContentsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class CreatePlaylistBadRequest : Exception
|
||||
{
|
||||
|
||||
public class CreatePlaylistBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<CreatePlaylistErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class CreatePlaylistBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public CreatePlaylistBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CreatePlaylistBadRequest.Payload.Errors instead.")]
|
||||
public List<CreatePlaylistErrors>? Errors { get; set; }
|
||||
|
||||
public CreatePlaylistBadRequest(
|
||||
CreatePlaylistBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class CreatePlaylistUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class CreatePlaylistUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<CreatePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class CreatePlaylistUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public CreatePlaylistUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CreatePlaylistUnauthorized.Payload.Errors instead.")]
|
||||
public List<CreatePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public CreatePlaylistUnauthorized(
|
||||
CreatePlaylistUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class DeleteLibraryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class DeleteLibraryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<DeleteLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class DeleteLibraryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public DeleteLibraryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeleteLibraryBadRequest.Payload.Errors instead.")]
|
||||
public List<DeleteLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public DeleteLibraryBadRequest(
|
||||
DeleteLibraryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class DeleteLibraryUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class DeleteLibraryUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<DeleteLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class DeleteLibraryUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public DeleteLibraryUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeleteLibraryUnauthorized.Payload.Errors instead.")]
|
||||
public List<DeleteLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public DeleteLibraryUnauthorized(
|
||||
DeleteLibraryUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class DeletePlaylistBadRequest : Exception
|
||||
{
|
||||
|
||||
public class DeletePlaylistBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<DeletePlaylistErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class DeletePlaylistBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public DeletePlaylistBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeletePlaylistBadRequest.Payload.Errors instead.")]
|
||||
public List<DeletePlaylistErrors>? Errors { get; set; }
|
||||
|
||||
public DeletePlaylistBadRequest(
|
||||
DeletePlaylistBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class DeletePlaylistUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class DeletePlaylistUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<DeletePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class DeletePlaylistUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public DeletePlaylistUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeletePlaylistUnauthorized.Payload.Errors instead.")]
|
||||
public List<DeletePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public DeletePlaylistUnauthorized(
|
||||
DeletePlaylistUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class EnablePaperTrailBadRequest : Exception
|
||||
{
|
||||
|
||||
public class EnablePaperTrailBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<EnablePaperTrailErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class EnablePaperTrailBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public EnablePaperTrailBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use EnablePaperTrailBadRequest.Payload.Errors instead.")]
|
||||
public List<EnablePaperTrailErrors>? Errors { get; set; }
|
||||
|
||||
public EnablePaperTrailBadRequest(
|
||||
EnablePaperTrailBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class EnablePaperTrailUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class EnablePaperTrailUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<EnablePaperTrailLogErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class EnablePaperTrailUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public EnablePaperTrailUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use EnablePaperTrailUnauthorized.Payload.Errors instead.")]
|
||||
public List<EnablePaperTrailLogErrors>? Errors { get; set; }
|
||||
|
||||
public EnablePaperTrailUnauthorized(
|
||||
EnablePaperTrailUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetActorsLibraryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetActorsLibraryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetActorsLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetActorsLibraryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetActorsLibraryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetActorsLibraryBadRequest.Payload.Errors instead.")]
|
||||
public List<GetActorsLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetActorsLibraryBadRequest(
|
||||
GetActorsLibraryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetActorsLibraryUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetActorsLibraryUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetActorsLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetActorsLibraryUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetActorsLibraryUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetActorsLibraryUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetActorsLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetActorsLibraryUnauthorized(
|
||||
GetActorsLibraryUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetAllLibrariesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetAllLibrariesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetAllLibrariesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetAllLibrariesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetAllLibrariesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAllLibrariesBadRequest.Payload.Errors instead.")]
|
||||
public List<GetAllLibrariesErrors>? Errors { get; set; }
|
||||
|
||||
public GetAllLibrariesBadRequest(
|
||||
GetAllLibrariesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetAllLibrariesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetAllLibrariesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetAllLibrariesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetAllLibrariesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAllLibrariesUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetAllLibrariesUnauthorized(
|
||||
GetAllLibrariesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetAvailableClientsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetAvailableClientsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetAvailableClientsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetAvailableClientsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetAvailableClientsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAvailableClientsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetAvailableClientsErrors>? Errors { get; set; }
|
||||
|
||||
public GetAvailableClientsBadRequest(
|
||||
GetAvailableClientsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetAvailableClientsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetAvailableClientsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetAvailableClientsServerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetAvailableClientsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetAvailableClientsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAvailableClientsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetAvailableClientsServerErrors>? Errors { get; set; }
|
||||
|
||||
public GetAvailableClientsUnauthorized(
|
||||
GetAvailableClientsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetBandwidthStatisticsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetBandwidthStatisticsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetBandwidthStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetBandwidthStatisticsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetBandwidthStatisticsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBandwidthStatisticsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetBandwidthStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
public GetBandwidthStatisticsBadRequest(
|
||||
GetBandwidthStatisticsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetBandwidthStatisticsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetBandwidthStatisticsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetBandwidthStatisticsStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetBandwidthStatisticsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetBandwidthStatisticsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBandwidthStatisticsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetBandwidthStatisticsStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
public GetBandwidthStatisticsUnauthorized(
|
||||
GetBandwidthStatisticsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetBannerImageBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetBannerImageBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetBannerImageErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetBannerImageBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetBannerImageBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBannerImageBadRequest.Payload.Errors instead.")]
|
||||
public List<GetBannerImageErrors>? Errors { get; set; }
|
||||
|
||||
public GetBannerImageBadRequest(
|
||||
GetBannerImageBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetBannerImageUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetBannerImageUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetBannerImageMediaErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetBannerImageUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetBannerImageUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBannerImageUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetBannerImageMediaErrors>? Errors { get; set; }
|
||||
|
||||
public GetBannerImageUnauthorized(
|
||||
GetBannerImageUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetButlerTasksBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetButlerTasksBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetButlerTasksErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetButlerTasksBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetButlerTasksBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetButlerTasksBadRequest.Payload.Errors instead.")]
|
||||
public List<GetButlerTasksErrors>? Errors { get; set; }
|
||||
|
||||
public GetButlerTasksBadRequest(
|
||||
GetButlerTasksBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetButlerTasksUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetButlerTasksUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetButlerTasksButlerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetButlerTasksUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetButlerTasksUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetButlerTasksUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetButlerTasksButlerErrors>? Errors { get; set; }
|
||||
|
||||
public GetButlerTasksUnauthorized(
|
||||
GetButlerTasksUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetCompanionsDataBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetCompanionsDataBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetCompanionsDataErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetCompanionsDataBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetCompanionsDataBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCompanionsDataBadRequest.Payload.Errors instead.")]
|
||||
public List<GetCompanionsDataErrors>? Errors { get; set; }
|
||||
|
||||
public GetCompanionsDataBadRequest(
|
||||
GetCompanionsDataBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetCompanionsDataUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetCompanionsDataUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetCompanionsDataPlexErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetCompanionsDataUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetCompanionsDataUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCompanionsDataUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetCompanionsDataPlexErrors>? Errors { get; set; }
|
||||
|
||||
public GetCompanionsDataUnauthorized(
|
||||
GetCompanionsDataUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetCountriesLibraryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetCountriesLibraryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetCountriesLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetCountriesLibraryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetCountriesLibraryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCountriesLibraryBadRequest.Payload.Errors instead.")]
|
||||
public List<GetCountriesLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetCountriesLibraryBadRequest(
|
||||
GetCountriesLibraryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetCountriesLibraryUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetCountriesLibraryUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetCountriesLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetCountriesLibraryUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetCountriesLibraryUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCountriesLibraryUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetCountriesLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetCountriesLibraryUnauthorized(
|
||||
GetCountriesLibraryUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetDevicesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetDevicesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetDevicesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetDevicesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetDevicesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetDevicesBadRequest.Payload.Errors instead.")]
|
||||
public List<GetDevicesErrors>? Errors { get; set; }
|
||||
|
||||
public GetDevicesBadRequest(
|
||||
GetDevicesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetDevicesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetDevicesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetDevicesServerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetDevicesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetDevicesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetDevicesUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetDevicesServerErrors>? Errors { get; set; }
|
||||
|
||||
public GetDevicesUnauthorized(
|
||||
GetDevicesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetFileHashBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetFileHashBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetFileHashErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetFileHashBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetFileHashBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetFileHashBadRequest.Payload.Errors instead.")]
|
||||
public List<GetFileHashErrors>? Errors { get; set; }
|
||||
|
||||
public GetFileHashBadRequest(
|
||||
GetFileHashBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetFileHashUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetFileHashUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetFileHashLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetFileHashUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetFileHashUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetFileHashUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetFileHashLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetFileHashUnauthorized(
|
||||
GetFileHashUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetGenresLibraryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetGenresLibraryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetGenresLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetGenresLibraryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetGenresLibraryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGenresLibraryBadRequest.Payload.Errors instead.")]
|
||||
public List<GetGenresLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetGenresLibraryBadRequest(
|
||||
GetGenresLibraryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetGenresLibraryUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetGenresLibraryUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetGenresLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetGenresLibraryUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetGenresLibraryUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGenresLibraryUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetGenresLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetGenresLibraryUnauthorized(
|
||||
GetGenresLibraryUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetGeoDataBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetGeoDataBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetGeoDataErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetGeoDataBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetGeoDataBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGeoDataBadRequest.Payload.Errors instead.")]
|
||||
public List<GetGeoDataErrors>? Errors { get; set; }
|
||||
|
||||
public GetGeoDataBadRequest(
|
||||
GetGeoDataBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetGeoDataUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetGeoDataUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetGeoDataPlexErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetGeoDataUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetGeoDataUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGeoDataUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetGeoDataPlexErrors>? Errors { get; set; }
|
||||
|
||||
public GetGeoDataUnauthorized(
|
||||
GetGeoDataUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetGlobalHubsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetGlobalHubsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetGlobalHubsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetGlobalHubsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetGlobalHubsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGlobalHubsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetGlobalHubsErrors>? Errors { get; set; }
|
||||
|
||||
public GetGlobalHubsBadRequest(
|
||||
GetGlobalHubsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetGlobalHubsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetGlobalHubsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetGlobalHubsHubsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetGlobalHubsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetGlobalHubsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGlobalHubsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetGlobalHubsHubsErrors>? Errors { get; set; }
|
||||
|
||||
public GetGlobalHubsUnauthorized(
|
||||
GetGlobalHubsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetHomeDataBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetHomeDataBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetHomeDataErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetHomeDataBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetHomeDataBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetHomeDataBadRequest.Payload.Errors instead.")]
|
||||
public List<GetHomeDataErrors>? Errors { get; set; }
|
||||
|
||||
public GetHomeDataBadRequest(
|
||||
GetHomeDataBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetHomeDataUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetHomeDataUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetHomeDataPlexErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetHomeDataUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetHomeDataUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetHomeDataUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetHomeDataPlexErrors>? Errors { get; set; }
|
||||
|
||||
public GetHomeDataUnauthorized(
|
||||
GetHomeDataUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibraryDetailsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetLibraryDetailsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryDetailsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibraryDetailsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibraryDetailsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryDetailsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetLibraryDetailsErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibraryDetailsBadRequest(
|
||||
GetLibraryDetailsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibraryDetailsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetLibraryDetailsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryDetailsLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibraryDetailsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibraryDetailsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryDetailsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetLibraryDetailsLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibraryDetailsUnauthorized(
|
||||
GetLibraryDetailsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibraryHubsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetLibraryHubsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryHubsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibraryHubsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibraryHubsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryHubsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetLibraryHubsErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibraryHubsBadRequest(
|
||||
GetLibraryHubsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibraryHubsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetLibraryHubsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryHubsHubsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibraryHubsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibraryHubsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryHubsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetLibraryHubsHubsErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibraryHubsUnauthorized(
|
||||
GetLibraryHubsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibraryItemsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetLibraryItemsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryItemsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibraryItemsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibraryItemsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryItemsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetLibraryItemsErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibraryItemsBadRequest(
|
||||
GetLibraryItemsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibraryItemsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetLibraryItemsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibraryItemsLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibraryItemsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibraryItemsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryItemsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetLibraryItemsLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibraryItemsUnauthorized(
|
||||
GetLibraryItemsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibrarySectionsAllBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetLibrarySectionsAllBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibrarySectionsAllErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetLibrarySectionsAllBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibrarySectionsAllBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibrarySectionsAllBadRequest.Payload.Errors instead.")]
|
||||
public List<GetLibrarySectionsAllErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibrarySectionsAllBadRequest(
|
||||
GetLibrarySectionsAllBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibrarySectionsAllUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetLibrarySectionsAllUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetLibrarySectionsAllLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetLibrarySectionsAllUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetLibrarySectionsAllUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibrarySectionsAllUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetLibrarySectionsAllLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetLibrarySectionsAllUnauthorized(
|
||||
GetLibrarySectionsAllUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMediaMetaDataBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetMediaMetaDataBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMediaMetaDataErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMediaMetaDataBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMediaMetaDataBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaMetaDataBadRequest.Payload.Errors instead.")]
|
||||
public List<GetMediaMetaDataErrors>? Errors { get; set; }
|
||||
|
||||
public GetMediaMetaDataBadRequest(
|
||||
GetMediaMetaDataBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMediaMetaDataUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetMediaMetaDataUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMediaMetaDataLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMediaMetaDataUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMediaMetaDataUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaMetaDataUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetMediaMetaDataLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetMediaMetaDataUnauthorized(
|
||||
GetMediaMetaDataUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMediaProvidersBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetMediaProvidersBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMediaProvidersErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMediaProvidersBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMediaProvidersBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaProvidersBadRequest.Payload.Errors instead.")]
|
||||
public List<GetMediaProvidersErrors>? Errors { get; set; }
|
||||
|
||||
public GetMediaProvidersBadRequest(
|
||||
GetMediaProvidersBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMediaProvidersUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetMediaProvidersUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMediaProvidersServerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMediaProvidersUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMediaProvidersUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaProvidersUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetMediaProvidersServerErrors>? Errors { get; set; }
|
||||
|
||||
public GetMediaProvidersUnauthorized(
|
||||
GetMediaProvidersUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetMetadataChildrenBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMetadataChildrenErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMetadataChildrenBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMetadataChildrenBadRequest.Payload.Errors instead.")]
|
||||
public List<GetMetadataChildrenErrors>? Errors { get; set; }
|
||||
|
||||
public GetMetadataChildrenBadRequest(
|
||||
GetMetadataChildrenBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetMetadataChildrenUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMetadataChildrenLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMetadataChildrenUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMetadataChildrenUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMetadataChildrenUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetMetadataChildrenLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetMetadataChildrenUnauthorized(
|
||||
GetMetadataChildrenUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMyPlexAccountBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetMyPlexAccountBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMyPlexAccountErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetMyPlexAccountBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMyPlexAccountBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMyPlexAccountBadRequest.Payload.Errors instead.")]
|
||||
public List<GetMyPlexAccountErrors>? Errors { get; set; }
|
||||
|
||||
public GetMyPlexAccountBadRequest(
|
||||
GetMyPlexAccountBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMyPlexAccountUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetMyPlexAccountUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetMyPlexAccountServerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetMyPlexAccountUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetMyPlexAccountUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMyPlexAccountUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetMyPlexAccountServerErrors>? Errors { get; set; }
|
||||
|
||||
public GetMyPlexAccountUnauthorized(
|
||||
GetMyPlexAccountUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPinBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetPinBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPinErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPinBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetPinBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPinBadRequest.Payload.Errors instead.")]
|
||||
public List<GetPinErrors>? Errors { get; set; }
|
||||
|
||||
public GetPinBadRequest(
|
||||
GetPinBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPlaylistBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetPlaylistBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPlaylistBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetPlaylistBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistBadRequest.Payload.Errors instead.")]
|
||||
public List<GetPlaylistErrors>? Errors { get; set; }
|
||||
|
||||
public GetPlaylistBadRequest(
|
||||
GetPlaylistBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPlaylistContentsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetPlaylistContentsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistContentsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPlaylistContentsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetPlaylistContentsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistContentsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetPlaylistContentsErrors>? Errors { get; set; }
|
||||
|
||||
public GetPlaylistContentsBadRequest(
|
||||
GetPlaylistContentsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistContentsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetPlaylistContentsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistContentsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetPlaylistContentsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistContentsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public GetPlaylistContentsUnauthorized(
|
||||
GetPlaylistContentsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetPlaylistUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetPlaylistUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetPlaylistPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public GetPlaylistUnauthorized(
|
||||
GetPlaylistUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPlaylistsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetPlaylistsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetPlaylistsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetPlaylistsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public GetPlaylistsBadRequest(
|
||||
GetPlaylistsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetPlaylistsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetPlaylistsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetPlaylistsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetPlaylistsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetPlaylistsPlaylistsErrors>? Errors { get; set; }
|
||||
|
||||
public GetPlaylistsUnauthorized(
|
||||
GetPlaylistsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetRecentlyAddedLibraryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetRecentlyAddedLibraryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetRecentlyAddedLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetRecentlyAddedLibraryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetRecentlyAddedLibraryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRecentlyAddedLibraryBadRequest.Payload.Errors instead.")]
|
||||
public List<GetRecentlyAddedLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetRecentlyAddedLibraryBadRequest(
|
||||
GetRecentlyAddedLibraryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetRecentlyAddedLibraryUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetRecentlyAddedLibraryUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetRecentlyAddedLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetRecentlyAddedLibraryUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetRecentlyAddedLibraryUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRecentlyAddedLibraryUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetRecentlyAddedLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetRecentlyAddedLibraryUnauthorized(
|
||||
GetRecentlyAddedLibraryUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetRefreshLibraryMetadataBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetRefreshLibraryMetadataBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetRefreshLibraryMetadataErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetRefreshLibraryMetadataBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetRefreshLibraryMetadataBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRefreshLibraryMetadataBadRequest.Payload.Errors instead.")]
|
||||
public List<GetRefreshLibraryMetadataErrors>? Errors { get; set; }
|
||||
|
||||
public GetRefreshLibraryMetadataBadRequest(
|
||||
GetRefreshLibraryMetadataBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetRefreshLibraryMetadataUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetRefreshLibraryMetadataUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetRefreshLibraryMetadataLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetRefreshLibraryMetadataUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetRefreshLibraryMetadataUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRefreshLibraryMetadataUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetRefreshLibraryMetadataLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetRefreshLibraryMetadataUnauthorized(
|
||||
GetRefreshLibraryMetadataUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetResizedPhotoBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetResizedPhotoBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetResizedPhotoErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetResizedPhotoBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetResizedPhotoBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResizedPhotoBadRequest.Payload.Errors instead.")]
|
||||
public List<GetResizedPhotoErrors>? Errors { get; set; }
|
||||
|
||||
public GetResizedPhotoBadRequest(
|
||||
GetResizedPhotoBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetResizedPhotoUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetResizedPhotoUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetResizedPhotoServerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetResizedPhotoUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetResizedPhotoUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResizedPhotoUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetResizedPhotoServerErrors>? Errors { get; set; }
|
||||
|
||||
public GetResizedPhotoUnauthorized(
|
||||
GetResizedPhotoUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetResourcesStatisticsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetResourcesStatisticsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetResourcesStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetResourcesStatisticsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetResourcesStatisticsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResourcesStatisticsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetResourcesStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
public GetResourcesStatisticsBadRequest(
|
||||
GetResourcesStatisticsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetResourcesStatisticsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetResourcesStatisticsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetResourcesStatisticsStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetResourcesStatisticsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetResourcesStatisticsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResourcesStatisticsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetResourcesStatisticsStatisticsErrors>? Errors { get; set; }
|
||||
|
||||
public GetResourcesStatisticsUnauthorized(
|
||||
GetResourcesStatisticsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetSearchAllLibrariesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchAllLibrariesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSearchAllLibrariesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchAllLibrariesBadRequest.Payload.Errors instead.")]
|
||||
public List<GetSearchAllLibrariesErrors>? Errors { get; set; }
|
||||
|
||||
public GetSearchAllLibrariesBadRequest(
|
||||
GetSearchAllLibrariesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetSearchAllLibrariesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSearchAllLibrariesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSearchAllLibrariesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchAllLibrariesUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetSearchAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetSearchAllLibrariesUnauthorized(
|
||||
GetSearchAllLibrariesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSearchLibraryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetSearchLibraryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSearchLibraryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSearchLibraryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchLibraryBadRequest.Payload.Errors instead.")]
|
||||
public List<GetSearchLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetSearchLibraryBadRequest(
|
||||
GetSearchLibraryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSearchLibraryUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetSearchLibraryUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSearchLibraryUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSearchLibraryUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchLibraryUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetSearchLibraryLibraryErrors>? Errors { get; set; }
|
||||
|
||||
public GetSearchLibraryUnauthorized(
|
||||
GetSearchLibraryUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSearchResultsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetSearchResultsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchResultsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSearchResultsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSearchResultsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchResultsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetSearchResultsErrors>? Errors { get; set; }
|
||||
|
||||
public GetSearchResultsBadRequest(
|
||||
GetSearchResultsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSearchResultsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetSearchResultsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSearchResultsSearchErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSearchResultsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSearchResultsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchResultsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetSearchResultsSearchErrors>? Errors { get; set; }
|
||||
|
||||
public GetSearchResultsUnauthorized(
|
||||
GetSearchResultsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerActivitiesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetServerActivitiesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerActivitiesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerActivitiesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerActivitiesBadRequest.Payload.Errors instead.")]
|
||||
public List<GetServerActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerActivitiesBadRequest(
|
||||
GetServerActivitiesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerActivitiesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetServerActivitiesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerActivitiesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerActivitiesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerActivitiesUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerActivitiesUnauthorized(
|
||||
GetServerActivitiesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerCapabilitiesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetServerCapabilitiesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<Errors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerCapabilitiesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerCapabilitiesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerCapabilitiesBadRequest.Payload.Errors instead.")]
|
||||
public List<Errors>? Errors { get; set; }
|
||||
|
||||
public GetServerCapabilitiesBadRequest(
|
||||
GetServerCapabilitiesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerCapabilitiesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetServerCapabilitiesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerCapabilitiesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerCapabilitiesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerCapabilitiesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerCapabilitiesUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetServerCapabilitiesErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerCapabilitiesUnauthorized(
|
||||
GetServerCapabilitiesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,19 +13,14 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Request Timeout
|
||||
/// </summary>
|
||||
public class GetServerIdentityRequestTimeout : Exception
|
||||
{
|
||||
|
||||
public class GetServerIdentityRequestTimeoutPayload
|
||||
{
|
||||
[JsonProperty("code")]
|
||||
public int? Code { get; set; }
|
||||
|
||||
[JsonProperty("message")]
|
||||
private string? _message { get; set; }
|
||||
public override string Message { get {return _message ?? "";} }
|
||||
public string? Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Raw HTTP response; suitable for custom response parsing
|
||||
@@ -33,4 +28,47 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Request Timeout
|
||||
/// </summary>
|
||||
public class GetServerIdentityRequestTimeout : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerIdentityRequestTimeoutPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerIdentityRequestTimeout.Payload.Code instead.")]
|
||||
public int? Code { get; set; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerIdentityRequestTimeout.Payload.Message instead.")]
|
||||
private string? _message { get; set; }
|
||||
|
||||
private static string ErrorMessage(GetServerIdentityRequestTimeoutPayload payload, string body)
|
||||
{
|
||||
string? message = payload.Message;
|
||||
if (!string.IsNullOrEmpty(message))
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
return "API error occurred";
|
||||
}
|
||||
|
||||
public GetServerIdentityRequestTimeout(
|
||||
GetServerIdentityRequestTimeoutPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base(ErrorMessage(payload, body), rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Code = payload.Code;
|
||||
_message = payload.Message;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerListBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetServerListBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerListErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerListBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerListBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerListBadRequest.Payload.Errors instead.")]
|
||||
public List<GetServerListErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerListBadRequest(
|
||||
GetServerListBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerListUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetServerListUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerListServerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerListUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerListUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerListUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetServerListServerErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerListUnauthorized(
|
||||
GetServerListUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerPreferencesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetServerPreferencesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerPreferencesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerPreferencesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerPreferencesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerPreferencesBadRequest.Payload.Errors instead.")]
|
||||
public List<GetServerPreferencesErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerPreferencesBadRequest(
|
||||
GetServerPreferencesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerPreferencesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetServerPreferencesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerPreferencesServerErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerPreferencesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerPreferencesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerPreferencesUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetServerPreferencesServerErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerPreferencesUnauthorized(
|
||||
GetServerPreferencesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerResourcesBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetServerResourcesBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerResourcesErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetServerResourcesBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerResourcesBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerResourcesBadRequest.Payload.Errors instead.")]
|
||||
public List<GetServerResourcesErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerResourcesBadRequest(
|
||||
GetServerResourcesBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerResourcesUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetServerResourcesUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetServerResourcesPlexErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetServerResourcesUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetServerResourcesUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerResourcesUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetServerResourcesPlexErrors>? Errors { get; set; }
|
||||
|
||||
public GetServerResourcesUnauthorized(
|
||||
GetServerResourcesUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSessionHistoryBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetSessionHistoryBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSessionHistoryErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSessionHistoryBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSessionHistoryBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSessionHistoryBadRequest.Payload.Errors instead.")]
|
||||
public List<GetSessionHistoryErrors>? Errors { get; set; }
|
||||
|
||||
public GetSessionHistoryBadRequest(
|
||||
GetSessionHistoryBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSessionHistoryUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetSessionHistoryUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSessionHistorySessionsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSessionHistoryUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSessionHistoryUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSessionHistoryUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetSessionHistorySessionsErrors>? Errors { get; set; }
|
||||
|
||||
public GetSessionHistoryUnauthorized(
|
||||
GetSessionHistoryUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSessionsBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetSessionsBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSessionsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSessionsBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSessionsBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSessionsBadRequest.Payload.Errors instead.")]
|
||||
public List<GetSessionsErrors>? Errors { get; set; }
|
||||
|
||||
public GetSessionsBadRequest(
|
||||
GetSessionsBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSessionsUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetSessionsUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSessionsSessionsErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSessionsUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSessionsUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSessionsUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetSessionsSessionsErrors>? Errors { get; set; }
|
||||
|
||||
public GetSessionsUnauthorized(
|
||||
GetSessionsUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSourceConnectionInformationBadRequest : Exception
|
||||
{
|
||||
|
||||
public class GetSourceConnectionInformationBadRequestPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSourceConnectionInformationErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
/// </summary>
|
||||
public class GetSourceConnectionInformationBadRequest : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSourceConnectionInformationBadRequestPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSourceConnectionInformationBadRequest.Payload.Errors instead.")]
|
||||
public List<GetSourceConnectionInformationErrors>? Errors { get; set; }
|
||||
|
||||
public GetSourceConnectionInformationBadRequest(
|
||||
GetSourceConnectionInformationBadRequestPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,9 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSourceConnectionInformationUnauthorized : Exception
|
||||
{
|
||||
|
||||
public class GetSourceConnectionInformationUnauthorizedPayload
|
||||
{
|
||||
[JsonProperty("errors")]
|
||||
public List<GetSourceConnectionInformationAuthenticationErrors>? Errors { get; set; }
|
||||
|
||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
||||
[JsonProperty("-")]
|
||||
public HttpResponseMessage? RawResponse { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/// </summary>
|
||||
public class GetSourceConnectionInformationUnauthorized : PlexAPIError
|
||||
{
|
||||
/// <summary>
|
||||
/// The original data that was passed to this exception.
|
||||
/// </summary>
|
||||
public GetSourceConnectionInformationUnauthorizedPayload Payload { get; }
|
||||
|
||||
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSourceConnectionInformationUnauthorized.Payload.Errors instead.")]
|
||||
public List<GetSourceConnectionInformationAuthenticationErrors>? Errors { get; set; }
|
||||
|
||||
public GetSourceConnectionInformationUnauthorized(
|
||||
GetSourceConnectionInformationUnauthorizedPayload payload,
|
||||
HttpResponseMessage rawResponse,
|
||||
string body
|
||||
): base("API error occurred", rawResponse, body)
|
||||
{
|
||||
Payload = payload;
|
||||
|
||||
#pragma warning disable CS0618
|
||||
Errors = payload.Errors;
|
||||
#pragma warning restore CS0618
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user