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);
}
