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

26 lines
770 B
C#
Raw Normal View History

2013-05-29 02:49:17 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
2013-05-20 01:32:05 +00:00
using NzbDrone.Api.ClientSchema;
using NzbDrone.Api.Mapping;
2013-05-29 06:24:45 +00:00
using NzbDrone.Api.REST;
2013-09-22 23:40:36 +00:00
using NzbDrone.Common.Reflection;
2013-05-20 01:32:05 +00:00
using NzbDrone.Core.Notifications;
using Omu.ValueInjecter;
namespace NzbDrone.Api.Notifications
{
public class IndexerModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
2013-05-20 01:32:05 +00:00
{
public IndexerModule(NotificationFactory notificationrFactory)
: base(notificationrFactory, "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
}
}