mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-25 22:37:27 -04:00
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using NzbDrone.Core.Notifications;
|
|
using NzbDrone.SignalR;
|
|
using Radarr.Http;
|
|
|
|
namespace Radarr.Api.V3.Notifications
|
|
{
|
|
[V3ApiController]
|
|
public class NotificationController : ProviderControllerBase<NotificationResource, NotificationBulkResource, INotification, NotificationDefinition>
|
|
{
|
|
public static readonly NotificationResourceMapper ResourceMapper = new ();
|
|
public static readonly NotificationBulkResourceMapper BulkResourceMapper = new ();
|
|
|
|
public NotificationController(IBroadcastSignalRMessage signalRBroadcaster, NotificationFactory notificationFactory)
|
|
: base(signalRBroadcaster, 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();
|
|
}
|
|
}
|
|
}
|