ScheduleDto typedef
Course schedule entry from the course selection system.
Implementation
typedef ScheduleDto = ({
/// Course offering number (e.g., "313146", "352902").
String? number,
/// Reference to the course.
ReferenceDto? course,
/// Course sequence phase/stage number (階段, e.g., "1", "2").
int? phase,
/// Number of credits for this course.
double? credits,
/// Number of hours per week.
int? hours,
/// Type of course (e.g., "必", "選", "通", "輔").
String? type,
/// Reference to the instructor.
ReferenceDto? teacher,
/// List of class/program references this course belongs to.
List<ReferenceDto>? classes,
/// Weekly schedule as list of (day, period) tuples.
List<(DayOfWeek, Period)>? schedule,
/// Reference to the classroom location.
ReferenceDto? classroom,
/// Enrollment status for special cases (e.g., "撤選" for withdrawal).
///
/// Normally null for regular enrolled courses.
String? status,
/// Language of instruction.
String? language,
/// Syllabus identifier for fetching course syllabus.
String? syllabusId,
/// Additional remarks or notes about the course.
String? remarks,
});