From fec23de427fe1c46e4ce1aaf31f1695c90232059 Mon Sep 17 00:00:00 2001 From: Patrick Barron Date: Sat, 28 Jan 2023 09:43:55 -0500 Subject: Remove Emby.Notifications (#9147) --- .../Controllers/NotificationsController.cs | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 Jellyfin.Api/Controllers/NotificationsController.cs (limited to 'Jellyfin.Api/Controllers/NotificationsController.cs') diff --git a/Jellyfin.Api/Controllers/NotificationsController.cs b/Jellyfin.Api/Controllers/NotificationsController.cs deleted file mode 100644 index a28556476..000000000 --- a/Jellyfin.Api/Controllers/NotificationsController.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System.Collections.Generic; -using Jellyfin.Api.Constants; -using MediaBrowser.Controller.Notifications; -using MediaBrowser.Model.Dto; -using MediaBrowser.Model.Notifications; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; - -namespace Jellyfin.Api.Controllers -{ - /// - /// The notification controller. - /// - [Authorize(Policy = Policies.DefaultAuthorization)] - public class NotificationsController : BaseJellyfinApiController - { - private readonly INotificationManager _notificationManager; - - /// - /// Initializes a new instance of the class. - /// - /// The notification manager. - public NotificationsController(INotificationManager notificationManager) - { - _notificationManager = notificationManager; - } - - /// - /// Gets notification types. - /// - /// All notification types returned. - /// An containing a list of all notification types. - [HttpGet("Types")] - [ProducesResponseType(StatusCodes.Status200OK)] - public IEnumerable GetNotificationTypes() - { - return _notificationManager.GetNotificationTypes(); - } - - /// - /// Gets notification services. - /// - /// All notification services returned. - /// An containing a list of all notification services. - [HttpGet("Services")] - [ProducesResponseType(StatusCodes.Status200OK)] - public IEnumerable GetNotificationServices() - { - return _notificationManager.GetNotificationServices(); - } - } -} -- cgit v1.2.3