new project stable version
This commit is contained in:
12
lib/domain/usecase/get_notifications_stream_usecase.dart
Normal file
12
lib/domain/usecase/get_notifications_stream_usecase.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'package:be_happy/domain/entities/client_notification.dart';
|
||||
import 'package:be_happy/domain/repositories/notification_repository.dart';
|
||||
|
||||
class GetNotificationsStreamUseCase {
|
||||
final NotificationRepository repository;
|
||||
|
||||
GetNotificationsStreamUseCase(this.repository);
|
||||
|
||||
Stream<ClientNotification> call() {
|
||||
return repository.getNotificationsStream();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user