aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/Message.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/Message.java')
-rw-r--r--src/main/java/com/juick/Message.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java
index bd2c91b5..10380826 100644
--- a/src/main/java/com/juick/Message.java
+++ b/src/main/java/com/juick/Message.java
@@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.juick.adapters.SimpleDateAdapter;
+import com.juick.model.Entity;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
@@ -82,6 +83,8 @@ public class Message implements Comparable {
private Set<String> recommendations;
+ private List<Entity> entities;
+
public Message() {
tags = new ArrayList<>();
reactions = new HashSet<>();
@@ -375,4 +378,12 @@ public class Message implements Comparable {
public void setReplyToUri(URI replyToUri) {
this.replyToUri = replyToUri;
}
+
+ public List<Entity> getEntities() {
+ return entities;
+ }
+
+ public void setEntities(List<Entity> entities) {
+ this.entities = entities;
+ }
}