Files
Inboxintel/src/InboxIntel.Domain/Entities/MailThread.cs
T
2026-06-30 15:53:32 +02:00

24 lines
734 B
C#

using InboxIntel.Domain.Common;
namespace InboxIntel.Domain.Entities;
/// <summary>
/// A Gmail conversation thread, reconstructed from the Gmail threadId.
/// </summary>
public class MailThread : AuditableEntity
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid UserId { get; set; }
/// <summary>Gmail-assigned thread id.</summary>
public string GmailThreadId { get; set; } = string.Empty;
public string? Subject { get; set; }
public string? Snippet { get; set; }
public int MessageCount { get; set; }
public DateTimeOffset? FirstMessageUtc { get; set; }
public DateTimeOffset? LastMessageUtc { get; set; }
public ICollection<Email> Emails { get; set; } = new List<Email>();
}