mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-09-14 04:23:17 +00:00
18 lines
386 B
Dart
18 lines
386 B
Dart
import '../Data/BinaryList.dart';
|
|
import '../Core/AsyncReply.dart';
|
|
import 'NetworkConnection.dart';
|
|
|
|
class SendList extends BinaryList {
|
|
NetworkConnection connection;
|
|
AsyncReply<List<dynamic>?>? reply;
|
|
|
|
SendList(this.connection, this.reply) {}
|
|
|
|
@override
|
|
AsyncReply<List<dynamic>?> done() {
|
|
connection.send(super.toDC());
|
|
|
|
return reply ?? AsyncReply.ready([]);
|
|
}
|
|
}
|