mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Added pushover notifications
This commit is contained in:
parent
20e72ca103
commit
e96e1b10db
7 changed files with 159 additions and 0 deletions
44
NzbDrone.Core/Notifications/Pushover/Pushover.cs
Normal file
44
NzbDrone.Core/Notifications/Pushover/Pushover.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
using NzbDrone.Core.Notifications.Prowl;
|
||||
using NzbDrone.Core.Tv;
|
||||
using Prowlin;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Pushover
|
||||
{
|
||||
public class Pushover : NotificationBase<PushoverSettings>
|
||||
{
|
||||
private readonly IPushoverService _pushoverService;
|
||||
|
||||
public Pushover(IPushoverService pushoverService)
|
||||
{
|
||||
_pushoverService = pushoverService;
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return "Pushover"; }
|
||||
}
|
||||
|
||||
public override string ImplementationName
|
||||
{
|
||||
get { return "Pushover"; }
|
||||
}
|
||||
|
||||
public override void OnGrab(string message)
|
||||
{
|
||||
const string title = "Episode Grabbed";
|
||||
|
||||
_pushoverService.SendNotification(title, message, Settings.UserKey, (PushoverPriority)Settings.Priority);
|
||||
}
|
||||
|
||||
public override void OnDownload(string message, Series series)
|
||||
{
|
||||
const string title = "Episode Downloaded";
|
||||
|
||||
_pushoverService.SendNotification(title, message, Settings.UserKey, (PushoverPriority)Settings.Priority);
|
||||
}
|
||||
|
||||
public override void AfterRename(Series series)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue