Prowlarr/src/NzbDrone.Api/Notifications/NotificationModule.cs
2013-11-19 16:42:17 -08:00

18 lines
No EOL
558 B
C#

using NzbDrone.Core.Notifications;
namespace NzbDrone.Api.Notifications
{
public class IndexerModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
{
public IndexerModule(NotificationFactory notificationrFactory)
: base(notificationrFactory, "notification")
{
}
protected override void Validate(NotificationDefinition definition)
{
if (!definition.OnGrab && !definition.OnDownload) return;
base.Validate(definition);
}
}
}