diff options
author | Ugnich Anton | 2014-04-12 16:16:52 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-04-12 16:16:52 +0700 |
commit | e516f02b58215d095e3a364b9b86656b484ee1ac (patch) | |
tree | 63ad10ad701f35d27f694824bd86056d7902bfdf | |
parent | 03cc3783963078ad685b4492101516a67f6be37b (diff) |
User constructors
-rw-r--r-- | src/com/juick/Message.java | 4 | ||||
-rw-r--r-- | src/com/juick/User.java | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/com/juick/Message.java b/src/com/juick/Message.java index 4c81e2b7..eb8f5b9a 100644 --- a/src/com/juick/Message.java +++ b/src/com/juick/Message.java @@ -46,6 +46,8 @@ public class Message { public String Photo = null; public String Video = null; public Place Place = null; + public int Likes = 0; + public boolean UserLike = false; public ArrayList<Message> childs = new ArrayList<Message>(); public Message() { @@ -69,6 +71,8 @@ public class Message { Photo = msg.Photo; Video = msg.Video; Place = msg.Place; + Likes = msg.Likes; + UserLike = msg.UserLike; childs = msg.childs; } diff --git a/src/com/juick/User.java b/src/com/juick/User.java index 7ea9df4c..6dc5e90f 100644 --- a/src/com/juick/User.java +++ b/src/com/juick/User.java @@ -31,6 +31,19 @@ public class User { public int MessagesCount = 0; public String AuthHash = null; + public User() { + } + + public User(User u) { + UID = u.UID; + UName = u.UName; + Avatar = u.Avatar; + FullName = u.FullName; + JID = u.JID; + MessagesCount = u.MessagesCount; + AuthHash = u.AuthHash; + } + @Override public boolean equals(Object obj) { return (obj instanceof User && ((User) obj).UID == this.UID); |