import 'package:dartz/dartz.dart';
import 'package:food_delivery_client/core/exceptions/failure.dart';
import 'package:food_delivery_client/feature/auth/domain/repository/auth_repository.dart';
import 'package:food_delivery_client/feature/common/common.dart';
import 'package:food_delivery_client/food_delivery_client.dart';

import '../../../../core/usecase/usecase.dart';
@injectable
class VerifyPhoneNumberLoginUseCase
    implements UseCase<SuccessModel, VerifyPhoneNumberParams> {
  final AuthRepository _authRepository;

  VerifyPhoneNumberLoginUseCase(this._authRepository);

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

class VerifyPhoneNumberParams {
  final String phoneNumber;

  VerifyPhoneNumberParams({required this.phoneNumber});
}
