diff --git a/Transmission.API.RPC.Test/MethodsTest.cs b/Transmission.API.RPC.Test/MethodsTest.cs index ec32db6..ba68e50 100644 --- a/Transmission.API.RPC.Test/MethodsTest.cs +++ b/Transmission.API.RPC.Test/MethodsTest.cs @@ -117,7 +117,7 @@ public void RemoveTorrent_Test() var torrentInfo = torrentsInfo.Torrents.FirstOrDefault(); Assert.IsNotNull(torrentInfo, "Torrent not found"); - client.TorrentRemove(new long[] { torrentInfo.Id }); + client.TorrentRemove(new object[] { torrentInfo.Id }); torrentsInfo = client.TorrentGet(TorrentFields.ALL_FIELDS); diff --git a/Transmission.API.RPC/Client.Async.cs b/Transmission.API.RPC/Client.Async.cs index 830fd09..fa0e29a 100644 --- a/Transmission.API.RPC/Client.Async.cs +++ b/Transmission.API.RPC/Client.Async.cs @@ -173,9 +173,9 @@ public async Task TorrentSetAsync(TorrentSettings settings) /// /// Remove torrents /// - /// Torrents id + /// A list of torrent id numbers, sha1 hash strings, or both /// Remove data - public async Task TorrentRemoveAsync(long[] ids, bool deleteData = false) + public async Task TorrentRemoveAsync(object[] ids, bool deleteData = false) { var arguments = new Dictionary(); diff --git a/Transmission.API.RPC/Client.cs b/Transmission.API.RPC/Client.cs index e0f1b19..006d1c4 100644 --- a/Transmission.API.RPC/Client.cs +++ b/Transmission.API.RPC/Client.cs @@ -178,9 +178,9 @@ public TransmissionTorrents TorrentGet(string[] fields, params string[] ids) /// /// Remove torrents (API: torrent-remove) /// - /// Torrents id + /// A list of torrent id numbers, sha1 hash strings, or both /// Remove data - public void TorrentRemove(long[] ids, bool deleteData = false) + public void TorrentRemove(object[] ids, bool deleteData = false) { TorrentRemoveAsync(ids, deleteData).WaitAndUnwrapException(); } diff --git a/Transmission.API.RPC/ITransmissionClient.cs b/Transmission.API.RPC/ITransmissionClient.cs index 4a6fdfe..de172de 100644 --- a/Transmission.API.RPC/ITransmissionClient.cs +++ b/Transmission.API.RPC/ITransmissionClient.cs @@ -122,9 +122,9 @@ public interface ITransmissionClient /// /// Remove torrents (API: torrent-remove) /// - /// Torrents id + /// A list of torrent id numbers, sha1 hash strings, or both /// Remove local data - void TorrentRemove(long[] ids, bool deleteData = false); + void TorrentRemove(object[] ids, bool deleteData = false); /// /// Rename a file or directory in a torrent (API: torrent-rename-path) diff --git a/Transmission.API.RPC/ITransmissionClientAsync.cs b/Transmission.API.RPC/ITransmissionClientAsync.cs index 7a30230..2105a89 100644 --- a/Transmission.API.RPC/ITransmissionClientAsync.cs +++ b/Transmission.API.RPC/ITransmissionClientAsync.cs @@ -108,9 +108,9 @@ public interface ITransmissionClientAsync /// /// Remove torrents /// - /// Torrents id + /// A list of torrent id numbers, sha1 hash strings, or both /// Remove local data - Task TorrentRemoveAsync(long[] ids, bool deleteData = false); + Task TorrentRemoveAsync(object[] ids, bool deleteData = false); /// /// Rename a file or directory in a torrent (API: torrent-rename-path) diff --git a/Transmission.API.RPC/Transmission.API.RPC.csproj b/Transmission.API.RPC/Transmission.API.RPC.csproj index 63a56d4..f3cf636 100644 --- a/Transmission.API.RPC/Transmission.API.RPC.csproj +++ b/Transmission.API.RPC/Transmission.API.RPC.csproj @@ -7,7 +7,7 @@ Library - 1.0.3 + 1.0.4