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;
|
2013-05-30 03:26:47 +00:00
|
|
|
|
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
|
|
|
|
|
{
|
2013-10-12 18:44:40 +00:00
|
|
|
|
public class IndexerModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
|
2013-05-20 01:32:05 +00:00
|
|
|
|
{
|
2013-10-12 18:44:40 +00:00
|
|
|
|
public IndexerModule(NotificationFactory notificationrFactory)
|
|
|
|
|
: base(notificationrFactory, "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
|
|
|
|
}
|
|
|
|
|
}
|