mirrored_repositories/El3b/lib/Data
import 'package:El3b/Data/DataSource/GameDevelopersRemoteDataSourceImpl.dart';
import 'package:El3b/Domain/DataSource/GameDevelopersRemoteDataSource.dart';
import 'package:El3b/Domain/Models/Developers/Developers.dart';
import 'package:El3b/Domain/Repository/GameDevelopersRepository.dart';


// dependency injection
GameDevelopersRepository injectGameDevelopersRepository(){
  return GameDevelopersRepositoryImpl(remoteDataSource: injectGameDevelopersRemoteDataSource());
}

class GameDevelopersRepositoryImpl implements GameDevelopersRepository {

  GameDevelopersRemoteDataSource remoteDataSource;
  GameDevelopersRepositoryImpl({required this.remoteDataSource});

  @override
  Future<List<Developer>?> getGameDevelopers({required String id}) async{
    var response = await remoteDataSource.getGameDevelopers(id: id);
    return response;
  }

  @override
  Future<Developer?> getGameDeveloperDetails({required String id}) async{
    var response = await remoteDataSource.getGameDeveloperDetails(id: id);
    return response;
  }

}