diff options
author | 2018-03-01 19:18:03 +0300 | |
---|---|---|
committer | 2018-03-01 19:49:10 +0300 | |
commit | 70a50b2252ed313e3aee1a9ee2f33be8a46cb028 (patch) | |
tree | cf1f15f826ef21f2f431e242b9db50b9bcbf3dbf /juick-core/src/main/java/com/juick | |
parent | f92fb49bfab851d6de2480cf0359920516bfe050 (diff) |
sort discussions by last replay date
Diffstat (limited to 'juick-core/src/main/java/com/juick')
-rw-r--r-- | juick-core/src/main/java/com/juick/Message.java | 9 |
1 files changed, 9 insertions, 0 deletions
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<Tag> 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; + } } |