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 Image { /// /// Gets or Sets CoverType /// [DataMember(Name="coverType", EmitDefaultValue=false)] [JsonProperty(PropertyName = "coverType")] public string CoverType { get; set; } /// /// Gets or Sets Url /// [DataMember(Name="url", EmitDefaultValue=false)] [JsonProperty(PropertyName = "url")] public string Url { get; set; } /// /// Gets or Sets RemoteUrl /// [DataMember(Name="remoteUrl", EmitDefaultValue=false)] [JsonProperty(PropertyName = "remoteUrl")] public string RemoteUrl { 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 Image {\n"); sb.Append(" CoverType: ").Append(CoverType).Append("\n"); sb.Append(" Url: ").Append(Url).Append("\n"); sb.Append(" RemoteUrl: ").Append(RemoteUrl).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); } } }