mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
24 lines
752 B
C#
24 lines
752 B
C#
using NzbDrone.Core.Notifications;
|
|
|
|
namespace Lidarr.Api.V1.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.Enable)
|
|
{
|
|
return;
|
|
}
|
|
|
|
base.Validate(definition, includeWarnings);
|
|
}
|
|
}
|
|
}
|