feat(domain): add Folder property and change To/Cc to List<string> in ReceivedEmail
This commit is contained in:
@@ -45,9 +45,9 @@ public sealed record ReceivedEmail
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("TO", TypeName = "nvarchar(max)")]
|
[Column("TO", TypeName = "nvarchar(max)")]
|
||||||
#if NET
|
#if NET
|
||||||
public IEnumerable<string> To { get; init; } = [];
|
public List<string> To { get; init; } = [];
|
||||||
#else
|
#else
|
||||||
public IEnumerable<string> To { get; set; } = [];
|
public List<string> To { get; set; } = [];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -55,9 +55,9 @@ public sealed record ReceivedEmail
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("CC", TypeName = "nvarchar(max)")]
|
[Column("CC", TypeName = "nvarchar(max)")]
|
||||||
#if NET
|
#if NET
|
||||||
public IEnumerable<string> Cc { get; init; } = [];
|
public List<string> Cc { get; init; } = [];
|
||||||
#else
|
#else
|
||||||
public IEnumerable<string> Cc { get; set; } = [];
|
public List<string> Cc { get; set; } = [];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -133,4 +133,10 @@ public sealed record ReceivedEmail
|
|||||||
#else
|
#else
|
||||||
public EmailAccount? Account { get; set; }
|
public EmailAccount? Account { get; set; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if NET
|
||||||
|
public required string Folder { get; init; }
|
||||||
|
#else
|
||||||
|
public string Folder { get; set; } = null!;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user