//------------------------------------------------------------------------------
//
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
//
//------------------------------------------------------------------------------
#nullable enable
namespace LukeHagar.PlexAPI.SDK.Models.Errors
{
using LukeHagar.PlexAPI.SDK.Models.Errors;
using LukeHagar.PlexAPI.SDK.Utils;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net.Http;
public class GetRecentlyAddedLibraryUnauthorizedPayload
{
[JsonProperty("errors")]
public List? Errors { get; set; }
///
/// Raw HTTP response; suitable for custom response parsing
///
[JsonProperty("-")]
public HttpResponseMessage? RawResponse { get; set; }
}
///
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
///
public class GetRecentlyAddedLibraryUnauthorized : PlexAPIError
{
///
/// The original data that was passed to this exception.
///
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? 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
}
}
}