Files
Cleanuparr/code/backend/Cleanuparr.Infrastructure/Features/DownloadClient/Transmission/ITransmissionClientWrapper.cs
T

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);
}