Add Notifiarr support (#52)

This commit is contained in:
Marius Nechifor
2025-02-02 20:45:50 +02:00
parent 1713d0fd1e
commit 19b3675701
46 changed files with 834 additions and 25 deletions
@@ -0,0 +1,30 @@
using Common.Configuration.Notification;
using Microsoft.Extensions.Configuration;
namespace Infrastructure.Verticals.Notifications.Notifiarr;
public sealed record NotifiarrConfig : NotificationConfig
{
public const string SectionName = "Notifiarr";
[ConfigurationKeyName("API_KEY")]
public string? ApiKey { get; init; }
[ConfigurationKeyName("CHANNEL_ID")]
public string? ChannelId { get; init; }
public override bool IsValid()
{
if (string.IsNullOrEmpty(ApiKey?.Trim()))
{
return false;
}
if (string.IsNullOrEmpty(ChannelId?.Trim()))
{
return false;
}
return true;
}
}