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

21 lines
656 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.hwid;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class b extends am {
public static b a(String str) throws JSONException {
return new b().a(new JSONObject(str));
}
protected b a(JSONObject jSONObject) {
this.a = jSONObject.optString("appId", null);
this.b = jSONObject.optString(CommonConstant.ReqAccessTokenParam.PACKAGE_NAME, null);
this.c = jSONObject.optLong("hmsSdkVersion");
this.d = jSONObject.optString("subAppId", null);
return this;
}
}