aboutsummaryrefslogtreecommitdiff
path: root/juick-common
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-06 23:02:14 +0300
committerGravatar Vitaly Takmazov2018-10-06 23:02:14 +0300
commit0b065e1e0547885294d03df54d178587d801a15a (patch)
treecde84364a49e507be61a785e0596489385a511ff /juick-common
parent4b7702d846c281459433cf51dab5669fb3466b12 (diff)
store external reply uri
Diffstat (limited to 'juick-common')
-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);
}