From e24f7a7ce9eb765aa2f581defbe20433a647700d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 12 Apr 2018 12:16:47 +0300 Subject: www: badge for unread thread --- juick-common/src/main/java/com/juick/Message.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'juick-common/src/main/java/com/juick') 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 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; + } } -- cgit v1.2.3