fix: danmaku (#1696)

* fix: post danmaku

* mod: tap danmaku

* mod: delete danmaku
This commit is contained in:
My-Responsitories
2025-10-25 14:41:47 +08:00
committed by GitHub
parent 63030147ea
commit 08944241bb
5 changed files with 50 additions and 25 deletions

View File

@@ -0,0 +1,31 @@
class DanmakuPost {
DanmakuPost({
required this.action,
required this.animation,
required this.colorfulSrc,
required this.dmContent,
required this.dmid,
required this.dmidStr,
required this.visible,
});
final String? action;
final String? animation;
final dynamic colorfulSrc;
final String? dmContent;
final int? dmid;
final String? dmidStr;
final bool? visible;
factory DanmakuPost.fromJson(Map<String, dynamic> json) {
return DanmakuPost(
action: json["action"],
animation: json["animation"],
colorfulSrc: json["colorful_src"],
dmContent: json["dm_content"],
dmid: json["dmid"],
dmidStr: json["dmid_str"],
visible: json["visible"],
);
}
}