import 'package:krow_data_connect/krow_data_connect.dart';
import '../../domain/repositories/experience_repository_interface.dart';

/// Implementation of [ExperienceRepositoryInterface] that delegates to Data Connect.
class ExperienceRepositoryImpl implements ExperienceRepositoryInterface {
  final ProfileRepositoryMock _mockRepository;

  /// Creates a [ExperienceRepositoryImpl] with the given [ProfileRepositoryMock].
  ExperienceRepositoryImpl(this._mockRepository);

  @override
  Future<List<String>> getIndustries(String staffId) {
    return _mockRepository.getStaffIndustries(staffId);
  }

  @override
  Future<List<String>> getSkills(String staffId) {
    return _mockRepository.getStaffSkills(staffId);
  }

  @override
  Future<void> saveExperience(
    String staffId,
    List<String> industries,
    List<String> skills,
  ) {
    return _mockRepository.saveExperience(staffId, industries, skills);
  }
}
