67 lines
2.7 KiB
C#
67 lines
2.7 KiB
C#
using RdtClient.Data.Enums;
|
|
using RdtClient.Data.Models.DebridClient;
|
|
|
|
namespace RdtClient.Data.Models.Internal;
|
|
|
|
public class TorrentDto
|
|
{
|
|
public Guid TorrentId { get; set; }
|
|
public String Hash { get; set; } = null!;
|
|
public String? Category { get; set; }
|
|
public TorrentDownloadAction DownloadAction { get; set; }
|
|
public TorrentFinishedAction FinishedAction { get; set; }
|
|
public Int32 FinishedActionDelay { get; set; }
|
|
public TorrentHostDownloadAction HostDownloadAction { get; set; }
|
|
public Int32 DownloadMinSize { get; set; }
|
|
public String? IncludeRegex { get; set; }
|
|
public String? ExcludeRegex { get; set; }
|
|
public String? DownloadManualFiles { get; set; }
|
|
public DownloadClient DownloadClient { get; set; }
|
|
public DateTimeOffset Added { get; set; }
|
|
public DateTimeOffset? FilesSelected { get; set; }
|
|
public DateTimeOffset? Completed { get; set; }
|
|
public DownloadType Type { get; set; }
|
|
public Boolean IsFile { get; set; }
|
|
public Int32? Priority { get; set; }
|
|
public Int32 RetryCount { get; set; }
|
|
public Int32 DownloadRetryAttempts { get; set; }
|
|
public Int32 TorrentRetryAttempts { get; set; }
|
|
public Int32 DeleteOnError { get; set; }
|
|
public Int32 Lifetime { get; set; }
|
|
public String? Error { get; set; }
|
|
public String? RdId { get; set; }
|
|
public String? RdName { get; set; }
|
|
public Int64? RdSize { get; set; }
|
|
public String? RdHost { get; set; }
|
|
public Int64? RdSplit { get; set; }
|
|
public Int64? RdProgress { get; set; }
|
|
public TorrentStatus? RdStatus { get; set; }
|
|
public String? RdStatusRaw { get; set; }
|
|
public DateTimeOffset? RdAdded { get; set; }
|
|
public DateTimeOffset? RdEnded { get; set; }
|
|
public Int64? RdSpeed { get; set; }
|
|
public Int64? RdSeeders { get; set; }
|
|
public IList<DebridClientFile> Files { get; set; } = [];
|
|
public IList<DownloadDto> Downloads { get; set; } = [];
|
|
}
|
|
|
|
public class DownloadDto
|
|
{
|
|
public Guid DownloadId { get; set; }
|
|
public Guid TorrentId { get; set; }
|
|
public String Path { get; set; } = null!;
|
|
public String? Link { get; set; }
|
|
public DateTimeOffset Added { get; set; }
|
|
public DateTimeOffset? DownloadQueued { get; set; }
|
|
public DateTimeOffset? DownloadStarted { get; set; }
|
|
public DateTimeOffset? DownloadFinished { get; set; }
|
|
public DateTimeOffset? UnpackingQueued { get; set; }
|
|
public DateTimeOffset? UnpackingStarted { get; set; }
|
|
public DateTimeOffset? UnpackingFinished { get; set; }
|
|
public DateTimeOffset? Completed { get; set; }
|
|
public Int32 RetryCount { get; set; }
|
|
public String? Error { get; set; }
|
|
public Int64 BytesTotal { get; set; }
|
|
public Int64 BytesDone { get; set; }
|
|
public Int64 Speed { get; set; }
|
|
}
|