You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

50 lines
1.4 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.Toolkit.Mvvm.ComponentModel;
  7. namespace HBLConsole.Model
  8. {
  9. public class Alarm : ObservableObject
  10. {
  11. /// <summary>
  12. /// ID
  13. /// </summary>
  14. public int Id { get { return _mId; } set { _mId = value; OnPropertyChanged(); } }
  15. private int _mId;
  16. /// <summary>
  17. /// 日期
  18. /// </summary>
  19. public string Date { get { return _mDate; } set { _mDate = value; OnPropertyChanged(); } }
  20. private string _mDate;
  21. /// <summary>
  22. /// 时间
  23. /// </summary>
  24. public string Time { get { return _mTime; } set { _mTime = value; OnPropertyChanged(); } }
  25. private string _mTime;
  26. /// <summary>
  27. /// 报警信息
  28. /// </summary>
  29. public string Info { get { return _mInfo; } set { _mInfo = value; OnPropertyChanged(); } }
  30. private string _mInfo;
  31. /// <summary>
  32. /// 报警值
  33. /// </summary>
  34. public string Value { get { return _mValue; } set { _mValue = value; OnPropertyChanged(); } }
  35. private string _mValue;
  36. /// <summary>
  37. /// 报警等级
  38. /// </summary>
  39. public string Grade { get { return _mGrade; } set { _mGrade = value; OnPropertyChanged(); } }
  40. private string _mGrade;
  41. }
  42. }