123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- import 'package:event/event.dart';
- class NotificationReceivedArgs extends EventArgs {
- NotificationTypeEnum type;
- dynamic jsonMessage;
- NotificationReceivedArgs(this.type, this.jsonMessage);
- }
- enum NotificationTypeEnum {
- /// <summary>
- /// Unknown|0| 未知
- /// </summary>
- Unknown,
- /// <summary>
- /// ChatMsgNotification|1| 聊天通知
- /// </summary>
- ChatMsgNotification,
- /// <summary>
- /// TokenReplacedNotification|2| 账号被替换登出通知
- /// </summary>
- TokenReplacedNotification,
- /// <summary>
- /// DisconnectNotification| 3|与服务器断开连接通知
- /// </summary>
- DisconnectNotification,
- /// <summary>
- /// ConnectionNotification| 4| 与服务器已连接通知
- /// </summary>
- ConnectionNotification,
- /// <summary>
- /// ExamRecordsFinishedNotification| 5 | 完成检查通知
- /// </summary>
- ExamRecordsFinishedNotification,
- /// <summary>
- /// RejectApplyConsultationNotification| 6 | 拒绝预约申请的通知
- /// </summary>
- RejectApplyConsultationNotification,
- /// <summary>
- /// CancelInvitingInLiveConsultationNotification| 7 | 取消会诊过程中邀请其他成员的通知
- /// </summary>
- CancelInvitingInLiveConsultationNotification,
- /// <summary>
- /// InviteInLiveConsultationNotification| 8 | 会诊过程中邀请其他成员的通知
- /// </summary>
- InviteInLiveConsultationNotification,
- /// <summary>
- /// InviteInLiveConsultationNotification| 9 | 会诊开始前提醒的通知
- /// </summary>
- ConsultationRemindNotification,
- /// <summary>
- /// PasswordExpiredWarningNotification| 10 | 用户密码过期预警通知
- /// </summary>
- PasswordExpiredWarningNotification,
- /// <summary>
- /// InviteLiveConsultationNotification| 11 | 开始会诊的通知
- /// </summary>
- InviteLiveConsultationNotification,
- /// <summary>
- /// AcceptLiveConsultationNotification| 12 | 接受会诊的通知
- /// </summary>
- AcceptLiveConsultationNotification,
- /// <summary>
- /// RejectLiveConsultationNotification| 13 | 拒绝会诊的通知
- /// </summary>
- RejectLiveConsultationNotification,
- /// <summary>
- /// InviteLiveConsultationToDeviceNotification| 14 | 开始会诊通知 to 设备端
- /// </summary>
- InviteLiveConsultationToDeviceNotification,
- /// <summary>
- /// CancelLiveConsultationNotification| 15 | 取消会诊通知
- /// </summary>
- CancelLiveConsultationNotification,
- /// <summary>
- /// CloseLiveConsultationNotification| 16 | 关闭会诊通知
- /// </summary>
- CloseLiveConsultationNotification,
- /// <summary>
- /// JoinLiveConsultationNotification| 17 | 进入会诊通知
- /// </summary>
- JoinLiveConsultationNotification,
- /// <summary>
- /// NetworkErrConsultationNotification| 18 | 网络质量不佳会诊通知
- /// </summary>
- NetworkErrConsultationNotification,
- /// <summary>
- /// LeaveConsultationNotification| 19 | 离开会诊通知
- /// </summary>
- LeaveConsultationNotification,
- /// <summary>
- /// JoinInLiveConsultationNotification| 20 | 会诊中加入房间
- /// </summary>
- JoinInLiveConsultationNotification,
- /// <summary>
- /// RejectLiveConsultationNotification| 21 | 拒绝会诊的通知
- /// </summary>
- RejectInviteLiveConsultationNotification,
- /// <summary>
- /// ApplyConsultationNotification| 22 | 会诊申请通知
- /// </summary>
- ApplyConsultationNotification,
- /// <summary>
- /// ApprovalApplyConsultationNotification| 23 | 批准申请会诊通知
- /// </summary>
- ApprovalApplyConsultationNotification,
- /// <summary>
- /// InviteeConsultationNotification| 24 | 会诊受邀请人通知
- /// </summary>
- InviteeConsultationNotification,
- /// <summary>
- /// InviteeApproveApplyConsultationNotification| 25 | 会诊受邀请参与人同意通知
- /// </summary>
- InviteeApproveApplyConsultationNotification,
- /// <summary>
- /// InviteeRejectApplyConsultationNotification| 26 | 会诊受邀请参与人拒绝通知
- /// </summary>
- InviteeRejectApplyConsultationNotification,
- /// <summary>
- /// MuteLiveConsultationNotification| 27 | 开启关闭静音
- /// </summary>
- MuteLiveConsultationNotification,
- /// <summary>
- /// SwitchLiveConsultationVideoNotification| 28 | 开启关闭视频
- /// </summary>
- SwitchLiveConsultationVideoNotification,
- /// <summary>
- /// HeartRateJoinConsultationNotification| 29 | 会诊心跳,进入房间
- /// </summary>
- HeartRateJoinConsultationNotification,
- /// <summary>
- /// HeartRateLeaveConsultationNotification| 30 | 会诊心跳,离开房间
- /// </summary>
- HeartRateLeaveConsultationNotification,
- /// <summary>
- /// CloseLiveConsultationToDeviceNotification| 31 | 关闭会诊通知 to 设备端
- /// </summary>
- CloseLiveConsultationToDeviceNotification,
- /// <summary>
- /// CancelLiveConsultationToDeviceNotification| 32 | 取消会诊通知 to 设备端
- /// </summary>
- CancelLiveConsultationToDeviceNotification
- }
|