diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-01 15:07:20 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-01 15:07:20 +0100 |
commit | 53d9c9997a508985f0e19aba928bfa25c80ba23e (patch) | |
tree | 5e79bfe04db8d51091bcf9b94baa979217e9d542 /src/de/gultsch/chat/entities/Message.java | |
parent | 43531113b798cda6b2f76257641f38b0af986437 (diff) |
more cleanup. more listeners
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 130435b9..530a4db4 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; |