import 'package:cargocalculaterapp/core/error/failure.dart';
import 'package:cargocalculaterapp/core/usecase/usecase.dart';
import 'package:cargocalculaterapp/features/auth/data/model/fcm_add_request.dart';
import 'package:cargocalculaterapp/features/auth/data/model/fcm_add_response.dart';
import 'package:dartz/dartz.dart';

import '../repository/auth_repository.dart';

class FcmAddUseCase extends UseCase<FcmAddResponse, FcmAddRequest> {
  final AuthRepository repository;

  FcmAddUseCase(this.repository);

  @override
  Future<Either<Failure, FcmAddResponse>> call(FcmAddRequest params) async {
    return await repository.fcmAdd(params);
  }
}
