42 lines
849 B
Dart
42 lines
849 B
Dart
enum MessageStatus { sending, sent, received, failed, ignored }
|
|
|
|
class ChatModel {
|
|
int? id;
|
|
String? localId;
|
|
String body;
|
|
String? rawBody;
|
|
String? rawViewBody;
|
|
String? encryptedPayload;
|
|
String? statusLabel;
|
|
String? packetId;
|
|
String? packetMode;
|
|
String? rawPacketId;
|
|
int date;
|
|
bool isMe;
|
|
MessageStatus status;
|
|
bool isSecure;
|
|
bool canRetryDecryption;
|
|
bool isRead;
|
|
bool isPendingMultipart;
|
|
|
|
ChatModel({
|
|
this.id,
|
|
this.localId,
|
|
required this.body,
|
|
this.rawBody,
|
|
this.rawViewBody,
|
|
this.encryptedPayload,
|
|
this.statusLabel,
|
|
this.packetId,
|
|
this.packetMode,
|
|
this.rawPacketId,
|
|
required this.date,
|
|
required this.isMe,
|
|
required this.status,
|
|
this.isSecure = false,
|
|
this.canRetryDecryption = false,
|
|
this.isPendingMultipart = false,
|
|
this.isRead = true,
|
|
});
|
|
}
|