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.)
26 lines
641 B
Dart
26 lines
641 B
Dart
/// Use case: Broadcast — non utilisé en v4 (remplacé par canal rôle)
|
|
///
|
|
/// Conservé pour la compatibilité du graphe de dépendances.
|
|
library send_broadcast;
|
|
|
|
import 'package:injectable/injectable.dart';
|
|
|
|
import '../repositories/messaging_repository.dart';
|
|
|
|
@lazySingleton
|
|
class SendBroadcast {
|
|
final MessagingRepository repository;
|
|
|
|
SendBroadcast(this.repository);
|
|
|
|
/// Démarre un canal de communication avec le rôle BUREAU
|
|
Future<void> call({
|
|
required String organisationId,
|
|
}) async {
|
|
await repository.demarrerConversationRole(
|
|
roleCible: 'PRESIDENT',
|
|
organisationId: organisationId,
|
|
);
|
|
}
|
|
}
|