Checks and inserts attendance records for students not present.
The date of the lecture.
The student numbers.
The lecture ID.
A promise that resolves when the attendance records have been inserted.
Deletes an attendance record.
The student number.
The lecture ID.
A promise that resolves when the attendance record has been deleted.
Gets lectures and attendances by course ID.
The course ID.
A promise that resolves to the lectures and attendances.
Inserts a new attendance record.
The attendance status.
The date of the lecture.
The student number.
The lecture ID.
A promise that resolves when the attendance record has been inserted.
Marks late enrolling students as not present in past lectures.
The student number.
The course ID.
A promise that resolves when the student is marked as not present in past lectures.
Updates the attendance status.
The attendance ID.
The new attendance status.
A promise that resolves when the attendance status has been updated.
AttendanceController interface represents the structure of the attendance controller.
This interface provides the following methods:
Method
insertIntoAttendance - Inserts a new attendance record.
Method
checkAndInsertStatusNotPresentAttendance - Checks and inserts attendance records for students not present.
Method
getLecturesAndAttendancesByCourseId - Gets lectures and attendances by course ID.
Method
updateAttendanceStatus - Updates the attendance status.
Method
deleteAttendance - Deletes an attendance record.
Method
markStudentAsNotPresentInPastLectures - Marks late enrolling students as not present in past lectures.