Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. private async Task<string> GetAiAnswerAsync(ChatAttributes attribute, ChatAnswer chatAnswer)
  2. {
  3. switch (await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<AiRoutAttributes>().LastBlockBeforeAi))
  4. {
  5. case "main-menu-blck": return chatAnswer.GetYesNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
  6. case "main-no-blck": return chatAnswer.GetAfterNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic),
  7. await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<CustomerAttributes>().Gender));
  8. //case "max-yes-no": return chatAnswer.GetYesNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
  9. //case "mark-yes-no": return chatAnswer.GetYesNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
  10. default: return chatAnswer.GetDefaultAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
  11. }
  12. }
Add Comment
Please, Sign In to add comment