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 QualityProfile { /// /// Gets or Sets Name /// [DataMember(Name="name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or Sets UpgradeAllowed /// [DataMember(Name="upgradeAllowed", EmitDefaultValue=false)] [JsonProperty(PropertyName = "upgradeAllowed")] public bool? UpgradeAllowed { get; set; } /// /// Gets or Sets Cutoff /// [DataMember(Name="cutoff", EmitDefaultValue=false)] [JsonProperty(PropertyName = "cutoff")] public int? Cutoff { get; set; } /// /// Gets or Sets Items /// [DataMember(Name="items", EmitDefaultValue=false)] [JsonProperty(PropertyName = "items")] public List Items { get; set; } /// /// Gets or Sets MinFormatScore /// [DataMember(Name="minFormatScore", EmitDefaultValue=false)] [JsonProperty(PropertyName = "minFormatScore")] public int? MinFormatScore { get; set; } /// /// Gets or Sets CutoffFormatScore /// [DataMember(Name="cutoffFormatScore", EmitDefaultValue=false)] [JsonProperty(PropertyName = "cutoffFormatScore")] public int? CutoffFormatScore { get; set; } /// /// Gets or Sets FormatItems /// [DataMember(Name="formatItems", EmitDefaultValue=false)] [JsonProperty(PropertyName = "formatItems")] public List FormatItems { get; set; } /// /// Gets or Sets Language /// [DataMember(Name="language", EmitDefaultValue=false)] [JsonProperty(PropertyName = "language")] public QueuedetailsLanguages Language { 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 QualityProfile {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" UpgradeAllowed: ").Append(UpgradeAllowed).Append("\n"); sb.Append(" Cutoff: ").Append(Cutoff).Append("\n"); sb.Append(" Items: ").Append(Items).Append("\n"); sb.Append(" MinFormatScore: ").Append(MinFormatScore).Append("\n"); sb.Append(" CutoffFormatScore: ").Append(CutoffFormatScore).Append("\n"); sb.Append(" FormatItems: ").Append(FormatItems).Append("\n"); sb.Append(" Language: ").Append(Language).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); } } }