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 Quality { /// /// Gets or Sets _Quality /// [DataMember(Name="quality", EmitDefaultValue=false)] [JsonProperty(PropertyName = "quality")] public QualityQuality _Quality { get; set; } /// /// Gets or Sets Revision /// [DataMember(Name="revision", EmitDefaultValue=false)] [JsonProperty(PropertyName = "revision")] public QualityRevision Revision { 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 Quality {\n"); sb.Append(" _Quality: ").Append(_Quality).Append("\n"); sb.Append(" Revision: ").Append(Revision).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); } } }