feat(domain): add Folder property and change To/Cc to List<string> in ReceivedEmail

This commit is contained in:
2026-08-13 16:48:06 +02:00
parent 4964fa4344
commit c9b7d99ecc

View File

@@ -45,9 +45,9 @@ public sealed record ReceivedEmail
/// </summary>
[Column("TO", TypeName = "nvarchar(max)")]
#if NET
public IEnumerable<string> To { get; init; } = [];
public List<string> To { get; init; } = [];
#else
public IEnumerable<string> To { get; set; } = [];
public List<string> To { get; set; } = [];
#endif
/// <summary>
@@ -55,9 +55,9 @@ public sealed record ReceivedEmail
/// </summary>
[Column("CC", TypeName = "nvarchar(max)")]
#if NET
public IEnumerable<string> Cc { get; init; } = [];
public List<string> Cc { get; init; } = [];
#else
public IEnumerable<string> Cc { get; set; } = [];
public List<string> Cc { get; set; } = [];
#endif
/// <summary>
@@ -133,4 +133,10 @@ public sealed record ReceivedEmail
#else
public EmailAccount? Account { get; set; }
#endif
#if NET
public required string Folder { get; init; }
#else
public string Folder { get; set; } = null!;
#endif
}