Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EvaluationQuestion" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Text">Text.</param>
 /// <param name="HelpText">HelpText.</param>
 /// <param name="Type">Type.</param>
 /// <param name="NaEnabled">NaEnabled.</param>
 /// <param name="CommentsRequired">CommentsRequired.</param>
 /// <param name="VisibilityCondition">VisibilityCondition.</param>
 /// <param name="AnswerOptions">Options from which to choose an answer for this question. Only used by Multiple Choice type questions..</param>
 /// <param name="IsKill">IsKill.</param>
 /// <param name="IsCritical">IsCritical.</param>
 public EvaluationQuestion(string Id = null, string Text = null, string HelpText = null, TypeEnum?Type = null, bool?NaEnabled = null, bool?CommentsRequired = null, VisibilityCondition VisibilityCondition = null, List <AnswerOption> AnswerOptions = null, bool?IsKill = null, bool?IsCritical = null)
 {
     this.Id                  = Id;
     this.Text                = Text;
     this.HelpText            = HelpText;
     this.Type                = Type;
     this.NaEnabled           = NaEnabled;
     this.CommentsRequired    = CommentsRequired;
     this.VisibilityCondition = VisibilityCondition;
     this.AnswerOptions       = AnswerOptions;
     this.IsKill              = IsKill;
     this.IsCritical          = IsCritical;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EvaluationQuestionGroup" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Type">Type.</param>
 /// <param name="DefaultAnswersToHighest">DefaultAnswersToHighest.</param>
 /// <param name="DefaultAnswersToNA">DefaultAnswersToNA.</param>
 /// <param name="NaEnabled">NaEnabled.</param>
 /// <param name="Weight">Weight.</param>
 /// <param name="ManualWeight">ManualWeight.</param>
 /// <param name="Questions">Questions.</param>
 /// <param name="VisibilityCondition">VisibilityCondition.</param>
 public EvaluationQuestionGroup(string Id = null, string Name = null, string Type = null, bool?DefaultAnswersToHighest = null, bool?DefaultAnswersToNA = null, bool?NaEnabled = null, float?Weight = null, bool?ManualWeight = null, List <EvaluationQuestion> Questions = null, VisibilityCondition VisibilityCondition = null)
 {
     this.Id   = Id;
     this.Name = Name;
     this.Type = Type;
     this.DefaultAnswersToHighest = DefaultAnswersToHighest;
     this.DefaultAnswersToNA      = DefaultAnswersToNA;
     this.NaEnabled           = NaEnabled;
     this.Weight              = Weight;
     this.ManualWeight        = ManualWeight;
     this.Questions           = Questions;
     this.VisibilityCondition = VisibilityCondition;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SurveyQuestionGroup" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Type">Type.</param>
 /// <param name="NaEnabled">NaEnabled.</param>
 /// <param name="Questions">Questions.</param>
 /// <param name="VisibilityCondition">VisibilityCondition.</param>
 public SurveyQuestionGroup(string Id = null, string Name = null, string Type = null, bool?NaEnabled = null, List <SurveyQuestion> Questions = null, VisibilityCondition VisibilityCondition = null)
 {
     this.Id                  = Id;
     this.Name                = Name;
     this.Type                = Type;
     this.NaEnabled           = NaEnabled;
     this.Questions           = Questions;
     this.VisibilityCondition = VisibilityCondition;
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Question" /> class.
        /// </summary>


        /// <param name="Id">Id.</param>



        /// <param name="Text">Text.</param>



        /// <param name="HelpText">HelpText.</param>



        /// <param name="Type">Type.</param>



        /// <param name="NaEnabled">NaEnabled.</param>



        /// <param name="CommentsRequired">CommentsRequired.</param>



        /// <param name="VisibilityCondition">VisibilityCondition.</param>



        /// <param name="AnswerOptions">Options from which to choose an answer for this question. Only used by Multiple Choice type questions..</param>



        /// <param name="MaxResponseCharacters">How many characters are allowed in the text response to this question. Used by NPS and Free Text question types..</param>



        /// <param name="ExplanationPrompt">Prompt for details explaining the chosen NPS score. Used by NPS questions..</param>



        /// <param name="IsKill">IsKill.</param>



        /// <param name="IsCritical">IsCritical.</param>


        public Question(string Id = null, string Text = null, string HelpText = null, TypeEnum?Type = null, bool?NaEnabled = null, bool?CommentsRequired = null, VisibilityCondition VisibilityCondition = null, List <AnswerOption> AnswerOptions = null, int?MaxResponseCharacters = null, string ExplanationPrompt = null, bool?IsKill = null, bool?IsCritical = null)
        {
            this.Id = Id;



            this.Text = Text;



            this.HelpText = HelpText;



            this.Type = Type;



            this.NaEnabled = NaEnabled;



            this.CommentsRequired = CommentsRequired;



            this.VisibilityCondition = VisibilityCondition;



            this.AnswerOptions = AnswerOptions;



            this.MaxResponseCharacters = MaxResponseCharacters;



            this.ExplanationPrompt = ExplanationPrompt;



            this.IsKill = IsKill;



            this.IsCritical = IsCritical;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SurveyQuestion" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Text">Text.</param>
 /// <param name="HelpText">HelpText.</param>
 /// <param name="Type">Type.</param>
 /// <param name="NaEnabled">NaEnabled.</param>
 /// <param name="VisibilityCondition">VisibilityCondition.</param>
 /// <param name="AnswerOptions">Options from which to choose an answer for this question. Only used by Multiple Choice type questions..</param>
 /// <param name="MaxResponseCharacters">How many characters are allowed in the text response to this question. Used by NPS and Free Text question types..</param>
 /// <param name="ExplanationPrompt">Prompt for details explaining the chosen NPS score. Used by NPS questions..</param>
 public SurveyQuestion(string Id = null, string Text = null, string HelpText = null, TypeEnum?Type = null, bool?NaEnabled = null, VisibilityCondition VisibilityCondition = null, List <AnswerOption> AnswerOptions = null, int?MaxResponseCharacters = null, string ExplanationPrompt = null)
 {
     this.Id                    = Id;
     this.Text                  = Text;
     this.HelpText              = HelpText;
     this.Type                  = Type;
     this.NaEnabled             = NaEnabled;
     this.VisibilityCondition   = VisibilityCondition;
     this.AnswerOptions         = AnswerOptions;
     this.MaxResponseCharacters = MaxResponseCharacters;
     this.ExplanationPrompt     = ExplanationPrompt;
 }