import '../../marianumconnect_query.dart';
import 'get_ticker_response.dart';

/// Fetches the current "Aktuelles" ticker post from
/// `GET /api/mobile/v1/ticker`. Bearer token is attached by the shared dio.
class GetTicker extends MarianumConnectQuery {
  GetTicker({super.dio});

  Future<TickerResponse> run() =>
      getObject('ticker', TickerResponse.fromJson);
}
