Class AddTorrentsRequest
Request to add new torrents using torrent files and/or URLs.
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
[ApiLevel(ApiLevel.V2)]
public class AddTorrentsRequest : AddTorrentRequestBase
Constructors
| Improve this Doc View SourceAddTorrentsRequest()
Initializes a new instance of the AddTorrentsRequest class.
Declaration
public AddTorrentsRequest()
AddTorrentsRequest(IEnumerable<String>)
Initializes a new instance of the AddTorrentsRequest class.
Declaration
public AddTorrentsRequest(IEnumerable<string> torrentFiles)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | torrentFiles | The torrent files' paths. |
AddTorrentsRequest(IEnumerable<String>, IEnumerable<Uri>)
Initializes a new instance of the AddTorrentsRequest class.
Declaration
public AddTorrentsRequest(IEnumerable<string> torrentFiles, IEnumerable<Uri> torrentUrls)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | torrentFiles | The torrent files' paths. |
System.Collections.Generic.IEnumerable<System.Uri> | torrentUrls | The URLs of the torrents to add. |
AddTorrentsRequest(IEnumerable<Uri>)
Initializes a new instance of the AddTorrentsRequest class.
Declaration
public AddTorrentsRequest(IEnumerable<Uri> torrentUrls)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Uri> | torrentUrls | The URLs of the torrents to add. |
Properties
| Improve this Doc View SourceTorrentFiles
The list of torrent files' paths to add.
Declaration
public ICollection<string> TorrentFiles { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.String> |
TorrentUrls
The list of torrent URLs.
Declaration
public ICollection<Uri> TorrentUrls { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.Uri> |