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

  1. const messageTypeSender = 'sender';
  2. const messageTypeReceiver = 'receiver';
  3. class Message {
  4. String id;
  5. String conversationId;
  6. String symmetricKey;
  7. String data;
  8. String messageType;
  9. String? decryptedData;
  10. Message({
  11. required this.id,
  12. required this.conversationId,
  13. required this.symmetricKey,
  14. required this.data,
  15. required this.messageType,
  16. this.decryptedData,
  17. });
  18. }
  19. class Conversation {
  20. String id;
  21. String friendId;
  22. String recentMessageId;
  23. Conversation({
  24. required this.id,
  25. required this.friendId,
  26. required this.recentMessageId,
  27. });
  28. }