import 'package:cargocalculaterapp/core/error/failure.dart';
import 'package:cargocalculaterapp/features/home/data/models/notification_response.dart';
import 'package:dartz/dartz.dart';

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

class NotificationUseCase
    extends UseCase<NotificationResponse, Map<String, dynamic>> {
  final HomeRepository repository;

  NotificationUseCase(this.repository);

  @override
  Future<Either<Failure, NotificationResponse>> call(
    Map<String, dynamic> params,
  ) async {
    return await repository.notification(params);
  }
}
