42 lines
1012 B
C#
42 lines
1012 B
C#
namespace LiteCharms.Features.TechShop.Notifications.Models;
|
|
|
|
public record CreateNotification
|
|
{
|
|
public required NotificationDirection Direction { get; set; }
|
|
|
|
public required string Sender { get; set; }
|
|
|
|
public required string SenderAddress { get; set; }
|
|
|
|
public required string Subject { get; set; }
|
|
|
|
public string? Message { get; set; }
|
|
|
|
public required NotificationPlatforms Platform { get; set; }
|
|
|
|
public required Priorities Priority { get; set; }
|
|
|
|
public required string Recipient { get; set; }
|
|
|
|
public required string RecipientAddress { get; set; }
|
|
|
|
public string? CorrelationId { get; set; }
|
|
|
|
public CorrelationIdTypes CorrelationIdType { get; set; }
|
|
|
|
public bool IsInternal { get; set; }
|
|
|
|
public bool IsHtml { get; set; }
|
|
}
|
|
|
|
public class UpdateNotification
|
|
{
|
|
public required Guid NotificationId { get; set; }
|
|
|
|
public required bool Processed { get; set; }
|
|
|
|
public bool HasError { get; set; }
|
|
|
|
public string[]? Errors { get; set; }
|
|
}
|