Added a notification model to the notifiers.

Added the backend work for sending a notification for an issue report #75
This commit is contained in:
tidusjar 2016-03-22 17:13:14 +00:00
parent 5b90fa9089
commit 0585ff73ec
11 changed files with 245 additions and 66 deletions

View file

@ -44,7 +44,7 @@ namespace PlexRequests.Services.Notification
Observers = new Dictionary<string, INotification>();
}
public static void Publish(string title, string requester)
public static void Publish(NotificationModel model)
{
Log.Trace("Notifying all observers: ");
Log.Trace(Observers.DumpJson());
@ -55,7 +55,7 @@ namespace PlexRequests.Services.Notification
new Thread(() =>
{
Thread.CurrentThread.IsBackground = true;
notification.Notify(title, requester);
notification.Notify(model);
}).Start();
}
}