C# Класс DelugeRPC_NET.Core

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
TorrentFieldMap string>.Dictionary

Открытые методы

Метод Описание
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'.

Приватные методы

Метод Описание
_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

Описание методов

AddTorrentFile() публичный Метод

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) ///
Результат void

AddTorrentFile() публичный Метод

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) ///
Результат void

AddTorrentUrl() публичный Метод

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. ///
Результат void

AddTorrentUrl() публичный Метод

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. ///
Результат void

Core() публичный Метод

public Core ( Factory factory ) : System
factory Factory
Результат System

GetLibTorrentVersion() публичный Метод

Returns the libtorrent version.
public GetLibTorrentVersion ( GetLibTorrentVersionCallback callback ) : void
callback GetLibTorrentVersionCallback /// Method Callback (string verison) ///
Результат void

GetLibTorrentVersion() публичный Метод

Returns the libtorrent version.
public GetLibTorrentVersion ( object state, GetLibTorrentVersionCallback callback ) : void
state object
callback GetLibTorrentVersionCallback /// Method Callback (string verison) ///
Результат void

GetSessionState() публичный Метод

Returns a list of torrent_ids in the session.
public GetSessionState ( GetSessionStateCallback callback ) : void
callback GetSessionStateCallback /// Method Callback (string[] session_torrent_ids) ///
Результат void

GetSessionState() публичный Метод

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) ///
Результат void

GetTorrentsStatus() публичный Метод

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) ///
Результат void

GetTorrentsStatus() публичный Метод

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) ///
Результат void

GetTorrentsStatus() публичный Метод

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) ///
Результат void

GetTorrentsStatus() публичный Метод

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) ///
Результат void

Описание свойств

TorrentFieldMap публичное статическое свойство

public static Dictionary TorrentFieldMap
Результат string>.Dictionary