PushRequest.java
1.34 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
package com.arellomobile.android.push.request;
import android.content.Context;
import com.arellomobile.android.push.utils.GeneralUtils;
import com.arellomobile.android.push.utils.PreferenceUtils;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public abstract class PushRequest
{
String a = "";
protected void buildParams(Context paramContext, Map<String, Object> paramMap)
throws JSONException
{}
public abstract String getMethod();
public final Map<String, Object> getParams(Context paramContext)
throws JSONException
{
HashMap localHashMap = new HashMap();
localHashMap.put("application", PreferenceUtils.getApplicationId(paramContext));
localHashMap.put("hwid", GeneralUtils.getDeviceUUID(paramContext));
localHashMap.put("v", "1.0");
buildParams(paramContext, localHashMap);
return localHashMap;
}
public String getRawResponse()
{
return this.a;
}
public void parseResponse(JSONObject paramJSONObject)
throws JSONException
{
if (paramJSONObject == null) {
return;
}
this.a = paramJSONObject.toString();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/arellomobile/android/push/request/PushRequest.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/