Beispiel #1
0
        /// <summary>
        /// Having the necessary adaptive actions built.
        /// </summary>
        /// <returns>A list of adaptive card actions.</returns>
        private List <AdaptiveAction> BuildReplyActions()
        {
            UserNotificationCard  userNotificationCard = this;
            List <AdaptiveAction> actions = new List <AdaptiveAction>();

            actions.Add(this.CreateChatWithExpertAction());
            actions.Add(new AdaptiveSubmitAction
            {
                Title = Strings.ShareFeedbackButtonText,
                Data  = new ResponseCardPayload
                {
                    MsTeams = new CardAction
                    {
                        Type        = ActionTypes.MessageBack,
                        DisplayText = Strings.ShareFeedbackDisplayText,
                        Text        = Constants.ShareFeedback,
                    },
                    UserQuestion          = this.ticket.Title,
                    KnowledgeBaseAnswer   = this.ticket.KnowledgeBaseAnswer,
                    KnowledgeBaseQuestion = this.ticket.KnowledgeBaseQuestion,
                    TicketId = this.ticket.TicketId,
                },
            });

            return(actions);
        }
Beispiel #2
0
        /// <summary>
        /// Having the necessary adaptive actions built.
        /// </summary>
        /// <returns>A list of adaptive card actions.</returns>
        private List <AdaptiveAction> BuildActions()
        {
            UserNotificationCard userNotificationCard = this;

            return(new List <AdaptiveAction>
            {
                new AdaptiveOpenUrlAction()
                {
                    Title = Strings.MyQuestionLabelText,
                    Url = userNotificationCard.GetDeeplinkToMyQuestionTab(),
                },
            });
        }