Aligné avec le backend MessagingResource : - Nouveau module communication (conversations, messages, participants) - Respect des ContactPolicy (qui peut parler à qui par rôle) - Gestion MemberBlock (blocages individuels) - UI : conversations list, conversation detail, broadcast, tiles - BLoC : MessagingBloc avec events (envoyer, démarrer conversation rôle, etc.)
19 lines
441 B
Dart
19 lines
441 B
Dart
/// Use case: Récupérer les conversations v4
|
|
library get_conversations;
|
|
|
|
import 'package:injectable/injectable.dart';
|
|
|
|
import '../entities/conversation.dart';
|
|
import '../repositories/messaging_repository.dart';
|
|
|
|
@lazySingleton
|
|
class GetConversations {
|
|
final MessagingRepository repository;
|
|
|
|
GetConversations(this.repository);
|
|
|
|
Future<List<ConversationSummary>> call() async {
|
|
return await repository.getMesConversations();
|
|
}
|
|
}
|