1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00
Files
Sonarr/src/NzbDrone.Api/Notifications/NotificationModule.cs
T
Mark McDowall 27da44ba45 Converted notifications to thingi provider
Fixed: Issues creating and saving Connects
2013-10-12 12:05:37 -07:00

26 lines
770 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Api.ClientSchema;
using NzbDrone.Api.Mapping;
using NzbDrone.Api.REST;
using NzbDrone.Common.Reflection;
using NzbDrone.Core.Notifications;
using Omu.ValueInjecter;
namespace NzbDrone.Api.Notifications
{
public class IndexerModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
{
public IndexerModule(NotificationFactory notificationrFactory)
: base(notificationrFactory, "notification")
{
}
protected override void Validate(NotificationDefinition definition)
{
if (!definition.OnGrab && !definition.OnDownload) return;
base.Validate(definition);
}
}
}