This commit is contained in:
hrxiang
2022-11-08 12:04:09 +08:00
parent 788ab524c2
commit 3e03460300

View File

@@ -53,8 +53,14 @@ class UserInfo {
/// 全局免打扰 0正常1不接受消息2接受在线消息不接受离线消息
int? globalRecvMsgOpt;
/// 是允许添加为好友
bool? isAllowAddFriend;
/// 是允许添加为好友 1允许2
int? allowAddFriend;
/// 新消息铃声 1允许2
int? allowBeep;
/// 新消息震动 1允许2
int? allowVibration;
UserInfo({
this.publicInfo,
@@ -74,7 +80,9 @@ class UserInfo {
this.createTime,
this.remark,
this.globalRecvMsgOpt,
this.isAllowAddFriend,
this.allowAddFriend,
this.allowBeep,
this.allowVibration,
});
// UserInfo.self(Map<String, dynamic> json) {
@@ -114,7 +122,9 @@ class UserInfo {
ex = json['ex'] ?? _ex;
createTime = json['createTime'];
globalRecvMsgOpt = json['globalRecvMsgOpt'];
isAllowAddFriend = json['isAllowAddFriend'];
allowAddFriend = json['allowAddFriend'];
allowBeep = json['allowBeep'];
allowVibration = json['allowVibration'];
}
Map<String, dynamic> toJson() {
@@ -136,7 +146,9 @@ class UserInfo {
data['createTime'] = this.createTime;
data['remark'] = this.remark;
data['globalRecvMsgOpt'] = this.globalRecvMsgOpt;
data['isAllowAddFriend'] = this.isAllowAddFriend;
data['allowAddFriend'] = this.allowAddFriend;
data['allowBeep'] = this.allowBeep;
data['allowVibration'] = this.allowVibration;
return data;
}