16 lines
372 B
Dart
16 lines
372 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:marianum_mobile/api/webuntis/webuntisApi.dart';
|
|
|
|
import 'getRoomsResponse.dart';
|
|
|
|
class GetRooms extends WebuntisApi {
|
|
GetRooms() : super("getRooms", null);
|
|
|
|
@override
|
|
Future<GetRoomsResponse> run() async {
|
|
String rawAnswer = await query(this);
|
|
return finalize(GetRoomsResponse.fromJson(jsonDecode(rawAnswer)));
|
|
}
|
|
|
|
} |