基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'search_history_module.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class SearchHistoryAdapter extends TypeAdapter<SearchHistory> {
@override
final typeId = 6;
@override
SearchHistory read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return SearchHistory(
fields[0] as String,
(fields[1] as num).toInt(),
);
}
@override
void write(BinaryWriter writer, SearchHistory obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.keyword)
..writeByte(1)
..write(obj.timestamp);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SearchHistoryAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}