2025-06-23 13:42:02 +08:00
|
|
|
using CommunityToolkit.Mvvm.Messaging.Messages;
|
|
|
|
|
using PMSWPF.Enums;
|
|
|
|
|
|
|
|
|
|
namespace PMSWPF.Message;
|
|
|
|
|
|
2025-06-23 17:01:06 +08:00
|
|
|
public class NotificationMessage : ValueChangedMessage<string>
|
2025-06-23 13:42:02 +08:00
|
|
|
{
|
2025-06-23 17:01:06 +08:00
|
|
|
public NotificationMessage(string msg, NotificationType type = NotificationType.Info, bool isGlobal = false) :
|
|
|
|
|
base(msg)
|
2025-06-23 13:42:02 +08:00
|
|
|
{
|
2025-06-23 17:01:06 +08:00
|
|
|
Type = type;
|
|
|
|
|
IsGlobal = isGlobal;
|
2025-06-23 13:42:02 +08:00
|
|
|
}
|
2025-06-23 17:01:06 +08:00
|
|
|
|
|
|
|
|
public NotificationType Type { get; set; }
|
|
|
|
|
public bool IsGlobal { get; set; }
|
2025-06-23 13:42:02 +08:00
|
|
|
}
|