namespace OmsorgCore.Engine.Events;

public class UserInvitedEvent : IDomainEvent
{
    public string ToEmail { get; }
    public string RawPin { get; }
    public int ValidityDays { get; }
    public DateTime OccurredAt { get; }

    public UserInvitedEvent(string toEmail, string rawPin, int validityDays)
    {
        ToEmail = toEmail;
        RawPin = rawPin;
        ValidityDays = validityDays;
        OccurredAt = DateTime.UtcNow;
    }
}
