mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-04-22 07:00:20 -04:00
31 lines
586 B
C#
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
|
|
} |