mirror of
https://github.com/Readarr/Readarr.git
synced 2026-08-04 11:03:47 -04:00
18 lines
566 B
C#
18 lines
566 B
C#
using NzbDrone.Core.Notifications;
|
|
|
|
namespace NzbDrone.Api.Notifications
|
|
{
|
|
public class NotificationModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
|
|
{
|
|
public NotificationModule(NotificationFactory notificationFactory)
|
|
: base(notificationFactory, "notification")
|
|
{
|
|
}
|
|
|
|
protected override void Validate(NotificationDefinition definition)
|
|
{
|
|
if (!definition.OnGrab && !definition.OnDownload) return;
|
|
base.Validate(definition);
|
|
}
|
|
}
|
|
} |