mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
show user name
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -169,7 +169,7 @@ class SpaceCard {
|
||||
json['live_fans_wearing'] as Map<String, dynamic>,
|
||||
),
|
||||
spaceTag: (json['space_tag'] as List<dynamic>?)
|
||||
?.where((e) => (e?['title'] as String?)?.startsWith('IP') == true)
|
||||
?.where((e) => const ['location', 'real_name'].contains(e['type']))
|
||||
.map((e) => SpaceTag.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
faceNftNew: json['face_nft_new'] as int?,
|
||||
|
||||
20
lib/models_new/user_real_name/data.dart
Normal file
20
lib/models_new/user_real_name/data.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:PiliPlus/models_new/user_real_name/reject_page.dart';
|
||||
|
||||
class UserRealNameData {
|
||||
String? name;
|
||||
String? namePrefix;
|
||||
bool? show;
|
||||
RejectPage? rejectPage;
|
||||
|
||||
UserRealNameData({this.name, this.namePrefix, this.show, this.rejectPage});
|
||||
|
||||
factory UserRealNameData.fromJson(Map<String, dynamic> json) =>
|
||||
UserRealNameData(
|
||||
name: json['name'] as String?,
|
||||
namePrefix: json['name_prefix'] as String?,
|
||||
show: json['show'] as bool?,
|
||||
rejectPage: json['reject_page'] == null
|
||||
? null
|
||||
: RejectPage.fromJson(json['reject_page'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
19
lib/models_new/user_real_name/reject_page.dart
Normal file
19
lib/models_new/user_real_name/reject_page.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class RejectPage {
|
||||
String? title;
|
||||
String? text;
|
||||
String? img;
|
||||
|
||||
RejectPage({this.title, this.text, this.img});
|
||||
|
||||
factory RejectPage.fromJson(Map<String, dynamic> json) => RejectPage(
|
||||
title: json['title'] as String?,
|
||||
text: json['text'] as String?,
|
||||
img: json['img'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'title': title,
|
||||
'text': text,
|
||||
'img': img,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user