using Fantasy.Entitas;

namespace NB.Chat;

/// <summary>
/// 邮件箱，系统群发用
/// </summary>
public class MailBox : Entity
{
    /// <summary>
    /// 邮件
    /// </summary>
    public Mail Mail;

    /// <summary>
    /// 创建时间
    /// </summary>
    public long CreateTime;

    /// <summary>
    /// 失效时间
    /// </summary>
    public long ExpireTime;

    /// <summary>
    /// 邮箱类型
    /// </summary>
    public MailBoxType BoxType;

    /// <summary>
    /// 发送人
    /// </summary>
    public long SendAccountId = 0;

    /// <summary>
    /// 收件人
    /// </summary>
    public HashSet<long> AccountId = new HashSet<long>();

    /// <summary>
    /// 领取过的人
    /// </summary>
    public HashSet<long> Received = new HashSet<long>();
}