From 63a673f8f24c7f9942018da0f461a07ee2f9bc5d Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 24 Feb 2013 15:51:42 -0800 Subject: [PATCH] removed notification toggle settings from configservice. --- NzbDrone.Core/Configuration/ConfigService.cs | 83 +------------------ NzbDrone.Core/Configuration/IConfigService.cs | 12 --- .../ExternalNotificationBase.cs | 2 - 3 files changed, 2 insertions(+), 95 deletions(-) diff --git a/NzbDrone.Core/Configuration/ConfigService.cs b/NzbDrone.Core/Configuration/ConfigService.cs index c92ac563b..45210832c 100644 --- a/NzbDrone.Core/Configuration/ConfigService.cs +++ b/NzbDrone.Core/Configuration/ConfigService.cs @@ -202,19 +202,6 @@ namespace NzbDrone.Core.Configuration set { SetValue("DefaultQualityProfile", value); } } - public virtual Boolean XbmcNotifyOnGrab - { - get { return GetValueBoolean("XbmcNotifyOnGrab"); } - - set { SetValue("XbmcNotifyOnGrab", value); } - } - - public virtual Boolean XbmcNotifyOnDownload - { - get { return GetValueBoolean("XbmcNotifyOnDownload"); } - - set { SetValue("XbmcNotifyOnDownload", value); } - } public virtual Boolean XbmcUpdateLibrary { @@ -261,19 +248,6 @@ namespace NzbDrone.Core.Configuration set { SetValue("UpdateUrl", value); } } - public virtual Boolean SmtpNotifyOnGrab - { - get { return GetValueBoolean("SmtpNotifyOnGrab"); } - - set { SetValue("SmtpNotifyOnGrab", value); } - } - - public virtual Boolean SmtpNotifyOnDownload - { - get { return GetValueBoolean("SmtpNotifyOnDownload"); } - - set { SetValue("SmtpNotifyOnDownload", value); } - } public virtual string SmtpServer { @@ -318,19 +292,6 @@ namespace NzbDrone.Core.Configuration set { SetValue("SmtpToAddresses", value); } } - public virtual Boolean TwitterNotifyOnGrab - { - get { return GetValueBoolean("TwitterNotifyOnGrab"); } - - set { SetValue("TwitterNotifyOnGrab", value); } - } - - public virtual Boolean TwitterNotifyOnDownload - { - get { return GetValueBoolean("TwitterNotifyOnDownload"); } - - set { SetValue("TwitterNotifyOnDownload", value); } - } public virtual string TwitterAccessToken { @@ -344,20 +305,7 @@ namespace NzbDrone.Core.Configuration set { SetValue("TwitterAccessTokenSecret", value); } } - public virtual Boolean GrowlNotifyOnGrab - { - get { return GetValueBoolean("GrowlNotifyOnGrab"); } - - set { SetValue("GrowlNotifyOnGrab", value); } - } - - public virtual Boolean GrowlNotifyOnDownload - { - get { return GetValueBoolean("GrowlNotifyOnDownload"); } - - set { SetValue("GrowlNotifyOnDownload", value); } - } - + public virtual string GrowlHost { get { return GetValue("GrowlHost", "localhost:23053"); } @@ -370,20 +318,7 @@ namespace NzbDrone.Core.Configuration 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); } @@ -437,20 +372,6 @@ namespace NzbDrone.Core.Configuration get { return "http://services.nzbdrone.com"; } } - public virtual Boolean PlexNotifyOnGrab - { - get { return GetValueBoolean("PlexNotifyOnGrab"); } - - set { SetValue("PlexNotifyOnGrab", value); } - } - - public virtual Boolean PlexNotifyOnDownload - { - get { return GetValueBoolean("PlexNotifyOnDownload"); } - - set { SetValue("PlexNotifyOnDownload", value); } - } - public virtual Boolean PlexUpdateLibrary { get { return GetValueBoolean("PlexUpdateLibrary"); } diff --git a/NzbDrone.Core/Configuration/IConfigService.cs b/NzbDrone.Core/Configuration/IConfigService.cs index 7e30cbc29..98da64eed 100644 --- a/NzbDrone.Core/Configuration/IConfigService.cs +++ b/NzbDrone.Core/Configuration/IConfigService.cs @@ -35,8 +35,6 @@ namespace NzbDrone.Core.Configuration int SortingMultiEpisodeStyle { get; set; } bool SortingUseSceneName { get; set; } int DefaultQualityProfile { get; set; } - Boolean XbmcNotifyOnGrab { get; set; } - Boolean XbmcNotifyOnDownload { get; set; } Boolean XbmcUpdateLibrary { get; set; } Boolean XbmcCleanLibrary { get; set; } Boolean XbmcUpdateWhenPlaying { get; set; } @@ -44,8 +42,6 @@ namespace NzbDrone.Core.Configuration string XbmcUsername { get; set; } string XbmcPassword { get; set; } string UpdateUrl { get; set; } - Boolean SmtpNotifyOnGrab { get; set; } - Boolean SmtpNotifyOnDownload { get; set; } string SmtpServer { get; set; } int SmtpPort { get; set; } Boolean SmtpUseSsl { get; set; } @@ -53,16 +49,10 @@ namespace NzbDrone.Core.Configuration string SmtpPassword { get; set; } string SmtpFromAddress { get; set; } string SmtpToAddresses { get; set; } - Boolean TwitterNotifyOnGrab { get; set; } - Boolean TwitterNotifyOnDownload { get; set; } string TwitterAccessToken { get; set; } string TwitterAccessTokenSecret { get; set; } - Boolean GrowlNotifyOnGrab { get; set; } - Boolean GrowlNotifyOnDownload { get; set; } string GrowlHost { get; set; } string GrowlPassword { get; set; } - Boolean ProwlNotifyOnGrab { get; set; } - Boolean ProwlNotifyOnDownload { get; set; } string ProwlApiKeys { get; set; } int ProwlPriority { get; set; } bool EnableBacklogSearching { get; set; } @@ -72,8 +62,6 @@ namespace NzbDrone.Core.Configuration DownloadClientType DownloadClient { get; set; } string BlackholeDirectory { get; set; } string ServiceRootUrl { get; } - Boolean PlexNotifyOnGrab { get; set; } - Boolean PlexNotifyOnDownload { get; set; } Boolean PlexUpdateLibrary { get; set; } string PlexServerHost { get; set; } string PlexClientHosts { get; set; } diff --git a/NzbDrone.Core/ExternalNotification/ExternalNotificationBase.cs b/NzbDrone.Core/ExternalNotification/ExternalNotificationBase.cs index 784bd137f..7b2f852dd 100644 --- a/NzbDrone.Core/ExternalNotification/ExternalNotificationBase.cs +++ b/NzbDrone.Core/ExternalNotification/ExternalNotificationBase.cs @@ -76,8 +76,6 @@ namespace NzbDrone.Core.ExternalNotification return readFunction(def); } - - public void Handle(EpisodeGrabbedEvent message) { if (NotifyOnGrab)