mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-27 10:58:34 +01:00
18 lines
No EOL
558 B
C#
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);
|
|
}
|
|
}
|
|
} |