17 lines
410 B
Dart
17 lines
410 B
Dart
import '../state/app_interaction_state.dart';
|
|
|
|
abstract class OutboundRepository {
|
|
Future<void> recordOutbound(OutboundEvent event);
|
|
}
|
|
|
|
class MemoryOutboundRepository implements OutboundRepository {
|
|
final List<OutboundEvent> _events = [];
|
|
|
|
List<OutboundEvent> get events => List.unmodifiable(_events);
|
|
|
|
@override
|
|
Future<void> recordOutbound(OutboundEvent event) async {
|
|
_events.add(event);
|
|
}
|
|
}
|