Table of Contents

Class TorrentInfo

Namespace
TorBoxSDK.Models.Torrents
Assembly
TorBoxSDK.dll

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

IReadOnlyList<TorrentFile>

Hash

Gets the info hash of the torrent, or null if not available.

[JsonPropertyName("hash")]
public string? Hash { get; init; }

Property Value

string

Name

Gets the name of the torrent.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

Peers

Gets the number of peers available for this torrent.

[JsonPropertyName("peers")]
public int Peers { get; init; }

Property Value

int

Seeds

Gets the number of seeds available for this torrent.

[JsonPropertyName("seeds")]
public int Seeds { get; init; }

Property Value

int

Size

Gets the total size of the torrent in bytes.

[JsonPropertyName("size")]
public long Size { get; init; }

Property Value

long

Trackers

Gets the list of tracker URLs associated with this torrent.

[JsonPropertyName("trackers")]
public IReadOnlyList<string> Trackers { get; init; }

Property Value

IReadOnlyList<string>