Added Prowl notifications.

This commit is contained in:
Mark McDowall 2011-11-02 19:44:22 -07:00
commit 277b873b39
18 changed files with 452 additions and 9 deletions

View file

@ -13,7 +13,6 @@ namespace NzbDrone.Core.Providers.Core
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
private readonly IDatabase _database;
[Inject]
public ConfigProvider(IDatabase database)
{
@ -364,6 +363,32 @@ namespace NzbDrone.Core.Providers.Core
set { SetValue("GrowlPassword", value); }
}
public virtual Boolean ProwlNotifyOnGrab
{
get { return GetValueBoolean("ProwlNotifyOnGrab"); }
set { SetValue("ProwlNotifyOnGrab", value); }
}
public virtual Boolean ProwlNotifyOnDownload
{
get { return GetValueBoolean("ProwlNotifyOnDownload"); }
set { SetValue("ProwlNotifyOnDownload", value); }
}
public virtual string ProwlApiKeys
{
get { return GetValue("ProwlApiKeys", String.Empty); }
set { SetValue("ProwlApiKeys", value); }
}
public virtual int ProwlPriority
{
get { return GetValueInt("ProwlPriority", 0); }
set { SetValue("ProwlPriority", value); }
}
private string GetValue(string key)
{
return GetValue(key, String.Empty);