Overview
TheClassSession data class represents a single class session in a student’s schedule, including timing information, location, instructor details, and current status.
Data Class Definition
Properties
Unique identifier for the class session.
Name of the subject or course.Example:
"Programación Orientada a Objetos"Name of the instructor teaching the class.Example:
"Prof. G. Hopper"Location where the class takes place (room number, building, or lab name).Example:
"Lab 3", "Aula A2"Day of the week when the class occurs.Example:
"Martes" (Tuesday)Start time of the class in 24-hour format.Example:
"10:00"End time of the class in 24-hour format.Example:
"12:00"Flag indicating whether this class is currently in session.When
true, the class is highlighted in the UI to show it’s the active class.Usage Example
Example from FakeData
Usage in the App
TheClassSession model is used extensively throughout the app:
Home Screen
-
Current Class Display: Shows the active class (where
isCurrent = true) in a prominent card with:- Subject name
- Time range (startHour - endHour)
- Classroom location
- Teacher name
- Progress indicator
- Next Classes List: Displays upcoming classes in a timeline format with hour labels and class details
Schedule Screen
- Full Day Schedule: Displays all classes for the selected day in
TimeClassCardcomponents - Each class shows:
- Start hour in the left column
- Subject and teacher in the main card
- Duration (startHour - endHour)
- Classroom as a tag
- Color-coded accent based on subject type
Profile Screen
- Shows a preview of today’s classes with simplified information
- Links to the full schedule view
