You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
48 lines
1.2 KiB
using NzbDrone.Core.Tv;
|
|
|
|
namespace NzbDrone.Core.Notifications.Pushover
|
|
{
|
|
public class Pushover : NotificationBase<PushoverSettings>
|
|
{
|
|
private readonly IPushoverProxy _pushoverProxy;
|
|
|
|
public Pushover(IPushoverProxy pushoverProxy)
|
|
{
|
|
_pushoverProxy = pushoverProxy;
|
|
}
|
|
|
|
public override string Name
|
|
{
|
|
get { return "Pushover"; }
|
|
}
|
|
|
|
public override string ImplementationName
|
|
{
|
|
get { return "Pushover"; }
|
|
}
|
|
|
|
public override string Link
|
|
{
|
|
get { return "https://pushover.net/"; }
|
|
}
|
|
|
|
public override void OnGrab(string message)
|
|
{
|
|
const string title = "Episode Grabbed";
|
|
|
|
_pushoverProxy.SendNotification(title, message, Settings.UserKey, (PushoverPriority)Settings.Priority);
|
|
}
|
|
|
|
public override void OnDownload(string message, Series series)
|
|
{
|
|
const string title = "Episode Downloaded";
|
|
|
|
_pushoverProxy.SendNotification(title, message, Settings.UserKey, (PushoverPriority)Settings.Priority);
|
|
}
|
|
|
|
public override void AfterRename(Series series)
|
|
{
|
|
}
|
|
}
|
|
}
|