aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/entities/Message.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-24 23:58:51 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-24 23:58:51 +0100
commitdf9dcb1060d44a719e2892446b62cde884a880cf (patch)
treeed3bf01c8f249162018b33460f81b52ac2f618fb /src/de/gultsch/chat/entities/Message.java
parentb273390e26e1d28f6df01fb421d8554cb7588a58 (diff)
basic persistance layer. refactor some parts of the conversation activity
Diffstat (limited to 'src/de/gultsch/chat/entities/Message.java')
-rw-r--r--src/de/gultsch/chat/entities/Message.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/entities/Message.java b/src/de/gultsch/chat/entities/Message.java
new file mode 100644
index 00000000..3b4e2115
--- /dev/null
+++ b/src/de/gultsch/chat/entities/Message.java
@@ -0,0 +1,19 @@
+package de.gultsch.chat.entities;
+
+public class Message {
+
+ String msg;
+
+ public Message(String msg) {
+ this.msg = msg;
+ }
+
+ public String toString() {
+ return msg;
+ }
+
+ public String getTimeReadable() {
+ return "2 min";
+ }
+
+}