Table of Contents

Class ToastInfo

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Immutable description of a single active toast.

public record ToastInfo : IEquatable<ToastInfo>
Inheritance
ToastInfo
Implements
Inherited Members
Extension Methods

Constructors

ToastInfo(string, string, NotificationSeverity, ToastPosition, bool)

Immutable description of a single active toast.

public ToastInfo(string Id, string Message, NotificationSeverity Severity, ToastPosition Position, bool Sticky)

Parameters

Id string

Unique identifier for the toast.

Message string

The message text to display.

Severity NotificationSeverity

The severity level determining the visual style.

Position ToastPosition

The screen position where the toast is anchored.

Sticky bool

Whether the toast is sticky (does not auto-dismiss).

Properties

Id

Unique identifier for the toast.

public string Id { get; init; }

Property Value

string

Message

The message text to display.

public string Message { get; init; }

Property Value

string

Position

The screen position where the toast is anchored.

public ToastPosition Position { get; init; }

Property Value

ToastPosition

Severity

The severity level determining the visual style.

public NotificationSeverity Severity { get; init; }

Property Value

NotificationSeverity

Sticky

Whether the toast is sticky (does not auto-dismiss).

public bool Sticky { get; init; }

Property Value

bool