mirrored_repositories/flutter_movie/lib/features/movie/domain
import 'package:flutter_movie/features/movie/domain/entities/movie_entity.dart';
import 'package:dartz/dartz.dart';
import 'package:flutter_movie/features/movie/domain/usecases/get_movies_usecase.dart';

import '../repositories/get_movies_repository.dart';

class GetMoviesUseCaseImp implements GetMoviesUseCase {
  final GetMoviesRepository _getMoviesRepository;
  GetMoviesUseCaseImp(this._getMoviesRepository);

  @override
  Future<Either<Exception, MovieEntity>> call() async {
    return await _getMoviesRepository();
  }
}
