StatusTimeInfo.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NEIntelligentControl2.Models.Windturbine
  7. {
  8. /// <summary>
  9. /// 状态时间信息
  10. /// </summary>
  11. public class StatusTimeInfo
  12. {
  13. /// <summary>
  14. /// 状态开始时间戳
  15. /// </summary>
  16. public long Ts { get; set; }
  17. /// <summary>
  18. /// 状态
  19. /// </summary>
  20. public string Status { get; set; }
  21. /// <summary>
  22. /// 风机名称
  23. /// </summary>
  24. public string Code { get; set; }
  25. /// <summary>
  26. /// 开始时间
  27. /// </summary>
  28. public string StartTime { get; set; }
  29. /// <summary>
  30. /// 结束时间
  31. /// </summary>
  32. public string EndTime { get; set; }
  33. private double duration;
  34. /// <summary>
  35. /// 状态持续时间
  36. /// </summary>
  37. public double Duration { get => duration; set => duration = Math.Round(value, 2); }
  38. /// <summary>
  39. /// 状态名称
  40. /// </summary>
  41. public string StatusName { get; set; }
  42. }
  43. }