Show / Hide Table of Contents

Class TorrentInfo

Represents main information about torrent.

Inheritance
System.Object
TorrentInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: QBittorrent.Client
Assembly: QBittorrent.Client.dll
Syntax
public class TorrentInfo

Properties

| Improve this Doc View Source

ActiveTime

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

AutomaticTorrentManagement

Indicates whether automatic torrent management is enabled.

Declaration
[JsonProperty("auto_tmm")]
public bool AutomaticTorrentManagement { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Category

Category of the torrent

Declaration
[JsonProperty("category")]
public string Category { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

CompletedSize

The completed amount (bytes)

Declaration
[JsonProperty("completed")]
[JsonConverter(typeof(NegativeToNullConverter))]
public long? CompletedSize { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>
| Improve this Doc View Source

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>
| Improve this Doc View Source

ConnectedLeechers

Number of leechers connected to

Declaration
[JsonProperty("num_leechs")]
public int ConnectedLeechers { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ConnectedSeeds

Number of seeds connected to

Declaration
[JsonProperty("num_seeds")]
public int ConnectedSeeds { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
| Improve this Doc View Source

CurrentTracker

The current torrent tracker

Declaration
[JsonProperty("tracker")]
public string CurrentTracker { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

DownloadSpeed

Torrent download speed (bytes/s)

Declaration
[JsonProperty("dlspeed")]
public int DownloadSpeed { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

EstimatedTime

Torrent ETA

Declaration
[JsonProperty("eta")]
[JsonConverter(typeof(SecondsToTimeSpanConverter))]
public TimeSpan? EstimatedTime { get; set; }
Property Value
Type Description
System.Nullable<System.TimeSpan>
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Hash

Torrent hash

Declaration
[JsonProperty("hash")]
public string Hash { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

MagnetUri

Magnet URI for the torrent

Declaration
[JsonProperty("magnet_uri")]
public string MagnetUri { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Name

Torrent name

Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Progress

Torrent progress (percentage/100)

Declaration
[JsonProperty("progress")]
public double Progress { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

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
| Improve this Doc View Source

RatioLimit

The maximal allowed ratio

Declaration
[JsonProperty("ratio_limit")]
public double RatioLimit { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

SavePath

The torrent save path

Declaration
[JsonProperty("save_path")]
public string SavePath { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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>
| Improve this Doc View Source

SequentialDownload

True if sequential download is enabled

Declaration
[JsonProperty("seq_dl")]
public bool SequentialDownload { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Size

Total size (bytes) of files selected for download

Declaration
[JsonProperty("size")]
public long Size { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

State

Torrent state

Declaration
[JsonProperty("state")]
[JsonConverter(typeof(TorrentStateConverter))]
public TorrentState State { get; set; }
Property Value
Type Description
TorrentState
| Improve this Doc View Source

SuperSeeding

True if super seeding is enabled

Declaration
[JsonProperty("super_seeding")]
public bool SuperSeeding { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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>
| Improve this Doc View Source

TotalLeechers

Number of leechers in the swarm

Declaration
[JsonProperty("num_incomplete")]
public int TotalLeechers { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

TotalSeeds

Number of seeds in the swarm

Declaration
[JsonProperty("num_complete")]
public int TotalSeeds { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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 Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018 Pavel Fedarovich