public async Task <StepResult> ProcessAsync(IDialogContext context, T state, FormState form, string input, IEnumerable <TermMatch> matches) { NextStep next; form.Next = null; var val = matches.First().Value; if (val == null) { next = new NextStep(); } else { next = new NextStep(new string[] { (string)val }); } return(new StepResult(true, next, feedback: null, prompt: null)); }
internal StepResult(NextStep next, FormPrompt feedback, FormPrompt prompt) { this.Next = next; this.Feedback = feedback; this.Prompt = prompt; }
internal StepResult(NextStep next, string feedback, string prompt) { this.Next = next; this.Feedback = feedback; this.Prompt = prompt; }