namespace Lab505.Shared;
/// Một thông báo ngắn được push từ server xuống client qua SignalR.
/// Nội dung thông báo gốc.
/// Mức độ: "info" | "success" | "error" | "warning".
/// Cho phép hiện snackbar/toast.
/// Nguồn phát sinh: IMR, AMR, WF, ASRS, OPC...
/// Sự kiện/chủ đề chính để render cột command.
/// Chi tiết bổ sung đi kèm command.
public record NotificationDto(
string Message,
string Level = "info",
bool Toast = false,
string? Source = null,
string? Command = null,
string? Detail = null);