using MediatR;
using MktXService.Domain.AggregatesModel.ConversationAggregate;

namespace MktXService.Domain.Events;

/// <summary>
/// EN: Domain event raised when a message is sent.
/// VI: Domain event được phát ra khi tin nhắn được gửi.
/// </summary>
public class MessageSentDomainEvent : INotification
{
    /// <summary>
    /// EN: The sent message.
    /// VI: Tin nhắn đã gửi.
    /// </summary>
    public Message Message { get; }

    public MessageSentDomainEvent(Message message)
    {
        Message = message;
    }
}
