mirror of
https://github.com/AOSSIE-Org/OpenPeerChat-flutter.git
synced 2025-08-14 18:47:51 +08:00
19 lines
407 B
Dart
19 lines
407 B
Dart
/// This is the model to transfer the message from one device to another.
|
|
class Payload {
|
|
String id = '';
|
|
String sender = '';
|
|
String receiver = '';
|
|
String message = '';
|
|
String timestamp = '';
|
|
bool broadcast = true;
|
|
String type = 'Payload';
|
|
|
|
Payload(this.id, this.sender, this.receiver, this.message,this.timestamp,);
|
|
}
|
|
|
|
class Ack {
|
|
String id = '';
|
|
String type = "Ack";
|
|
Ack(this.id);
|
|
}
|