Convert onGrab from passing a string to passing an object with series and episode information

Use object initalizer instead of creation of OnGrab/grabmessage
This commit is contained in:
Gavin Mogan
2015-08-23 22:21:14 -07:00
committed by Keivan Beigi
parent d41dd05d00
commit d3b9ebf86c
21 changed files with 61 additions and 33 deletions

View File

@@ -20,11 +20,11 @@ namespace NzbDrone.Core.Notifications.NotifyMyAndroid
get { return "http://www.notifymyandroid.com/"; }
}
public override void OnGrab(string message)
public override void OnGrab(GrabMessage grabMessage)
{
const string title = "Episode Grabbed";
_proxy.SendNotification(title, message, Settings.ApiKey, (NotifyMyAndroidPriority)Settings.Priority);
_proxy.SendNotification(title, grabMessage.Message, Settings.ApiKey, (NotifyMyAndroidPriority)Settings.Priority);
}
public override void OnDownload(DownloadMessage message)