Class NotificationInfo
- Namespace
- SharpConsoleUI.Core
- Assembly
- SharpConsoleUI.dll
Represents the state of a single notification.
public record NotificationInfo : IEquatable<NotificationInfo>
- Inheritance
-
NotificationInfo
- Implements
- Inherited Members
Constructors
NotificationInfo(string, Window, string, string, NotificationSeverity, DateTime, int?, bool)
Represents the state of a single notification.
public NotificationInfo(string Id, Window Window, string Title, string Message, NotificationSeverity Severity, DateTime CreatedAt, int? TimeoutMs, bool IsModal)
Parameters
IdstringThe unique identifier for the notification.
WindowWindowThe window displaying the notification.
TitlestringThe notification title.
MessagestringThe notification message.
SeverityNotificationSeverityThe severity level of the notification.
CreatedAtDateTimeThe timestamp when the notification was created.
TimeoutMsint?The auto-dismiss timeout in milliseconds, or null for no timeout.
IsModalboolWhether the notification blocks UI interaction.
Properties
CreatedAt
The timestamp when the notification was created.
public DateTime CreatedAt { get; init; }
Property Value
Id
The unique identifier for the notification.
public string Id { get; init; }
Property Value
IsModal
Whether the notification blocks UI interaction.
public bool IsModal { get; init; }
Property Value
Message
The notification message.
public string Message { get; init; }
Property Value
Severity
The severity level of the notification.
public NotificationSeverity Severity { get; init; }
Property Value
TimeoutMs
The auto-dismiss timeout in milliseconds, or null for no timeout.
public int? TimeoutMs { get; init; }
Property Value
- int?
Title
The notification title.
public string Title { get; init; }
Property Value
Window
The window displaying the notification.
public Window Window { get; init; }