rdt-client/server/RdtClient.Service/Models/TorrentClient/TorrentClientTorrent.cs
Roger Far d16e7f0c88 Changed the Aria2 updates to be done in the main TorrentRunner loop instead of each downloader making their own connections.
Added checks if Aria2 links actually got added.
Improved debug messages and set Microsoft message to Warning.
Abstracted the RealDebrid client into a ITorrentClient.
Add retry mechanism for server errors from RealDebrid.
2021-10-27 14:55:46 -06:00

33 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
namespace RdtClient.Service.Models.TorrentClient
{
public class TorrentClientTorrent
{
public String Id { get; set; }
public String Filename { get; set; }
public String OriginalFilename { get; set; }
public String Hash { get; set; }
public Int64 Bytes { get; set; }
public Int64 OriginalBytes { get; set; }
public String Host { get; set; }
public Int64 Split { get; set; }
public Int64 Progress { get; set; }
public String Status { get; set; }
public DateTimeOffset Added { get; set; }
public List<TorrentClientTorrentFile> Files { get; set; }
public List<String> Links { get; set; }
public DateTimeOffset? Ended { get; set; }
public Int64? Speed { get; set; }
public Int64? Seeders { get; set; }
}
public class TorrentClientTorrentFile
{
public Int64 Id { get; set; }
public String Path { get; set; }
public Int64 Bytes { get; set; }
public Boolean Selected { get; set; }
}
}