aboutsummaryrefslogtreecommitdiff
path: root/juick-core
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-11 00:52:57 +0700
committerGravatar Vitaly Takmazov2016-12-11 18:24:37 +0300
commitac6c86ddd482721e7011dcb727e4099b8cdf84b1 (patch)
tree233ff85e261037b0949e4aa5105ca0dbcd22e9c4 /juick-core
parent5ff660e5f3e73382781f854a0afc350d2ad6d626 (diff)
anonymous user support
Diffstat (limited to 'juick-core')
-rw-r--r--juick-core/src/main/java/com/juick/User.java6
1 files changed, 6 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 e0bc490c..84f2b396 100644
--- a/juick-core/src/main/java/com/juick/User.java
+++ b/juick-core/src/main/java/com/juick/User.java
@@ -184,4 +184,10 @@ public class User {
public void setMessagesCount(int messagesCount) {
this.messagesCount = messagesCount;
}
+
+ @XmlTransient
+ @JsonIgnore
+ public boolean isAnonym() {
+ return false;
+ }
}