Microsoft.Bot.Builder.Dialogs.PromptDialog.PromptDouble Class Referenceabstract

Prompt for a double. More...

Inheritance diagram for Microsoft.Bot.Builder.Dialogs.PromptDialog.PromptDouble:

Public Member Functions

 PromptDouble (string prompt, string retry, int attempts)
 Constructor for a prompt double dialog. More...
 PromptDouble (PromptOptions< double > promptOptions)
 Constructor for a prompt double dialog. More...

Protected Member Functions

virtual IMessageActivity MakePrompt (IDialogContext context, string prompt, IReadOnlyList< U > options=null, IReadOnlyList< string > descriptions=null)
virtual async Task MessageReceivedAsync (IDialogContext context, IAwaitable< IMessageActivity > message)
override bool TryParse (IMessageActivity message, out double result)
abstract bool TryParse (IMessageActivity message, out T result)

Protected Attributes

readonly PromptOptions< U > promptOptions

Detailed Description

Prompt for a double.

Normally used through PromptDialog.Number(IDialogContext, ResumeAfter<double>, string, string, int).

Definition at line 525 of file PromptDialog.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Dialogs.PromptDialog.PromptDouble.PromptDouble ( string  prompt,
string  retry,
int  attempts 

Constructor for a prompt double dialog.

promptThe prompt.
retryWhat to display on retry.
attemptsMaximum number of attempts.

Definition at line 531 of file PromptDialog.cs.

Microsoft.Bot.Builder.Dialogs.PromptDialog.PromptDouble.PromptDouble ( PromptOptions< double >  promptOptions)

Constructor for a prompt double dialog.

promptOptionsTHe prompt options.

Definition at line 536 of file PromptDialog.cs.

Member Function Documentation

virtual IMessageActivity Microsoft.Bot.Builder.Dialogs.Internals.Prompt< T, U >.MakePrompt ( IDialogContext  context,
string  prompt,
IReadOnlyList< U >  options = null,
IReadOnlyList< string >  descriptions = null 

Definition at line 770 of file PromptDialog.cs.

virtual async Task Microsoft.Bot.Builder.Dialogs.Internals.Prompt< T, U >.MessageReceivedAsync ( IDialogContext  context,
IAwaitable< IMessageActivity message 

Definition at line 744 of file PromptDialog.cs.

override bool Microsoft.Bot.Builder.Dialogs.PromptDialog.PromptDouble.TryParse ( IMessageActivity  message,
out double  result 

Definition at line 539 of file PromptDialog.cs.

abstract bool Microsoft.Bot.Builder.Dialogs.Internals.Prompt< T, U >.TryParse ( IMessageActivity  message,
out T  result 
protectedpure virtualinherited

Member Data Documentation

readonly PromptOptions<U> Microsoft.Bot.Builder.Dialogs.Internals.Prompt< T, U >.promptOptions

Definition at line 730 of file PromptDialog.cs.

The documentation for this class was generated from the following file: