Radarr/src/NzbDrone.Api/Notifications/NotificationModule.cs

18 lines
566 B
C#
Raw Normal View History

2013-11-20 00:42:17 +00:00
using NzbDrone.Core.Notifications;
2013-05-20 01:32:05 +00:00
namespace NzbDrone.Api.Notifications
{
2014-01-22 05:22:09 +00:00
public class NotificationModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
2013-05-20 01:32:05 +00:00
{
2014-01-22 05:22:09 +00:00
public NotificationModule(NotificationFactory notificationFactory)
2013-11-21 06:04:15 +00:00
: base(notificationFactory, "notification")
{
2013-05-29 02:49:17 +00:00
}
protected override void Validate(NotificationDefinition definition)
2013-05-29 02:49:17 +00:00
{
if (!definition.OnGrab && !definition.OnDownload) return;
base.Validate(definition);
}
2013-05-20 01:32:05 +00:00
}
}