AlarmHistoryResult.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using CommunityToolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ivf_tl_Entity
  8. {
  9. public class AlarmHistoryResult
  10. {
  11. public List<AlarmHistoryEntity> records { get; set; } = new List<AlarmHistoryEntity>();
  12. public int total { get; set; }
  13. public bool IsSuccess { get; set; } = true;
  14. }
  15. public class AlarmHistoryEntity : ObservableObject
  16. {
  17. public int num { get; set; }
  18. public string fayuTime { get; set; } = "---";
  19. public string alarmState { get; set; } = "结束报警";
  20. public string alarmContent { get; set; }
  21. public string tlName { get; set; }
  22. public long id { get; set; }
  23. private string _tlSn;
  24. public string tlSn { get => _tlSn; set => SetProperty(ref _tlSn, value); }
  25. private int _wellSn;
  26. public int wellSn { get => _wellSn; set => SetProperty(ref _wellSn, value); }
  27. private int _houseSn;
  28. public int houseSn { get => _houseSn; set => SetProperty(ref _houseSn, value); }
  29. private int _alarmTypeId;
  30. public int alarmTypeId { get => _alarmTypeId; set => SetProperty(ref _alarmTypeId, value); }
  31. private string _alarmKey;
  32. public string alarmKey { get => _alarmKey; set => SetProperty(ref _alarmKey, value); }
  33. private string _title;
  34. public string title { get => _title; set => SetProperty(ref _title, value); }
  35. private string _text;
  36. public string text { get => _text; set => SetProperty(ref _text, value); }
  37. private string _textDetail;
  38. public string textDetail { get => _textDetail; set => SetProperty(ref _textDetail, value); }
  39. private string _startTime;
  40. public string startTime { get => _startTime; set => SetProperty(ref _startTime, value); }
  41. private string _endTime = "---";
  42. public string endTime { get => _endTime; set => SetProperty(ref _endTime, value); }
  43. private int _type;
  44. public int type { get => _type; set => SetProperty(ref _type, value); }
  45. /// <summary>
  46. /// 是否静音 0 否 1 是
  47. /// </summary>
  48. public int mute { get; set; }
  49. }
  50. }