基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
import 'package:hive_ce/hive.dart';
part 'collect_change_module.g.dart';
// The box stores the changes history of collected bangumi
// The changes will be used to sync with webDav
@HiveType(typeId: 5)
class CollectedBangumiChange {
// timestamp in seconds
// hivebox has limited the length of key, the max number is 4294967295
// we have to use timestamp in seconds as key to avoid key conflict and hive key limit
@HiveField(0)
int id;
@HiveField(1)
int bangumiID;
// 1. add
// 2. update
// 3. delete
@HiveField(2)
int action;
// 1. 在看
// 2. 想看
// 3. 搁置
// 4. 看过
// 5. 抛弃
@HiveField(3)
int type;
@HiveField(4)
int timestamp;
CollectedBangumiChange(
this.id, this.bangumiID, this.action, this.type, this.timestamp);
@override
String toString() {
return 'id: $id, bangumi: $bangumiID, action: $action, time: $timestamp';
}
}