mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 04:20:46 +00:00
58 lines
2.0 KiB
C#
58 lines
2.0 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost when
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
#nullable enable
|
|
namespace LukeHagar.PlexAPI.SDK.Models.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 GetTokenByPinIdBadRequestPayload
|
|
{
|
|
[JsonProperty("errors")]
|
|
public List<GetTokenByPinIdErrors>? Errors { get; set; }
|
|
|
|
/// <summary>
|
|
/// Raw HTTP response; suitable for custom response parsing
|
|
/// </summary>
|
|
[JsonProperty("-")]
|
|
public HttpResponseMessage? RawResponse { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
/// </summary>
|
|
public class GetTokenByPinIdBadRequest : PlexAPIError
|
|
{
|
|
/// <summary>
|
|
/// The original data that was passed to this exception.
|
|
/// </summary>
|
|
public GetTokenByPinIdBadRequestPayload Payload { get; }
|
|
|
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetTokenByPinIdBadRequest.Payload.Errors instead.")]
|
|
public List<GetTokenByPinIdErrors>? Errors { get; set; }
|
|
|
|
public GetTokenByPinIdBadRequest(
|
|
GetTokenByPinIdBadRequestPayload payload,
|
|
HttpResponseMessage rawResponse,
|
|
string body
|
|
): base("API error occurred", rawResponse, body)
|
|
{
|
|
Payload = payload;
|
|
|
|
#pragma warning disable CS0618
|
|
Errors = payload.Errors;
|
|
#pragma warning restore CS0618
|
|
}
|
|
}
|
|
|
|
} |