New: Author Added notification

(cherry picked from commit https://github.com/Radarr/Radarr/commit/f890aadffa5ae579bcf65abdcf3e3948837084a9)
This commit is contained in:
MxMarx
2023-09-25 17:33:21 -07:00
committed by Bogdan
parent f9a6db40b8
commit 9918535509
37 changed files with 278 additions and 1 deletions
@@ -107,6 +107,16 @@ namespace NzbDrone.Core.Notifications.Webhook
};
}
public WebhookAuthorAddedPayload BuildOnAuthorAdded(Author author)
{
return new WebhookAuthorAddedPayload
{
EventType = WebhookEventType.AuthorAdded,
InstanceName = _configFileProvider.InstanceName,
Author = new WebhookAuthor(author)
};
}
public WebhookAuthorDeletePayload BuildOnAuthorDelete(AuthorDeleteMessage deleteMessage)
{
return new WebhookAuthorDeletePayload