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

/// Use case for retrieving the user's scheduled shift for today.
class GetTodaysShiftUseCase implements NoInputUseCase<Shift?> {
  final ClockInRepositoryInterface _repository;

  GetTodaysShiftUseCase(this._repository);

  @override
  Future<Shift?> call() {
    return _repository.getTodaysShift();
  }
}
