blob: 074c73f5c24a533ff91321483237ab61bf556677 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
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);
List<String> getSubscribedTags(User user);
NotifyOpts getNotifyOptions(User user);
boolean setNotifyOptions(User user, NotifyOpts options);
}
|