Ejemplo n.º 1
0
 public static async Task ReplyWithAddedAlarm(ITurnContext context, Game game)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Guess stored", $"{GameDescription(context, game)}."));
 }
Ejemplo n.º 2
0
 public static async Task ReplyWithAddedGuess(ITurnContext context, Guess guess)
 {
     await context.SendActivity(ResponseHelpers.ReplyWithTitle(context, $"Guess stored", $"{GuessInfo(context, guess)}."));
 }
Ejemplo n.º 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 ?"));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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?"));
 }
Ejemplo n.º 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?"));
 }
Ejemplo n.º 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?"));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }