DelugeRPCClient.Net
1.0.5
dotnet add package DelugeRPCClient.Net --version 1.0.5
NuGet\Install-Package DelugeRPCClient.Net -Version 1.0.5
<PackageReference Include="DelugeRPCClient.Net" Version="1.0.5" />
paket add DelugeRPCClient.Net --version 1.0.5
#r "nuget: DelugeRPCClient.Net, 1.0.5"
// Install DelugeRPCClient.Net as a Cake Addin #addin nuget:?package=DelugeRPCClient.Net&version=1.0.5 // Install DelugeRPCClient.Net as a Cake Tool #tool nuget:?package=DelugeRPCClient.Net&version=1.0.5
DelugeRPCClient.Net
.Net DelugeWeb RPC Client is a refactorisation of the great work done by SilverCard on DelugeWebClient
This library allows you to connect to the delugeweb RPC API. Some methods have been implemented, others will come according to needs or requests. The library targets multiple frameworks :
- .Net Core 3.1
- .Net Core 5
- .Net Core 6
- .NET Standard 2.0
- .NET 4.8
Installation
Simply download and restore nuget packages https://www.nuget.org/packages/DelugeRPCClient.Net/ or install it from package manager
PM> Install-Package DelugeRPCClient.Net -Version x.x.x
Create a DelugeClient Object
DelugeClient client = new DelugeClient(url: Constants.DelugeUrl, password: Constants.DelugePassword);
Create a DelugeClient Object with advanced options
DelugeClientConfig config = new DelugeClientConfig()
{
IgnoreSslErrors = true,
Timeout = new TimeSpan(0, 0, 30)
};
DelugeClient client = new DelugeClient(url: Constants.DelugeUrl, password: Constants.DelugePassword, config);
Authentification
Login
bool loginResult = await client.Login();
Logout
bool logoutResult = await client.Logout();
Torrents
List and Get torrents
List torrents
List<Torrent> torrents = await client.ListTorrents();
List torrents extended
List<TorrentExtended> torrents = await client.ListTorrentsExtended();
Get torrent by hash
Torrent torrent = await client.GetTorrent(torrentHash);
Get torrent extended by hash
TorrentExtended torrent = await client.GetTorrentExtended(torrentHash);
Add Torrent
Add a torrent by magnet uri
Torrent torrent = await client.AddTorrentByMagnet(torrentMagnetUri);
Add a torrent by .torrent file
Torrent torrent = await client.AddTorrentByFile(torrentFilename);
Add a torrent by .torrent url
Torrent torrent = await client.AddTorrentByUrl(torrentUrl);
Remove Torrent
bool removeTorrentResult = await client.RemoveTorrent(torrentHash);
Pause and Resume Torrent
Pause Torrent
bool pauseResult = await client.PauseTorrent(torrentHash);
Resume Torrent
bool resumeResult = await client.ResumeTorrent(torrentHash);
Recheck Torrents
bool recheckTorrentResult = await client.RecheckTorrents(List<string> torrentsHash);
Configs
List configs
List<Config> config = await client.ListConfigs();
Labels
List existing labels
List<string> labels = await client.ListLabels();
Check if a label exists
bool exists = await client.LabelExists(label);
Add a new label
bool addLabelResult = await client.AddLabel(label);
Remove an existing label
bool removeLabelResult = await client.RemoveLabel(label);
Assing a label to a torrent (if label dont exists it will be created)
bool assignResult = await client.SetTorrentLabel(torrentHash, label);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.