Beispiel #1
0
        /// <summary>
        /// Creates a task of instant messaging q uestion/Answer activity.
        /// </summary>
        /// <returns></returns>
        public Task <ActivityResult> CreateQaImActivity()
        {
            Task <ActivityResult> task = null;

            try
            {
                InstantMessageQuestionAnswerActivity imQa = new InstantMessageQuestionAnswerActivity(this.ImCall, this.WelcomeMessage, this.SilencePrompt, null, this.NoRecognitionPrompt, null, this._currentSkill.Values, 3, 15, 3);
                return(imQa.ExecuteAsync());
            }
            catch (ArgumentNullException exception)
            {
                base.Exception = exception;
            }
            return(task);
        }
Beispiel #2
0
        /// <summary>
        ///  Creates a task of question answer activity.
        /// </summary>
        /// <returns></returns>
        public Task <ActivityResult> CreateImQaActivity()
        {
            List <string> expectedInputs = new List <string> {
                "yes", "one", "y", "yeah", "no", "two", "n"
            };
            Task <ActivityResult> task = null;

            try
            {
                InstantMessageQuestionAnswerActivity imQaActivity = new InstantMessageQuestionAnswerActivity(this.imCall, this.QaAgentOfferMainPrompt, this.QaAgentOfferSilencePrompt, null, this.QaAgentOfferNoRecognitionPrompt, null, expectedInputs, 3, 10, 3);
                return(imQaActivity.ExecuteAsync());
            }
            catch (ArgumentNullException exception)
            {
                base.Exception = exception;
            }
            return(task);
        }