//------------------------------------------------------------------------------ // // 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 StopTaskBadRequestPayload { [JsonProperty("errors")] public List? Errors { get; set; } /// /// Raw HTTP response; suitable for custom response parsing /// [JsonProperty("-")] public HttpResponseMessage? RawResponse { get; set; } } /// /// Bad Request - A parameter was not specified, or was specified incorrectly. /// public class StopTaskBadRequest : PlexAPIError { /// /// The original data that was passed to this exception. /// public StopTaskBadRequestPayload Payload { get; } [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use StopTaskBadRequest.Payload.Errors instead.")] public List? Errors { get; set; } public StopTaskBadRequest( StopTaskBadRequestPayload payload, HttpResponseMessage rawResponse, string body ): base("API error occurred", rawResponse, body) { Payload = payload; #pragma warning disable CS0618 Errors = payload.Errors; #pragma warning restore CS0618 } } }