using StorageService.Domain.SeedWork;
using MediatR;

namespace StorageService.Domain.Events;

/// <summary>
/// EN: Event raised when a file is successfully uploaded.
/// VI: Event được raise khi file upload thành công.
/// </summary>
public class FileUploadedDomainEvent : INotification
{
    public Guid FileId { get; }
    public string FileName { get; }
    public string UserId { get; }
    public long FileSizeBytes { get; }

    public FileUploadedDomainEvent(Guid fileId, string fileName, string userId, long fileSizeBytes)
    {
        FileId = fileId;
        FileName = fileName;
        UserId = userId;
        FileSizeBytes = fileSizeBytes;
    }
}
