aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/PushQueriesService.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-01 15:06:08 +0300
committerGravatar Vitaly Takmazov2016-12-01 15:06:08 +0300
commita19d224e5de6a067cc559a23cf6b4afdef060d56 (patch)
tree8198e97a3bd7354da2973ad647d99a110cfa69b5 /juick-server/src/main/java/com/juick/service/PushQueriesService.java
parent3d7f60c1c0b48dad2f58bffe3352d1c5c1b93f00 (diff)
juick-api: Notifications controller from perl, refactoring
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/PushQueriesService.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/PushQueriesService.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/service/PushQueriesService.java b/juick-server/src/main/java/com/juick/service/PushQueriesService.java
index 2e2ac390..7d4bc295 100644
--- a/juick-server/src/main/java/com/juick/service/PushQueriesService.java
+++ b/juick-server/src/main/java/com/juick/service/PushQueriesService.java
@@ -7,17 +7,27 @@ import java.util.List;
* Created by aalexeev on 11/13/16.
*/
public interface PushQueriesService {
- List<String> getAndroidRegID(int uid);
+ List<String> getGCMRegID(int uid);
- List<String> getAndroidTokens(Collection<Integer> uids);
+ List<String> getGCMTokens(Collection<Integer> uids);
- List<String> getWinPhoneURL(int uid);
+ boolean addGCMToken(Integer uid, String token);
- List<String> getWindowsTokens(Collection<Integer> uids);
+ boolean deleteGCMToken(String token);
+
+ List<String> getMPNSURL(int uid);
+
+ List<String> getMPNSTokens(Collection<Integer> uids);
+
+ boolean addMPNSToken(Integer uid, String token);
+
+ boolean deleteMPNSToken(String token);
List<String> getAPNSToken(int uid);
List<String> getAPNSTokens(Collection<Integer> uids);
+ boolean addAPNSToken(Integer uid, String token);
+
boolean deleteAPNSToken(String token);
}