DeploymentLocation.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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 DeploymentLocation {
  13. /// <summary>
  14. /// City of the deployment
  15. /// </summary>
  16. /// <value>City of the deployment</value>
  17. [DataMember(Name="city", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "city")]
  19. public string City { get; set; }
  20. /// <summary>
  21. /// Country of the deployment
  22. /// </summary>
  23. /// <value>Country of the deployment</value>
  24. [DataMember(Name="country", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "country")]
  26. public string Country { get; set; }
  27. /// <summary>
  28. /// Continent of the deployment
  29. /// </summary>
  30. /// <value>Continent of the deployment</value>
  31. [DataMember(Name="continent", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "continent")]
  33. public string Continent { get; set; }
  34. /// <summary>
  35. /// Administrative division of the deployment
  36. /// </summary>
  37. /// <value>Administrative division of the deployment</value>
  38. [DataMember(Name="administrative_division", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "administrative_division")]
  40. public string AdministrativeDivision { get; set; }
  41. /// <summary>
  42. /// Timezone of the deployment
  43. /// </summary>
  44. /// <value>Timezone of the deployment</value>
  45. [DataMember(Name="timezone", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "timezone")]
  47. public string Timezone { get; set; }
  48. /// <summary>
  49. /// Latitude of the deployment
  50. /// </summary>
  51. /// <value>Latitude of the deployment</value>
  52. [DataMember(Name="latitude", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "latitude")]
  54. public decimal? Latitude { get; set; }
  55. /// <summary>
  56. /// Longitude of the deployment
  57. /// </summary>
  58. /// <value>Longitude of the deployment</value>
  59. [DataMember(Name="longitude", EmitDefaultValue=false)]
  60. [JsonProperty(PropertyName = "longitude")]
  61. public decimal? Longitude { get; set; }
  62. /// <summary>
  63. /// Get the string presentation of the object
  64. /// </summary>
  65. /// <returns>String presentation of the object</returns>
  66. public override string ToString() {
  67. StringBuilder sb = new StringBuilder();
  68. sb.Append("class DeploymentLocation {\n");
  69. sb.Append(" City: ").Append(City).Append("\n");
  70. sb.Append(" Country: ").Append(Country).Append("\n");
  71. sb.Append(" Continent: ").Append(Continent).Append("\n");
  72. sb.Append(" AdministrativeDivision: ").Append(AdministrativeDivision).Append("\n");
  73. sb.Append(" Timezone: ").Append(Timezone).Append("\n");
  74. sb.Append(" Latitude: ").Append(Latitude).Append("\n");
  75. sb.Append(" Longitude: ").Append(Longitude).Append("\n");
  76. sb.Append("}\n");
  77. return sb.ToString();
  78. }
  79. /// <summary>
  80. /// Get the JSON string presentation of the object
  81. /// </summary>
  82. /// <returns>JSON string presentation of the object</returns>
  83. public string ToJson() {
  84. return JsonConvert.SerializeObject(this, Formatting.Indented);
  85. }
  86. }
  87. }