aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/service/MessagesService.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-11 21:34:14 +0300
committerGravatar Vitaly Takmazov2018-04-11 21:34:14 +0300
commitad99117a15062a3819dad1f52a072e9694a954df (patch)
tree61b47950cca3adba91ef4f7c8ce80c1a1f8a531f /juick-common/src/main/java/com/juick/service/MessagesService.java
parent47254ab8555162bc121c7b618fff42fc64b9454c (diff)
server: last read marker for threads
Diffstat (limited to 'juick-common/src/main/java/com/juick/service/MessagesService.java')
-rw-r--r--juick-common/src/main/java/com/juick/service/MessagesService.java6
1 files changed, 4 insertions, 2 deletions
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 2dce2806..968e64be 100644
--- a/juick-common/src/main/java/com/juick/service/MessagesService.java
+++ b/juick-common/src/main/java/com/juick/service/MessagesService.java
@@ -29,7 +29,7 @@ import java.util.List;
public interface MessagesService {
int createMessage(int uid, String txt, String attachment, Collection<com.juick.Tag> tags);
- int createReply(int mid, int rid, int uid, String txt, String attachment);
+ int createReply(int mid, int rid, User user, String txt, String attachment);
int getReplyIDIncrement(int mid);
@@ -95,7 +95,7 @@ public interface MessagesService {
List<com.juick.Message> getMessages(List<Integer> mids);
- List<com.juick.Message> getReplies(int mid);
+ List<com.juick.Message> getReplies(User user, int mid);
boolean setMessagePopular(int mid, int popular);
@@ -110,4 +110,6 @@ public interface MessagesService {
List<ResponseReply> getLastReplies(int hours);
List<Integer> getPopularCandidates();
+
+ void setLastReadComment(User user, Integer mid, Integer rid);
}