C# Class DelugeRPC_NET.Core

Mostra file Open project: fuzeman/DelugeRPC.NET Class Usage Examples

Public Properties

Property Type Description
TorrentFieldMap string>.Dictionary

Public Methods

Method Description
AddTorrentFile ( string filename, string filedump, object>.Dictionary options, AddTorrentCallback callback ) : void

Adds a torrent file to the session.

AddTorrentFile ( string filename, string filedump, object>.Dictionary options, object state, AddTorrentCallback callback ) : void

Adds a torrent file to the session.

AddTorrentUrl ( string url, object>.Dictionary options, string>.Dictionary headers, AddTorrentCallback callback ) : void

Adds a torrent from a url. Deluge will attempt to fetch the torrent from url prior to adding it to the session.

AddTorrentUrl ( string url, object>.Dictionary options, string>.Dictionary headers, object state, AddTorrentCallback callback ) : void

Adds a torrent from a url. Deluge will attempt to fetch the torrent from url prior to adding it to the session.

Core ( Factory factory ) : System
GetLibTorrentVersion ( GetLibTorrentVersionCallback callback ) : void

Returns the libtorrent version.

GetLibTorrentVersion ( object state, GetLibTorrentVersionCallback callback ) : void

Returns the libtorrent version.

GetSessionState ( GetSessionStateCallback callback ) : void

Returns a list of torrent_ids in the session.

GetSessionState ( object state, GetSessionStateCallback callback ) : void

Returns a list of torrent_ids in the session.

GetTorrentsStatus ( object>.Dictionary filter, List keys, GetTorrentsStatusCallback callback ) : void

Returns all torrents, optionally filtered by 'filter'.

GetTorrentsStatus ( object>.Dictionary filter, List keys, object state, GetTorrentsStatusCallback callback ) : void

Returns all torrents, optionally filtered by 'filter'.

GetTorrentsStatus ( object>.Dictionary filter, TorrentFields fields, GetTorrentsStatusCallback callback ) : void

Returns all torrents, optionally filtered by 'filter'.

GetTorrentsStatus ( object>.Dictionary filter, TorrentFields fields, object state, GetTorrentsStatusCallback callback ) : void

Returns all torrents, optionally filtered by 'filter'.

Private Methods

Method Description
_AddTorrentFileCallback ( object result, object states ) : void
_AddTorrentUrlCallback ( object result, object state ) : void
_GetLibTorrentVersionCallback ( object result, object states ) : void
_GetSessionStateCallback ( object result, object states ) : void
_GetTorrentsStatusCallback ( object result, object states ) : void

Method Details

AddTorrentFile() public method

Adds a torrent file to the session.
public AddTorrentFile ( string filename, string filedump, object>.Dictionary options, AddTorrentCallback callback ) : void
filename string /// The filename of the torrent ///
filedump string /// Base 64 encoded string of the torrent file contents. ///
options object>.Dictionary /// Options to apply to the torrent on add ///
callback AddTorrentCallback /// Method Callback (string torrent_id) ///
return void

AddTorrentFile() public method

Adds a torrent file to the session.
public AddTorrentFile ( string filename, string filedump, object>.Dictionary options, object state, AddTorrentCallback callback ) : void
filename string /// The filename of the torrent ///
filedump string /// Base 64 encoded string of the torrent file contents. ///
options object>.Dictionary /// Options to apply to the torrent on add ///
state object
callback AddTorrentCallback /// Method Callback (string torrent_id) ///
return void

AddTorrentUrl() public method

Adds a torrent from a url. Deluge will attempt to fetch the torrent from url prior to adding it to the session.
public AddTorrentUrl ( string url, object>.Dictionary options, string>.Dictionary headers, AddTorrentCallback callback ) : void
url string /// the url pointing to the torrent file ///
options object>.Dictionary /// the options to apply to the torrent on add ///
headers string>.Dictionary /// any optional headers to send ///
callback AddTorrentCallback /// Callback. ///
return void

AddTorrentUrl() public method

Adds a torrent from a url. Deluge will attempt to fetch the torrent from url prior to adding it to the session.
public AddTorrentUrl ( string url, object>.Dictionary options, string>.Dictionary headers, object state, AddTorrentCallback callback ) : void
url string /// the url pointing to the torrent file ///
options object>.Dictionary /// the options to apply to the torrent on add ///
headers string>.Dictionary /// any optional headers to send ///
state object
callback AddTorrentCallback /// Callback. ///
return void

Core() public method

public Core ( Factory factory ) : System
factory Factory
return System

GetLibTorrentVersion() public method

Returns the libtorrent version.
public GetLibTorrentVersion ( GetLibTorrentVersionCallback callback ) : void
callback GetLibTorrentVersionCallback /// Method Callback (string verison) ///
return void

GetLibTorrentVersion() public method

Returns the libtorrent version.
public GetLibTorrentVersion ( object state, GetLibTorrentVersionCallback callback ) : void
state object
callback GetLibTorrentVersionCallback /// Method Callback (string verison) ///
return void

GetSessionState() public method

Returns a list of torrent_ids in the session.
public GetSessionState ( GetSessionStateCallback callback ) : void
callback GetSessionStateCallback /// Method Callback (string[] session_torrent_ids) ///
return void

GetSessionState() public method

Returns a list of torrent_ids in the session.
public GetSessionState ( object state, GetSessionStateCallback callback ) : void
state object
callback GetSessionStateCallback /// Method Callback (string[] session_torrent_ids) ///
return void

GetTorrentsStatus() public method

Returns all torrents, optionally filtered by 'filter'.
public GetTorrentsStatus ( object>.Dictionary filter, List keys, GetTorrentsStatusCallback callback ) : void
filter object>.Dictionary /// Torrent Filter. ///
keys List /// Fields to return by key. ///
callback GetTorrentsStatusCallback /// Method Callback (Dictionary(string, object) torrents) ///
return void

GetTorrentsStatus() public method

Returns all torrents, optionally filtered by 'filter'.
public GetTorrentsStatus ( object>.Dictionary filter, List keys, object state, GetTorrentsStatusCallback callback ) : void
filter object>.Dictionary /// Torrent Filter. ///
keys List /// Fields to return by key. ///
state object
callback GetTorrentsStatusCallback /// Method Callback (Dictionary(string, object) torrents) ///
return void

GetTorrentsStatus() public method

Returns all torrents, optionally filtered by 'filter'.
public GetTorrentsStatus ( object>.Dictionary filter, TorrentFields fields, GetTorrentsStatusCallback callback ) : void
filter object>.Dictionary /// Torrent Filter. ///
fields TorrentFields /// Fields to return by TorrentField. ///
callback GetTorrentsStatusCallback /// Method Callback (Dictionary(string, object) torrents) ///
return void

GetTorrentsStatus() public method

Returns all torrents, optionally filtered by 'filter'.
public GetTorrentsStatus ( object>.Dictionary filter, TorrentFields fields, object state, GetTorrentsStatusCallback callback ) : void
filter object>.Dictionary /// Torrent Filter. ///
fields TorrentFields /// Fields to return by TorrentField. ///
state object
callback GetTorrentsStatusCallback /// Method Callback (Dictionary(string, object) torrents) ///
return void

Property Details

TorrentFieldMap public_oe static_oe property

public static Dictionary TorrentFieldMap
return string>.Dictionary