mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Added PushBullet notifications
This commit is contained in:
parent
742a21252c
commit
42efef0bb2
5 changed files with 129 additions and 0 deletions
47
NzbDrone.Core/Notifications/PushBullet/PushBullet.cs
Normal file
47
NzbDrone.Core/Notifications/PushBullet/PushBullet.cs
Normal file
|
@ -0,0 +1,47 @@
|
|||
using NzbDrone.Core.Tv;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.PushBullet
|
||||
{
|
||||
public class PushBullet : NotificationBase<PushBulletSettings>
|
||||
{
|
||||
private readonly IPushBulletProxy _pushBulletProxy;
|
||||
|
||||
public PushBullet(IPushBulletProxy pushBulletProxy)
|
||||
{
|
||||
_pushBulletProxy = pushBulletProxy;
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return "PushBullet"; }
|
||||
}
|
||||
|
||||
public override string ImplementationName
|
||||
{
|
||||
get { return "PushBullet"; }
|
||||
}
|
||||
|
||||
public override string Link
|
||||
{
|
||||
get { return "https://www.pushbullet.com/"; }
|
||||
}
|
||||
|
||||
public override void OnGrab(string message)
|
||||
{
|
||||
const string title = "Episode Grabbed";
|
||||
|
||||
_pushBulletProxy.SendNotification(title, message, Settings.ApiKey, Settings.DeviceId);
|
||||
}
|
||||
|
||||
public override void OnDownload(string message, Series series)
|
||||
{
|
||||
const string title = "Episode Downloaded";
|
||||
|
||||
_pushBulletProxy.SendNotification(title, message, Settings.ApiKey, Settings.DeviceId);
|
||||
}
|
||||
|
||||
public override void AfterRename(Series series)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue