DeviceFeature2_5.java
3.8 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.arellomobile.android.push;
import android.content.Context;
import android.location.Location;
import com.arellomobile.android.push.data.PushZoneLocation;
import com.arellomobile.android.push.request.AppOpenRequest;
import com.arellomobile.android.push.request.AppRemovedRequest;
import com.arellomobile.android.push.request.ApplicationEventRequest;
import com.arellomobile.android.push.request.GetBeaconsRequest;
import com.arellomobile.android.push.request.GetNearestZoneRequest;
import com.arellomobile.android.push.request.GetTagsRequest;
import com.arellomobile.android.push.request.MessageDeliveredRequest;
import com.arellomobile.android.push.request.ProcessBeaconRequest;
import com.arellomobile.android.push.request.PushStatRequest;
import com.arellomobile.android.push.request.RequestManager;
import com.arellomobile.android.push.request.SetTagsRequest;
import com.arellomobile.android.push.request.TrackInAppRequest;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
public class DeviceFeature2_5
{
public static JSONObject getBeacons(Context paramContext)
throws Exception
{
GetBeaconsRequest localGetBeaconsRequest = new GetBeaconsRequest();
RequestManager.sendRequest(paramContext, localGetBeaconsRequest);
return localGetBeaconsRequest.getResponse();
}
public static PushZoneLocation getNearestZone(Context paramContext, Location paramLocation)
throws Exception
{
paramLocation = new GetNearestZoneRequest(paramLocation);
RequestManager.sendRequest(paramContext, paramLocation);
return paramLocation.getNearestLocation();
}
public static Map<String, Object> getTags(Context paramContext)
throws Exception
{
GetTagsRequest localGetTagsRequest = new GetTagsRequest();
RequestManager.sendRequest(paramContext, localGetTagsRequest);
return localGetTagsRequest.getTags();
}
public static void processBeacon(Context paramContext, String paramString1, String paramString2, String paramString3, String paramString4)
throws Exception
{
RequestManager.sendRequest(paramContext, new ProcessBeaconRequest(paramString1, paramString2, paramString3, paramString4));
}
public static void sendAppOpen(Context paramContext)
throws Exception
{
RequestManager.sendRequest(paramContext, new AppOpenRequest());
}
public static void sendAppRemovedData(Context paramContext, String paramString)
throws Exception
{
RequestManager.sendRequest(paramContext, new AppRemovedRequest(paramString));
}
public static void sendGoalAchieved(Context paramContext, String paramString, Integer paramInteger)
throws Exception
{
RequestManager.sendRequest(paramContext, new ApplicationEventRequest(paramString, paramInteger));
}
public static void sendMessageDeliveryEvent(Context paramContext, String paramString)
throws Exception
{
RequestManager.sendRequest(paramContext, new MessageDeliveredRequest(paramString));
}
public static void sendPushStat(Context paramContext, String paramString)
throws Exception
{
RequestManager.sendRequest(paramContext, new PushStatRequest(paramString));
}
public static JSONArray sendTags(Context paramContext, Map<String, Object> paramMap)
throws Exception
{
paramMap = new SetTagsRequest(paramMap);
RequestManager.sendRequest(paramContext, paramMap);
return paramMap.getSkippedTags();
}
public static void trackInAppRequest(Context paramContext, String paramString1, String paramString2, long paramLong)
throws Exception
{
RequestManager.sendRequest(paramContext, new TrackInAppRequest(paramString1, paramString2, paramLong));
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/arellomobile/android/push/DeviceFeature2_5.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/