#1914 for the issue resolved notification

This commit is contained in:
Jamie 2018-01-22 08:31:50 +00:00
parent 2551175867
commit 48ec5d700c
12 changed files with 149 additions and 20 deletions

View file

@ -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);