using Microsoft.AspNetCore.SignalR;

namespace ColaFlow.API.Hubs;

/// <summary>
/// Notification Hub (user-level notifications)
/// </summary>
public class NotificationHub : BaseHub
{
    /// <summary>
    /// Mark notification as read
    /// </summary>
    public async Task MarkAsRead(Guid notificationId)
    {
        var userId = GetCurrentUserId();

        // TODO: Call Application layer to mark notification as read

        await Clients.Caller.SendAsync("NotificationRead", new
        {
            NotificationId = notificationId,
            ReadAt = DateTime.UtcNow
        });
    }
}
