コード例 #1
0
ファイル: Adapting.cs プロジェクト: aviadbi1/LabExplorer
        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
ファイル: Adapting.cs プロジェクト: aviadbi1/RoadScholar
        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;
        }