aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/MessagesService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service/MessagesService.java')
-rw-r--r--src/main/java/com/juick/service/MessagesService.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/main/java/com/juick/service/MessagesService.java b/src/main/java/com/juick/service/MessagesService.java
index e6e039d3..3e3e027d 100644
--- a/src/main/java/com/juick/service/MessagesService.java
+++ b/src/main/java/com/juick/service/MessagesService.java
@@ -17,10 +17,11 @@
package com.juick.service;
-import com.juick.Message;
-import com.juick.Reaction;
-import com.juick.User;
+import com.juick.model.Message;
+import com.juick.model.Reaction;
+import com.juick.model.User;
import com.juick.model.ResponseReply;
+import com.juick.model.Tag;
import org.apache.commons.lang3.tuple.Pair;
import java.net.URI;
@@ -30,7 +31,7 @@ import java.util.*;
* Created by aalexeev on 11/13/16.
*/
public interface MessagesService {
- int createMessage(int uid, String txt, String attachment, List<com.juick.Tag> tags);
+ int createMessage(int uid, String txt, String attachment, List<Tag> tags);
int createReply(int mid, int rid, User user, String txt, String attachment);
enum RecommendStatus {
@@ -60,9 +61,9 @@ public interface MessagesService {
Optional<Message> getMessage(int mid);
- com.juick.Message getReply(int mid, int rid);
+ Message getReply(int mid, int rid);
- com.juick.Message getReplyByUri(String replyUri);
+ Message getReplyByUri(String replyUri);
User getMessageAuthor(int mid);
@@ -104,11 +105,11 @@ public interface MessagesService {
List<Integer> getUserSearch(User visitor, int UID, String search, int privacy, int page);
- List<com.juick.Message> getMessages(User visitor, List<Integer> mids);
+ List<Message> getMessages(User visitor, List<Integer> mids);
Map<Integer,Set<Reaction>> updateReactionsFor(final List<Integer> mid);
- List<com.juick.Message> getReplies(User user, int mid);
+ List<Message> getReplies(User user, int mid);
boolean setMessagePopular(int mid, int popular);