|
@@ -91,6 +91,7 @@ class UserView extends StatelessWidget {
|
|
|
var messageConent =
|
|
|
Uint8List.fromList(messageConentList);
|
|
|
var messageText = Utf8Decoder().convert(messageConent);
|
|
|
+ print("message text:" + messageText);
|
|
|
Map<String, dynamic> messageObject =
|
|
|
jsonDecode(messageText);
|
|
|
//通知类型区分
|
|
@@ -114,6 +115,14 @@ class UserView extends StatelessWidget {
|
|
|
messageObject);
|
|
|
print(
|
|
|
"FinishNotifyRecordsMessage.NotificationType:${disconnectNotification.notificationType}, ${disconnectNotification.codes}");
|
|
|
+ } else if (messageObject["NotificationType"] as int ==
|
|
|
+ NotificationTypeEnum
|
|
|
+ .InviteLiveConsultationNotification.index) {
|
|
|
+ print(
|
|
|
+ "InviteLiveConsultationNotification.NotificationType");
|
|
|
+ } else {
|
|
|
+ // print(
|
|
|
+ // "channel message: ${messageObject["NotificationType"]}");
|
|
|
}
|
|
|
|
|
|
message = messageText;
|
|
@@ -202,6 +211,25 @@ enum NotificationTypeEnum {
|
|
|
///CancelInvitedEnterRoomNotification| 8 |取消邀请用户通知
|
|
|
/// </summary>
|
|
|
CancelInvitedEnterRoomNotification,
|
|
|
+
|
|
|
+ placeholder9,
|
|
|
+ placeholder10,
|
|
|
+ placeholder11,
|
|
|
+ placeholder12,
|
|
|
+ placeholder13,
|
|
|
+ placeholder14,
|
|
|
+ placeholder15,
|
|
|
+ placeholder16,
|
|
|
+ placeholder17,
|
|
|
+ placeholder18,
|
|
|
+ placeholder19,
|
|
|
+ placeholder20,
|
|
|
+ placeholder21,
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///InviteLiveConsultationNotification| 22 |开始会诊
|
|
|
+ /// </summary>
|
|
|
+ InviteLiveConsultationNotification,
|
|
|
}
|
|
|
|
|
|
class ConnectionNotification {
|