mirror of
https://github.com/Readarr/Readarr
synced 2025-12-26 10:14:51 +01:00
20 lines
No EOL
732 B
C#
20 lines
No EOL
732 B
C#
using NzbDrone.Core.Notifications;
|
|
|
|
namespace Lidarr.Api.V3.Notifications
|
|
{
|
|
public class NotificationModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
|
|
{
|
|
public static readonly NotificationResourceMapper ResourceMapper = new NotificationResourceMapper();
|
|
|
|
public NotificationModule(NotificationFactory notificationFactory)
|
|
: base(notificationFactory, "notification", ResourceMapper)
|
|
{
|
|
}
|
|
|
|
protected override void Validate(NotificationDefinition definition, bool includeWarnings)
|
|
{
|
|
if (!definition.OnGrab && !definition.OnDownload) return;
|
|
base.Validate(definition, includeWarnings);
|
|
}
|
|
}
|
|
} |