/// <summary> /// create new viewmodel representing the submission answers submitted by students /// </summary> /// <param name="questionNumber">number of the question</param> /// <param name="questionText">text of the question</param> /// <param name="answerText">text of the answer</param> /// <param name="questionType">type of the question</param> public SubmissionAnswerVM(int questionNumber, string questionText, string answerText, Data.QuestionType questionType) { QuestionNumber = questionNumber; QuestionText = questionText; AnswerText = answerText; QuestionType = questionType; }
/// <summary> /// create new viewmodel representing a question in a test /// </summary> /// <param name="number">number of the question</param> /// <param name="text">text of the question</param> /// <param name="correctAnswer">correct answer of the question</param> /// <param name="points">max points for the question</param> /// <param name="questionType">type of the question</param> public TestQuestionVM(int number, string text, string correctAnswer, int points, Data.QuestionType questionType) : this() { Number = number; QuestionText = text; CorrectAnswer = correctAnswer; Points = points; Type = questionType; }
/// <summary> /// create new viewmodel representing the submission answer and the correct answer /// </summary> /// <param name="questionNumber">number of the question</param> /// <param name="questionText">text of the question</param> /// <param name="answerText">text of the answer</param> /// <param name="questionType">type of the question</param> /// <param name="comment">comment to the answer</param> /// <param name="correctAnswer">text of correct answer</param> /// <param name="maximalPoints">max points for the question</param> /// <param name="receivedPoints">recieved points for the question</param> public SubmissionAnswerWithCorrectAnswerVM(int questionNumber, string questionText, string answerText, string correctAnswer, int receivedPoints, int maximalPoints, string comment, Data.QuestionType questionType) : base(questionNumber, questionText, answerText, questionType) { CorrectAnswer = correctAnswer; ReceivedPoints = receivedPoints; MaximalPoints = maximalPoints; Comment = comment; }