aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main')
-rw-r--r--juick-common/src/main/java/com/juick/Message.java10
-rw-r--r--juick-common/src/main/java/com/juick/service/MessagesService.java4
2 files changed, 14 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/Message.java b/juick-common/src/main/java/com/juick/Message.java
index 212cb2fa..de419b9b 100644
--- a/juick-common/src/main/java/com/juick/Message.java
+++ b/juick-common/src/main/java/com/juick/Message.java
@@ -25,6 +25,7 @@ import org.apache.commons.lang3.builder.ToStringBuilder;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import java.net.URI;
import java.time.Instant;
import java.util.ArrayList;
import java.util.HashSet;
@@ -75,6 +76,7 @@ public class Message implements Comparable {
@XmlTransient
private Set<Reaction> reactions;
private boolean service;
+ private URI replyUri;
private Set<String> recommendations;
@@ -347,4 +349,12 @@ public class Message implements Comparable {
public void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt;
}
+
+ public URI getReplyUri() {
+ return replyUri;
+ }
+
+ public void setReplyUri(URI replyUri) {
+ this.replyUri = replyUri;
+ }
}
diff --git a/juick-common/src/main/java/com/juick/service/MessagesService.java b/juick-common/src/main/java/com/juick/service/MessagesService.java
index 5a3ff30a..f80fe32f 100644
--- a/juick-common/src/main/java/com/juick/service/MessagesService.java
+++ b/juick-common/src/main/java/com/juick/service/MessagesService.java
@@ -17,10 +17,12 @@
package com.juick.service;
+import com.juick.Message;
import com.juick.Reaction;
import com.juick.User;
import com.juick.model.ResponseReply;
+import java.net.URI;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -128,4 +130,6 @@ public interface MessagesService {
List<Integer> getUnread(User user);
boolean updateMessage(Integer mid, Integer rid, String body);
+
+ boolean updateReplyUri(Message reply, URI replyUri);
}