import 'package:krow_core/core.dart';
import '../repositories/clock_in_repository_interface.dart';

/// Use case for retrieving the activity log.
class GetActivityLogUseCase implements NoInputUseCase<List<Map<String, dynamic>>> {
  final ClockInRepositoryInterface _repository;

  GetActivityLogUseCase(this._repository);

  @override
  Future<List<Map<String, dynamic>>> call() {
    return _repository.getActivityLog();
  }
}
