StationInfoOutput.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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.SecretId = fccStationInfo.SecretId;
  26. this.AcessKey = fccStationInfo.AcessKey;
  27. this.Name = fccStationInfo.Name;
  28. this.Longitude = fccStationInfo.Longitude;
  29. this.Latitude = fccStationInfo.Latitude;
  30. this.SmallProgram = fccStationInfo.SmallProgram;
  31. this.CloudService = fccStationInfo.CloudService;
  32. this.MqttService = fccStationInfo.MqttService;
  33. this.IcardService = fccStationInfo.IcardService;
  34. this.WebSocketPort = fccStationInfo.WebSocketPort;
  35. }
  36. /// <summary>
  37. /// id
  38. /// </summary>
  39. public long? Id { get; set; }
  40. /// <summary>
  41. /// 云端站点 id
  42. /// </summary>
  43. public string BuildId { get; set; }
  44. /// <summary>
  45. /// 客户端id
  46. /// </summary>
  47. public string SecretId { get; set; }
  48. /// <summary>
  49. /// 与云端加密的 key
  50. /// </summary>
  51. public string AcessKey { get; set; }
  52. /// <summary>
  53. /// 站点名称
  54. /// </summary>
  55. public string? Name { get; set; }
  56. /// <summary>
  57. /// 经度
  58. /// </summary>
  59. public decimal Longitude { get; set; }
  60. /// <summary>
  61. /// 纬度
  62. /// </summary>
  63. public decimal Latitude { get; set; }
  64. /// <summary>
  65. /// 小程序链接地址
  66. /// </summary>
  67. public string SmallProgram { get; set; }
  68. /// <summary>
  69. /// 云端地址
  70. /// </summary>
  71. public string CloudService { get; set; }
  72. /// <summary>
  73. /// 云端 MQTT 地址
  74. /// </summary>
  75. public string MqttService { get; set; }
  76. /// <summary>
  77. /// icard 数据库连接地址
  78. /// </summary>
  79. public string? IcardService { get; set; }
  80. /// <summary>
  81. /// 本地 fcc 与油机 socket 通讯端口
  82. /// </summary>
  83. public string ServicePort { get; set; }
  84. /// <summary>
  85. /// 本地 fcc 与 fcc 页面 webSocket 端口
  86. /// </summary>
  87. public string WebSocketPort { get; set; }
  88. }
  89. }