mirror of https://github.com/lidarr/Lidarr
25 lines
773 B
C#
25 lines
773 B
C#
using NzbDrone.Core.Download;
|
|
|
|
namespace Lidarr.Api.V1.DownloadClient
|
|
{
|
|
public class DownloadClientModule : ProviderModuleBase<DownloadClientResource, IDownloadClient, DownloadClientDefinition>
|
|
{
|
|
public static readonly DownloadClientResourceMapper ResourceMapper = new DownloadClientResourceMapper();
|
|
|
|
public DownloadClientModule(IDownloadClientFactory downloadClientFactory)
|
|
: base(downloadClientFactory, "downloadclient", ResourceMapper)
|
|
{
|
|
}
|
|
|
|
protected override void Validate(DownloadClientDefinition definition, bool includeWarnings)
|
|
{
|
|
if (!definition.Enable)
|
|
{
|
|
return;
|
|
}
|
|
|
|
base.Validate(definition, includeWarnings);
|
|
}
|
|
}
|
|
}
|