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

namespace MktXService.Domain.Events;

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

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