mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-14 04:13:43 +00:00
feat(protocol): add FTP, FTPS and FTPES downloads (#1569)
This commit is contained in:
1 parent
e0951de270
commit
c0b70d319d
54 files changed
+3850
-38
No files matched your search
@@ -67,3 +67,28 @@ class OptsExtraHttp {
|
||||
|
||||
Map<String, dynamic> toJson() => _$OptsExtraHttpToJson(this);
|
||||
}
|
||||
|
||||
/// Options for an FTP task. It mirrors `pkg/protocol/ftp.OptsExtra`. The TLS
|
||||
/// mode of an `ftp://` link is on the request, see `ReqExtraFtp`.
|
||||
@JsonSerializable()
|
||||
class OptsExtraFtp {
|
||||
int connections;
|
||||
bool? autoTorrent;
|
||||
bool? deleteTorrentAfterDownload;
|
||||
bool? autoExtract;
|
||||
String archivePassword;
|
||||
bool deleteAfterExtract;
|
||||
|
||||
OptsExtraFtp({
|
||||
this.connections = 0,
|
||||
this.autoTorrent,
|
||||
this.deleteTorrentAfterDownload,
|
||||
this.autoExtract,
|
||||
this.archivePassword = '',
|
||||
this.deleteAfterExtract = false,
|
||||
});
|
||||
|
||||
factory OptsExtraFtp.fromJson(Map<String, dynamic> json) => _$OptsExtraFtpFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$OptsExtraFtpToJson(this);
|
||||
}
|
||||
Reference in new issue
Block a user