Update error code
This commit is contained in:
@@ -51,8 +51,11 @@ class ConversationInfo {
|
||||
/// 可阅读期限 s
|
||||
int? burnDuration;
|
||||
|
||||
/// 附加内容
|
||||
String? ext;
|
||||
/// 是否开启定期销毁
|
||||
bool? isMsgDestruct;
|
||||
|
||||
/// 定期销毁时间 s
|
||||
int? msgDestructTime;
|
||||
|
||||
/// 附加内容
|
||||
String? ex;
|
||||
@@ -78,7 +81,9 @@ class ConversationInfo {
|
||||
this.isPinned,
|
||||
this.isNotInGroup,
|
||||
this.ex,
|
||||
this.ext,
|
||||
this.groupAtType,
|
||||
this.isMsgDestruct,
|
||||
this.msgDestructTime,
|
||||
});
|
||||
|
||||
ConversationInfo.fromJson(Map<String, dynamic> json)
|
||||
@@ -106,7 +111,8 @@ class ConversationInfo {
|
||||
isNotInGroup = json['isNotInGroup'];
|
||||
groupAtType = json['groupAtType'];
|
||||
ex = json['ex'];
|
||||
ext = json['ext'];
|
||||
isMsgDestruct = json['isMsgDestruct'];
|
||||
msgDestructTime = json['msgDestructTime'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -129,7 +135,8 @@ class ConversationInfo {
|
||||
data['isNotInGroup'] = this.isNotInGroup;
|
||||
data['groupAtType'] = this.groupAtType;
|
||||
data['ex'] = this.ex;
|
||||
data['ext'] = this.ext;
|
||||
data['isMsgDestruct'] = this.isMsgDestruct;
|
||||
data['msgDestructTime'] = this.msgDestructTime;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class MeetingInfoList {
|
||||
}
|
||||
|
||||
class MeetingInfo {
|
||||
String? meetingID;
|
||||
String? roomID;
|
||||
String? meetingName;
|
||||
String? ex;
|
||||
String? hostUserID;
|
||||
@@ -46,7 +46,7 @@ class MeetingInfo {
|
||||
List<String>? beWatchedUserIDList; // 正在被观看用户列表
|
||||
|
||||
MeetingInfo({
|
||||
this.meetingID,
|
||||
this.roomID,
|
||||
this.meetingName,
|
||||
this.ex,
|
||||
this.hostUserID,
|
||||
@@ -70,7 +70,7 @@ class MeetingInfo {
|
||||
});
|
||||
|
||||
MeetingInfo.fromJson(Map<String, dynamic> json) {
|
||||
meetingID = json['meetingID'];
|
||||
roomID = json['roomID'];
|
||||
meetingName = json['meetingName'];
|
||||
ex = json['ex'];
|
||||
hostUserID = json['hostUserID'];
|
||||
@@ -107,7 +107,7 @@ class MeetingInfo {
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['meetingID'] = meetingID;
|
||||
data['roomID'] = roomID;
|
||||
data['meetingName'] = meetingName;
|
||||
data['ex'] = ex;
|
||||
data['hostUserID'] = hostUserID;
|
||||
@@ -133,21 +133,21 @@ class MeetingInfo {
|
||||
}
|
||||
|
||||
class MeetingStreamEvent {
|
||||
String? meetingID;
|
||||
String? roomID;
|
||||
String? streamType;
|
||||
bool? mute;
|
||||
|
||||
MeetingStreamEvent({this.meetingID, this.streamType, this.mute});
|
||||
MeetingStreamEvent({this.roomID, this.streamType, this.mute});
|
||||
|
||||
MeetingStreamEvent.fromJson(Map<String, dynamic> json) {
|
||||
meetingID = json['meetingID'];
|
||||
roomID = json['roomID'];
|
||||
streamType = json['streamType'];
|
||||
mute = json['mute'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['meetingID'] = this.meetingID;
|
||||
data['roomID'] = this.roomID;
|
||||
data['streamType'] = this.streamType;
|
||||
data['mute'] = this.mute;
|
||||
return data;
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||
|
||||
class SignalingInfo {
|
||||
/// 操作者
|
||||
String? opUserID;
|
||||
String? userID;
|
||||
|
||||
/// 邀请信息
|
||||
InvitationInfo? invitation;
|
||||
@@ -13,24 +13,24 @@ class SignalingInfo {
|
||||
OfflinePushInfo? offlinePushInfo;
|
||||
|
||||
SignalingInfo({
|
||||
this.opUserID,
|
||||
this.userID,
|
||||
this.invitation,
|
||||
this.offlinePushInfo,
|
||||
});
|
||||
|
||||
SignalingInfo.fromJson(Map<String, dynamic> json) {
|
||||
opUserID = json['opUserID'];
|
||||
invitation = json['invitation'] == null
|
||||
? null
|
||||
: InvitationInfo.fromJson(json['invitation']);
|
||||
offlinePushInfo = json['offlinePushInfo'] == null
|
||||
? null
|
||||
: OfflinePushInfo.fromJson(json['offlinePushInfo']);
|
||||
userID = json['userID'] ?? invitation?.inviterUserID;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = Map<String, dynamic>();
|
||||
data['opUserID'] = this.opUserID;
|
||||
data['userID'] = this.userID;
|
||||
data['invitation'] = this.invitation?.toJson();
|
||||
data['offlinePushInfo'] = this.offlinePushInfo?.toJson();
|
||||
return data;
|
||||
@@ -78,7 +78,7 @@ class InvitationInfo {
|
||||
|
||||
InvitationInfo.fromJson(Map<String, dynamic> json) {
|
||||
inviterUserID = json['inviterUserID'];
|
||||
inviteeUserIDList = json['inviteeUserIDList'].cast<String>();
|
||||
inviteeUserIDList = json['inviteeUserIDList']?.cast<String>();
|
||||
groupID = json['groupID'];
|
||||
roomID = json['roomID'];
|
||||
timeout = json['timeout'];
|
||||
|
||||
Reference in New Issue
Block a user