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

/// Use case for getting the current attendance status (check-in/out times).
class GetAttendanceStatusUseCase implements NoInputUseCase<AttendanceStatus> {
  final ClockInRepositoryInterface _repository;

  GetAttendanceStatusUseCase(this._repository);

  @override
  Future<AttendanceStatus> call() {
    return _repository.getAttendanceStatus();
  }
}
