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
IdstringUnique identifier for the toast.
MessagestringThe message text to display.
SeverityNotificationSeverityThe severity level determining the visual style.
PositionToastPositionThe screen position where the toast is anchored.
StickyboolWhether the toast is sticky (does not auto-dismiss).
Properties
Id
Unique identifier for the toast.
public string Id { get; init; }
Property Value
Message
The message text to display.
public string Message { get; init; }
Property Value
Position
The screen position where the toast is anchored.
public ToastPosition Position { get; init; }
Property Value
Severity
The severity level determining the visual style.
public NotificationSeverity Severity { get; init; }
Property Value
Sticky
Whether the toast is sticky (does not auto-dismiss).
public bool Sticky { get; init; }