VRBoardAlarmRecord.cs 1023 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace VaporRecoveryOnlineWatchHubApp.UnversalApiModels
  6. {
  7. public class VRBoardAlarmRecord
  8. {
  9. public DateTime? AlarmTime { get; set; } = DateTime.Now;
  10. public int SiteLevelNozzleId { get; set; }
  11. public VRBoardAlarmType AlarmType { get; set; }
  12. public string AlarmDescription { get; set; }
  13. public string AlarmDetails { get; set; }
  14. public int RecordCount { get; set; }
  15. public int AlarmCount { get; set; }
  16. public double AlarmPercentage { get; set; }
  17. public double AverageVaporLiquidRatio { get; set; }
  18. public double TimeInterval { get; set; }
  19. public int Acknowledged { get; set; } = 0;
  20. public override string ToString()
  21. {
  22. return GetType().GetProperties().Aggregate(string.Empty,
  23. (result, next) => result + $"{next.Name} : {(next.GetValue(this)?.ToString()) ?? string.Empty} ");
  24. }
  25. }
  26. }