Files
qbtmud/Lantean.QBTMud/Models/TorrentOptions.cs

72 lines
2.3 KiB
C#

namespace Lantean.QBTMud.Models
{
public record TorrentOptions
{
public TorrentOptions(
bool torrentManagementMode,
string savePath,
string? cookie,
string? renameTorrent,
string? category,
bool startTorrent,
bool addToTopOfQueue,
string stopCondition,
bool skipHashCheck,
string contentLayout,
bool downloadInSequentialOrder,
bool downloadFirstAndLastPiecesFirst,
long downloadLimit,
long uploadLimit)
{
TorrentManagementMode = torrentManagementMode;
SavePath = savePath;
Cookie = cookie;
RenameTorrent = renameTorrent;
Category = category;
StartTorrent = startTorrent;
AddToTopOfQueue = addToTopOfQueue;
StopCondition = stopCondition;
SkipHashCheck = skipHashCheck;
ContentLayout = contentLayout;
DownloadInSequentialOrder = downloadInSequentialOrder;
DownloadFirstAndLastPiecesFirst = downloadFirstAndLastPiecesFirst;
DownloadLimit = downloadLimit;
UploadLimit = uploadLimit;
}
public bool TorrentManagementMode { get; }
public string SavePath { get; }
public string? Cookie { get; }
public string? RenameTorrent { get; }
public string? Category { get; }
public bool StartTorrent { get; }
public bool AddToTopOfQueue { get; }
public string StopCondition { get; }
public bool SkipHashCheck { get; }
public string ContentLayout { get; }
public bool DownloadInSequentialOrder { get; }
public bool DownloadFirstAndLastPiecesFirst { get; }
public long DownloadLimit { get; }
public long UploadLimit { get; }
public string? DownloadPath { get; internal set; }
public int? InactiveSeedingTimeLimit { get; internal set; }
public float? RatioLimit { get; internal set; }
public int? SeedingTimeLimit { get; internal set; }
public string? ShareLimitAction { get; internal set; }
public bool? UseDownloadPath { get; internal set; }
public IEnumerable<string>? Tags { get; internal set; }
}
}