mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
eliminates region sections
This commit is contained in:
1 parent
705c02b90d
commit
405fc1ff9a
370 files changed
+47
-1618
No files matched your search
@@ -11,16 +11,12 @@ namespace Lumina.Presentation.Web.Common.Services;
|
||||
/// </summary>
|
||||
public interface INotificationService
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
event Action<NotificationModel>? OnNotification;
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <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);
|
||||
#endregion
|
||||
}
|
||||
@@ -11,11 +11,8 @@ namespace Lumina.Presentation.Web.Common.Services;
|
||||
/// </summary>
|
||||
public class NotificationService : INotificationService
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
public event Action<NotificationModel>? OnNotification;
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Shows a notification.
|
||||
/// </summary>
|
||||
@@ -25,5 +22,4 @@ public class NotificationService : INotificationService
|
||||
{
|
||||
OnNotification?.Invoke(new NotificationModel { Message = message, Type = type, Id = Guid.NewGuid() });
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user