aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/entities/Message.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/gultsch/chat/entities/Message.java')
-rw-r--r--src/de/gultsch/chat/entities/Message.java7
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;