1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-19 10:54:05 +02:00

48 lines
1.2 KiB
C#
Raw Normal View History

2013-07-18 20:47:55 -07:00
using NzbDrone.Core.Tv;
2013-05-19 16:17:32 -07:00
namespace NzbDrone.Core.Notifications.Growl
{
2013-05-19 19:43:22 -07:00
public class Growl : NotificationBase<GrowlSettings>
2013-05-19 16:17:32 -07:00
{
private readonly IGrowlService _growlProvider;
2013-05-19 16:17:32 -07:00
public Growl(IGrowlService growlProvider)
2013-05-19 16:17:32 -07:00
{
_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/"; }
}
2013-05-19 16:17:32 -07:00
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)
{
}
}
}