Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 internal StepResult(NextStep next, FormPrompt feedback, FormPrompt prompt)
 {
     this.Next     = next;
     this.Feedback = feedback;
     this.Prompt   = prompt;
 }
Exemplo n.º 3
0
 internal StepResult(NextStep next, string feedback, string prompt)
 {
     this.Next     = next;
     this.Feedback = feedback;
     this.Prompt   = prompt;
 }