mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 21:12:56 +01:00
48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using NzbDrone.Core.Tv;
|
|
|
|
namespace NzbDrone.Core.Notifications.Growl
|
|
{
|
|
public class Growl : NotificationBase<GrowlSettings>
|
|
{
|
|
private readonly IGrowlService _growlProvider;
|
|
|
|
public Growl(IGrowlService growlProvider)
|
|
{
|
|
_growlProvider = growlProvider;
|
|
}
|
|
|
|
public override string Name
|
|
{
|
|
get { return "Growl"; }
|
|
}
|
|
|
|
public override string ImplementationName
|
|
{
|
|
get { return "Growl"; }
|
|
}
|
|
|
|
public override string Link
|
|
{
|
|
get { return "http://growl.info/"; }
|
|
}
|
|
|
|
public override void OnGrab(string message)
|
|
{
|
|
const string title = "Episode Grabbed";
|
|
|
|
_growlProvider.SendNotification(title, message, "GRAB", Settings.Host, Settings.Port, Settings.Password);
|
|
}
|
|
|
|
public override void OnDownload(string message, Series series)
|
|
{
|
|
const string title = "Episode Downloaded";
|
|
|
|
_growlProvider.SendNotification(title, message, "DOWNLOAD", Settings.Host, Settings.Port, Settings.Password);
|
|
}
|
|
|
|
public override void AfterRename(Series series)
|
|
{
|
|
}
|
|
}
|
|
}
|