12 lines
315 B
Dart
12 lines
315 B
Dart
import '../entities/client_notification.dart';
|
|
import '../repositories/notification_repository.dart';
|
|
|
|
class GetNotificationsUsecase {
|
|
final NotificationRepository repository;
|
|
|
|
GetNotificationsUsecase(this.repository);
|
|
|
|
Future<List<ClientNotification>> call() {
|
|
return repository.getNotifications();
|
|
}
|
|
} |