public static TeacherCheckManager CreaTeacherCheckManager(JudgeModes judgeMode, List <Answer> answers) { TeacherCheckManager teacherCheckManager = null; switch (judgeMode) { case JudgeModes.SingleReview: teacherCheckManager = new TeacherCheckManagerFirst(answers); break; case JudgeModes.MultiReview: teacherCheckManager = new TeacherCheckManagerSecond(answers); break; case JudgeModes.ThirdReview: teacherCheckManager = new TeacherCheckManagerThird(answers); break; case JudgeModes.FourReview: teacherCheckManager = new TeacherCheckManagerFourth(answers); break; } return(teacherCheckManager); }
public QuestionGroup(String questionGroupId, JudgeModes judgeMode, IEnumerable <Teacher> teachers) { QuestionGroupId = questionGroupId; JudgeMode = judgeMode; Questions = new List <Question>(); PressReviewManager = new PressReviewManager(teachers); }
public AnswerCheck(String questionGroupId, List <Answer> answers, JudgeModes judgeMode) { AnswerCheckId = Guid.NewGuid().ToString(); Answers = answers; QuestionGroupId = questionGroupId; TeacherCheckManagerx = TeacherCheckManagerFactory.CreaTeacherCheckManager(judgeMode, answers); CombinationedPicUrl = "http://pic39.nipic.com/20140226/18071023_162553457000_2.jpg"; }
protected TeacherCheckManager(JudgeModes judgeMode, List <Answer> answers) { TeacherChecks = new List <TeacherCheck>((Int32)judgeMode); IsAllFinish = false; IsArbitration = false; ThirdCounter = 0; IsAllow = true; ReadyCheckAnswers = answers; }