mod: 评论表情渲染
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
class ReplyContent {
|
||||
ReplyContent({
|
||||
this.message,
|
||||
this.atNameToMid, // @的用户的mid
|
||||
this.memebers, // 被@的用户List 如果有的话
|
||||
this.emote, // 表情包 如果有的话
|
||||
this.jumpUrl,
|
||||
this.atNameToMid, // @的用户的mid null
|
||||
this.memebers, // 被@的用户List 如果有的话 []
|
||||
this.emote, // 表情包 如果有的话 null
|
||||
this.jumpUrl, // {}
|
||||
this.pictures, // {}
|
||||
});
|
||||
|
||||
String? message;
|
||||
@ -12,12 +13,14 @@ class ReplyContent {
|
||||
List? memebers;
|
||||
Map? emote;
|
||||
Map? jumpUrl;
|
||||
List? pictures;
|
||||
|
||||
ReplyContent.fromJson(Map<String, dynamic> json) {
|
||||
message = json['message'];
|
||||
atNameToMid = json['at_name_to_mid'];
|
||||
memebers = json['memebers'];
|
||||
emote = json['emote'];
|
||||
jumpUrl = json['jumpUrl'];
|
||||
atNameToMid = json['at_name_to_mid'] ?? {};
|
||||
memebers = json['memebers'] ?? [];
|
||||
emote = json['emote'] ?? {};
|
||||
jumpUrl = json['jumpUrl'] ?? {};
|
||||
pictures = json['pictures'] ?? [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user