Exemple #1
0
        public async Task RemoveGoodTeam(IDialogContext context, LuisResult result)
        {
            List <string>          goodTeams = champs.GetTopThreeTeams();
            PromptOptions <string> options   = new PromptOptions <string>("Select which of the top three teams to remove.",
                                                                          "Sorry please try again", "I give up on you", goodTeams, 2);

            PromptDialog.Choice <string>(context, RemoveGoodTeamAsync, options);
        }
Exemple #2
0
        public async Task RemoveGoodTeam(IDialogContext context, LuisResult result)
        {
            //Championships champs = new Championships();
            List <string>          goodTeams = champs.GetTopThreeTeams();
            PromptOptions <string> options   = new PromptOptions <string>("Select which of the top three teams to remove.",
                                                                          "Sorry please try again", "I give up on you", goodTeams, 2);

            PromptDialog.Choice <string>(context, RemoveGoodTeamAsync, options);
            //await context.PostAsync($"{champs.GetLowestRatedTeam()} is the worst team in the championships.");
            //context.Wait(MessageReceived);
        }