diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/juick/Message.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java index 8306dd8b2..03573aed5 100644 --- a/src/main/java/com/juick/Message.java +++ b/src/main/java/com/juick/Message.java @@ -32,7 +32,7 @@ public class Message { private int RID = 0; public int ReplyTo = 0; - public String Text = null; + private String Text = null; private User User = null; public ArrayList<String> Tags = new ArrayList<String>(); public Date Timestamp = null; @@ -60,7 +60,7 @@ public class Message { setMID(msg.getMID()); setRID(msg.getRID()); ReplyTo = msg.ReplyTo; - Text = msg.Text; + setText(msg.getText()); setUser(msg.getUser()); Tags = msg.Tags; Timestamp = msg.Timestamp; @@ -198,4 +198,12 @@ public class Message { public void setUser(com.juick.User user) { User = user; } + + public String getText() { + return Text; + } + + public void setText(String text) { + Text = text; + } } |