using MediatR;
using FacebookService.Domain.AggregatesModel.ConversationAggregate;

namespace FacebookService.Domain.Events;

/// <summary>
/// EN: Domain event raised when a new Conversation is created.
/// VI: Domain event được phát ra khi một Conversation mới được tạo.
/// </summary>
public class ConversationCreatedDomainEvent : INotification
{
    /// <summary>
    /// EN: The newly created conversation.
    /// VI: Conversation mới được tạo.
    /// </summary>
    public Conversation Conversation { get; }

    public ConversationCreatedDomainEvent(Conversation conversation)
    {
        Conversation = conversation;
    }
}
