aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-10 20:09:38 +0300
committerGravatar Vitaly Takmazov2016-01-10 20:09:38 +0300
commit1df19b47f7f463e6cafa7dcf877cb42967fff166 (patch)
tree60e3ea3763856f5d364c8fe2d60866ae2b4dcaf4 /src/main/java/com/juick
parentd7f4564910568e289273f575b7972a745661956d (diff)
refactoring, part 2
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/Message.java12
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 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<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;
+ }
}