aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/MessagesService.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/MessagesService.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesService.java25
1 files changed, 13 insertions, 12 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesService.java b/juick-server/src/main/java/com/juick/service/MessagesService.java
index 00f97b75..83ab0dce 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesService.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesService.java
@@ -3,13 +3,14 @@ package com.juick.service;
import com.juick.User;
import org.springframework.jdbc.core.JdbcTemplate;
+import java.util.Collection;
import java.util.List;
/**
* 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, Collection<com.juick.Tag> tags);
int createReply(int mid, int rid, int uid, String txt, String attachment);
@@ -37,13 +38,13 @@ public interface MessagesService {
List<String> getMessageRecommendations(int mid);
- List<Integer> getAll(int visitor_uid, int before);
+ List<Integer> getAll(int visitorUid, int before);
- List<Integer> getTag(int tid, int visitor_uid, int before, int cnt);
+ List<Integer> getTag(int tid, int visitorUid, int before, int cnt);
- List<Integer> getTags(String tids, int visitor_uid, int before, int cnt);
+ List<Integer> getTags(String tids, int visitorUid, int before, int cnt);
- List<Integer> getPlace(int place_id, int visitor_uid, int before);
+ List<Integer> getPlace(int placeId, int visitorUid, int before);
List<Integer> getMyFeed(int uid, int before);
@@ -53,23 +54,23 @@ public interface MessagesService {
List<Integer> getRecommended(int uid, int before);
- List<Integer> getPopular(int visitor_uid, int before);
+ List<Integer> getPopular(int visitorUid, int before);
- List<Integer> getPhotos(int visitor_uid, int before);
+ List<Integer> getPhotos(int visitorUid, int before);
List<Integer> getSearch(JdbcTemplate sqlSearch, String search, int before);
- List<Integer> getUserBlog(int UID, int privacy, int before);
+ List<Integer> getUserBlog(int uid, int privacy, int before);
- List<Integer> getUserTag(int UID, int TID, int privacy, int before);
+ List<Integer> getUserTag(int uid, int tid, int privacy, int before);
- List<Integer> getUserRecommendations(int UID, int before);
+ List<Integer> getUserRecommendations(int uid, int before);
- List<Integer> getUserPhotos(int UID, int privacy, int before);
+ List<Integer> getUserPhotos(int uid, int privacy, int before);
List<Integer> getUserSearch(JdbcTemplate sqlSearch, int UID, String search, int privacy, int before);
- List<com.juick.Message> getMessages(List<Integer> mids);
+ List<com.juick.Message> getMessages(Collection<Integer> mids);
List<com.juick.Message> getReplies(int mid);