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-21 06:16:19 +00:00
|
|
|
|
{
|
2013-05-29 02:49:17 +00:00
|
|
|
|
}
|
2013-05-21 06:16:19 +00:00
|
|
|
|
|
2013-10-12 18:44:40 +00:00
|
|
|
|
protected override void Validate(NotificationDefinition definition)
|
2013-05-29 02:49:17 +00:00
|
|
|
|
{
|
2013-10-12 18:44:40 +00:00
|
|
|
|
if (!definition.OnGrab && !definition.OnDownload) return;
|
|
|
|
|
base.Validate(definition);
|
2013-05-21 06:16:19 +00:00
|
|
|
|
}
|
2013-05-20 01:32:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|