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 InlineResponse2002 { /// /// Gets or Sets Page /// [DataMember(Name="page", EmitDefaultValue=false)] [JsonProperty(PropertyName = "page")] public int? Page { get; set; } /// /// Gets or Sets PageSize /// [DataMember(Name="pageSize", EmitDefaultValue=false)] [JsonProperty(PropertyName = "pageSize")] public int? PageSize { get; set; } /// /// Gets or Sets SortDirection /// [DataMember(Name="sortDirection", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sortDirection")] public string SortDirection { get; set; } /// /// Gets or Sets TotalRecords /// [DataMember(Name="totalRecords", EmitDefaultValue=false)] [JsonProperty(PropertyName = "totalRecords")] public int? TotalRecords { get; set; } /// /// Gets or Sets Records /// [DataMember(Name="records", EmitDefaultValue=false)] [JsonProperty(PropertyName = "records")] public List Records { 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 InlineResponse2002 {\n"); sb.Append(" Page: ").Append(Page).Append("\n"); sb.Append(" PageSize: ").Append(PageSize).Append("\n"); sb.Append(" SortDirection: ").Append(SortDirection).Append("\n"); sb.Append(" TotalRecords: ").Append(TotalRecords).Append("\n"); sb.Append(" Records: ").Append(Records).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); } } }