mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-26 02:07:24 +01:00
26 lines
No EOL
770 B
C#
26 lines
No EOL
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);
|
|
}
|
|
}
|
|
} |