Table of Contents

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

Id string

The unique identifier for the notification.

Window Window

The window displaying the notification.

Title string

The notification title.

Message string

The notification message.

Severity NotificationSeverity

The severity level of the notification.

CreatedAt DateTime

The timestamp when the notification was created.

TimeoutMs int?

The auto-dismiss timeout in milliseconds, or null for no timeout.

IsModal bool

Whether the notification blocks UI interaction.

Properties

CreatedAt

The timestamp when the notification was created.

public DateTime CreatedAt { get; init; }

Property Value

DateTime

Id

The unique identifier for the notification.

public string Id { get; init; }

Property Value

string

IsModal

Whether the notification blocks UI interaction.

public bool IsModal { get; init; }

Property Value

bool

Message

The notification message.

public string Message { get; init; }

Property Value

string

Severity

The severity level of the notification.

public NotificationSeverity Severity { get; init; }

Property Value

NotificationSeverity

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

string

Window

The window displaying the notification.

public Window Window { get; init; }

Property Value

Window