Paginator.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Text;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Runtime.Serialization;
  6. using Newtonsoft.Json;
  7. namespace IO.Swagger.Model {
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. [DataContract]
  12. public class Paginator {
  13. /// <summary>
  14. /// Total pages count
  15. /// </summary>
  16. /// <value>Total pages count</value>
  17. [DataMember(Name="num_pages", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "num_pages")]
  19. public int? NumPages { get; set; }
  20. /// <summary>
  21. /// Get the string presentation of the object
  22. /// </summary>
  23. /// <returns>String presentation of the object</returns>
  24. public override string ToString() {
  25. StringBuilder sb = new StringBuilder();
  26. sb.Append("class Paginator {\n");
  27. sb.Append(" NumPages: ").Append(NumPages).Append("\n");
  28. sb.Append("}\n");
  29. return sb.ToString();
  30. }
  31. /// <summary>
  32. /// Get the JSON string presentation of the object
  33. /// </summary>
  34. /// <returns>JSON string presentation of the object</returns>
  35. public string ToJson() {
  36. return JsonConvert.SerializeObject(this, Formatting.Indented);
  37. }
  38. }
  39. }