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 Rating { /// /// Gets or Sets Votes /// [DataMember(Name="votes", EmitDefaultValue=false)] [JsonProperty(PropertyName = "votes")] public int? Votes { get; set; } /// /// Gets or Sets Value /// [DataMember(Name="value", EmitDefaultValue=false)] [JsonProperty(PropertyName = "value")] public decimal? Value { 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 Rating {\n"); sb.Append(" Votes: ").Append(Votes).Append("\n"); sb.Append(" Value: ").Append(Value).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); } } }