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 QualityProfileFormatItems { /// /// Gets or Sets Format /// [DataMember(Name="format", EmitDefaultValue=false)] [JsonProperty(PropertyName = "format")] public int? Format { get; set; } /// /// Gets or Sets Name /// [DataMember(Name="name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or Sets Score /// [DataMember(Name="score", EmitDefaultValue=false)] [JsonProperty(PropertyName = "score")] public int? Score { 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 QualityProfileFormatItems {\n"); sb.Append(" Format: ").Append(Format).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Score: ").Append(Score).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); } } }