mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Removed basic notification. client side notification should be used.
This commit is contained in:
parent
ce51313cff
commit
1e9b279a9b
6 changed files with 0 additions and 150 deletions
|
@ -7,19 +7,12 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
public class NotificationProvider
|
||||
{
|
||||
private static readonly Dictionary<Guid, BasicNotification> _basicNotifications =
|
||||
new Dictionary<Guid, BasicNotification>();
|
||||
|
||||
private static readonly Object _lock = new object();
|
||||
|
||||
private static readonly Dictionary<Guid, ProgressNotification> _progressNotification =
|
||||
new Dictionary<Guid, ProgressNotification>();
|
||||
|
||||
public virtual List<BasicNotification> BasicNotifications
|
||||
{
|
||||
get { return new List<BasicNotification>(_basicNotifications.Values); }
|
||||
}
|
||||
|
||||
public virtual List<ProgressNotification> ProgressNotifications
|
||||
{
|
||||
get
|
||||
|
@ -51,28 +44,5 @@ namespace NzbDrone.Core.Providers
|
|||
_progressNotification.Add(notification.Id, notification);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void Register(BasicNotification notification)
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
_basicNotifications.Add(notification.Id, notification);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void Dismiss(Guid notificationId)
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
if (_basicNotifications.ContainsKey(notificationId))
|
||||
{
|
||||
_basicNotifications.Remove(notificationId);
|
||||
}
|
||||
else if (_progressNotification.ContainsKey(notificationId))
|
||||
{
|
||||
_progressNotification.Remove(notificationId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue