DistrictResultJson.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Collections.Generic;
  2. namespace Senparc.Weixin.MP.AdvancedAPIs.Wxa.MerchantJson
  3. {
  4. public class DistrictResultJson
  5. {
  6. public int status { get; set; }
  7. public string message { get; set; }
  8. public string data_version { get; set; }
  9. /// <summary>
  10. /// result[0]是省 result[1]是市 result[2]是区
  11. /// </summary>
  12. public IEnumerable<District>[] result { get; set; }
  13. }
  14. /// <summary>
  15. /// 地区信息
  16. /// </summary>
  17. public class District
  18. {
  19. /// <summary>
  20. /// 地区id
  21. /// </summary>
  22. public int id { get; set; }
  23. /// <summary>
  24. /// 简称 只有该地区名字
  25. /// </summary>
  26. public string name { get; set; }
  27. /// <summary>
  28. /// 全称 省市区的名字
  29. /// </summary>
  30. public string fullname { get; set; }
  31. /// <summary>
  32. /// 拼音
  33. /// </summary>
  34. public IEnumerable<string> pinyin { get; set; }
  35. /// <summary>
  36. /// 经纬度
  37. /// </summary>
  38. public Location location { get; set; }
  39. /// <summary>
  40. /// 下级的地区id
  41. /// </summary>
  42. public IEnumerable<int> cidx { get; set; }
  43. }
  44. public class Location
  45. {
  46. /// <summary>
  47. /// 经度
  48. /// </summary>
  49. public double lat { get; set; }
  50. /// <summary>
  51. /// 纬度
  52. /// </summary>
  53. public double lng { get; set; }
  54. }
  55. }