addressGPS.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MES.Production.Entity
  8. {
  9. public class AddressGPS
  10. {
  11. [JsonProperty("status")]
  12. public string Status { get; set; }
  13. [JsonProperty("info")]
  14. public string Info { get; set; }
  15. [JsonProperty("infocode")]
  16. public string Infocode { get; set; }
  17. [JsonProperty("count")]
  18. public string Count { get; set; }
  19. [JsonProperty("geocodes")]
  20. public IList<Geocode> Geocodes { get; set; }
  21. }
  22. public class Neighborhood
  23. {
  24. [JsonProperty("name")]
  25. public IList<object> Name { get; set; }
  26. [JsonProperty("type")]
  27. public IList<object> Type { get; set; }
  28. }
  29. public class Building
  30. {
  31. [JsonProperty("name")]
  32. public IList<object> Name { get; set; }
  33. [JsonProperty("type")]
  34. public IList<object> Type { get; set; }
  35. }
  36. public class Geocode
  37. {
  38. [JsonProperty("formatted_address")]
  39. public string FormattedAddress { get; set; }
  40. [JsonProperty("province")]
  41. public string Province { get; set; }
  42. [JsonProperty("citycode")]
  43. public string Citycode { get; set; }
  44. [JsonProperty("city")]
  45. public string City { get; set; }
  46. [JsonProperty("district")]
  47. public string District { get; set; }
  48. [JsonProperty("township")]
  49. public IList<object> Township { get; set; }
  50. [JsonProperty("neighborhood")]
  51. public Neighborhood Neighborhood { get; set; }
  52. [JsonProperty("building")]
  53. public Building Building { get; set; }
  54. [JsonProperty("adcode")]
  55. public string Adcode { get; set; }
  56. [JsonProperty("street")]
  57. public object Street { get; set; }
  58. [JsonProperty("number")]
  59. public object Number { get; set; }
  60. [JsonProperty("location")]
  61. public string Location { get; set; }
  62. [JsonProperty("level")]
  63. public string Level { get; set; }
  64. }
  65. }