diff options
author | Vitaly Takmazov | 2018-04-12 12:16:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-12 12:16:47 +0300 |
commit | e24f7a7ce9eb765aa2f581defbe20433a647700d (patch) | |
tree | 7b2ecf44396504df8c577a18c9347c563a73fb0d /juick-common | |
parent | b23f3b9182d78dfabb37b6a1c21d060a365b2574 (diff) |
www: badge for unread thread
Diffstat (limited to 'juick-common')
-rw-r--r-- | juick-common/src/main/java/com/juick/Message.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/Message.java b/juick-common/src/main/java/com/juick/Message.java index 155c1747..8aa8219e 100644 --- a/juick-common/src/main/java/com/juick/Message.java +++ b/juick-common/src/main/java/com/juick/Message.java @@ -43,6 +43,7 @@ public class Message implements Comparable { private final List<Tag> tags; private Instant ts; private Instant updated; + private boolean unread; @XmlTransient @JsonIgnore public int TimeAgo = 0; @@ -291,4 +292,12 @@ public class Message implements Comparable { public void setUpdated(Instant updated) { this.updated = updated; } + + public boolean isUnread() { + return unread; + } + + public void setUnread(boolean unread) { + this.unread = unread; + } } |