mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 19:28:27 +08:00
38 lines
599 B
Dart
38 lines
599 B
Dart
sealed class DanmakuExtra {
|
|
Object get mid;
|
|
Object get id;
|
|
|
|
const DanmakuExtra();
|
|
}
|
|
|
|
class VideoDanmaku extends DanmakuExtra {
|
|
@override
|
|
final int id;
|
|
@override
|
|
final String mid;
|
|
|
|
bool isLike;
|
|
|
|
VideoDanmaku({required this.id, required this.mid, this.isLike = false});
|
|
}
|
|
|
|
class LiveDanmaku extends DanmakuExtra {
|
|
@override
|
|
final Object id;
|
|
@override
|
|
final Object mid;
|
|
|
|
final int dmType;
|
|
|
|
final Object ts;
|
|
final Object ct;
|
|
|
|
const LiveDanmaku({
|
|
required this.id,
|
|
required this.mid,
|
|
required this.dmType,
|
|
required this.ts,
|
|
required this.ct,
|
|
});
|
|
}
|