ClientNotification.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SKMC.Api.Client.Model
  8. {
  9. /// <summary>
  10. /// 客户端UI提醒, 提供3个级别对应3个背景色
  11. /// </summary>
  12. public class ClientNotification : BindableBase
  13. {
  14. private string _head;
  15. /// <summary>
  16. /// 主标题
  17. /// </summary>
  18. public string Head
  19. {
  20. get { return _head; }
  21. set { _head = value; RaisePropertyChanged(); }
  22. }
  23. private string _detail;
  24. /// <summary>
  25. /// 详情
  26. /// </summary>
  27. public string Detail
  28. {
  29. get { return _detail; }
  30. set { _detail = value; RaisePropertyChanged(); }
  31. }
  32. private DateTime _dateTime;
  33. /// <summary>
  34. /// 发生时间
  35. /// </summary>
  36. public DateTime DateTime
  37. {
  38. get { return _dateTime; }
  39. set { _dateTime = value; RaisePropertyChanged(); }
  40. }
  41. private byte _level;
  42. /// <summary>
  43. /// 提醒级别 0:普通提醒(浅蓝色背景) 1: 重要提醒(黄色背景) 2:紧急提醒(红色背景)
  44. /// </summary>
  45. public byte Level
  46. {
  47. get { return _level; }
  48. set { _level = value; RaisePropertyChanged(); }
  49. }
  50. public Action ConfirmAction { get; set; }
  51. }
  52. }