예제 #1
0
        public static TFQLog getTFQLogFromData(TFQLogData tfqlData)
        {
            TFQLog tfql = new TFQLog();

            tfql.ActivityName   = tfqlData.ActivityName;
            tfql.expID          = tfqlData.expID;
            tfql.id             = tfqlData.id;
            tfql.isMainActivity = tfqlData.isMainActivity;
            tfql.RoomId         = tfqlData.RoomId;

            tfql.question     = tfqlData.question;
            tfql.explaination = tfqlData.explaination;

            tfql.correctAnswerBool = tfqlData.correctAnswerBool;
            tfql.counterFalse      = tfqlData.counterFalse;
            tfql.counterTrue       = tfqlData.counterTrue;

            tfql.studentsAnswers = new List <AnswerByPhone>();
            if (tfqlData.studentsAnswers != null)
            {
                foreach (AnswerByPhoneData abpData in tfqlData.studentsAnswers)
                {
                    tfql.studentsAnswers.Add(getAnswerByPhoneFromData(abpData));
                }
            }

            return(tfql);
        }
예제 #2
0
        public static TFQLog getTFQLogFromData(TFQLogData tfqlData)
        {
            TFQLog tfql = new TFQLog();

            tfql.ActivityName = tfqlData.ActivityName;
            tfql.expID = tfqlData.expID;
            tfql.id = tfqlData.id;
            tfql.isMainActivity = tfqlData.isMainActivity;
            tfql.RoomId = tfqlData.RoomId;

            tfql.question = tfqlData.question;
            tfql.explaination = tfqlData.explaination;

            tfql.correctAnswerBool = tfqlData.correctAnswerBool;
            tfql.counterFalse = tfqlData.counterFalse;
            tfql.counterTrue = tfqlData.counterTrue;

            tfql.studentsAnswers = new List<AnswerByPhone>();
            if (tfqlData.studentsAnswers != null)
            {
                foreach (AnswerByPhoneData abpData in tfqlData.studentsAnswers)
                {
                    tfql.studentsAnswers.Add(getAnswerByPhoneFromData(abpData));
                }
            }

            return tfql;
        }