Exemplo n.º 1
0
 public PureFact(string p_Name, PureFactType p_type, string p_Question, PureFactResponseFunction pf, UIAnswer p_UI)
 {
     Name         = p_Name;
     Type         = p_type;
     question     = p_Question;
     UI           = p_UI;
     ResponseFunc = pf;
     SetCategory(p_type);
 }
Exemplo n.º 2
0
 public PureFact(string p_Name, PureFactType p_type, PureFactQuestionFunction p_question, string[] p_AllPossibleAnswers, UIAnswer p_UI)
 {
     Name               = p_Name;
     Type               = p_type;
     QuestionFunc       = p_question;
     AllPossibleAnswers = p_AllPossibleAnswers;
     UI           = p_UI;
     ResponseFunc = null;
     SetCategory(p_type);
 }
Exemplo n.º 3
0
 public PureFact(string p_Name, PureFactType p_type, string p_Question, string[] p_AllPossibleAnswers, PureFactResponseFunction p_response, UIAnswer p_UI, ContentType type)
 {
     Name               = p_Name;
     Type               = p_type;
     question           = p_Question;
     AllPossibleAnswers = p_AllPossibleAnswers;
     UI           = p_UI;
     ContentType  = type;
     ResponseFunc = p_response;
     SetCategory(p_type);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Mainly for questions with 2 or 3 possible answers
 /// </summary>
 /// <param name="p_Name"></param>
 /// <param name="p_IsFactAboutTheBot"></param>
 /// <param name="p_Question"></param>
 /// <param name="p_AllPossibleAnswers"></param>
 /// <param name="p_Acknowledgement"></param>
 /// <param name="p_UI"></param>
 public PureFact(string p_Name, PureFactType p_type, string p_Question, string[] p_AllPossibleAnswers, string p_Acknowledgement, UIAnswer p_UI)
 {
     Name               = p_Name;
     Type               = p_type;
     question           = p_Question;
     AllPossibleAnswers = p_AllPossibleAnswers;
     Acknowledgement    = p_Acknowledgement;
     UI           = p_UI;
     ResponseFunc = null;
     SetCategory(p_type);
 }
Exemplo n.º 5
0
 public PureFact(string p_Name, PureFactType p_type, string p_Question, string p_Value, string p_Acknowledgement, UIAnswer p_UI)
 {
     Name            = p_Name;
     Type            = p_type;
     question        = p_Question;
     Value           = p_Value;
     Acknowledgement = p_Acknowledgement;
     UI           = p_UI;
     ResponseFunc = null;
     SetCategory(p_type);
 }
Exemplo n.º 6
0
        public PureFact(string p_Name, PureFactType p_type, string p_Question, string[] p_AllPossibleAnswers,
                        string p_Acknowledgement, UIAnswer p_UI, string p_StatementOnPositiveResponse,
                        string p_StatementOnNegativeResponse, ContentType type)
        {
            Name               = p_Name;
            Type               = p_type;
            question           = p_Question;
            AllPossibleAnswers = p_AllPossibleAnswers;
            Acknowledgement    = p_Acknowledgement;
            UI          = p_UI;
            ContentType = type;

            statementOnPositiveResponse = p_StatementOnPositiveResponse;
            statementOnNegativeResponse = p_StatementOnNegativeResponse;

            ResponseFunc = null;
            SetCategory(p_type);
        }
Exemplo n.º 7
0
        //public string FacialExpressionOnReaction;

        #endregion

        private void SetCategory(PureFactType p_type)
        {
            this.Category = ActionsEnum.PureFact;

            if (p_type == PureFactType.AboutUser)
            {
                this.SubCategory = ActionsEnum.AskPureFactQuestionAboutUser;
            }

            else if (p_type == PureFactType.AboutBot)
            {
                this.SubCategory = ActionsEnum.SharePureFactInfoAboutBot;
            }

            else if (p_type != PureFactType.UIQuestion && p_type != PureFactType.System && p_type != PureFactType.BuyQuestion && p_type != PureFactType.JokeQuestion)
            {
                SharedHelper.LogError("Category was not set for fact '" + p_type.ToString() + "'");
            }
        }