aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-26 13:19:17 +0700
committerGravatar Alexander Alexeev2016-11-26 13:19:17 +0700
commitc61ba1deb4cf58bc44e1dfb272052dd64150eb49 (patch)
tree7b25d5d63570c7bcd498c70e4e89dc9a4786ed21 /juick-core/src/main/java/com/juick
parent8948fecade6f82e3853868e6edadbf343c04968f (diff)
working spring security config
Diffstat (limited to 'juick-core/src/main/java/com/juick')
-rw-r--r--juick-core/src/main/java/com/juick/User.java19
1 files changed, 19 insertions, 0 deletions
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;
+ }
}