Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

GaodeWifiResponseInfo.cs 2.5KB

před 10 měsíci
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using GpsCardGatewayPosition.Common.Helper;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace GpsCardGatewayPosition.Service.Biz.Location.Dto.Gaode
  9. {
  10. //高德接口返回的json对字符串的处理比较特殊,空字符串是用[]表示
  11. public class GaodeWifiResponseInfo
  12. {
  13. [JsonProperty("infocode")]
  14. [JsonConverter(typeof(StringJsonConvert))]
  15. public string InfoCode { get; set; }
  16. [JsonProperty("result")]
  17. public WifiResponseDetails Result { get; set; }
  18. [JsonProperty("info")]
  19. [JsonConverter(typeof(StringJsonConvert))]
  20. public string Info { get; set; }
  21. [JsonProperty("status")]
  22. [JsonConverter(typeof(StringJsonConvert))]
  23. public string Status { get; set; }
  24. public class WifiResponseDetails
  25. {
  26. [JsonProperty("city")]
  27. [JsonConverter(typeof(StringJsonConvert))]
  28. public string City { get; set; }
  29. [JsonProperty("province")]
  30. [JsonConverter(typeof(StringJsonConvert))]
  31. public string Province { get; set; }
  32. [JsonProperty("poi")]
  33. [JsonConverter(typeof(StringJsonConvert))]
  34. public string Poi { get; set; }
  35. [JsonProperty("adcode")]
  36. [JsonConverter(typeof(StringJsonConvert))]
  37. public string Adcode { get; set; }
  38. [JsonProperty("street")]
  39. [JsonConverter(typeof(StringJsonConvert))]
  40. public string Street { get; set; }
  41. [JsonProperty("desc")]
  42. [JsonConverter(typeof(StringJsonConvert))]
  43. public string Desc { get; set; }
  44. [JsonProperty("country")]
  45. [JsonConverter(typeof(StringJsonConvert))]
  46. public string Country { get; set; }
  47. [JsonProperty("type")]
  48. [JsonConverter(typeof(StringJsonConvert))]
  49. public string Type { get; set; }
  50. [JsonProperty("location")]
  51. [JsonConverter(typeof(StringJsonConvert))]
  52. public string Location { get; set; }
  53. [JsonProperty("road")]
  54. [JsonConverter(typeof(StringJsonConvert))]
  55. public string Road { get; set; }
  56. [JsonProperty("radius")]
  57. [JsonConverter(typeof(StringJsonConvert))]
  58. public string Radius { get; set; }
  59. [JsonProperty("citycode")]
  60. [JsonConverter(typeof(StringJsonConvert))]
  61. public string Citycode { get; set; }
  62. }
  63. }
  64. }