using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace IO.Swagger.Model { /// /// /// [DataContract] public class StaticSites { /// /// The URL to bind to /// /// The URL to bind to [DataMember(Name="url", EmitDefaultValue=false)] [JsonProperty(PropertyName = "url")] public string Url { get; set; } /// /// Public IP of the Site /// /// Public IP of the Site [DataMember(Name="public_ip", EmitDefaultValue=false)] [JsonProperty(PropertyName = "public_ip")] public string PublicIp { get; set; } /// /// Port to Bind to /// /// Port to Bind to [DataMember(Name="port", EmitDefaultValue=false)] [JsonProperty(PropertyName = "port")] public decimal? Port { get; set; } /// /// Latitude of the Site /// /// Latitude of the Site [DataMember(Name="latitude", EmitDefaultValue=false)] [JsonProperty(PropertyName = "latitude")] public decimal? Latitude { get; set; } /// /// Longitude of the Site /// /// Longitude of the Site [DataMember(Name="longitude", EmitDefaultValue=false)] [JsonProperty(PropertyName = "longitude")] public decimal? Longitude { get; set; } /// /// City of the Site /// /// City of the Site [DataMember(Name="city", EmitDefaultValue=false)] [JsonProperty(PropertyName = "city")] public string City { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class StaticSites {\n"); sb.Append(" Url: ").Append(Url).Append("\n"); sb.Append(" PublicIp: ").Append(PublicIp).Append("\n"); sb.Append(" Port: ").Append(Port).Append("\n"); sb.Append(" Latitude: ").Append(Latitude).Append("\n"); sb.Append(" Longitude: ").Append(Longitude).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }