Locations.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 Locations {
  13. /// <summary>
  14. /// Gets or Sets _Locations
  15. /// </summary>
  16. [DataMember(Name="locations", EmitDefaultValue=false)]
  17. [JsonProperty(PropertyName = "locations")]
  18. public List<Location> _Locations { get; set; }
  19. /// <summary>
  20. /// Extra Messages for the query
  21. /// </summary>
  22. /// <value>Extra Messages for the query</value>
  23. [DataMember(Name="messages", EmitDefaultValue=false)]
  24. [JsonProperty(PropertyName = "messages")]
  25. public List<string> Messages { get; set; }
  26. /// <summary>
  27. /// Get the string presentation of the object
  28. /// </summary>
  29. /// <returns>String presentation of the object</returns>
  30. public override string ToString() {
  31. StringBuilder sb = new StringBuilder();
  32. sb.Append("class Locations {\n");
  33. sb.Append(" _Locations: ").Append(_Locations).Append("\n");
  34. sb.Append(" Messages: ").Append(Messages).Append("\n");
  35. sb.Append("}\n");
  36. return sb.ToString();
  37. }
  38. /// <summary>
  39. /// Get the JSON string presentation of the object
  40. /// </summary>
  41. /// <returns>JSON string presentation of the object</returns>
  42. public string ToJson() {
  43. return JsonConvert.SerializeObject(this, Formatting.Indented);
  44. }
  45. }
  46. }