Class TorrentInfo
Represents main information about torrent.
Inheritance
Inherited Members
Namespace: QBittorrent.Client
Assembly: QBittorrent.Client.dll
Syntax
public class TorrentInfo
Properties
| Improve this Doc View SourceActiveTime
The active time of this torrent
Declaration
[JsonProperty("time_active")]
[JsonConverter(typeof(SecondsToTimeSpanConverter))]
public TimeSpan? ActiveTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
AddedOn
The date and time when the torrent was added
Declaration
[JsonProperty("added_on")]
[JsonConverter(typeof(UnixTimeToNullableDateTimeConverter))]
public DateTime? AddedOn { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
AdditionalData
Additional properties not handled by this library.
Declaration
[JsonExtensionData]
public IDictionary<string, JToken> AdditionalData { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, Newtonsoft.Json.Linq.JToken> |
AutomaticTorrentManagement
Indicates whether automatic torrent management is enabled.
Declaration
[JsonProperty("auto_tmm")]
public bool AutomaticTorrentManagement { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Category
Category of the torrent
Declaration
[JsonProperty("category")]
public string Category { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CompletedSize
The completed amount (bytes)
Declaration
[JsonProperty("completed")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? CompletedSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
CompletionOn
The date and time when the torrent was completed
Declaration
[JsonProperty("completion_on")]
[JsonConverter(typeof(UnixTimeToNullableDateTimeConverter))]
public DateTime? CompletionOn { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
ConnectedLeechers
Number of leechers connected to
Declaration
[JsonProperty("num_leechs")]
public int ConnectedLeechers { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ConnectedSeeds
Number of seeds connected to
Declaration
[JsonProperty("num_seeds")]
public int ConnectedSeeds { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ContentPath
Absolute path of torrent content (root path for multifile torrents, absolute file path for singlefile torrents)
Declaration
[JsonProperty("content_path")]
public string ContentPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CurrentTracker
The current torrent tracker
Declaration
[JsonProperty("tracker")]
public string CurrentTracker { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Downloaded
The downloaded data size (bytes)
Declaration
[JsonProperty("downloaded")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? Downloaded { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
DownloadedInSession
The downloaded in this session data size (bytes)
Declaration
[JsonProperty("downloaded_session")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? DownloadedInSession { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
DownloadLimit
The download speed limit (bytes/second)
Declaration
[JsonProperty("dl_limit")]
[JsonConverter(typeof(NegativeToNullConverter))]
public int? DownloadLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
DownloadSpeed
Torrent download speed (bytes/s)
Declaration
[JsonProperty("dlspeed")]
public int DownloadSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
EstimatedTime
Torrent ETA
Declaration
[JsonProperty("eta")]
[JsonConverter(typeof(SecondsToTimeSpanConverter))]
public TimeSpan? EstimatedTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
FirstLastPiecePrioritized
True if first last piece are prioritized
Declaration
[JsonProperty("f_l_piece_prio")]
public bool FirstLastPiecePrioritized { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ForceStart
True if force start is enabled for this torrent
Declaration
[JsonProperty("force_start")]
public bool ForceStart { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Hash
Torrent hash
Declaration
[JsonProperty("hash")]
public string Hash { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IncompletedSize
The remaining amount to download (bytes)
Declaration
[JsonProperty("amount_left")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? IncompletedSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
LastActivityTime
The date and time when this torrent was seen active for the last time
Declaration
[JsonProperty("last_activity")]
[JsonConverter(typeof(UnixTimeToNullableDateTimeConverter))]
public DateTime? LastActivityTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
LastSeenComplete
The date and time when this torrent was seen complete for the last time
Declaration
[JsonProperty("seen_complete")]
[JsonConverter(typeof(UnixTimeToNullableDateTimeConverter))]
public DateTime? LastSeenComplete { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
MagnetUri
Magnet URI for the torrent
Declaration
[JsonProperty("magnet_uri")]
public string MagnetUri { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Torrent name
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Priority
Torrent priority. Returns -1 if queuing is disabled or torrent is in seed mode
Declaration
[JsonProperty("priority")]
public int Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Progress
Torrent progress (percentage/100)
Declaration
[JsonProperty("progress")]
public double Progress { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Ratio
Torrent share ratio. Max ratio value is 9999
. If actual ratio is greater than 9999
, -1
is returned.
Declaration
[JsonProperty("ratio")]
public double Ratio { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RatioLimit
The maximal allowed ratio
Declaration
[JsonProperty("ratio_limit")]
public double RatioLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
SavePath
The torrent save path
Declaration
[JsonProperty("save_path")]
public string SavePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SeedingTime
Torrent elapsed time while complete (seconds)
Declaration
[JsonProperty("seeding_time")]
[JsonConverter(typeof(SecondsToTimeSpanConverter))]
public TimeSpan? SeedingTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
SequentialDownload
True if sequential download is enabled
Declaration
[JsonProperty("seq_dl")]
public bool SequentialDownload { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Size
Total size (bytes) of files selected for download
Declaration
[JsonProperty("size")]
public long Size { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
State
Torrent state
Declaration
[JsonProperty("state")]
[JsonConverter(typeof(TorrentStateConverter))]
public TorrentState State { get; set; }
Property Value
Type | Description |
---|---|
TorrentState |
SuperSeeding
True if super seeding is enabled
Declaration
[JsonProperty("super_seeding")]
public bool SuperSeeding { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Tags
The torrent tags
Declaration
[JsonProperty("tags")]
[JsonConverter(typeof(StringToListConverter), new object[]{",", true})]
public IReadOnlyCollection<string> Tags { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<System.String> |
TotalLeechers
Number of leechers in the swarm
Declaration
[JsonProperty("num_incomplete")]
public int TotalLeechers { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TotalSeeds
Number of seeds in the swarm
Declaration
[JsonProperty("num_complete")]
public int TotalSeeds { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TotalSize
Total torrent size (bytes)
Declaration
[JsonProperty("total_size")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? TotalSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
Uploaded
The uploaded data size (bytes)
Declaration
[JsonProperty("uploaded")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? Uploaded { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
UploadedInSession
The uploaded in this session data size (bytes)
Declaration
[JsonProperty("uploaded_session")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? UploadedInSession { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
UploadLimit
The upload speed limit (bytes/second)
Declaration
[JsonProperty("up_limit")]
[JsonConverter(typeof(NegativeToNullConverter))]
public int? UploadLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
UploadSpeed
Torrent upload speed (bytes/s)
Declaration
[JsonProperty("upspeed")]
public int UploadSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |