You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-11-06 09:19:38 +02:00
Removed INotificationProvider
This commit is contained in:
@@ -4,7 +4,7 @@ using NzbDrone.Core.Model.Notification;
|
||||
|
||||
namespace NzbDrone.Core.Providers.Fakes
|
||||
{
|
||||
class FakeNotificationProvider : INotificationProvider
|
||||
class FakeNotificationProvider
|
||||
{
|
||||
private readonly Dictionary<Guid, BasicNotification> _basicNotifications = new Dictionary<Guid, BasicNotification>();
|
||||
private readonly Dictionary<Guid, ProgressNotification> _progressNotification = new Dictionary<Guid, ProgressNotification>();
|
||||
|
||||
@@ -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<BasicNotification> BasicNotifications { get; }
|
||||
List<ProgressNotification> GetProgressNotifications { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Dismisses a notification based on its ID.
|
||||
/// </summary>
|
||||
/// <param name="notificationId">notification id.</param>
|
||||
void Dismiss(Guid notificationId);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ using NzbDrone.Core.Model.Notification;
|
||||
|
||||
namespace NzbDrone.Core.Providers
|
||||
{
|
||||
class NotificationProvider : INotificationProvider
|
||||
public class NotificationProvider
|
||||
{
|
||||
private readonly Dictionary<Guid, BasicNotification> _basicNotifications = new Dictionary<Guid, BasicNotification>();
|
||||
private Dictionary<Guid, ProgressNotification> _progressNotification = new Dictionary<Guid, ProgressNotification>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user