diff options
author | Vitaly Takmazov | 2019-06-19 19:14:27 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-06-19 19:14:27 +0300 |
commit | f5136502fd12ec88af216001774d6128d8e6cdaf (patch) | |
tree | 9152895316155aca730f40ae7dfaabdf1241b91d /src/main/java/com/juick/User.java | |
parent | 993b4665b11e04ee1b67e16f14292491fbb380bb (diff) |
API: add tag stats to /me endpoint
Diffstat (limited to 'src/main/java/com/juick/User.java')
-rw-r--r-- | src/main/java/com/juick/User.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/com/juick/User.java b/src/main/java/com/juick/User.java index 5407fa95..8c0e68bc 100644 --- a/src/main/java/com/juick/User.java +++ b/src/main/java/com/juick/User.java @@ -18,6 +18,7 @@ package com.juick; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import com.juick.model.TagStats; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.ToStringBuilder; @@ -57,9 +58,11 @@ public class User implements Serializable { private String country; private String url; private String description; + private List<TagStats> tagStats; public User() { tokens = new ArrayList<>(); + tagStats = new ArrayList<>(); uri = URI.create(StringUtils.EMPTY); } @@ -263,4 +266,8 @@ public class User implements Serializable { public void setDescription(String description) { this.description = description; } + + public List<TagStats> getTagStats() { + return tagStats; + } } |