mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Added more context in the mobile notifications
This commit is contained in:
parent
9c0d8f91e9
commit
61313ba861
1 changed files with 8 additions and 0 deletions
|
@ -57,6 +57,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = parsed.Message,
|
Message = parsed.Message,
|
||||||
|
Subject = "New Request",
|
||||||
Data = GetNotificationData(parsed, NotificationType.NewRequest)
|
Data = GetNotificationData(parsed, NotificationType.NewRequest)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -76,6 +77,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = parsed.Message,
|
Message = parsed.Message,
|
||||||
|
Subject = "New Issue",
|
||||||
Data = GetNotificationData(parsed, NotificationType.Issue)
|
Data = GetNotificationData(parsed, NotificationType.Issue)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -127,6 +129,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = parsed.Message,
|
Message = parsed.Message,
|
||||||
|
Subject = "Issue Resolved",
|
||||||
Data = GetNotificationData(parsed, NotificationType.IssueResolved)
|
Data = GetNotificationData(parsed, NotificationType.IssueResolved)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -149,6 +152,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = parsed.Message,
|
Message = parsed.Message,
|
||||||
|
Subject = "Request Error",
|
||||||
Data = GetNotificationData(parsed, NotificationType.ItemAddedToFaultQueue)
|
Data = GetNotificationData(parsed, NotificationType.ItemAddedToFaultQueue)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -168,6 +172,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = parsed.Message,
|
Message = parsed.Message,
|
||||||
|
Subject = "Request Declined",
|
||||||
Data = GetNotificationData(parsed, NotificationType.RequestDeclined)
|
Data = GetNotificationData(parsed, NotificationType.RequestDeclined)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -188,6 +193,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = parsed.Message,
|
Message = parsed.Message,
|
||||||
|
Subject = "Request Approved",
|
||||||
Data = GetNotificationData(parsed, NotificationType.RequestApproved)
|
Data = GetNotificationData(parsed, NotificationType.RequestApproved)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -212,6 +218,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = parsed.Message,
|
Message = parsed.Message,
|
||||||
|
Subject = "Request Available",
|
||||||
Data = data
|
Data = data
|
||||||
};
|
};
|
||||||
// Send to user
|
// Send to user
|
||||||
|
@ -259,6 +266,7 @@ namespace Ombi.Notifications.Agents
|
||||||
var notification = new NotificationMessage
|
var notification = new NotificationMessage
|
||||||
{
|
{
|
||||||
Message = message,
|
Message = message,
|
||||||
|
Subject = "Test Notification"
|
||||||
};
|
};
|
||||||
// Send to user
|
// Send to user
|
||||||
var user = await _userManager.Users.Include(x => x.NotificationUserIds).FirstOrDefaultAsync(x => x.Id.Equals(model.UserId));
|
var user = await _userManager.Users.Include(x => x.NotificationUserIds).FirstOrDefaultAsync(x => x.Id.Equals(model.UserId));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue