13 lines
471 B
Dart
13 lines
471 B
Dart
import '../../marianumconnect_query.dart';
|
|
import 'get_capabilities_response.dart';
|
|
|
|
/// Fetches the current user's mobile capability flags from
|
|
/// `GET /api/mobile/v1/me/capabilities`. Goes through the shared dio singleton
|
|
/// so the bearer token is attached automatically.
|
|
class GetCapabilities extends MarianumConnectQuery {
|
|
GetCapabilities({super.dio});
|
|
|
|
Future<CapabilitiesResponse> run() =>
|
|
getObject('me/capabilities', CapabilitiesResponse.fromJson);
|
|
}
|