Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Transmission.API.RPC.Test/MethodsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions Transmission.API.RPC/Client.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ public async Task TorrentSetAsync(TorrentSettings settings)
/// <summary>
/// Remove torrents
/// </summary>
/// <param name="ids">Torrents id</param>
/// <param name="ids">A list of torrent id numbers, sha1 hash strings, or both</param>
/// <param name="deleteData">Remove data</param>
public async Task TorrentRemoveAsync(long[] ids, bool deleteData = false)
public async Task TorrentRemoveAsync(object[] ids, bool deleteData = false)
{
var arguments = new Dictionary<string, object>();

Expand Down
4 changes: 2 additions & 2 deletions Transmission.API.RPC/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public TransmissionTorrents TorrentGet(string[] fields, params string[] ids)
/// <summary>
/// Remove torrents (API: torrent-remove)
/// </summary>
/// <param name="ids">Torrents id</param>
/// <param name="ids">A list of torrent id numbers, sha1 hash strings, or both</param>
/// <param name="deleteData">Remove data</param>
public void TorrentRemove(long[] ids, bool deleteData = false)
public void TorrentRemove(object[] ids, bool deleteData = false)
{
TorrentRemoveAsync(ids, deleteData).WaitAndUnwrapException();
}
Expand Down
4 changes: 2 additions & 2 deletions Transmission.API.RPC/ITransmissionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public interface ITransmissionClient
/// <summary>
/// Remove torrents (API: torrent-remove)
/// </summary>
/// <param name="ids">Torrents id</param>
/// <param name="ids">A list of torrent id numbers, sha1 hash strings, or both</param>
/// <param name="deleteData">Remove local data</param>
void TorrentRemove(long[] ids, bool deleteData = false);
void TorrentRemove(object[] ids, bool deleteData = false);

/// <summary>
/// Rename a file or directory in a torrent (API: torrent-rename-path)
Expand Down
4 changes: 2 additions & 2 deletions Transmission.API.RPC/ITransmissionClientAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public interface ITransmissionClientAsync
/// <summary>
/// Remove torrents
/// </summary>
/// <param name="ids">Torrents id</param>
/// <param name="ids">A list of torrent id numbers, sha1 hash strings, or both</param>
/// <param name="deleteData">Remove local data</param>
Task TorrentRemoveAsync(long[] ids, bool deleteData = false);
Task TorrentRemoveAsync(object[] ids, bool deleteData = false);

/// <summary>
/// Rename a file or directory in a torrent (API: torrent-rename-path)
Expand Down
2 changes: 1 addition & 1 deletion Transmission.API.RPC/Transmission.API.RPC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ApplicationIcon />
<OutputType>Library</OutputType>
<StartupObject />
<Version>1.0.3</Version>
<Version>1.0.4</Version>
</PropertyGroup>

<!-- <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">-->
Expand Down