Class Torrent
Represents a torrent download item returned by the TorBox API.
public sealed record Torrent : IEquatable<Torrent>
- Inheritance
-
Torrent
- Implements
- Inherited Members
Properties
Active
Gets a value indicating whether the torrent is currently active.
[JsonPropertyName("active")]
public bool Active { get; init; }
Property Value
AllowZipped
Gets a value indicating whether zipped downloads are allowed for this torrent.
[JsonPropertyName("allow_zipped")]
public bool AllowZipped { get; init; }
Property Value
AlternativeHashes
Gets the list of alternative hashes for this torrent.
[JsonPropertyName("alternative_hashes")]
public IReadOnlyList<string> AlternativeHashes { get; init; }
Property Value
AuthId
Gets the authentication identifier of the user who owns this torrent, or null if not available.
[JsonPropertyName("auth_id")]
public string? AuthId { get; init; }
Property Value
Availability
Gets the availability of the torrent data across connected peers.
[JsonPropertyName("availability")]
public double Availability { get; init; }
Property Value
Cached
Gets a value indicating whether this torrent is cached on the server.
[JsonPropertyName("cached")]
public bool Cached { get; init; }
Property Value
CachedAt
Gets the date and time when the torrent was cached, or null if not cached.
[JsonPropertyName("cached_at")]
public DateTimeOffset? CachedAt { get; init; }
Property Value
CreatedAt
Gets the date and time when the torrent 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
DownloadPath
Gets the download path identifier for this torrent, or null if not available.
[JsonPropertyName("download_path")]
public string? DownloadPath { 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 torrent 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 torrent.
[JsonPropertyName("files")]
public IReadOnlyList<DownloadFile> Files { get; init; }
Property Value
Hash
Gets the info hash of the torrent, or null if not available.
[JsonPropertyName("hash")]
public string? Hash { get; init; }
Property Value
Id
Gets the unique identifier of the torrent.
[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
IsPrivate
Gets a value indicating whether this torrent uses a private tracker.
[JsonPropertyName("private")]
public bool IsPrivate { get; init; }
Property Value
LongTermSeeding
Gets a value indicating whether long-term seeding is enabled for this torrent.
[JsonPropertyName("long_term_seeding")]
public bool LongTermSeeding { get; init; }
Property Value
Magnet
Gets the magnet URI of the torrent, or null if not available.
[JsonPropertyName("magnet")]
public string? Magnet { get; init; }
Property Value
Name
Gets the display name of the torrent.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Owner
Gets the owner identifier (UUID) of this torrent, or null if not available.
[JsonPropertyName("owner")]
public string? Owner { get; init; }
Property Value
Peers
Gets the number of peers connected to this torrent.
[JsonPropertyName("peers")]
public int Peers { 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
Ratio
Gets the upload-to-download ratio of the torrent.
[JsonPropertyName("ratio")]
public double Ratio { get; init; }
Property Value
SeedTorrent
Gets a value indicating whether this torrent should be seeded after completion.
[JsonPropertyName("seed_torrent")]
public bool SeedTorrent { get; init; }
Property Value
Seeds
Gets the number of seeds connected to this torrent.
[JsonPropertyName("seeds")]
public int Seeds { get; init; }
Property Value
Server
Gets the server identifier where the torrent is hosted.
[JsonPropertyName("server")]
public int Server { get; init; }
Property Value
Size
Gets the total size of the torrent in bytes.
[JsonPropertyName("size")]
public long Size { get; init; }
Property Value
Tags
Gets the list of tags associated with this torrent.
[JsonPropertyName("tags")]
public IReadOnlyList<string> Tags { get; init; }
Property Value
TorrentFile
Gets a value indicating whether the original torrent file is available.
[JsonPropertyName("torrent_file")]
public bool TorrentFile { get; init; }
Property Value
TotalDownloaded
Gets the total number of bytes downloaded for this torrent.
[JsonPropertyName("total_downloaded")]
public long TotalDownloaded { get; init; }
Property Value
TotalUploaded
Gets the total number of bytes uploaded for this torrent.
[JsonPropertyName("total_uploaded")]
public long TotalUploaded { get; init; }
Property Value
Tracker
Gets the tracker URL for this torrent, or null if not available.
[JsonPropertyName("tracker")]
public string? Tracker { get; init; }
Property Value
TrackerMessage
Gets the tracker message for this torrent, or null if none.
[JsonPropertyName("tracker_message")]
public string? TrackerMessage { get; init; }
Property Value
UpdatedAt
Gets the date and time when the torrent 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; }