From 70a50b2252ed313e3aee1a9ee2f33be8a46cb028 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Mar 2018 19:18:03 +0300 Subject: sort discussions by last replay date --- juick-core/src/main/java/com/juick/Message.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'juick-core') diff --git a/juick-core/src/main/java/com/juick/Message.java b/juick-core/src/main/java/com/juick/Message.java index 4a693558..0d91cc63 100644 --- a/juick-core/src/main/java/com/juick/Message.java +++ b/juick-core/src/main/java/com/juick/Message.java @@ -42,6 +42,7 @@ public class Message implements Comparable { private User user = null; private final List tags; private Instant ts; + private Instant updated; @XmlTransient @JsonIgnore public int TimeAgo = 0; @@ -339,4 +340,12 @@ public class Message implements Comparable { public void setAttachment(Attachment attachment) { this.attachment = attachment; } + + public Instant getUpdated() { + return updated; + } + + public void setUpdated(Instant updated) { + this.updated = updated; + } } -- cgit v1.2.3