diff options
author | 2014-04-12 16:16:52 +0700 | |
---|---|---|
committer | 2014-04-12 16:16:52 +0700 | |
commit | e516f02b58215d095e3a364b9b86656b484ee1ac (patch) | |
tree | 63ad10ad701f35d27f694824bd86056d7902bfdf /src/com/juick/User.java | |
parent | 03cc3783963078ad685b4492101516a67f6be37b (diff) |
User constructors
Diffstat (limited to 'src/com/juick/User.java')
-rw-r--r-- | src/com/juick/User.java | 13 |
1 files changed, 13 insertions, 0 deletions
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); |