getCalendar method
override
Fetches academic calendar events within a date range.
Returns a list of calendar events (e.g., holidays, exam periods,
registration deadlines) between startDate and endDate inclusive.
Requires an active portal session (call login first).
Implementation
@override
Future<List<CalendarEventDto>> getCalendar(
DateTime startDate,
DateTime endDate,
) async {
return calendarResult ??
[
(
id: 60561,
start: DateTime.fromMillisecondsSinceEpoch(1753977600000),
end: DateTime.fromMillisecondsSinceEpoch(1754064000000),
allDay: true,
title: '114學年度第1學期開始',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
(
id: 60574,
start: DateTime.fromMillisecondsSinceEpoch(1757260800000),
end: DateTime.fromMillisecondsSinceEpoch(1757347200000),
allDay: true,
title: '開學暨註冊截止日、開學典禮',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
(
id: 60581,
start: DateTime.fromMillisecondsSinceEpoch(1759766400000),
end: DateTime.fromMillisecondsSinceEpoch(1759852800000),
allDay: true,
title: '期中撤選開始',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
(
id: 60582,
start: DateTime.fromMillisecondsSinceEpoch(1759766400000),
end: DateTime.fromMillisecondsSinceEpoch(1759852800000),
allDay: true,
title: '國文會考',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
(
id: 60589,
start: DateTime.fromMillisecondsSinceEpoch(1762099200000),
end: DateTime.fromMillisecondsSinceEpoch(1762617600000),
allDay: true,
title: '期中考試',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
(
id: 60591,
start: DateTime.fromMillisecondsSinceEpoch(1764259200000),
end: DateTime.fromMillisecondsSinceEpoch(1764320400000),
allDay: false,
title: '日間部期中撤選結束(17:00 截止)、休退學學生退1/3學雜費截止',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
(
id: 60603,
start: DateTime.fromMillisecondsSinceEpoch(1767542400000),
end: DateTime.fromMillisecondsSinceEpoch(1768060800000),
allDay: true,
title: '期末考試',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
(
id: 60605,
start: DateTime.fromMillisecondsSinceEpoch(1768147200000),
end: DateTime.fromMillisecondsSinceEpoch(1768233600000),
allDay: true,
title: '寒假開始、寒宿開始',
place: null,
content: null,
ownerName: '學校行事曆',
creatorName: '教務處',
),
];
}