From 1df19b47f7f463e6cafa7dcf877cb42967fff166 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 10 Jan 2016 20:09:38 +0300 Subject: refactoring, part 2 --- src/main/java/com/juick/Message.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java index 8306dd8b..03573aed 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 Tags = new ArrayList(); 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; + } } -- cgit v1.2.3