1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-13 22:43:35 +01:00
Radarr/NzbDrone.Core/Notifications/Pushover/Pushover.cs

48 lines
1.2 KiB
C#
Raw Normal View History

2013-08-04 19:27:06 +02:00
using NzbDrone.Core.Tv;
2013-07-25 09:24:09 +02:00
namespace NzbDrone.Core.Notifications.Pushover
{
public class Pushover : NotificationBase<PushoverSettings>
{
private readonly IPushoverProxy _pushoverProxy;
2013-07-25 09:24:09 +02:00
public Pushover(IPushoverProxy pushoverProxy)
2013-07-25 09:24:09 +02:00
{
_pushoverProxy = pushoverProxy;
2013-07-25 09:24:09 +02:00
}
public override string Name
{
get { return "Pushover"; }
}
public override string ImplementationName
{
get { return "Pushover"; }
}
public override string Link
{
get { return "https://pushover.net/"; }
}
2013-07-25 09:24:09 +02:00
public override void OnGrab(string message)
{
const string title = "Episode Grabbed";
_pushoverProxy.SendNotification(title, message, Settings.UserKey, (PushoverPriority)Settings.Priority);
2013-07-25 09:24:09 +02:00
}
public override void OnDownload(string message, Series series)
{
const string title = "Episode Downloaded";
_pushoverProxy.SendNotification(title, message, Settings.UserKey, (PushoverPriority)Settings.Priority);
2013-07-25 09:24:09 +02:00
}
public override void AfterRename(Series series)
{
}
}
}