public DiagnosisLevelSnapshotSerialized(DiagnosisLevelSnapshot dls) { this.DiagnosisLevel = dls.DiagnosisLevel; this.StartTime = dls.StartTime; if (dls.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(dls.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } if (dls.Student != null) { StudentSerialized ss = new StudentSerializedDAO().LoadByObjectId(dls.Student.ObjectId); if (ss != null) { this.StudentSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } }
public TeacherSerialized(Teacher t) { base.ObjectId = t.ObjectId; base.CreatedAt = t.CreatedAt; base.UpdatedAt = t.UpdatedAt; //base.Id = 0; this.Answer = t.Answer; this.Email = t.Email; this.IsCoordinator = t.IsCoordinator; this.LastName = t.LastName; this.Name = t.Name; this.PassCode = t.PassCode; this.Phone = t.Phone; this.Question = t.Question; if (t.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(t.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } }
public NoteSerialized(Note n) { base.ObjectId = n.ObjectId; base.CreatedAt = n.CreatedAt; base.UpdatedAt = n.UpdatedAt; //base.Id = 0; this.NoteText = n.NoteText; this.WrittenAt = n.WrittenAt; if (n.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(n.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } if (n.Student != null) { StudentSerialized ss = new StudentSerializedDAO().LoadByObjectId(n.Student.ObjectId); if (ss != null) { this.StudentSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } if (n.Teacher != null) { TeacherSerialized ts = new TeacherSerializedDAO().LoadByObjectId(n.Teacher.ObjectId); if (ts != null) { this.TeacherSerialized = ts; } else { Debug.Log("Serialized: There is no relationship saved"); } } }
public StudentGroup_TeacherSerialized(studentgroup_teacher sgt) { base.ObjectId = sgt.ObjectId; base.CreatedAt = sgt.CreatedAt; base.UpdatedAt = sgt.UpdatedAt; //base.Id = 0; if (sgt.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(sgt.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } if (sgt.StudentGroup != null) { StudentGroupSerialized sgs = new StudentGroupSerializedDAO().LoadByObjectId(sgt.StudentGroup.ObjectId); if (sgs != null) { this.StudentGroupSerialized = sgs; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } if (sgt.Teacher != null) { TeacherSerialized ts = new TeacherSerializedDAO().LoadByObjectId(sgt.Teacher.ObjectId); if (ts != null) { this.TeacherSerialized = ts; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } }
public StudentGroupSerialized(StudentGroup sg) { base.ObjectId = sg.ObjectId; this.Name = sg.Name; this.Period = sg.Period; this.Series = sg.Series; if (sg.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(sg.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } }
public WrittenWordSerialized(WrittenWord ww) { base.ObjectId = ww.ObjectId; base.CreatedAt = ww.CreatedAt; base.UpdatedAt = ww.UpdatedAt; //base.Id = 0; this.DiagnosisLevel = ww.DiagnosisLevel; this.Expected = ww.Expected; this.Gesture = ww.Gesture; this.Input = ww.Input; this.WrittenAt = ww.WrittenAt; if (ww.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(ww.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { Debug.Log("Serialized: There is no relationship saved"); } } if (ww.Student != null) { StudentSerialized ss = new StudentSerializedDAO().LoadByObjectId(ww.Student.ObjectId); if (ss != null) { this.StudentSerialized = ss; } else { Debug.Log("Serialized: There is no relationship saved"); } } }
public StudentSerialized(Student s) { base.ObjectId = s.ObjectId; this.BirthDate = s.BirthDate; this.BuildingsCount = s.BuildingsCount; this.Coins = s.Coins; this.DiagnosisLevel = s.DiagnosisLevel; this.Gender = s.Gender; this.Guardian = s.Guardian; this.Name = s.Name; this.LastName = s.LastName; if (s.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(s.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } if (s.StudentGroup != null) { StudentGroupSerialized sgs = new StudentGroupSerializedDAO().LoadByObjectId(s.StudentGroup.ObjectId); if (sgs != null) { this.StudentGroupSerialized = sgs; } else { //Debug.Log ("[ObjectId: " + s.StudentGroup.ObjectId + "] Serialized: There is no relationship saved"); } } }
public ChallengeOutputSerialized(ChallengeOutput co) { this.Asserts = co.Asserts; this.AssertsPercentage = co.AssertsPercentage; this.ChallengeExcercise = co.ChallengeExercise; this.Duration = co.Duration; this.Etapa = co.Etapa; this.EtapaChallenge = co.EtapaChallenge; this.Minigame = co.Minigame; this.Summarized = co.Summarized; this.Timestamp = co.Timestamp; this.WeekSummarized = co.WeekSummarized; if (co.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(co.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { // Debug.Log ("Serialized: There is no relationship saved"); } } if (co.Student != null) { StudentSerialized ss = new StudentSerializedDAO().LoadByObjectId(co.Student.ObjectId); if (ss != null) { this.StudentSerialized = ss; } else { // Debug.Log ("Serialized: There is no relationship saved"); } } }
public WeekSummarySerialized(WeekSummary ws) { this.Asserts = ws.Asserts; this.AssertsPercentage = ws.AssertsPercentage; this.Etapa = ws.Etapa; this.EtapaChallenge = ws.EtapaChallenge; this.Minigame = ws.Minigame; this.TimesPlayed = ws.TimesPlayed; this.TotalTime = ws.TotalTime; this.Week = ws.Week; if (ws.School != null) { SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(ws.School.ObjectId); if (ss != null) { this.SchoolSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } if (ws.Student != null) { StudentSerialized ss = new StudentSerializedDAO().LoadByObjectId(ws.Student.ObjectId); if (ss != null) { this.StudentSerialized = ss; } else { //Debug.Log ("Serialized: There is no relationship saved"); } } }