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.
Sonarr/src/NzbDrone.Api/Notifications/NotificationModule.cs

18 lines
556 B

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