Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
655 B

const messageTypeSender = 'sender';
const messageTypeReceiver = 'receiver';
class Message {
String id;
String conversationId;
String symmetricKey;
String data;
String messageType;
String? decryptedData;
Message({
required this.id,
required this.conversationId,
required this.symmetricKey,
required this.data,
required this.messageType,
this.decryptedData,
});
}
class Conversation {
String id;
String friendId;
String recentMessageId;
Conversation({
required this.id,
required this.friendId,
required this.recentMessageId,
});
}