You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1009 B
30 lines
1009 B
using System.Collections.Generic;
|
|
using NLog;
|
|
using NzbDrone.Common.Cache;
|
|
using NzbDrone.Common.Http;
|
|
|
|
namespace NzbDrone.Core.Download.Clients.DownloadStation.Proxies
|
|
{
|
|
public interface IDownloadStationInfoProxy : IDiskStationProxy
|
|
{
|
|
Dictionary<string, object> GetConfig(DownloadStationSettings settings);
|
|
}
|
|
|
|
public class DownloadStationInfoProxy : DiskStationProxyBase, IDownloadStationInfoProxy
|
|
{
|
|
public DownloadStationInfoProxy(IHttpClient httpClient, ICacheManager cacheManager, Logger logger)
|
|
: base(DiskStationApi.DownloadStationInfo, "SYNO.DownloadStation.Info", httpClient, cacheManager, logger)
|
|
{
|
|
}
|
|
|
|
public Dictionary<string, object> GetConfig(DownloadStationSettings settings)
|
|
{
|
|
var requestBuilder = BuildRequest(settings, "getConfig", 1);
|
|
|
|
var response = ProcessRequest<Dictionary<string, object>>(requestBuilder, "get config", settings);
|
|
|
|
return response.Data;
|
|
}
|
|
}
|
|
}
|