Introduced a new namespace `DigitalData.MessagingService.Publisher.Abstraction` in `OutgoingEmailCreateDto.cs` and `OutgoingEmailEvent.cs`. Added a new record `OutgoingEmailCreateDto` with properties for recipient, subject, body, HTML flag, and queue timestamp. Converted `OutgoingEmailEvent` from a class to a record. Removed the unnecessary `using System;` directive from `OutgoingEmailEvent.cs`.
28 lines
654 B
C#
28 lines
654 B
C#
namespace DigitalData.MessagingService.Publisher.Abstraction;
|
|
|
|
public record OutgoingEmailEvent
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Recipient email address
|
|
/// </summary>
|
|
public string Recipient { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Email subject
|
|
/// </summary>
|
|
public string Subject { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Email body (HTML or plain text)
|
|
/// </summary>
|
|
public string Body { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Is HTML email (default: true)
|
|
/// </summary>
|
|
public bool IsHtml { get; set; } = true;
|
|
|
|
public DateTime QueuedAt { get; set; }
|
|
} |