#region ========================================================================= USING ===================================================================================== using Lumina.Presentation.Web.Common.Enums.Notifications; using Lumina.Presentation.Web.Common.Models.Common; using System; #endregion namespace Lumina.Presentation.Web.Common.Services; /// /// Service for showing notifications. /// public class NotificationService : INotificationService { public event Action? OnNotification; /// /// Shows a notification. /// /// The message of the notification. /// The type of the notification. public void Show(string message, NotificationType type) { OnNotification?.Invoke(new NotificationModel { Message = message, Type = type, Id = Guid.NewGuid() }); } }