This commit is contained in:
hrxiang
2022-11-16 16:45:12 +08:00
parent eb3361c4b3
commit 025334d32f
6 changed files with 42 additions and 7 deletions

View File

@@ -48,6 +48,9 @@ class ConversationInfo {
/// 是否开启了私聊(阅后即焚)
bool? isPrivateChat;
/// 可阅读期限 s
int? burnDuration;
/// 附加内容
String? ext;
@@ -68,6 +71,7 @@ class ConversationInfo {
this.draftText,
this.draftTextTime,
this.isPrivateChat,
this.burnDuration,
this.isPinned,
this.isNotInGroup,
});
@@ -93,6 +97,7 @@ class ConversationInfo {
draftTextTime = json['draftTextTime'];
isPinned = json['isPinned'];
isPrivateChat = json['isPrivateChat'];
burnDuration = json['burnDuration'];
isNotInGroup = json['isNotInGroup'];
groupAtType = json['groupAtType'];
}
@@ -113,6 +118,7 @@ class ConversationInfo {
data['draftTextTime'] = this.draftTextTime;
data['isPinned'] = this.isPinned;
data['isPrivateChat'] = this.isPrivateChat;
data['burnDuration'] = this.burnDuration;
data['isNotInGroup'] = this.isNotInGroup;
data['groupAtType'] = this.groupAtType;
return data;

View File

@@ -790,6 +790,9 @@ class AttachedInfoElem {
/// 已读时间
int? hasReadTime;
/// 私聊消息保留时长
int? burnDuration;
/// 离线不发送推送
bool? notSenderNotificationPush;
@@ -797,6 +800,7 @@ class AttachedInfoElem {
this.groupHasReadInfo,
this.isPrivateChat,
this.hasReadTime,
this.burnDuration,
this.notSenderNotificationPush,
});
@@ -806,6 +810,7 @@ class AttachedInfoElem {
: GroupHasReadInfo.fromJson(json['groupHasReadInfo']);
isPrivateChat = json['isPrivateChat'];
hasReadTime = json['hasReadTime'];
burnDuration = json['burnDuration'];
notSenderNotificationPush = json['notSenderNotificationPush'];
}
@@ -814,6 +819,7 @@ class AttachedInfoElem {
data['groupHasReadInfo'] = this.groupHasReadInfo?.toJson();
data['isPrivateChat'] = this.isPrivateChat;
data['hasReadTime'] = this.hasReadTime;
data['burnDuration'] = this.burnDuration;
data['notSenderNotificationPush'] = this.notSenderNotificationPush;
return data;
}