NotificationReceivedArgs.dart 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. import 'package:event/event.dart';
  2. class NotificationReceivedArgs extends EventArgs {
  3. NotificationTypeEnum type;
  4. dynamic jsonMessage;
  5. NotificationReceivedArgs(this.type, this.jsonMessage);
  6. }
  7. enum NotificationTypeEnum {
  8. /// <summary>
  9. /// Unknown|0| 未知
  10. /// </summary>
  11. Unknown,
  12. /// <summary>
  13. /// ChatMsgNotification|1| 聊天通知
  14. /// </summary>
  15. ChatMsgNotification,
  16. /// <summary>
  17. /// TokenReplacedNotification|2| 账号被替换登出通知
  18. /// </summary>
  19. TokenReplacedNotification,
  20. /// <summary>
  21. /// DisconnectNotification| 3|与服务器断开连接通知
  22. /// </summary>
  23. DisconnectNotification,
  24. /// <summary>
  25. /// ConnectionNotification| 4| 与服务器已连接通知
  26. /// </summary>
  27. ConnectionNotification,
  28. /// <summary>
  29. /// ExamRecordsFinishedNotification| 5 | 完成检查通知
  30. /// </summary>
  31. ExamRecordsFinishedNotification,
  32. /// <summary>
  33. /// RejectApplyConsultationNotification| 6 | 拒绝预约申请的通知
  34. /// </summary>
  35. RejectApplyConsultationNotification,
  36. /// <summary>
  37. /// CancelInvitingInLiveConsultationNotification| 7 | 取消会诊过程中邀请其他成员的通知
  38. /// </summary>
  39. CancelInvitingInLiveConsultationNotification,
  40. /// <summary>
  41. /// InviteInLiveConsultationNotification| 8 | 会诊过程中邀请其他成员的通知
  42. /// </summary>
  43. InviteInLiveConsultationNotification,
  44. /// <summary>
  45. /// InviteInLiveConsultationNotification| 9 | 会诊开始前提醒的通知
  46. /// </summary>
  47. ConsultationRemindNotification,
  48. /// <summary>
  49. /// PasswordExpiredWarningNotification| 10 | 用户密码过期预警通知
  50. /// </summary>
  51. PasswordExpiredWarningNotification,
  52. /// <summary>
  53. /// InviteLiveConsultationNotification| 11 | 开始会诊的通知
  54. /// </summary>
  55. InviteLiveConsultationNotification,
  56. /// <summary>
  57. /// AcceptLiveConsultationNotification| 12 | 接受会诊的通知
  58. /// </summary>
  59. AcceptLiveConsultationNotification,
  60. /// <summary>
  61. /// RejectLiveConsultationNotification| 13 | 拒绝会诊的通知
  62. /// </summary>
  63. RejectLiveConsultationNotification,
  64. /// <summary>
  65. /// InviteLiveConsultationToDeviceNotification| 14 | 开始会诊通知 to 设备端
  66. /// </summary>
  67. InviteLiveConsultationToDeviceNotification,
  68. /// <summary>
  69. /// CancelLiveConsultationNotification| 15 | 取消会诊通知
  70. /// </summary>
  71. CancelLiveConsultationNotification,
  72. /// <summary>
  73. /// CloseLiveConsultationNotification| 16 | 关闭会诊通知
  74. /// </summary>
  75. CloseLiveConsultationNotification,
  76. /// <summary>
  77. /// JoinLiveConsultationNotification| 17 | 进入会诊通知
  78. /// </summary>
  79. JoinLiveConsultationNotification,
  80. /// <summary>
  81. /// NetworkErrConsultationNotification| 18 | 网络质量不佳会诊通知
  82. /// </summary>
  83. NetworkErrConsultationNotification,
  84. /// <summary>
  85. /// LeaveConsultationNotification| 19 | 离开会诊通知
  86. /// </summary>
  87. LeaveConsultationNotification,
  88. /// <summary>
  89. /// JoinInLiveConsultationNotification| 20 | 会诊中加入房间
  90. /// </summary>
  91. JoinInLiveConsultationNotification,
  92. /// <summary>
  93. /// RejectLiveConsultationNotification| 21 | 拒绝会诊的通知
  94. /// </summary>
  95. RejectInviteLiveConsultationNotification,
  96. /// <summary>
  97. /// ApplyConsultationNotification| 22 | 会诊申请通知
  98. /// </summary>
  99. ApplyConsultationNotification,
  100. /// <summary>
  101. /// ApprovalApplyConsultationNotification| 23 | 批准申请会诊通知
  102. /// </summary>
  103. ApprovalApplyConsultationNotification,
  104. /// <summary>
  105. /// InviteeConsultationNotification| 24 | 会诊受邀请人通知
  106. /// </summary>
  107. InviteeConsultationNotification,
  108. /// <summary>
  109. /// InviteeApproveApplyConsultationNotification| 25 | 会诊受邀请参与人同意通知
  110. /// </summary>
  111. InviteeApproveApplyConsultationNotification,
  112. /// <summary>
  113. /// InviteeRejectApplyConsultationNotification| 26 | 会诊受邀请参与人拒绝通知
  114. /// </summary>
  115. InviteeRejectApplyConsultationNotification,
  116. /// <summary>
  117. /// MuteLiveConsultationNotification| 27 | 开启关闭静音
  118. /// </summary>
  119. MuteLiveConsultationNotification,
  120. /// <summary>
  121. /// SwitchLiveConsultationVideoNotification| 28 | 开启关闭视频
  122. /// </summary>
  123. SwitchLiveConsultationVideoNotification,
  124. /// <summary>
  125. /// HeartRateJoinConsultationNotification| 29 | 会诊心跳,进入房间
  126. /// </summary>
  127. HeartRateJoinConsultationNotification,
  128. /// <summary>
  129. /// HeartRateLeaveConsultationNotification| 30 | 会诊心跳,离开房间
  130. /// </summary>
  131. HeartRateLeaveConsultationNotification,
  132. /// <summary>
  133. /// CloseLiveConsultationToDeviceNotification| 31 | 关闭会诊通知 to 设备端
  134. /// </summary>
  135. CloseLiveConsultationToDeviceNotification,
  136. /// <summary>
  137. /// CancelLiveConsultationToDeviceNotification| 32 | 取消会诊通知 to 设备端
  138. /// </summary>
  139. CancelLiveConsultationToDeviceNotification
  140. }