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 QualityRevision { /// /// Gets or Sets Version /// [DataMember(Name="version", EmitDefaultValue=false)] [JsonProperty(PropertyName = "version")] public int? Version { get; set; } /// /// Gets or Sets Real /// [DataMember(Name="real", EmitDefaultValue=false)] [JsonProperty(PropertyName = "real")] public int? Real { get; set; } /// /// Gets or Sets IsRepack /// [DataMember(Name="isRepack", EmitDefaultValue=false)] [JsonProperty(PropertyName = "isRepack")] public bool? IsRepack { 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 QualityRevision {\n"); sb.Append(" Version: ").Append(Version).Append("\n"); sb.Append(" Real: ").Append(Real).Append("\n"); sb.Append(" IsRepack: ").Append(IsRepack).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); } } }