Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private async Task<string> GetAiAnswerAsync(ChatAttributes attribute, ChatAnswer chatAnswer)
- {
- switch (await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<AiRoutAttributes>().LastBlockBeforeAi))
- {
- case "main-menu-blck": return chatAnswer.GetYesNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
- case "main-no-blck": return chatAnswer.GetAfterNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic),
- await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<CustomerAttributes>().Gender));
- //case "max-yes-no": return chatAnswer.GetYesNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
- //case "mark-yes-no": return chatAnswer.GetYesNoAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
- default: return chatAnswer.GetDefaultAnswer(await Task.Factory.StartNew(() => attribute.GetCurrentAttribute<ContentAttributes>().BotPic));
- }
- }
Add Comment
Please, Sign In to add comment