From c61ba1deb4cf58bc44e1dfb272052dd64150eb49 Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Sat, 26 Nov 2016 13:19:17 +0700 Subject: working spring security config --- juick-core/src/main/java/com/juick/User.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'juick-core/src/main/java') diff --git a/juick-core/src/main/java/com/juick/User.java b/juick-core/src/main/java/com/juick/User.java index 03805a65..364bc6ca 100644 --- a/juick-core/src/main/java/com/juick/User.java +++ b/juick-core/src/main/java/com/juick/User.java @@ -39,6 +39,7 @@ public class User { private String authHash; private boolean banned; private String credentials; + private String lang; public User() { } @@ -52,6 +53,7 @@ public class User { this.messagesCount = u.getUnreadCount(); this.authHash = u.getAuthHash(); this.banned = u.isBanned(); + this.credentials = u.getCredentials(); } @Override @@ -75,6 +77,7 @@ public class User { .append("fullName", fullName) .append("jid", jid) .append("messagesCount", messagesCount) + .append("lang", lang) .append("banned", banned) .toString(); } @@ -164,4 +167,20 @@ public class User { public void setCredentials(String credentials) { this.credentials = credentials; } + + public String getLang() { + return lang; + } + + public void setLang(String lang) { + this.lang = lang; + } + + public int getMessagesCount() { + return messagesCount; + } + + public void setMessagesCount(int messagesCount) { + this.messagesCount = messagesCount; + } } -- cgit v1.2.3