mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-11-01 03:51:04 -05:00
19 lines
698 B
C#
19 lines
698 B
C#
using Transmission.API.RPC.Arguments;
|
|
using Transmission.API.RPC.Entity;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.DownloadClient.Transmission;
|
|
|
|
/// <summary>
|
|
/// Wrapper interface for Transmission Client to enable testing
|
|
/// </summary>
|
|
public interface ITransmissionClientWrapper
|
|
{
|
|
Task<SessionInfo?> GetSessionInformationAsync();
|
|
Task<TransmissionTorrents?> TorrentGetAsync(string[] fields, string? hash = null);
|
|
Task TorrentSetAsync(TorrentSettings settings);
|
|
Task TorrentSetLocationAsync(long[] ids, string location, bool move);
|
|
Task TorrentRemoveAsync(long[] ids, bool deleteLocalData);
|
|
Task TorrentStopAsync(long[] ids);
|
|
Task TorrentStartAsync(long[] ids);
|
|
}
|