Files
be_happy_public/lib/domain/usecase/cancel_notification_usecase.dart
2026-05-12 12:02:40 +03:00

13 lines
378 B
Dart

import 'package:be_happy/domain/entities/client_notification.dart';
import 'package:be_happy/domain/repositories/notification_repository.dart';
class CancelNotificationUseCase {
final NotificationRepository repository;
CancelNotificationUseCase(this.repository);
Future<ClientNotification> call(int id) async {
return await repository.cancelNotification(id);
}
}