AppVersionProbe.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 AppVersionProbe {
  13. /// <summary>
  14. /// Your optimal value for Latency
  15. /// </summary>
  16. /// <value>Your optimal value for Latency</value>
  17. [DataMember(Name="optimal_ping", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "optimal_ping")]
  19. public int? OptimalPing { get; set; }
  20. /// <summary>
  21. /// Your reject value for Latency
  22. /// </summary>
  23. /// <value>Your reject value for Latency</value>
  24. [DataMember(Name="rejected_ping", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "rejected_ping")]
  26. public int? RejectedPing { get; set; }
  27. /// <summary>
  28. /// Get the string presentation of the object
  29. /// </summary>
  30. /// <returns>String presentation of the object</returns>
  31. public override string ToString() {
  32. StringBuilder sb = new StringBuilder();
  33. sb.Append("class AppVersionProbe {\n");
  34. sb.Append(" OptimalPing: ").Append(OptimalPing).Append("\n");
  35. sb.Append(" RejectedPing: ").Append(RejectedPing).Append("\n");
  36. sb.Append("}\n");
  37. return sb.ToString();
  38. }
  39. /// <summary>
  40. /// Get the JSON string presentation of the object
  41. /// </summary>
  42. /// <returns>JSON string presentation of the object</returns>
  43. public string ToJson() {
  44. return JsonConvert.SerializeObject(this, Formatting.Indented);
  45. }
  46. }
  47. }