コード例 #1
0
 public static async Task ReplyWithAddedAlarm(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Guess stored", $"{GameDescription(context, game)}."));
 }
コード例 #2
0
 public static async Task ReplyWithAddedGuess(ITurnContext context, Guess guess)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Guess stored", $"{GuessInfo(context, guess)}."));
 }
コード例 #3
0
 public static async Task ReplyWithTitleValidationPrompt(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Starting game", $"Your title needs to be between 1 and 100 characterslong\n\n{GameDescription(context, game)}\n\nWhat would you like to call your game ?"));
 }
コード例 #4
0
 public static async Task ReplyWithAddConfirmation(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithSuggestions(context, $"Storing guess...", $"{GameDescription(context, game)}\n\nDo you want to submit this guess?", YesNo));
 }
コード例 #5
0
 public static async Task ReplyWithTitlePrompt(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Guess a number:", $"{GameDescription(context, game)}\n\nWhat is your guess?"));
 }
コード例 #6
0
 public static async Task ReplyWithTimePromptFuture(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Starting game", $"{GameDescription(context, game)}\n\nYou need to specify a time in the future. What time would you like to set the game?"));
 }
コード例 #7
0
 public static async Task ReplyWithTimePrompt(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Starting game", $"{GameDescription(context, game)}\n\nWhat time would you like to set the game for?"));
 }
コード例 #8
0
 public static async Task ReplyWithCancelReprompt(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithSuggestions(context, $"Cancel Game?", $"Please answer the question with a \"yes\" or \"no\" reply. Did you want to cancel the game?\n\n{GameDescription(context, game)}", YesNo));
 }
コード例 #9
0
 public static async Task ReplyWithCancelPrompt(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithSuggestions(context, "Cancel Game?", $"Did you want to cancel the game?\n\n{GameDescription(context, game)}", YesNo));
 }