NetworkMetricsModel.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 NetworkMetricsModel {
  13. /// <summary>
  14. /// Gets or Sets Receive
  15. /// </summary>
  16. [DataMember(Name="receive", EmitDefaultValue=false)]
  17. [JsonProperty(PropertyName = "receive")]
  18. public MetricsModel Receive { get; set; }
  19. /// <summary>
  20. /// Gets or Sets Transmit
  21. /// </summary>
  22. [DataMember(Name="transmit", EmitDefaultValue=false)]
  23. [JsonProperty(PropertyName = "transmit")]
  24. public MetricsModel Transmit { 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 NetworkMetricsModel {\n");
  32. sb.Append(" Receive: ").Append(Receive).Append("\n");
  33. sb.Append(" Transmit: ").Append(Transmit).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. }