Exemplo n.º 1
0
        public async Task MessageReceivedAsync(IDialogContext context, IAwaitable <IMessageActivity> argument)
        {
            var activity = await argument;

            if (activity.Type != ActivityTypes.Message)
            {
                return;
            }

            var options = new List <string>
            {
                OptionHelp,
                OptionGlass,
                OptionClaim
            };

            var prompt = PromptHelper.CreatePromptOptions(options, "Hva kan vi hjelpe deg med?");

            PromptDialog.Choice(context, ChoiceReceivedAsync, prompt);
        }