diff options
Diffstat (limited to 'src/de/gultsch/chat/entities/Message.java')
-rw-r--r-- | src/de/gultsch/chat/entities/Message.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/de/gultsch/chat/entities/Message.java b/src/de/gultsch/chat/entities/Message.java index 130435b92..530a4db42 100644 --- a/src/de/gultsch/chat/entities/Message.java +++ b/src/de/gultsch/chat/entities/Message.java @@ -39,7 +39,12 @@ public class Message extends AbstractEntity { Message.STATUS_UNSEND); this.conversation = conversation; } - + + public Message(Conversation conversation, String counterpart, String body, int encryption, int status) { + this(java.util.UUID.randomUUID().toString(), conversation.getUuid(),counterpart, body, System.currentTimeMillis(), encryption,status); + this.conversation = conversation; + } + public Message(String uuid, String conversationUUid, String counterpart, String body, long timeSent, int encryption, int status) { this.uuid = uuid; |