mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-05-06 20:02:59 +00:00
23 lines
492 B
Dart
23 lines
492 B
Dart
import '../Data/BinaryList.dart';
|
|
import '../Core/AsyncReply.dart';
|
|
import 'NetworkConnection.dart';
|
|
|
|
class SendList extends BinaryList
|
|
{
|
|
NetworkConnection connection;
|
|
AsyncReply<List<dynamic>> reply;
|
|
|
|
SendList(NetworkConnection connection, AsyncReply<List<dynamic>> reply)
|
|
{
|
|
this.reply = reply;
|
|
this.connection = connection;
|
|
}
|
|
|
|
@override
|
|
AsyncReply<List<dynamic>> done()
|
|
{
|
|
connection.send(super.toDC());
|
|
return reply;
|
|
}
|
|
}
|