StationInfoOutput.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. this.PaymentType = fccStationInfo.PaymentType;
  36. this.CheckOrderInterval = fccStationInfo.CheckOrderInterval;
  37. }
  38. /// <summary>
  39. /// id
  40. /// </summary>
  41. public long? Id { get; set; }
  42. /// <summary>
  43. /// 云端站点 id
  44. /// </summary>
  45. public string BuildId { get; set; }
  46. /// <summary>
  47. /// 客户端id
  48. /// </summary>
  49. public string SecretId { get; set; }
  50. /// <summary>
  51. /// 与云端加密的 key
  52. /// </summary>
  53. public string AcessKey { get; set; }
  54. /// <summary>
  55. /// 站点名称
  56. /// </summary>
  57. public string? Name { get; set; }
  58. /// <summary>
  59. /// 经度
  60. /// </summary>
  61. public decimal Longitude { get; set; }
  62. /// <summary>
  63. /// 纬度
  64. /// </summary>
  65. public decimal Latitude { get; set; }
  66. /// <summary>
  67. /// 小程序链接地址
  68. /// </summary>
  69. public string SmallProgram { get; set; }
  70. /// <summary>
  71. /// 云端地址
  72. /// </summary>
  73. public string CloudService { get; set; }
  74. /// <summary>
  75. /// 云端 MQTT 地址
  76. /// </summary>
  77. public string MqttService { get; set; }
  78. /// <summary>
  79. /// icard 数据库连接地址
  80. /// </summary>
  81. public string? IcardService { get; set; }
  82. /// <summary>
  83. /// 本地 fcc 与 fcc 页面 webSocket 端口
  84. /// </summary>
  85. public string WebSocketPort { get; set; }
  86. /// <summary>
  87. /// 支付方式,【id+支付名称,id+支付名称】
  88. /// </summary>
  89. public string PaymentType { get; set; }
  90. /// <summary>
  91. /// 检查订单时间间隔
  92. /// </summary>
  93. public int CheckOrderInterval { get; set; }
  94. }
  95. }