Example #1
0
 // Prompt Attachment
 public static void PromptAttachment(this IDialogContext context, ResumeAfter <IEnumerable <Attachment> > resume, string prompt, IEnumerable <string> contentTypes = null, string retry = null, int attempts = 3)
 {
     PromptAdaptiveDialog.Attachment(context, resume, prompt, contentTypes, retry, attempts);
 }
Example #2
0
 public static void PromptChoice <T>(this IDialogContext context, ResumeAfter <T> resume, IDictionary <T, IEnumerable <T> > choices, string prompt, string retry = null, int attempts = 3, bool isAdaptiveCard = true, PromptStyle promptStyle = PromptStyle.Auto, IEnumerable <string> descriptions = null, bool recognizeChoices = true, bool recognizeNumbers = true, bool recognizeOrdinals = true, double minScore = 0.4)
 {
     PromptAdaptiveDialog.Choice(context, resume, choices, prompt, retry, attempts, isAdaptiveCard, promptStyle, descriptions, recognizeChoices, recognizeNumbers, recognizeOrdinals, minScore);
 }
Example #3
0
 // Prompt AdaptiveCard
 public static void PromptAdaptiveCard(this IDialogContext context, ResumeAfter <AdaptiveCardResult> resume, AdaptiveCard card, string prompt = null, string retry = null, int attempts = 3, bool isRememberUserInput = true, PromptAdaptiveCardVaildateDelegate vaildDelegate = null)
 {
     PromptAdaptiveDialog.AdaptiveCard(context, resume, card, prompt, retry, attempts, isRememberUserInput, vaildDelegate);
 }
Example #4
0
 // Prompt Choice
 public static void PromptChoice <T>(this IDialogContext context, ResumeAfter <T> resume, IEnumerable <T> options, string prompt, string retry = null, int attempts = 3, bool isAdaptiveCard = true, PromptStyle promptStyle = PromptStyle.Auto, IEnumerable <string> descriptions = null)
 {
     PromptAdaptiveDialog.Choice(context, resume, options, prompt, retry, attempts, isAdaptiveCard, promptStyle, descriptions);
 }
Example #5
0
 // Prompt Confirm
 public static void PromptConfirm(this IDialogContext context, ResumeAfter <bool> resume, string prompt, string retry = null, int attempts = 3, bool isAdaptiveCard = true, PromptStyle promptStyle = PromptStyle.Auto, string[] options = null, string[][] patterns = null)
 {
     PromptAdaptiveDialog.Confirm(context, resume, prompt, retry, attempts, isAdaptiveCard, promptStyle, options, patterns);
 }
Example #6
0
 // Prompt DateTime
 public static void PromptDateTime(this IDialogContext context, ResumeAfter <DateTime> resume, string prompt, string retry = null, int attempts = 3, IEnumerable <string> patterns = null)
 {
     PromptAdaptiveDialog.DateTime(context, resume, prompt, retry, attempts, patterns);
 }
Example #7
0
 public static void PromptNumber(this IDialogContext context, ResumeAfter <double> resume, string prompt, string retry = null, int attempts = 3, string speak = null, double?min = default(double?), double?max = default(double?))
 {
     PromptAdaptiveDialog.Number(context, resume, prompt, retry, attempts, speak, min, max);
 }
Example #8
0
 public static void PromptText(this IDialogContext context, ResumeAfter <string> resume, IEnumerable <string> patterns, string prompt, string retry = null, int attempts = 3, RegexOptions regexOption = RegexOptions.None)
 {
     PromptAdaptiveDialog.Text(context, resume, patterns, prompt, retry, attempts, regexOption);
 }