mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 03:32:06 +00:00
37 lines
603 B
Dart
37 lines
603 B
Dart
import 'package:isar/isar.dart';
|
|
import 'package:mangayomi/models/chapter.dart';
|
|
|
|
part 'download.g.dart';
|
|
|
|
@collection
|
|
@Name("Download")
|
|
class Download {
|
|
Id? id;
|
|
|
|
int? chapterId;
|
|
|
|
int? succeeded;
|
|
|
|
int? failed;
|
|
|
|
int? total;
|
|
|
|
bool? isDownload;
|
|
|
|
List<String>? taskIds;
|
|
|
|
bool? isStartDownload;
|
|
|
|
final chapter = IsarLink<Chapter>();
|
|
|
|
Download({
|
|
this.id = Isar.autoIncrement,
|
|
required this.chapterId,
|
|
required this.succeeded,
|
|
required this.failed,
|
|
required this.total,
|
|
required this.isDownload,
|
|
required this.taskIds,
|
|
required this.isStartDownload,
|
|
});
|
|
}
|