mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-27 15:18:50 -05:00
42 lines
994 B
C#
42 lines
994 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Domain.Models.Deluge.Response;
|
|
|
|
public sealed record DownloadStatus
|
|
{
|
|
public string? Hash { get; init; }
|
|
|
|
public string? State { get; init; }
|
|
|
|
public string? Name { get; init; }
|
|
|
|
public ulong Eta { get; init; }
|
|
|
|
[JsonProperty("download_payload_rate")]
|
|
public long DownloadSpeed { get; init; }
|
|
|
|
public bool Private { get; init; }
|
|
|
|
[JsonProperty("total_size")]
|
|
public long Size { get; init; }
|
|
|
|
[JsonProperty("total_done")]
|
|
public long TotalDone { get; init; }
|
|
|
|
public string? Label { get; set; }
|
|
|
|
[JsonProperty("seeding_time")]
|
|
public long SeedingTime { get; init; }
|
|
|
|
public float Ratio { get; init; }
|
|
|
|
public required IReadOnlyList<Tracker> Trackers { get; init; }
|
|
|
|
[JsonProperty("download_location")]
|
|
public required string DownloadLocation { get; init; }
|
|
}
|
|
|
|
public sealed record Tracker
|
|
{
|
|
public required string Url { get; init; }
|
|
} |