what-the-bank/sources/com/huawei/hms/hwid/ag.java

46 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.hwid;
import android.text.TextUtils;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class ag {
private Integer a;
private String b;
public static ag b(String str) {
if (TextUtils.isEmpty(str)) {
return new ag();
}
try {
JSONObject jSONObject = new JSONObject(str);
Integer valueOf = jSONObject.has("errorCode") ? Integer.valueOf(jSONObject.getInt("errorCode")) : null;
String string = jSONObject.has("errorMsg") ? jSONObject.getString("errorMsg") : null;
ag agVar = new ag();
agVar.a(valueOf);
agVar.a(string);
return agVar;
} catch (JSONException unused) {
as.d("ReadSmsOutputBean", "ReadSmsOutputBean json parse falied", true);
return new ag();
}
}
public String b() {
return this.b;
}
public void a(String str) {
this.b = str;
}
public void a(Integer num) {
this.a = num;
}
public Integer a() {
return this.a;
}
}