54 lines
1.4 KiB
Java
54 lines
1.4 KiB
Java
package com.baidu.uaq.agent.android.crashes;
|
|
|
|
import com.tencent.open.SocialConstants;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* compiled from: ApplicationInfo.java */
|
|
/* loaded from: classes.dex */
|
|
public class a extends com.baidu.uaq.agent.android.harvest.type.d {
|
|
private String b;
|
|
private String c;
|
|
private String d;
|
|
|
|
public a() {
|
|
this.b = "";
|
|
this.c = "";
|
|
this.d = "";
|
|
}
|
|
|
|
public static a a(JSONObject jSONObject) {
|
|
a aVar = new a();
|
|
try {
|
|
aVar.b = jSONObject.getString(SocialConstants.PARAM_APPNAME);
|
|
aVar.c = jSONObject.getString("appVersion");
|
|
aVar.d = jSONObject.getString("bundleId");
|
|
} catch (JSONException e) {
|
|
e.printStackTrace();
|
|
}
|
|
return aVar;
|
|
}
|
|
|
|
@Override // com.baidu.uaq.agent.android.harvest.type.a
|
|
public JSONObject d() {
|
|
JSONObject jSONObject = new JSONObject();
|
|
try {
|
|
jSONObject.put(SocialConstants.PARAM_APPNAME, this.b);
|
|
jSONObject.put("appVersion", this.c);
|
|
jSONObject.put("bundleId", this.d);
|
|
} catch (JSONException e) {
|
|
e.printStackTrace();
|
|
}
|
|
return jSONObject;
|
|
}
|
|
|
|
public a(com.baidu.uaq.agent.android.harvest.bean.a aVar) {
|
|
this.b = "";
|
|
this.c = "";
|
|
this.d = "";
|
|
this.b = aVar.g();
|
|
this.c = aVar.e();
|
|
this.d = aVar.f();
|
|
}
|
|
}
|