|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using NzbDrone.Core.Notifications;
|
|
|
|
|
using Sonarr.Http;
|
|
|
|
|
|
|
|
|
@ -6,12 +8,24 @@ namespace Sonarr.Api.V3.Notifications
|
|
|
|
|
[V3ApiController]
|
|
|
|
|
public class NotificationController : ProviderControllerBase<NotificationResource, NotificationBulkResource, INotification, NotificationDefinition>
|
|
|
|
|
{
|
|
|
|
|
public static readonly NotificationResourceMapper ResourceMapper = new NotificationResourceMapper();
|
|
|
|
|
public static readonly NotificationBulkResourceMapper BulkResourceMapper = new NotificationBulkResourceMapper();
|
|
|
|
|
public static readonly NotificationResourceMapper ResourceMapper = new ();
|
|
|
|
|
public static readonly NotificationBulkResourceMapper BulkResourceMapper = new ();
|
|
|
|
|
|
|
|
|
|
public NotificationController(NotificationFactory notificationFactory)
|
|
|
|
|
: base(notificationFactory, "notification", ResourceMapper, BulkResourceMapper)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
|
public override ActionResult<NotificationResource> UpdateProvider([FromBody] NotificationBulkResource providerResource)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
|
public override object DeleteProviders([FromBody] NotificationBulkResource resource)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|