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,57 @@
namespace Infrastructure.Verticals.Notifications.Notifiarr;
public class NotifiarrPayload
{
public NotifiarrNotification Notification { get; set; } = new NotifiarrNotification();
public Discord Discord { get; set; }
}
public class NotifiarrNotification
{
public bool Update { get; set; }
public string Name => "Cleanuperr";
public int? Event { get; set; }
}
public class Discord
{
public string Color { get; set; } = string.Empty;
public Ping Ping { get; set; }
public Images Images { get; set; }
public Text Text { get; set; }
public Ids Ids { get; set; }
}
public class Ping
{
public string PingUser { get; set; }
public string PingRole { get; set; }
}
public class Images
{
public Uri? Thumbnail { get; set; }
public Uri? Image { get; set; }
}
public class Text
{
public string Title { get; set; } = string.Empty;
public string Icon { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public List<Field> Fields { get; set; } = new List<Field>();
public string Footer { get; set; } = string.Empty;
}
public class Field
{
public string Title { get; set; } = string.Empty;
public string Text { get; set; } = string.Empty;
public bool Inline { get; set; }
}
public class Ids
{
public string Channel { get; set; }
}