import 'package:dartz/dartz.dart';
import 'package:food_delivery_client/feature/auth/domain/repository/auth_repository.dart';
import 'package:food_delivery_client/feature/auth/domain/usecases/verify_otp_code_login_usecase.dart';
import 'package:food_delivery_client/food_delivery_client.dart';

import '../../../../core/usecase/usecase.dart';

@injectable
class VerifyOtpCodeRegisterUseCase
    implements UseCase<SuccessModel, VerifyOtpCodeParams> {
  final AuthRepository _authRepository;

  VerifyOtpCodeRegisterUseCase(this._authRepository);

  @override
  Future<Either<Failure, SuccessModel>> call(VerifyOtpCodeParams params) async {
    return _authRepository.verifyOtpCodeRegister(params: params);
  }
}
