mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
fix: danmaku (#1696)
* fix: post danmaku * mod: tap danmaku * mod: delete danmaku
This commit is contained in:
committed by
GitHub
parent
63030147ea
commit
08944241bb
31
lib/models_new/danmaku/post.dart
Normal file
31
lib/models_new/danmaku/post.dart
Normal 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"],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user