Example #1
0
        public async Task <Activity> Handle(FeedBackYesGoodReplyRequest request, CancellationToken cancellationToken)
        {
            var activity  = request.Activity;
            var botMsg    = request.BotLastMessage.Message;
            var lastMatch = request.UserMatch;

            var reply = request.Activity.CreateReply();

            reply.Attachments = new List <Attachment>
            {
                new HeroCard()
                {
                    Text = Resources.FeedBackYesGoodReplyText1 + Environment.NewLine + Resources.FeedBackYesGoodReplyText2
                }.ToAttachment(),
            };

            await _repository.FeedbackDetailCreate(
                lastMatch.SenderEmail,
                lastMatch.SenderAadId,
                lastMatch.RecipientEmail,
                lastMatch.RecipientAadId,
                FbDetailTypes.Good,
                FbRootTypes.Yes);

            return(reply);
        }