StaticSites.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 StaticSites {
  13. /// <summary>
  14. /// The URL to bind to
  15. /// </summary>
  16. /// <value>The URL to bind to</value>
  17. [DataMember(Name="url", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "url")]
  19. public string Url { get; set; }
  20. /// <summary>
  21. /// Public IP of the Site
  22. /// </summary>
  23. /// <value>Public IP of the Site</value>
  24. [DataMember(Name="public_ip", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "public_ip")]
  26. public string PublicIp { get; set; }
  27. /// <summary>
  28. /// Port to Bind to
  29. /// </summary>
  30. /// <value>Port to Bind to</value>
  31. [DataMember(Name="port", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "port")]
  33. public decimal? Port { get; set; }
  34. /// <summary>
  35. /// Latitude of the Site
  36. /// </summary>
  37. /// <value>Latitude of the Site</value>
  38. [DataMember(Name="latitude", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "latitude")]
  40. public decimal? Latitude { get; set; }
  41. /// <summary>
  42. /// Longitude of the Site
  43. /// </summary>
  44. /// <value>Longitude of the Site</value>
  45. [DataMember(Name="longitude", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "longitude")]
  47. public decimal? Longitude { get; set; }
  48. /// <summary>
  49. /// City of the Site
  50. /// </summary>
  51. /// <value>City of the Site</value>
  52. [DataMember(Name="city", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "city")]
  54. public string City { get; set; }
  55. /// <summary>
  56. /// Get the string presentation of the object
  57. /// </summary>
  58. /// <returns>String presentation of the object</returns>
  59. public override string ToString() {
  60. StringBuilder sb = new StringBuilder();
  61. sb.Append("class StaticSites {\n");
  62. sb.Append(" Url: ").Append(Url).Append("\n");
  63. sb.Append(" PublicIp: ").Append(PublicIp).Append("\n");
  64. sb.Append(" Port: ").Append(Port).Append("\n");
  65. sb.Append(" Latitude: ").Append(Latitude).Append("\n");
  66. sb.Append(" Longitude: ").Append(Longitude).Append("\n");
  67. sb.Append(" City: ").Append(City).Append("\n");
  68. sb.Append("}\n");
  69. return sb.ToString();
  70. }
  71. /// <summary>
  72. /// Get the JSON string presentation of the object
  73. /// </summary>
  74. /// <returns>JSON string presentation of the object</returns>
  75. public string ToJson() {
  76. return JsonConvert.SerializeObject(this, Formatting.Indented);
  77. }
  78. }
  79. }