CourseOffering class

Inheritance
Implemented types

Constructors

CourseOffering({required int id, DateTime? fetchedAt, String? courseCode, required int semester, String? number, required String nameZh, String? nameEn, double? credits, int? hours, int? phase, CourseType? courseType, String? status, String? language, String? remarks, required bool inCourseTable, int? enrolled, int? withdrawn, DateTime? studentRosterFetchedAt, DateTime? materialsFetchedAt})
const
CourseOffering.fromJson(Map<String, dynamic> json, {ValueSerializer? serializer})
factory

Properties

courseCode → String?
The course catalog code (e.g., "3601001").
final
courseType → CourseType?
Course type for graduation credit requirements (課程標準).
final
credits → double?
Number of credits as listed in this semester's timetable.
final
enrolled → int?
Number of enrolled students (人).
final
fetchedAt → DateTime?
Timestamp of when complete data was last fetched from the server.
final
hashCode → int
The hash code for this object.
no setteroverride
hours → int?
Number of class hours per week as listed in this semester's timetable.
final
id → int
Auto-incrementing primary key.
final
inCourseTable → bool
Whether this offering appeared in the student's own course table.
final
language → String?
Language of instruction (e.g., "英語").
final
materialsFetchedAt → DateTime?
Last time course materials were refreshed successfully.
final
nameEn → String?
Display name in English as it appears in this semester's timetable.
final
nameZh → String
Display name as it appears in this semester's timetable.
final
number → String?
Course offering number (e.g., "313146", "352902"). Assigned numbers are globally unique across semesters.
final
phase → int?
Course sequence phase/stage number (階段, e.g., "1", "2").
final
remarks → String?
System-generated remarks about this offering (備註).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semester → int
Reference to the semester when this course is offered.
final
status → String?
Enrollment status for special cases (e.g., "撤選" for withdrawal).
final
studentRosterFetchedAt → DateTime?
Last time the I-School Plus student roster was refreshed successfully.
final
withdrawn → int?
Number of withdrawn students (撤).
final

Methods

copyWith({int? id, Value<DateTime?> fetchedAt = const Value.absent(), Value<String?> courseCode = const Value.absent(), int? semester, Value<String?> number = const Value.absent(), String? nameZh, Value<String?> nameEn = const Value.absent(), Value<double?> credits = const Value.absent(), Value<int?> hours = const Value.absent(), Value<int?> phase = const Value.absent(), Value<CourseType?> courseType = const Value.absent(), Value<String?> status = const Value.absent(), Value<String?> language = const Value.absent(), Value<String?> remarks = const Value.absent(), bool? inCourseTable, Value<int?> enrolled = const Value.absent(), Value<int?> withdrawn = const Value.absent(), Value<DateTime?> studentRosterFetchedAt = const Value.absent(), Value<DateTime?> materialsFetchedAt = const Value.absent()}) → CourseOffering
copyWithCompanion(CourseOfferingsCompanion data) → CourseOffering
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColumns(bool nullToAbsent) → Map<String, Expression<Object>>
Converts this object into a map of column names to expressions to insert or update.
override
toCompanion(bool nullToAbsent) → CourseOfferingsCompanion
toJson({ValueSerializer? serializer}) → Map<String, dynamic>
Converts this object into a representation that can be encoded with json. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
override
toJsonString({ValueSerializer? serializer}) → String
Converts this object into a json representation. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override