diff options
author | 2016-11-14 15:56:32 +0700 | |
---|---|---|
committer | 2016-11-14 15:56:32 +0700 | |
commit | d03e8b19d346563afec5fb2b6b9c9dcea68040e0 (patch) | |
tree | beb150d73b7734b5ee3823f4b38c68fa2f88f5af /server-core/src/main/java/com/juick/service/SubscriptionService.java | |
parent | ecbc4907669c06c7a71ffda3bd78a163ee1287fe (diff) |
jdbc services
Diffstat (limited to 'server-core/src/main/java/com/juick/service/SubscriptionService.java')
-rw-r--r-- | server-core/src/main/java/com/juick/service/SubscriptionService.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/server-core/src/main/java/com/juick/service/SubscriptionService.java b/server-core/src/main/java/com/juick/service/SubscriptionService.java index 0ed3f55a..00aee15d 100644 --- a/server-core/src/main/java/com/juick/service/SubscriptionService.java +++ b/server-core/src/main/java/com/juick/service/SubscriptionService.java @@ -1,7 +1,36 @@ package com.juick.service; +import com.juick.Tag; +import com.juick.User; +import com.juick.server.helpers.NotifyOpts; + +import java.util.List; + /** * Created by aalexeev on 11/13/16. */ public interface SubscriptionService { + List<String> getJIDSubscribedToUser(int uid, boolean friendsonly); + + List<User> getSubscribedUsers(int uid, int mid); + + List<User> getUsersSubscribedToComments(int mid, int ignore_uid); + + List<User> getUsersSubscribedToUserRecommendations(int uid, int mid, int muid); + + boolean subscribeMessage(int mid, int vuid); + + boolean unSubscribeMessage(int mid, int vuid); + + boolean subscribeUser(User user, User toUser); + + boolean unSubscribeUser(User user, User fromUser); + + boolean subscribeTag(User user, Tag toTag); + + boolean unSubscribeTag(User user, Tag toTag); + + NotifyOpts getNotifyOptions(User user); + + boolean setNotifyOptions(User user, NotifyOpts options); } |