TmcsItem.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 StepItem
  10. {
  11. [JsonProperty("instruction")]
  12. public string Instruction { get; set; }
  13. [JsonProperty("orientation")]
  14. public string Orientation { get; set; }
  15. [JsonProperty("distance")]
  16. public string Distance { get; set; }
  17. [JsonProperty("tolls")]
  18. public string Tolls { get; set; }
  19. [JsonProperty("toll_distance")]
  20. public string TollDistance { get; set; }
  21. [JsonProperty("toll_road")]
  22. public IList<object> TollRoad { get; set; }
  23. [JsonProperty("duration")]
  24. public string Duration { get; set; }
  25. [JsonProperty("polyline")]
  26. public string Polyline { get; set; }
  27. [JsonProperty("action")]
  28. public object Action { get; set; }
  29. [JsonProperty("assistant_action")]
  30. public object AssistantAction { get; set; }
  31. [JsonProperty("road")]
  32. public string Road { get; set; }
  33. }
  34. public class PathsItem
  35. {
  36. [JsonProperty("distance")]
  37. public string Distance { get; set; }
  38. [JsonProperty("duration")]
  39. public string Duration { get; set; }
  40. [JsonProperty("strategy")]
  41. public string Strategy { get; set; }
  42. [JsonProperty("tolls")]
  43. public string Tolls { get; set; }
  44. [JsonProperty("toll_distance")]
  45. public string TollDistance { get; set; }
  46. [JsonProperty("steps")]
  47. public IList<StepItem> Steps { get; set; }
  48. [JsonProperty("restriction")]
  49. public string Restriction { get; set; }
  50. [JsonProperty("traffic_lights")]
  51. public string TrafficLights { get; set; }
  52. }
  53. public class Route
  54. {
  55. [JsonProperty("origin")]
  56. public string Origin { get; set; }
  57. [JsonProperty("destination")]
  58. public string Destination { get; set; }
  59. [JsonProperty("paths")]
  60. public IList<PathsItem> Paths { get; set; }
  61. }
  62. public class Sample
  63. {
  64. [JsonProperty("status")]
  65. public string Status { get; set; }
  66. [JsonProperty("info")]
  67. public string Info { get; set; }
  68. [JsonProperty("infocode")]
  69. public string Infocode { get; set; }
  70. [JsonProperty("count")]
  71. public string Count { get; set; }
  72. [JsonProperty("route")]
  73. public Route Route { get; set; }
  74. }
  75. }