1
0
mirror of https://github.com/Radarr/Radarr synced 2025-10-05 23:32:41 +02:00
Files
Radarr/src/Radarr.Api.V3/DownloadClient/DownloadClientModule.cs
2019-12-04 19:28:34 -05:00

21 lines
725 B
C#

using NzbDrone.Core.Download;
namespace Radarr.Api.V3.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);
}
}
}