mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
#1914 for the issue resolved notification
This commit is contained in:
parent
2551175867
commit
48ec5d700c
12 changed files with 149 additions and 20 deletions
|
@ -76,7 +76,7 @@ namespace Ombi.Notifications.Interfaces
|
|||
await NewRequest(model, notificationSettings);
|
||||
break;
|
||||
case NotificationType.Issue:
|
||||
await Issue(model, notificationSettings);
|
||||
await NewIssue(model, notificationSettings);
|
||||
break;
|
||||
case NotificationType.RequestAvailable:
|
||||
await AvailableRequest(model, notificationSettings);
|
||||
|
@ -84,9 +84,6 @@ namespace Ombi.Notifications.Interfaces
|
|||
case NotificationType.RequestApproved:
|
||||
await RequestApproved(model, notificationSettings);
|
||||
break;
|
||||
case NotificationType.AdminNote:
|
||||
throw new NotImplementedException();
|
||||
|
||||
case NotificationType.Test:
|
||||
await Test(model, notificationSettings);
|
||||
break;
|
||||
|
@ -96,6 +93,9 @@ namespace Ombi.Notifications.Interfaces
|
|||
case NotificationType.ItemAddedToFaultQueue:
|
||||
await AddedToRequestQueue(model, notificationSettings);
|
||||
break;
|
||||
case NotificationType.IssueResolved:
|
||||
await IssueResolved(model, notificationSettings);
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
@ -173,7 +173,8 @@ namespace Ombi.Notifications.Interfaces
|
|||
|
||||
protected abstract bool ValidateConfiguration(T settings);
|
||||
protected abstract Task NewRequest(NotificationOptions model, T settings);
|
||||
protected abstract Task Issue(NotificationOptions model, T settings);
|
||||
protected abstract Task NewIssue(NotificationOptions model, T settings);
|
||||
protected abstract Task IssueResolved(NotificationOptions model, T settings);
|
||||
protected abstract Task AddedToRequestQueue(NotificationOptions model, T settings);
|
||||
protected abstract Task RequestDeclined(NotificationOptions model, T settings);
|
||||
protected abstract Task RequestApproved(NotificationOptions model, T settings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue