Table of Contents

Class PromptResult<T>

Namespace
Signal.Application.Background
Assembly
Signal.Application.dll
public sealed record PromptResult<T> : IEquatable<PromptResult<T>>

Type Parameters

T

The requested type.

Inheritance
PromptResult<T>
Implements
Inherited Members

Constructors

PromptResult(PromptStatus, T?, string?)

public PromptResult(PromptStatus Status, T? Value, string? Text)

Parameters

Status PromptStatus

How the prompt ended.

Value T

The parsed answer when Status is Answered.

Text string

The last answer text, if any.

Properties

IsAnswered

Whether the sender answered with a valid value.

public bool IsAnswered { get; }

Property Value

bool

Status

How the prompt ended.

public PromptStatus Status { get; init; }

Property Value

PromptStatus

Text

The last answer text, if any.

public string? Text { get; init; }

Property Value

string

Value

The parsed answer when Status is Answered.

public T? Value { get; init; }

Property Value

T