mirrored_repositories/El3b/lib/Domain
import 'package:El3b/Data/Repository/RAWGGamesRepositoryImpl.dart';
import 'package:El3b/Domain/Repository/RAWGGamesRepository.dart';


// dependency injection
DeleteGameFromWishListUseCase injectDeleteGameFromWishListUseCase(){
  return DeleteGameFromWishListUseCase(repository:  injectRAWGGamesRepository());
}

class DeleteGameFromWishListUseCase {

  RAWGGamesRepository repository ;
  DeleteGameFromWishListUseCase({required this.repository});

  Future<int> invoke({required int game , required String uid})async {
    var response = await repository.deleteGameFromWishList(game: game, uid: uid);
    return response;
  }

}