mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Added Notification System, Renamed Repository to Entities
This commit is contained in:
parent
9c7355f3fb
commit
27d86a8540
43 changed files with 351 additions and 760 deletions
28
NzbDrone.Web/Controllers/NotificationController.cs
Normal file
28
NzbDrone.Web/Controllers/NotificationController.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
public class NotificationController : Controller
|
||||
{
|
||||
private readonly INotificationProvider _notifications;
|
||||
//
|
||||
// GET: /Notification/
|
||||
|
||||
public NotificationController(INotificationProvider notificationProvider)
|
||||
{
|
||||
_notifications = notificationProvider;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public JsonResult Index()
|
||||
{
|
||||
return Json(_notifications.ProgressNotifications, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -7,6 +7,7 @@ using NzbDrone.Core.Providers;
|
|||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
[HandleError]
|
||||
public class SeriesController : Controller
|
||||
{
|
||||
private readonly ISeriesProvider _seriesProvider;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
@ -8,6 +9,7 @@ using NzbDrone.Web.Models;
|
|||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
[HandleError]
|
||||
public class SettingsController : Controller
|
||||
{
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue