mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-09-14 04:23:17 +00:00
package
This commit is contained in:
22
lib/src/Net/SendList.dart
Normal file
22
lib/src/Net/SendList.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user