Class UsenetDownload
Represents a Usenet download item returned by the TorBox API.
public sealed record UsenetDownload : IEquatable<UsenetDownload>
- Inheritance
-
UsenetDownload
- Implements
- Inherited Members
Properties
Active
Gets a value indicating whether the download is currently active.
[JsonPropertyName("active")]
public bool Active { get; init; }
Property Value
AuthId
Gets the authentication identifier of the user who owns this download, or null if not available.
[JsonPropertyName("auth_id")]
public string? AuthId { get; init; }
Property Value
Availability
Gets the availability of the download data.
[JsonPropertyName("availability")]
public double Availability { get; init; }
Property Value
CreatedAt
Gets the date and time when the download was created, or null if not available.
[JsonPropertyName("created_at")]
public DateTimeOffset? CreatedAt { get; init; }
Property Value
DownloadFinished
Gets a value indicating whether the download has finished.
[JsonPropertyName("download_finished")]
public bool DownloadFinished { get; init; }
Property Value
DownloadPresent
Gets a value indicating whether the downloaded data is present on the server.
[JsonPropertyName("download_present")]
public bool DownloadPresent { get; init; }
Property Value
DownloadSpeed
Gets the current download speed in bytes per second.
[JsonPropertyName("download_speed")]
public long DownloadSpeed { get; init; }
Property Value
DownloadState
Gets the current download state as a string descriptor, or null if not available.
[JsonPropertyName("download_state")]
public string? DownloadState { get; init; }
Property Value
Eta
Gets the estimated time of arrival (completion) in seconds.
[JsonPropertyName("eta")]
public long Eta { get; init; }
Property Value
ExpiresAt
Gets the date and time when the download will expire, or null if not set.
[JsonPropertyName("expires_at")]
public DateTimeOffset? ExpiresAt { get; init; }
Property Value
Files
Gets the list of files contained in this download.
[JsonPropertyName("files")]
public IReadOnlyList<DownloadFile> Files { get; init; }
Property Value
Hash
Gets the hash of the Usenet download, or null if not available.
[JsonPropertyName("hash")]
public string? Hash { get; init; }
Property Value
Id
Gets the unique identifier of the Usenet download.
[JsonPropertyName("id")]
public long Id { get; init; }
Property Value
InactiveCheck
Gets the inactive check interval in seconds.
[JsonPropertyName("inactive_check")]
public long InactiveCheck { get; init; }
Property Value
Name
Gets the display name of the Usenet download.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Progress
Gets the download progress as a value between 0.0 and 1.0.
[JsonPropertyName("progress")]
public double Progress { get; init; }
Property Value
Server
Gets the server identifier where the download is hosted.
[JsonPropertyName("server")]
public int Server { get; init; }
Property Value
Size
Gets the total size of the download in bytes.
[JsonPropertyName("size")]
public long Size { get; init; }
Property Value
UpdatedAt
Gets the date and time when the download was last updated, or null if not available.
[JsonPropertyName("updated_at")]
public DateTimeOffset? UpdatedAt { get; init; }
Property Value
UploadSpeed
Gets the current upload speed in bytes per second.
[JsonPropertyName("upload_speed")]
public long UploadSpeed { get; init; }