mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
feat: msg link setting
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
78
lib/models/msg/im_user_infos/datum.dart
Normal file
78
lib/models/msg/im_user_infos/datum.dart
Normal file
@@ -0,0 +1,78 @@
|
||||
import 'package:PiliPlus/models/model_avatar.dart';
|
||||
|
||||
class ImUserInfosData {
|
||||
int? mid;
|
||||
String? name;
|
||||
String? sex;
|
||||
String? face;
|
||||
String? sign;
|
||||
int? rank;
|
||||
int? level;
|
||||
int? silence;
|
||||
Vip? vip;
|
||||
Pendant? pendant;
|
||||
BaseOfficialVerify? official;
|
||||
int? birthday;
|
||||
int? isFakeAccount;
|
||||
int? isDeleted;
|
||||
int? inRegAudit;
|
||||
int? faceNft;
|
||||
int? faceNftNew;
|
||||
int? isSeniorMember;
|
||||
String? digitalId;
|
||||
int? digitalType;
|
||||
|
||||
ImUserInfosData({
|
||||
this.mid,
|
||||
this.name,
|
||||
this.sex,
|
||||
this.face,
|
||||
this.sign,
|
||||
this.rank,
|
||||
this.level,
|
||||
this.silence,
|
||||
this.vip,
|
||||
this.pendant,
|
||||
this.official,
|
||||
this.birthday,
|
||||
this.isFakeAccount,
|
||||
this.isDeleted,
|
||||
this.inRegAudit,
|
||||
this.faceNft,
|
||||
this.faceNftNew,
|
||||
this.isSeniorMember,
|
||||
this.digitalId,
|
||||
this.digitalType,
|
||||
});
|
||||
|
||||
factory ImUserInfosData.fromJson(Map<String, dynamic> json) =>
|
||||
ImUserInfosData(
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
sex: json['sex'] as String?,
|
||||
face: json['face'] as String?,
|
||||
sign: json['sign'] as String?,
|
||||
rank: json['rank'] as int?,
|
||||
level: json['level'] as int?,
|
||||
silence: json['silence'] as int?,
|
||||
vip: json['vip'] == null
|
||||
? null
|
||||
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
|
||||
pendant: json['pendant'] == null
|
||||
? null
|
||||
: Pendant.fromJson(json['pendant'] as Map<String, dynamic>),
|
||||
official: json['official'] == null
|
||||
? null
|
||||
: BaseOfficialVerify.fromJson(
|
||||
json['official'] as Map<String, dynamic>),
|
||||
birthday: json['birthday'] as int?,
|
||||
isFakeAccount: json['is_fake_account'] as int?,
|
||||
isDeleted: json['is_deleted'] as int?,
|
||||
inRegAudit: json['in_reg_audit'] as int?,
|
||||
faceNft: json['face_nft'] as int?,
|
||||
faceNftNew: json['face_nft_new'] as int?,
|
||||
isSeniorMember: json['is_senior_member'] as int?,
|
||||
digitalId: json['digital_id'] as String?,
|
||||
digitalType: json['digital_type'] as int?,
|
||||
);
|
||||
}
|
||||
16
lib/models/msg/msg_dnd/uid_setting.dart
Normal file
16
lib/models/msg/msg_dnd/uid_setting.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
class UidSetting {
|
||||
int? id;
|
||||
int? setting;
|
||||
|
||||
UidSetting({this.id, this.setting});
|
||||
|
||||
factory UidSetting.fromJson(Map<String, dynamic> json) => UidSetting(
|
||||
id: json['id'] as int?,
|
||||
setting: json['setting'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
'setting': setting,
|
||||
};
|
||||
}
|
||||
20
lib/models/msg/session_ss/data.dart
Normal file
20
lib/models/msg/session_ss/data.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
class SessionSsData {
|
||||
int? followStatus;
|
||||
int? special;
|
||||
int? pushSetting;
|
||||
int? showPushSetting;
|
||||
|
||||
SessionSsData({
|
||||
this.followStatus,
|
||||
this.special,
|
||||
this.pushSetting,
|
||||
this.showPushSetting,
|
||||
});
|
||||
|
||||
factory SessionSsData.fromJson(Map<String, dynamic> json) => SessionSsData(
|
||||
followStatus: json['follow_status'] as int?,
|
||||
special: json['special'] as int?,
|
||||
pushSetting: json['push_setting'] as int?,
|
||||
showPushSetting: json['show_push_setting'] as int?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user