mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-27 11:38:40 +00:00
show img menu
opt img placeholder opt player gesture opt pref tweaks Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -57,4 +57,14 @@ class DanmakuMsg {
|
||||
reply: reply,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{
|
||||
'name': name,
|
||||
'uid': uid,
|
||||
'text': text,
|
||||
'emots': emots,
|
||||
'uemote': uemote?.toJson(),
|
||||
'extra': extra.toJson(),
|
||||
'reply': reply?.toJson(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,6 +11,13 @@ class BaseEmote {
|
||||
width = (json['width'] as num).toDouble();
|
||||
height = (json['height'] as num?)?.toDouble();
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{
|
||||
'url': url,
|
||||
'emoticon_unique': emoticonUnique,
|
||||
'width': width,
|
||||
'height': height,
|
||||
};
|
||||
}
|
||||
|
||||
// class Emote extends BaseEmote {
|
||||
|
||||
@@ -91,4 +91,19 @@ class SuperChatItem {
|
||||
userInfo: userInfo ?? this.userInfo,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{
|
||||
'id': id,
|
||||
'uid': uid,
|
||||
'price': price,
|
||||
'background_color': backgroundColor,
|
||||
'background_bottom_color': backgroundBottomColor,
|
||||
'background_price_color': backgroundPriceColor,
|
||||
'message_font_color': messageFontColor,
|
||||
'end_time': endTime,
|
||||
'message': message,
|
||||
'token': token,
|
||||
'ts': ts,
|
||||
'user_info': userInfo.toJson(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -14,4 +14,10 @@ class UserInfo {
|
||||
uname: json['uname'],
|
||||
nameColor: json['name_color'] ?? '#666666',
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{
|
||||
'face': face,
|
||||
'uname': uname,
|
||||
'name_color': nameColor,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user