StationInfoOutput.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. using System.Numerics;
  2. namespace Edge.Core.Domain.FccStationInfo.Output
  3. {
  4. /// <summary>
  5. /// 获取站点基本信息结果
  6. /// </summary>
  7. public class StationInfoOutput
  8. {
  9. /// <summary>
  10. /// 总数量
  11. /// </summary>
  12. public int Total { get; set; }
  13. /// <summary>
  14. /// 站点信息
  15. /// </summary>
  16. public List<StationInfo> StationList { get; set; }
  17. }
  18. public class StationInfo
  19. {
  20. public StationInfo() { }
  21. public StationInfo(FccStationInfo fccStationInfo)
  22. {
  23. this.Id = fccStationInfo.Id;
  24. this.BuildId = fccStationInfo.BuildId;
  25. this.Name = fccStationInfo.Name;
  26. this.Longitude = fccStationInfo.Longitude;
  27. this.Latitude = fccStationInfo.Latitude;
  28. this.SmallProgram = fccStationInfo.SmallProgram;
  29. this.CloudService = fccStationInfo.CloudService;
  30. this.MqttService = fccStationInfo.MqttService;
  31. this.IcardService = fccStationInfo.IcardService;
  32. this.ServicePort = fccStationInfo.ServicePort;
  33. this.WebSocketPort = fccStationInfo.WebSocketPort;
  34. }
  35. /// <summary>
  36. /// id
  37. /// </summary>
  38. public long? Id { get; set; }
  39. /// <summary>
  40. /// 云端站点 id
  41. /// </summary>
  42. public string BuildId { get; set; }
  43. /// <summary>
  44. /// 站点名称
  45. /// </summary>
  46. public string? Name { get; set; }
  47. /// <summary>
  48. /// 经度
  49. /// </summary>
  50. public decimal Longitude { get; set; }
  51. /// <summary>
  52. /// 纬度
  53. /// </summary>
  54. public decimal Latitude { get; set; }
  55. /// <summary>
  56. /// 小程序链接地址
  57. /// </summary>
  58. public string SmallProgram { get; set; }
  59. /// <summary>
  60. /// 云端地址
  61. /// </summary>
  62. public string CloudService { get; set; }
  63. /// <summary>
  64. /// 云端 MQTT 地址
  65. /// </summary>
  66. public string MqttService { get; set; }
  67. /// <summary>
  68. /// icard 数据库连接地址
  69. /// </summary>
  70. public string? IcardService { get; set; }
  71. /// <summary>
  72. /// 本地 fcc 与油机 socket 通讯端口
  73. /// </summary>
  74. public string ServicePort { get; set; }
  75. /// <summary>
  76. /// 本地 fcc 与 fcc 页面 webSocket 端口
  77. /// </summary>
  78. public string WebSocketPort { get; set; }
  79. }
  80. }