added guardian login with views for their assigned childs
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import '../../marianumconnect_query.dart';
|
||||
import '../timetable_get_week/timetable_get_week_response.dart';
|
||||
|
||||
/// Fetches the weekly timetable of a guardian's child from
|
||||
/// `timetable/child/{childId}`. Same response shape as `timetable/me`.
|
||||
class TimetableGetChildWeek extends MarianumConnectQuery {
|
||||
TimetableGetChildWeek({super.dio});
|
||||
|
||||
Future<TimetableGetWeekResponse> run({
|
||||
required String childId,
|
||||
required DateTime from,
|
||||
required DateTime until,
|
||||
}) => getObject(
|
||||
'timetable/child/${Uri.encodeComponent(childId)}',
|
||||
TimetableGetWeekResponse.fromJson,
|
||||
queryParameters: {'from': isoDate(from), 'until': isoDate(until)},
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user