From 478a7bfba88401c1996d0be5a144459011b60e10 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 22 Jan 2023 20:27:45 +0300 Subject: db refactoring: merge getMessages with isSubscribed query --- src/main/java/com/juick/model/Message.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java/com/juick/model') diff --git a/src/main/java/com/juick/model/Message.java b/src/main/java/com/juick/model/Message.java index cfd2582b..d5066af6 100644 --- a/src/main/java/com/juick/model/Message.java +++ b/src/main/java/com/juick/model/Message.java @@ -90,6 +90,8 @@ public class Message implements Comparable, Serializable { private List entities; + private boolean subscribed; + public Message() { tags = new LinkedHashSet<>(); reactions = new HashSet<>(); @@ -384,4 +386,12 @@ public class Message implements Comparable, Serializable { public void setEntities(List entities) { this.entities = entities; } + + public boolean isSubscribed() { + return subscribed; + } + + public void setSubscribed(boolean subscribed) { + this.subscribed = subscribed; + } } -- cgit v1.2.3