Display names for Notifications

This commit is contained in:
Mark McDowall
2015-04-25 09:02:17 -07:00
parent ecd941a6e5
commit 9a629c2fc6
29 changed files with 258 additions and 36 deletions

View File

@@ -16,7 +16,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
void Notify(XbmcSettings settings, string title, string message);
void Update(XbmcSettings settings, Series series);
void Clean(XbmcSettings settings);
ValidationFailure Test(XbmcSettings settings);
ValidationFailure Test(XbmcSettings settings, string message);
}
public class XbmcService : IXbmcService
@@ -101,13 +101,13 @@ namespace NzbDrone.Core.Notifications.Xbmc
return apiProvider;
}
public ValidationFailure Test(XbmcSettings settings)
public ValidationFailure Test(XbmcSettings settings, string message)
{
_xbmcVersionCache.Clear();
try
{
_logger.Debug("Determining version of XBMC Host: {0}", settings.Address);
_logger.Debug("Determining version of Host: {0}", settings.Address);
var version = GetJsonVersion(settings);
_logger.Debug("Version is: {0}", version);
@@ -116,7 +116,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
throw new InvalidXbmcVersionException("Version received from XBMC is invalid, please correct your settings.");
}
Notify(settings, "Test Notification", "Success! XBMC has been successfully configured!");
Notify(settings, "Test Notification", message);
}
catch (Exception ex)
{