diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index 37661a956..94208603f 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -76,7 +76,7 @@ namespace NzbDrone.Core _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To().InSingletonScope(); - _kernel.Bind().To().InSingletonScope(); + _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To().InSingletonScope(); diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index 061f1b71b..1d4895b00 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -203,7 +203,6 @@ - diff --git a/NzbDrone.Core/Providers/Fakes/FakeNotificationProvider.cs b/NzbDrone.Core/Providers/Fakes/FakeNotificationProvider.cs index f51e7d6fd..3165e7de1 100644 --- a/NzbDrone.Core/Providers/Fakes/FakeNotificationProvider.cs +++ b/NzbDrone.Core/Providers/Fakes/FakeNotificationProvider.cs @@ -4,7 +4,7 @@ using NzbDrone.Core.Model.Notification; namespace NzbDrone.Core.Providers.Fakes { - class FakeNotificationProvider : INotificationProvider + class FakeNotificationProvider { private readonly Dictionary _basicNotifications = new Dictionary(); private readonly Dictionary _progressNotification = new Dictionary(); diff --git a/NzbDrone.Core/Providers/INotificationProvider.cs b/NzbDrone.Core/Providers/INotificationProvider.cs deleted file mode 100644 index d4b4c8c12..000000000 --- a/NzbDrone.Core/Providers/INotificationProvider.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using NzbDrone.Core.Model.Notification; - -namespace NzbDrone.Core.Providers -{ - public interface INotificationProvider - { - void Register(ProgressNotification notification); - void Register(BasicNotification notification); - - List BasicNotifications { get; } - List GetProgressNotifications { get; } - - /// - /// Dismisses a notification based on its ID. - /// - /// notification id. - void Dismiss(Guid notificationId); - - } -} diff --git a/NzbDrone.Core/Providers/NotificationProvider.cs b/NzbDrone.Core/Providers/NotificationProvider.cs index 97b23c8a5..f2759e3a6 100644 --- a/NzbDrone.Core/Providers/NotificationProvider.cs +++ b/NzbDrone.Core/Providers/NotificationProvider.cs @@ -5,7 +5,7 @@ using NzbDrone.Core.Model.Notification; namespace NzbDrone.Core.Providers { - class NotificationProvider : INotificationProvider + public class NotificationProvider { private readonly Dictionary _basicNotifications = new Dictionary(); private Dictionary _progressNotification = new Dictionary(); diff --git a/NzbDrone.Core/Providers/SyncProvider.cs b/NzbDrone.Core/Providers/SyncProvider.cs index fa8bf8a18..9f0ffb1a5 100644 --- a/NzbDrone.Core/Providers/SyncProvider.cs +++ b/NzbDrone.Core/Providers/SyncProvider.cs @@ -16,7 +16,7 @@ namespace NzbDrone.Core.Providers private readonly ISeriesProvider _seriesProvider; private readonly IEpisodeProvider _episodeProvider; private readonly IMediaFileProvider _mediaFileProvider; - private readonly INotificationProvider _notificationProvider; + private readonly NotificationProvider _notificationProvider; private readonly IDiskProvider _diskProvider; private ProgressNotification _seriesSyncNotification; @@ -25,7 +25,7 @@ namespace NzbDrone.Core.Providers private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); public SyncProvider(ISeriesProvider seriesProvider, IEpisodeProvider episodeProvider, - IMediaFileProvider mediaFileProvider, INotificationProvider notificationProvider, + IMediaFileProvider mediaFileProvider, NotificationProvider notificationProvider, IDiskProvider diskProvider) { _seriesProvider = seriesProvider; diff --git a/NzbDrone.Web/Controllers/NotificationController.cs b/NzbDrone.Web/Controllers/NotificationController.cs index 693c2dd6a..12118727f 100644 --- a/NzbDrone.Web/Controllers/NotificationController.cs +++ b/NzbDrone.Web/Controllers/NotificationController.cs @@ -9,11 +9,11 @@ namespace NzbDrone.Web.Controllers { public class NotificationController : Controller { - private readonly INotificationProvider _notifications; + private readonly NotificationProvider _notifications; // // GET: /Notification/ - public NotificationController(INotificationProvider notificationProvider) + public NotificationController(NotificationProvider notificationProvider) { _notifications = notificationProvider; }