Lidarr/src/Lidarr.Api.V1/Notifications/NotificationModule.cs

25 lines
752 B
C#
Raw Normal View History

2017-09-04 02:20:56 +00:00
using NzbDrone.Core.Notifications;
2017-10-31 01:28:29 +00:00
namespace Lidarr.Api.V1.Notifications
2017-09-04 02:20:56 +00:00
{
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;
}
2017-09-04 02:20:56 +00:00
base.Validate(definition, includeWarnings);
}
}
}