Updated comments in Notification system
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
namespace WebUI.Models;
|
||||
|
||||
/// <summary>
|
||||
/// The notification type
|
||||
/// </summary>
|
||||
public enum NotificationType
|
||||
{
|
||||
Success,
|
||||
|
||||
Reference in New Issue
Block a user