mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 08:16:05 -07:00
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:
parent
5b90fa9089
commit
0585ff73ec
11 changed files with 245 additions and 66 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue