AppVersions.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 AppVersions {
  13. /// <summary>
  14. /// Gets or Sets Versions
  15. /// </summary>
  16. [DataMember(Name="versions", EmitDefaultValue=false)]
  17. [JsonProperty(PropertyName = "versions")]
  18. public List<AppVersion> Versions { get; set; }
  19. /// <summary>
  20. /// Gets or Sets TotalCount
  21. /// </summary>
  22. [DataMember(Name="total_count", EmitDefaultValue=false)]
  23. [JsonProperty(PropertyName = "total_count")]
  24. public int? TotalCount { get; set; }
  25. /// <summary>
  26. /// Get the string presentation of the object
  27. /// </summary>
  28. /// <returns>String presentation of the object</returns>
  29. public override string ToString() {
  30. StringBuilder sb = new StringBuilder();
  31. sb.Append("class AppVersions {\n");
  32. sb.Append(" Versions: ").Append(Versions).Append("\n");
  33. sb.Append(" TotalCount: ").Append(TotalCount).Append("\n");
  34. sb.Append("}\n");
  35. return sb.ToString();
  36. }
  37. /// <summary>
  38. /// Get the JSON string presentation of the object
  39. /// </summary>
  40. /// <returns>JSON string presentation of the object</returns>
  41. public string ToJson() {
  42. return JsonConvert.SerializeObject(this, Formatting.Indented);
  43. }
  44. }
  45. }