mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 17:10:29 +00:00
feat(tasks): group extension folder downloads (#1594)
This commit is contained in:
1 parent
fc0a1e0ef9
commit
1e36599d52
84 files changed
+6690
-881
No files matched your search
@@ -10,7 +10,10 @@ class CreateTaskBatch {
|
||||
List<CreateTaskBatchItem>? reqs;
|
||||
Options? opts;
|
||||
|
||||
CreateTaskBatch({this.reqs, this.opts});
|
||||
bool group;
|
||||
String groupName;
|
||||
|
||||
CreateTaskBatch({this.reqs, this.opts, this.group = false, this.groupName = ''});
|
||||
|
||||
factory CreateTaskBatch.fromJson(Map<String, dynamic> json) => _$CreateTaskBatchFromJson(json);
|
||||
|
||||
@@ -19,11 +22,23 @@ class CreateTaskBatch {
|
||||
|
||||
@JsonSerializable()
|
||||
class CreateTaskBatchItem {
|
||||
String? rid;
|
||||
Request? req;
|
||||
Options? opts;
|
||||
|
||||
CreateTaskBatchItem({this.req, this.opts});
|
||||
CreateTaskBatchItem({this.rid, this.req, this.opts});
|
||||
|
||||
factory CreateTaskBatchItem.fromJson(Map<String, dynamic> json) => _$CreateTaskBatchItemFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$CreateTaskBatchItemToJson(this);
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
class CreateTaskBatchResult {
|
||||
final List<String> taskIds;
|
||||
final String? parentId;
|
||||
|
||||
CreateTaskBatchResult({required this.taskIds, this.parentId});
|
||||
|
||||
factory CreateTaskBatchResult.fromJson(Map<String, dynamic> json) => _$CreateTaskBatchResultFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$CreateTaskBatchResultToJson(this);
|
||||
}
|
||||
Reference in new issue
Block a user