aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/User.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/juick/User.java')
-rw-r--r--src/com/juick/User.java13
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);