[Super Group]
This commit is contained in:
@@ -298,6 +298,12 @@ class GroupApplicationInfo {
|
||||
/// 扩展信息
|
||||
String? ex;
|
||||
|
||||
/// 2:通过邀请 3:通过搜索 4:通过二维码
|
||||
int? joinSource;
|
||||
|
||||
/// 邀请进群用户ID
|
||||
String? inviterUserID;
|
||||
|
||||
GroupApplicationInfo({
|
||||
this.groupID,
|
||||
this.groupName,
|
||||
@@ -321,6 +327,8 @@ class GroupApplicationInfo {
|
||||
this.handleUserID,
|
||||
this.handledTime,
|
||||
this.ex,
|
||||
this.inviterUserID,
|
||||
this.joinSource,
|
||||
});
|
||||
|
||||
GroupApplicationInfo.fromJson(Map<String, dynamic> json) {
|
||||
@@ -346,6 +354,8 @@ class GroupApplicationInfo {
|
||||
handleUserID = json['handleUserID'];
|
||||
handledTime = json['handledTime'];
|
||||
ex = json['ex'];
|
||||
inviterUserID = json['inviterUserID'];
|
||||
joinSource = json['joinSource'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -372,6 +382,8 @@ class GroupApplicationInfo {
|
||||
data['handleUserID'] = this.handleUserID;
|
||||
data['handledTime'] = this.handledTime;
|
||||
data['ex'] = this.ex;
|
||||
data['inviterUserID'] = this.inviterUserID;
|
||||
data['joinSource'] = this.joinSource;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1034,3 +1034,41 @@ class RevokedInfo {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class AdvancedMessage {
|
||||
List<Message>? messageList;
|
||||
bool? isEnd;
|
||||
int? errCode;
|
||||
String? errMsg;
|
||||
int? lastMinSeq;
|
||||
|
||||
AdvancedMessage({
|
||||
this.messageList,
|
||||
this.isEnd,
|
||||
this.errCode,
|
||||
this.errMsg,
|
||||
this.lastMinSeq,
|
||||
});
|
||||
|
||||
AdvancedMessage.fromJson(Map<String, dynamic> json) {
|
||||
messageList = json['messageList'] == null
|
||||
? null
|
||||
: (json['messageList'] as List)
|
||||
.map((e) => Message.fromJson(e))
|
||||
.toList();
|
||||
isEnd = json['isEnd'];
|
||||
errCode = json['errCode'];
|
||||
errMsg = json['errMsg'];
|
||||
lastMinSeq = json['lastMinSeq'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = Map<String, dynamic>();
|
||||
data['messageList'] = this.messageList?.map((e) => e.toJson()).toList();
|
||||
data['isEnd'] = this.isEnd;
|
||||
data['errCode'] = this.errCode;
|
||||
data['errMsg'] = this.errMsg;
|
||||
data['lastMinSeq'] = this.lastMinSeq;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user