public static SALog getShortAnswerQuestionLogFromData(SALogData saqLogData) { SALog saqLog = new SALog(); saqLog.ActivityName = saqLogData.ActivityName; saqLog.expID = saqLogData.expID; saqLog.id = saqLogData.id; saqLog.RoomId = saqLogData.RoomId; saqLog.question = saqLogData.question; saqLog.explaination = saqLogData.explaination; saqLog.correctAnswerString = saqLogData.correctAnswerString; saqLog.studentsAnswers = new List <AnswerByPhone>(); if (saqLogData.studentsAnswers != null) { foreach (AnswerByPhoneData abpData in saqLogData.studentsAnswers) { saqLog.studentsAnswers.Add(getAnswerByPhoneFromData(abpData)); } } return(saqLog); }
public static SALog getShortAnswerQuestionLogFromData(SALogData saqLogData) { SALog saqLog = new SALog(); saqLog.ActivityName = saqLogData.ActivityName; saqLog.expID = saqLogData.expID; saqLog.id = saqLogData.id; saqLog.RoomId = saqLogData.RoomId; saqLog.question = saqLogData.question; saqLog.explaination = saqLogData.explaination; saqLog.correctAnswerString = saqLogData.correctAnswerString; saqLog.studentsAnswers = new List<AnswerByPhone>(); if (saqLogData.studentsAnswers != null) { foreach (AnswerByPhoneData abpData in saqLogData.studentsAnswers) { saqLog.studentsAnswers.Add(getAnswerByPhoneFromData(abpData)); } } return saqLog; }