aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/service
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main/java/com/juick/service')
-rw-r--r--juick-common/src/main/java/com/juick/service/MessagesService.java8
1 files changed, 8 insertions, 0 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 34c15271d..853e42713 100644
--- a/juick-common/src/main/java/com/juick/service/MessagesService.java
+++ b/juick-common/src/main/java/com/juick/service/MessagesService.java
@@ -17,11 +17,14 @@
package com.juick.service;
+import com.juick.Reaction;
import com.juick.User;
import com.juick.server.helpers.ResponseReply;
import java.util.Collection;
import java.util.List;
+import java.util.Map;
+import java.util.Set;
/**
* Created by aalexeev on 11/13/16.
@@ -41,6 +44,9 @@ public interface MessagesService {
RecommendStatus recommendMessage(int mid, int vuid);
+ RecommendStatus likeMessage(int mid, int vuid, int reactionId);
+
+
boolean canViewThread(int mid, int uid);
boolean isReadOnly(int mid);
@@ -95,6 +101,8 @@ public interface MessagesService {
List<com.juick.Message> getMessages(List<Integer> mids);
+ Map<Integer,Set<Reaction>> updateReactionsFor(final List<Integer> mid);
+
List<com.juick.Message> getReplies(User user, int mid);
boolean setMessagePopular(int mid, int popular);