Beispiel #1
0
 public UserInClass(int userId, int classId, int classVersion, DateTime startTime, DateTime endTime, bool isStarted,
                    bool isFinished, int classPosition, AppClass appClass, Section [] section, string user_feeling,
                    string user_feeling_finish, bool beforeClass, DateTime shouldStart, UserInHomeWork userInHomeWork,
                    bool isNextLesson = false, int nextLessonInReact = -20)
 {
     UserId              = userId;
     ClassId             = classId;
     ClassVersion        = classVersion;
     StartTime           = startTime;
     EndTime             = endTime;
     IsStarted           = isStarted;
     IsFinished          = isFinished;
     ClassPosition       = classPosition;
     NextLessonInReact   = nextLessonInReact;
     AppClass            = appClass;
     Section             = section;
     User_Feeling        = user_feeling;
     User_Feeling_Finish = user_feeling_finish;
     BeforeClass         = beforeClass;
     ShouldStart         = shouldStart;
     UserInHomeWork      = userInHomeWork;
     IsNextLesson        = isNextLesson;
 }
Beispiel #2
0
        public int InsertClassToDB(AppClass appClass)
        {
            DBservices db = new DBservices();

            return(db.InsertClassToDB(appClass));
        }