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.
27 lines
823 B
27 lines
823 B
using Lidarr.Http;
|
|
using NzbDrone.Core.Download;
|
|
|
|
namespace Lidarr.Api.V1.DownloadClient
|
|
{
|
|
[V1ApiController]
|
|
public class DownloadClientController : ProviderControllerBase<DownloadClientResource, IDownloadClient, DownloadClientDefinition>
|
|
{
|
|
public static readonly DownloadClientResourceMapper ResourceMapper = new DownloadClientResourceMapper();
|
|
|
|
public DownloadClientController(IDownloadClientFactory downloadClientFactory)
|
|
: base(downloadClientFactory, "downloadclient", ResourceMapper)
|
|
{
|
|
}
|
|
|
|
protected override void Validate(DownloadClientDefinition definition, bool includeWarnings)
|
|
{
|
|
if (!definition.Enable)
|
|
{
|
|
return;
|
|
}
|
|
|
|
base.Validate(definition, includeWarnings);
|
|
}
|
|
}
|
|
}
|