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

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

class NotificationReadUseCase extends UseCase<ReadNotificationResponse, ReadNotificationRequest>{
  final HomeRepository repository;

  NotificationReadUseCase(this.repository);

  @override
  Future<Either<Failure, ReadNotificationResponse>> call(ReadNotificationRequest params) async {
    return await repository.notificationRead(params);
  }

}