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.
44 lines
1.1 KiB
44 lines
1.1 KiB
using NzbDrone.Core.Tv;
|
|
using Prowlin;
|
|
|
|
namespace NzbDrone.Core.Notifications.Prowl
|
|
{
|
|
public class Prowl : NotificationBase<ProwlSettings>
|
|
{
|
|
private readonly IProwlService _prowlProvider;
|
|
|
|
public Prowl(IProwlService prowlProvider)
|
|
{
|
|
_prowlProvider = prowlProvider;
|
|
}
|
|
|
|
public override string Name
|
|
{
|
|
get { return "Prowl"; }
|
|
}
|
|
|
|
public override string ImplementationName
|
|
{
|
|
get { return "Prowl"; }
|
|
}
|
|
|
|
public override void OnGrab(string message)
|
|
{
|
|
const string title = "Episode Grabbed";
|
|
|
|
_prowlProvider.SendNotification(title, message, Settings.ApiKey, (NotificationPriority)Settings.Priority);
|
|
}
|
|
|
|
public override void OnDownload(string message, Series series)
|
|
{
|
|
const string title = "Episode Downloaded";
|
|
|
|
_prowlProvider.SendNotification(title, message, Settings.ApiKey, (NotificationPriority)Settings.Priority);
|
|
}
|
|
|
|
public override void AfterRename(Series series)
|
|
{
|
|
}
|
|
}
|
|
}
|