Implements first stage library management system

This commit is contained in:
BinaryAlley committed 2024-11-03 19:43:46 +02:00
1 parent 5e0f94cd82
commit 36352ea9e8
291 files changed
+3733 -1384

No files matched your search

@@ -1,22 +0,0 @@
#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;
/// <summary>
/// Interface for the service for showing notifications.
/// </summary>
public interface INotificationService
{
event Action<NotificationModel>? OnNotification;
/// <summary>
/// Shows a notification.
/// </summary>
/// <param name="message">The message of the notification.</param>
/// <param name="type">The type of the notification.</param>
void Show(string message, NotificationType type);
}
@@ -1,25 +0,0 @@
#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;
/// <summary>
/// Service for showing notifications.
/// </summary>
public class NotificationService : INotificationService
{
public event Action<NotificationModel>? OnNotification;
/// <summary>
/// Shows a notification.
/// </summary>
/// <param name="message">The message of the notification.</param>
/// <param name="type">The type of the notification.</param>
public void Show(string message, NotificationType type)
{
OnNotification?.Invoke(new NotificationModel { Message = message, Type = type, Id = Guid.NewGuid() });
}
}