add group fuc
This commit is contained in:
parent
3acbacda6d
commit
86dca45d0b
@ -165,10 +165,7 @@ class GroupManager {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<GroupApplicationList> getGroupApplicationList({
|
Future<GroupApplicationList> getGroupApplicationList() {
|
||||||
required String gid,
|
|
||||||
required String uid,
|
|
||||||
}) {
|
|
||||||
return _channel
|
return _channel
|
||||||
.invokeMethod('getGroupApplicationList', _buildParam({}))
|
.invokeMethod('getGroupApplicationList', _buildParam({}))
|
||||||
.then((value) => GroupApplicationList.fromJson(_formatJson(value)));
|
.then((value) => GroupApplicationList.fromJson(_formatJson(value)));
|
||||||
|
@ -144,40 +144,55 @@ class GroupMemberRole {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class GroupApplicationInfo {
|
class GroupApplicationInfo {
|
||||||
|
String? id;
|
||||||
String? groupID;
|
String? groupID;
|
||||||
String? fromUserID;
|
String? fromUserID;
|
||||||
String? fromUserNickName;
|
|
||||||
String? fromUserFaceUrl;
|
|
||||||
String? toUserID;
|
String? toUserID;
|
||||||
int? addTime;
|
int? flag; //INIT = 0, REFUSE = -1, AGREE = 1
|
||||||
String? requestMsg;
|
String? reqMsg;
|
||||||
String? handledMsg;
|
String? handledMsg;
|
||||||
int? type;
|
int? createTime;
|
||||||
int? handleStatus;
|
String? fromUserNickName;
|
||||||
int? handleResult;
|
String? toUserNickName;
|
||||||
|
String? fromUserFaceURL;
|
||||||
|
String? toUserFaceURL;
|
||||||
|
String? handledUser;
|
||||||
|
int? type; //APPLICATION = 0, INVITE = 1
|
||||||
|
int? handleStatus; //UNHANDLED = 0, BY_OTHER = 1, BY_SELF = 2
|
||||||
|
int? handleResult; //REFUSE = 0, AGREE = 1
|
||||||
|
|
||||||
GroupApplicationInfo(
|
GroupApplicationInfo(
|
||||||
{this.groupID,
|
{this.id,
|
||||||
|
this.groupID,
|
||||||
this.fromUserID,
|
this.fromUserID,
|
||||||
this.fromUserNickName,
|
|
||||||
this.fromUserFaceUrl,
|
|
||||||
this.toUserID,
|
this.toUserID,
|
||||||
this.addTime,
|
this.flag,
|
||||||
this.requestMsg,
|
this.reqMsg,
|
||||||
this.handledMsg,
|
this.handledMsg,
|
||||||
|
this.createTime,
|
||||||
|
this.fromUserNickName,
|
||||||
|
this.toUserNickName,
|
||||||
|
this.fromUserFaceURL,
|
||||||
|
this.toUserFaceURL,
|
||||||
|
this.handledUser,
|
||||||
this.type,
|
this.type,
|
||||||
this.handleStatus,
|
this.handleStatus,
|
||||||
this.handleResult});
|
this.handleResult});
|
||||||
|
|
||||||
GroupApplicationInfo.fromJson(Map<String, dynamic> json) {
|
GroupApplicationInfo.fromJson(Map<String, dynamic> json) {
|
||||||
|
id = json['id'];
|
||||||
groupID = json['groupID'];
|
groupID = json['groupID'];
|
||||||
fromUserID = json['fromUserID'];
|
fromUserID = json['fromUserID'];
|
||||||
fromUserNickName = json['fromUserNickName'];
|
|
||||||
fromUserFaceUrl = json['fromUserFaceUrl'];
|
|
||||||
toUserID = json['toUserID'];
|
toUserID = json['toUserID'];
|
||||||
addTime = json['addTime'];
|
flag = json['flag'];
|
||||||
requestMsg = json['requestMsg'];
|
reqMsg = json['reqMsg'];
|
||||||
handledMsg = json['handledMsg'];
|
handledMsg = json['handledMsg'];
|
||||||
|
createTime = json['createTime'];
|
||||||
|
fromUserNickName = json['fromUserNickName'];
|
||||||
|
toUserNickName = json['toUserNickName'];
|
||||||
|
fromUserFaceURL = json['fromUserFaceURL'];
|
||||||
|
toUserFaceURL = json['toUserFaceURL'];
|
||||||
|
handledUser = json['handledUser'];
|
||||||
type = json['type'];
|
type = json['type'];
|
||||||
handleStatus = json['handleStatus'];
|
handleStatus = json['handleStatus'];
|
||||||
handleResult = json['handleResult'];
|
handleResult = json['handleResult'];
|
||||||
@ -185,14 +200,19 @@ class GroupApplicationInfo {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['id'] = this.id;
|
||||||
data['groupID'] = this.groupID;
|
data['groupID'] = this.groupID;
|
||||||
data['fromUserID'] = this.fromUserID;
|
data['fromUserID'] = this.fromUserID;
|
||||||
data['fromUserNickName'] = this.fromUserNickName;
|
|
||||||
data['fromUserFaceUrl'] = this.fromUserFaceUrl;
|
|
||||||
data['toUserID'] = this.toUserID;
|
data['toUserID'] = this.toUserID;
|
||||||
data['addTime'] = this.addTime;
|
data['flag'] = this.flag;
|
||||||
data['requestMsg'] = this.requestMsg;
|
data['reqMsg'] = this.reqMsg;
|
||||||
data['handledMsg'] = this.handledMsg;
|
data['handledMsg'] = this.handledMsg;
|
||||||
|
data['createTime'] = this.createTime;
|
||||||
|
data['fromUserNickName'] = this.fromUserNickName;
|
||||||
|
data['toUserNickName'] = this.toUserNickName;
|
||||||
|
data['fromUserFaceURL'] = this.fromUserFaceURL;
|
||||||
|
data['toUserFaceURL'] = this.toUserFaceURL;
|
||||||
|
data['handledUser'] = this.handledUser;
|
||||||
data['type'] = this.type;
|
data['type'] = this.type;
|
||||||
data['handleStatus'] = this.handleStatus;
|
data['handleStatus'] = this.handleStatus;
|
||||||
data['handleResult'] = this.handleResult;
|
data['handleResult'] = this.handleResult;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user