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

/// Use case for retrieving the user's assigned shifts.
///
/// This use case delegates to [ShiftsRepositoryInterface].
class GetMyShiftsUseCase extends NoInputUseCase<List<Shift>> {
  final ShiftsRepositoryInterface repository;

  GetMyShiftsUseCase(this.repository);

  @override
  Future<List<Shift>> call() async {
    return repository.getMyShifts();
  }
}

