mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-03-28 11:01:28 -04:00
35 lines
680 B
C#
35 lines
680 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.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 string? Tags { get; init; }
|
|
|
|
public string? ImageUrl { get; init; }
|
|
}
|
|
|
|
public enum NotificationType
|
|
{
|
|
Info,
|
|
Success,
|
|
Warning,
|
|
Failure
|
|
}
|
|
|
|
public enum FormatType
|
|
{
|
|
Text,
|
|
Markdown,
|
|
Html
|
|
} |