diff options
author | Vitaly Takmazov | 2023-01-22 20:27:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-22 20:57:06 +0300 |
commit | 478a7bfba88401c1996d0be5a144459011b60e10 (patch) | |
tree | 2bdbf40a9910c799673874d64a87a4ef0e5dc04b /src/main/java/com/juick/model/Message.java | |
parent | 9ad08dc78e0cdbe2cdebf10a96c800e72d48e48b (diff) |
db refactoring: merge getMessages with isSubscribed query
Diffstat (limited to 'src/main/java/com/juick/model/Message.java')
-rw-r--r-- | src/main/java/com/juick/model/Message.java | 10 |
1 files changed, 10 insertions, 0 deletions
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<Message>, Serializable { private List<Entity> entities; + private boolean subscribed; + public Message() { tags = new LinkedHashSet<>(); reactions = new HashSet<>(); @@ -384,4 +386,12 @@ public class Message implements Comparable<Message>, Serializable { public void setEntities(List<Entity> entities) { this.entities = entities; } + + public boolean isSubscribed() { + return subscribed; + } + + public void setSubscribed(boolean subscribed) { + this.subscribed = subscribed; + } } |