using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace RadarrSharp.Models { /// /// /// [DataContract] public class InlineResponse2009 { /// /// Gets or Sets Languages /// [DataMember(Name="languages", EmitDefaultValue=false)] [JsonProperty(PropertyName = "languages")] public List Languages { get; set; } /// /// Gets or Sets Quality /// [DataMember(Name="quality", EmitDefaultValue=false)] [JsonProperty(PropertyName = "quality")] public Quality Quality { get; set; } /// /// Gets or Sets CustomFormats /// [DataMember(Name="customFormats", EmitDefaultValue=false)] [JsonProperty(PropertyName = "customFormats")] public List CustomFormats { get; set; } /// /// Gets or Sets Size /// [DataMember(Name="size", EmitDefaultValue=false)] [JsonProperty(PropertyName = "size")] public decimal? Size { get; set; } /// /// Gets or Sets Title /// [DataMember(Name="title", EmitDefaultValue=false)] [JsonProperty(PropertyName = "title")] public string Title { get; set; } /// /// Gets or Sets Sizeleft /// [DataMember(Name="sizeleft", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sizeleft")] public decimal? Sizeleft { get; set; } /// /// Gets or Sets Timeleft /// [DataMember(Name="timeleft", EmitDefaultValue=false)] [JsonProperty(PropertyName = "timeleft")] public string Timeleft { get; set; } /// /// Gets or Sets EstimatedCompletionTime /// [DataMember(Name="estimatedCompletionTime", EmitDefaultValue=false)] [JsonProperty(PropertyName = "estimatedCompletionTime")] public string EstimatedCompletionTime { get; set; } /// /// Gets or Sets Status /// [DataMember(Name="status", EmitDefaultValue=false)] [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// Gets or Sets TrackedDownloadStatus /// [DataMember(Name="trackedDownloadStatus", EmitDefaultValue=false)] [JsonProperty(PropertyName = "trackedDownloadStatus")] public string TrackedDownloadStatus { get; set; } /// /// Gets or Sets TrackedDownloadState /// [DataMember(Name="trackedDownloadState", EmitDefaultValue=false)] [JsonProperty(PropertyName = "trackedDownloadState")] public string TrackedDownloadState { get; set; } /// /// Gets or Sets StatusMessages /// [DataMember(Name="statusMessages", EmitDefaultValue=false)] [JsonProperty(PropertyName = "statusMessages")] public List StatusMessages { get; set; } /// /// Gets or Sets ErrorMessage /// [DataMember(Name="errorMessage", EmitDefaultValue=false)] [JsonProperty(PropertyName = "errorMessage")] public string ErrorMessage { get; set; } /// /// Gets or Sets DownloadId /// [DataMember(Name="downloadId", EmitDefaultValue=false)] [JsonProperty(PropertyName = "downloadId")] public string DownloadId { get; set; } /// /// Gets or Sets Protocol /// [DataMember(Name="protocol", EmitDefaultValue=false)] [JsonProperty(PropertyName = "protocol")] public string Protocol { get; set; } /// /// Gets or Sets DownloadClient /// [DataMember(Name="downloadClient", EmitDefaultValue=false)] [JsonProperty(PropertyName = "downloadClient")] public string DownloadClient { get; set; } /// /// Gets or Sets Indexer /// [DataMember(Name="indexer", EmitDefaultValue=false)] [JsonProperty(PropertyName = "indexer")] public string Indexer { get; set; } /// /// Gets or Sets OutputPath /// [DataMember(Name="outputPath", EmitDefaultValue=false)] [JsonProperty(PropertyName = "outputPath")] public string OutputPath { get; set; } /// /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "id")] public int? Id { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class InlineResponse2009 {\n"); sb.Append(" Languages: ").Append(Languages).Append("\n"); sb.Append(" Quality: ").Append(Quality).Append("\n"); sb.Append(" CustomFormats: ").Append(CustomFormats).Append("\n"); sb.Append(" Size: ").Append(Size).Append("\n"); sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" Sizeleft: ").Append(Sizeleft).Append("\n"); sb.Append(" Timeleft: ").Append(Timeleft).Append("\n"); sb.Append(" EstimatedCompletionTime: ").Append(EstimatedCompletionTime).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" TrackedDownloadStatus: ").Append(TrackedDownloadStatus).Append("\n"); sb.Append(" TrackedDownloadState: ").Append(TrackedDownloadState).Append("\n"); sb.Append(" StatusMessages: ").Append(StatusMessages).Append("\n"); sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); sb.Append(" DownloadId: ").Append(DownloadId).Append("\n"); sb.Append(" Protocol: ").Append(Protocol).Append("\n"); sb.Append(" DownloadClient: ").Append(DownloadClient).Append("\n"); sb.Append(" Indexer: ").Append(Indexer).Append("\n"); sb.Append(" OutputPath: ").Append(OutputPath).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }