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_phone_login_usecase.dart';
import 'package:food_delivery_client/food_delivery_client.dart';

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

@injectable
class VerifyPhoneRegisterUseCase
    implements UseCase<SuccessModel, VerifyPhoneNumberParams> {
  final AuthRepository _authRepository;

  VerifyPhoneRegisterUseCase(this._authRepository);

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