The `DigitalData.MessagingService.Publisher.Abstraction` project has been removed, and its functionality has been merged into a new project named `DigitalData.MessagingService.Abstraction`. - Updated namespaces from `Publisher.Abstraction` to `Abstraction` across all relevant files, including DTOs, interfaces, and classes. - Modified the solution file to remove `Publisher.Abstraction` and add `Abstraction`, updating solution configurations and nested project mappings. - Replaced project references to `Publisher.Abstraction` with `Abstraction` in all affected project files. - Updated tests and integration tests to reflect the namespace and project changes. - Refactored application-level files such as `EmailMappingProfile` and `DependencyInjection.cs` to use the new namespace. This refactor simplifies the project structure and ensures consistency across the solution.
38 lines
858 B
C#
38 lines
858 B
C#
namespace DigitalData.MessagingService.Abstraction;
|
|
|
|
/// <summary>
|
|
/// DTO for a single email account configuration.
|
|
/// </summary>
|
|
public class EmailAccountDto
|
|
{
|
|
/// <summary>
|
|
/// Logical name to identify this account (e.g. "default", "support").
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
#if NET
|
|
public required string Username { get; set; }
|
|
#else
|
|
public string Username { get; set; } = null!;
|
|
#endif
|
|
|
|
#if NET
|
|
public required string Password { get; set; }
|
|
#else
|
|
public string Password { get; set; } = null!;
|
|
#endif
|
|
|
|
public bool PasswordEncrypted { get; set; } = false;
|
|
|
|
#if NET
|
|
public required string SmtpServer { get; set; }
|
|
#else
|
|
public string SmtpServer { get; set; } = null!;
|
|
#endif
|
|
|
|
public int SmtpPort { get; set; }
|
|
|
|
public bool SmtpUseSsl { get; set; }
|
|
|
|
public bool UseOAuth2 { get; set; }
|
|
} |