From ad99117a15062a3819dad1f52a072e9694a954df Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 11 Apr 2018 21:34:14 +0300 Subject: server: last read marker for threads --- juick-common/src/main/java/com/juick/service/MessagesService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'juick-common/src/main/java/com/juick/service') 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 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 getMessages(List mids); - List getReplies(int mid); + List getReplies(User user, int mid); boolean setMessagePopular(int mid, int popular); @@ -110,4 +110,6 @@ public interface MessagesService { List getLastReplies(int hours); List getPopularCandidates(); + + void setLastReadComment(User user, Integer mid, Integer rid); } -- cgit v1.2.3