AskChoiceRequest
Requests a single choice from a list of options.
- Kind:
Class - Namespace: Repl.Interaction
- Assembly:
Repl.Core - Source: src/Repl.Core/Interaction/AskChoiceRequest.cs
Signature
Section titled “Signature”public sealed record AskChoiceRequest : InteractionRequest<int>, IEquatable<InteractionRequest>, IEquatable<InteractionRequest<int>>, IEquatable<AskChoiceRequest>Inheritance
Section titled “Inheritance”- object
- InteractionRequest
InteractionRequest<int>
Implements
Section titled “Implements”IEquatable<InteractionRequest>IEquatable<InteractionRequest<int>>IEquatable<AskChoiceRequest>
Constructors
Section titled “Constructors”AskChoiceRequest(string, string, IReadOnlyList<string>, int?, AskOptions?)
Section titled “AskChoiceRequest(string, string, IReadOnlyList<string>, int?, AskOptions?)”Requests a single choice from a list of options.
public AskChoiceRequest(string Name, string Prompt, IReadOnlyList<string> Choices, int? DefaultIndex = null, AskOptions? Options = null)Parameters
Section titled “Parameters”Name(string)Prompt(string)Choices(IReadOnlyList<string>)DefaultIndex(int?)Options(AskOptions)
Properties
Section titled “Properties”Choices
Section titled “Choices”public IReadOnlyList<string> Choices { get; init; }Returns
Section titled “Returns”IReadOnlyList<string>
DefaultIndex
Section titled “DefaultIndex”public int? DefaultIndex { get; init; }Returns
Section titled “Returns”int?
Options
Section titled “Options”public AskOptions? Options { get; init; }