Class TorrentContent
Represents torrent content file info.
Inheritance
System.Object
TorrentContent
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)
System.Object.ToString()
Namespace: QBittorrent.Client
Assembly: QBittorrent.Client.dll
Syntax
public class TorrentContent
Properties
| Improve this Doc View SourceAdditionalData
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> |
Availability
Gets the file availability, calculated as (available_pieces)/(total_pieces)
Declaration
[JsonProperty("availability")]
public double? Availability { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
Index
File index
Declaration
[JsonProperty("index")]
public int? Index { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
IsSeeding
True if file is seeding/complete
Declaration
[JsonProperty("is_seed")]
public bool IsSeeding { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
File name (including relative path)
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PieceRange
The range of the file.
Declaration
[JsonProperty("piece_range")]
[JsonConverter(typeof(ArrayToRangeConverter))]
public Range PieceRange { get; set; }
Property Value
Type | Description |
---|---|
Range |
Priority
File priority
Declaration
[JsonProperty("priority")]
public TorrentContentPriority Priority { get; set; }
Property Value
Type | Description |
---|---|
TorrentContentPriority |
Progress
File progress (percentage/100)
Declaration
[JsonProperty("progress")]
public double Progress { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Size
Size
Declaration
[JsonProperty("size")]
public long Size { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |