Updated plugin version control. Added notification system to web ui
This commit is contained in:
9
WebUI/Models/Notification.cs
Normal file
9
WebUI/Models/Notification.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace WebUI.Models;
|
||||
|
||||
public class Notification
|
||||
{
|
||||
public string Message { get; set; }
|
||||
public NotificationType Type { get; set; }
|
||||
public DateTime Timestamp { get; set; } = DateTime.Now;
|
||||
public int DelayMs { get; set; } = 5000;
|
||||
}
|
||||
9
WebUI/Models/NotificationType.cs
Normal file
9
WebUI/Models/NotificationType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace WebUI.Models;
|
||||
|
||||
public enum NotificationType
|
||||
{
|
||||
Success,
|
||||
Error,
|
||||
Warning,
|
||||
Info
|
||||
}
|
||||
Reference in New Issue
Block a user