1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

New: On Add Series connection event

Closes #3637
This commit is contained in:
Mark McDowall
2023-04-14 16:44:49 -07:00
parent 619ac557f9
commit dec6e14036
40 changed files with 354 additions and 14 deletions
@@ -85,6 +85,17 @@ namespace NzbDrone.Core.Notifications.Webhook
};
}
protected WebhookSeriesAddPayload BuildOnSeriesAdd(SeriesAddMessage addMessage)
{
return new WebhookSeriesAddPayload
{
EventType = WebhookEventType.SeriesAdd,
InstanceName = _configFileProvider.InstanceName,
ApplicationUrl = _configService.ApplicationUrl,
Series = new WebhookSeries(addMessage.Series),
};
}
protected WebhookSeriesDeletePayload BuildOnSeriesDelete(SeriesDeleteMessage deleteMessage)
{
return new WebhookSeriesDeletePayload