Change timetable view from Dayview to Weekview

Added current day and time hint
This commit is contained in:
MineTec committed 2023-02-22 00:48:50 +01:00
1 parent 88e5a605fb
commit 7a3744a70a
5 files changed
+230 -165

No files matched your search

@@ -8,10 +8,11 @@ import 'getTimetableParams.dart';
import 'getTimetableResponse.dart';
class GetTimetableCache extends RequestCache<GetTimetableResponse> {
int day;
int startdate;
int enddate;
GetTimetableCache({required onUpdate, required this.day}) : super(RequestCache.cacheMinute, onUpdate) {
start("MarianumMobile", "wu-timetable-$day");
GetTimetableCache({required onUpdate, required this.startdate, required this.enddate}) : super(RequestCache.cacheMinute, onUpdate) {
start("MarianumMobile", "wu-timetable-$startdate-$enddate");
}
@override
@@ -29,8 +30,8 @@ class GetTimetableCache extends RequestCache<GetTimetableResponse> {
type: 5,
keyType: GetTimetableParamsOptionsElementKeyType.id,
),
startDate: day,
endDate: day,
startDate: startdate,
endDate: enddate,
teacherFields: GetTimetableParamsOptionsFields.all,
subjectFields: GetTimetableParamsOptionsFields.all,
roomFields: GetTimetableParamsOptionsFields.all,