mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
feat: super chat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
17
lib/models_new/live/live_superchat/user_info.dart
Normal file
17
lib/models_new/live/live_superchat/user_info.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
class UserInfo {
|
||||
String face;
|
||||
String uname;
|
||||
String nameColor;
|
||||
|
||||
UserInfo({
|
||||
required this.face,
|
||||
required this.uname,
|
||||
required this.nameColor,
|
||||
});
|
||||
|
||||
factory UserInfo.fromJson(Map<String, dynamic> json) => UserInfo(
|
||||
face: json['face'],
|
||||
uname: json['uname'],
|
||||
nameColor: json['name_color'] ?? '#666666',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user