Class PromptResult<T>
- Namespace
- Signal.Application.Background
- Assembly
- Signal.Application.dll
The outcome of PromptAsync<T>(string, TimeSpan?, int).
public sealed record PromptResult<T> : IEquatable<PromptResult<T>>
Type Parameters
TThe requested type.
- Inheritance
-
PromptResult<T>
- Implements
- Inherited Members
Constructors
PromptResult(PromptStatus, T?, string?)
The outcome of PromptAsync<T>(string, TimeSpan?, int).
public PromptResult(PromptStatus Status, T? Value, string? Text)
Parameters
StatusPromptStatusHow the prompt ended.
ValueTTextstringThe last answer text, if any.
Properties
IsAnswered
Whether the sender answered with a valid value.
public bool IsAnswered { get; }
Property Value
Status
How the prompt ended.
public PromptStatus Status { get; init; }
Property Value
Text
The last answer text, if any.
public string? Text { get; init; }
Property Value
Value
public T? Value { get; init; }
Property Value
- T