public async static Task Send_PlayingCategory(IDialogContext context, IMessageActivity message, TriviaCategory category) { var replyText = SelectRandomString(new string[] { $"We're playing: \"{category.DisplayName()}\".", $"We're going with: \"{category.DisplayName()}\" today.", $"You'll get questions about: \"{category.DisplayName()}\"." }); var reply = CreateResponse( context, message, replyText, replyText, messageType: MessageType.Statement, inputHint: InputHints.IgnoringInput); await context.PostAsync(reply); }
public async static Task Send_SwitchedCategory(IDialogContext context, IMessageActivity message, TriviaCategory category) { var replyText = $"You've switched to the category \"{category.DisplayName()}\""; var reply = CreateResponse( context, message, replyText, replyText, messageType: MessageType.Statement, inputHint: InputHints.IgnoringInput); await context.PostAsync(reply); }