예제 #1
0
        public async Task CarSlower(IDialogContext context, LuisResult result)
        {
            await IoTHelper.SendAsync("s-20");

            await context.PostAsync($"Pressing the brake");

            context.EndConversation("Conversation Ended");
        }
예제 #2
0
        public async Task CarStop(IDialogContext context, LuisResult result)
        {
            await IoTHelper.SendAsync("s0");

            await context.PostAsync($"Car halted !!");

            context.EndConversation("Conversation Ended");
        }
예제 #3
0
        public async Task CarFaster(IDialogContext context, LuisResult result)
        {
            await IoTHelper.SendAsync("s+20");

            await context.PostAsync($"Vroooom, the car goes faster");

            context.EndConversation("Conversation Ended");
        }
예제 #4
0
        public async Task CarStart(IDialogContext context, LuisResult result)
        {
            await IoTHelper.SendAsync("s50");

            await context.PostAsync("3");

            await context.PostAsync("2");

            await context.PostAsync("1");

            await context.PostAsync("GO !!!!!!");

            context.EndConversation("Conversation Ended");
        }