mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +00:00
feat: new ui (#1455)
This commit is contained in:
742 files changed
+59951
-5934
No files matched your search
@@ -11,15 +11,9 @@ class Resource {
|
||||
List<FileInfo> files;
|
||||
String hash;
|
||||
|
||||
Resource(
|
||||
{this.name = "",
|
||||
this.size = 0,
|
||||
this.range = false,
|
||||
required this.files,
|
||||
this.hash = ""});
|
||||
Resource({this.name = "", this.size = 0, this.range = false, required this.files, this.hash = ""});
|
||||
|
||||
factory Resource.fromJson(Map<String, dynamic> json) =>
|
||||
_$ResourceFromJson(json);
|
||||
factory Resource.fromJson(Map<String, dynamic> json) => _$ResourceFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$ResourceToJson(this);
|
||||
}
|
||||
@@ -31,15 +25,9 @@ class FileInfo {
|
||||
int size;
|
||||
Request? req;
|
||||
|
||||
FileInfo({
|
||||
this.path = "",
|
||||
required this.name,
|
||||
this.size = 0,
|
||||
this.req,
|
||||
});
|
||||
FileInfo({this.path = "", required this.name, this.size = 0, this.req});
|
||||
|
||||
factory FileInfo.fromJson(Map<String, dynamic> json) =>
|
||||
_$FileInfoFromJson(json);
|
||||
factory FileInfo.fromJson(Map<String, dynamic> json) => _$FileInfoFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$FileInfoToJson(this);
|
||||
}
|
||||
Reference in new issue
Block a user