Repository navigation
Expand file tree
/
Copy pathPushService.java
More file actions
46 lines (34 loc) · 2.14 KB
/
Copy pathPushService.java
File metadata and controls
46 lines (34 loc) · 2.14 KB
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
39
40
41
42
43
44
45
46
package com.pubnub.api.services;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import java.util.List;
import java.util.Map;
public interface PushService {
@GET("v1/push/sub-key/{subKey}/devices/{pushToken}")
Call<List<Object>> modifyChannelsForDevice(@Path("subKey") String subKey,
@Path("pushToken") String pushToken,
@QueryMap Map<String, String> options);
@GET("v1/push/sub-key/{subKey}/devices/{pushToken}/remove")
Call<List<Object>> removeAllChannelsForDevice(@Path("subKey") String subKey,
@Path("pushToken") String pushToken,
@QueryMap Map<String, String> options);
@GET("v1/push/sub-key/{subKey}/devices/{pushToken}")
Call<List<String>> listChannelsForDevice(@Path("subKey") String subKey,
@Path("pushToken") String pushToken,
@QueryMap Map<String, String> options);
// V2 (APNS2)
@GET("v2/push/sub-key/{subKey}/devices-apns2/{deviceApns2}")
Call<List<Object>> modifyChannelsForDeviceApns2(@Path("subKey") String subKey,
@Path("deviceApns2") String deviceApns2,
@QueryMap Map<String, String> options);
@GET("v2/push/sub-key/{subKey}/devices-apns2/{deviceApns2}")
Call<List<String>> listChannelsForDeviceApns2(@Path("subKey") String subKey,
@Path("deviceApns2") String deviceApns2,
@QueryMap Map<String, String> options);
@GET("v2/push/sub-key/{subKey}/devices-apns2/{deviceApns2}/remove")
Call<List<Object>> removeAllChannelsForDeviceApns2(@Path("subKey") String subKey,
@Path("deviceApns2") String deviceApns2,
@QueryMap Map<String, String> options);
}