Files
Cleanuparr/code/Infrastructure/Verticals/Notifications/Apprise/ApprisePayload.cs
2025-05-01 21:00:01 +03:00

31 lines
586 B
C#

using System.ComponentModel.DataAnnotations;
namespace Infrastructure.Verticals.Notifications.Apprise;
public sealed record ApprisePayload
{
[Required]
public string Title { get; init; }
[Required]
public string Body { get; init; }
public string Type { get; init; } = NotificationType.Info.ToString().ToLowerInvariant();
public string Format { get; init; } = FormatType.Text.ToString().ToLowerInvariant();
}
public enum NotificationType
{
Info,
Success,
Warning,
Failure
}
public enum FormatType
{
Text,
Markdown,
Html
}