Updated comments in Notification system

This commit is contained in:
2025-05-06 17:05:50 +03:00
parent 5061a92412
commit 3a714808e2
6 changed files with 30 additions and 13 deletions

View File

@@ -1,9 +1,25 @@
namespace WebUI.Models;
/// <summary>
/// Notification for the Notification System
/// </summary>
public class Notification
{
/// <summary>
/// The message of the notification.
/// </summary>
public string Message { get; set; }
/// <summary>
/// The type of the notification
/// </summary>
public NotificationType Type { get; set; }
/// <summary>
/// The time when the notification was being sent
/// </summary>
public DateTime Timestamp { get; set; } = DateTime.Now;
public int DelayMs { get; set; } = 5000;
/// <summary>
/// The time in milliseconds while the notification should be displayed.
/// The notification should disappear after this time
/// </summary>
public int DelayMs { get; set; } = 1500;
}

View File

@@ -1,5 +1,8 @@
namespace WebUI.Models;
/// <summary>
/// The notification type
/// </summary>
public enum NotificationType
{
Success,