StationInfoOutput.cs 2.8 KB

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