Alarm.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Edge.Core.IndustryStandardInterface.ATG;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Text;
  6. namespace Application.ATG_Classic_App.Model
  7. {
  8. public class Alarm
  9. {
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. [Key]
  14. public int Id { get; set; }
  15. public AlarmPriority Priority { get; set; }
  16. /// <summary>
  17. /// This Alarm is for which tank.
  18. /// </summary>
  19. public byte TankNumber { get; set; }
  20. public AlarmType Type { get; set; }
  21. public string Description { get; set; }
  22. /// <summary>
  23. /// whether this alarm is acked by user in UI(by a click), since it causes constanly beeping or flashing.
  24. /// </summary>
  25. //public DateTime? AcknowledgedTimeStamp { get; set; }
  26. public DateTime CreatedTimeStamp { get; set; }
  27. /// <summary>
  28. /// the fix time of this alarm.
  29. /// </summary>
  30. public DateTime? ClearedTimeStamp { get; set; }
  31. }
  32. }