aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-11 13:12:35 +0700
committerGravatar Vitaly Takmazov2016-12-11 18:24:38 +0300
commit7f9901ea4b435caf4700ac5d34450f62acccd5a5 (patch)
tree4e8d690107d9f00ca8048d5645df53a19ad3438d /juick-server/src/main
parent2e4b161d61e811240d41ab44771f68acd3e2ab42 (diff)
finalize fields for AnonymUser
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/entity/AnonymUser.java56
1 files changed, 55 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/entity/AnonymUser.java b/juick-server/src/main/java/com/juick/entity/AnonymUser.java
index 071f5434..ad14dd30 100644
--- a/juick-server/src/main/java/com/juick/entity/AnonymUser.java
+++ b/juick-server/src/main/java/com/juick/entity/AnonymUser.java
@@ -5,11 +5,21 @@ import com.juick.User;
/**
* Created by aalexeev on 12/11/16.
*/
-public class AnonymUser extends User {
+public final class AnonymUser extends User {
public static final AnonymUser INSTANCE = new AnonymUser();
private AnonymUser() {
+ super.setUid(getUid());
+ super.setName(getName());
+ super.setAvatar(getAvatar());
+ super.setFullName(getFullName());
+ super.setJid(getJid());
+ super.setMessagesCount(getMessagesCount());
+ super.setAuthHash(getAuthHash());
+ super.setBanned(isBanned());
+ super.setCredentials(getCredentials());
+ super.setLang(getLang());
}
@Override
@@ -76,4 +86,48 @@ public class AnonymUser extends User {
public boolean isAnonym() {
return true;
}
+
+ @Override
+ public void setUid(int uid) {
+ }
+
+ @Override
+ public void setName(String name) {
+ }
+
+ @Override
+ public void setFullName(String fullName) {
+ }
+
+ @Override
+ public void setJid(String jid) {
+ }
+
+ @Override
+ public void setAuthHash(String authHash) {
+ }
+
+ @Override
+ public void setUnreadCount(Integer count) {
+ }
+
+ @Override
+ public void setBanned(boolean banned) {
+ }
+
+ @Override
+ public void setAvatar(Object avatar) {
+ }
+
+ @Override
+ public void setCredentials(String credentials) {
+ }
+
+ @Override
+ public void setLang(String lang) {
+ }
+
+ @Override
+ public void setMessagesCount(int messagesCount) {
+ }
}