reserveSlot abstract method

Future<Reservation> reserveSlot({
  1. required String token,
  2. required int slotId,
  3. required DateTime date,
  4. int? studentId,
})

Reserves the slot with slotId on date.

If studentId is provided, the reservation will be made for the student with the given id. Note: User associated with token must be a supervisor of the slot.

Implementation

Future<Reservation> reserveSlot({required String token, required int slotId, required DateTime date, int? studentId});