Class TorrentInfo
Represents metadata information about a torrent obtained from its hash or magnet link.
public sealed record TorrentInfo : IEquatable<TorrentInfo>
- Inheritance
-
TorrentInfo
- Implements
- Inherited Members
Properties
Files
Gets the list of files contained in this torrent.
[JsonPropertyName("files")]
public IReadOnlyList<TorrentFile> 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
Name
Gets the name of the torrent.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Peers
Gets the number of peers available for this torrent.
[JsonPropertyName("peers")]
public int Peers { get; init; }
Property Value
Seeds
Gets the number of seeds available for this torrent.
[JsonPropertyName("seeds")]
public int Seeds { get; init; }
Property Value
Size
Gets the total size of the torrent in bytes.
[JsonPropertyName("size")]
public long Size { get; init; }
Property Value
Trackers
Gets the list of tracker URLs associated with this torrent.
[JsonPropertyName("trackers")]
public IReadOnlyList<string> Trackers { get; init; }