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

69 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.hwid;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public abstract class am {
protected String a;
protected String b;
protected long c;
protected String d;
public String d() throws JSONException {
return e().toString();
}
protected JSONObject e() throws JSONException {
JSONObject jSONObject = new JSONObject();
jSONObject.putOpt("appId", this.a);
jSONObject.putOpt(CommonConstant.ReqAccessTokenParam.PACKAGE_NAME, this.b);
jSONObject.put("hmsSdkVersion", this.c);
jSONObject.putOpt("subAppId", this.d);
return jSONObject;
}
public String toString() {
StringBuilder sb = new StringBuilder("HuaweiIdCpClientInfo{appId='");
sb.append(this.a);
sb.append("', packageName='");
sb.append(this.b);
sb.append("', hmsSdkVersion=");
sb.append(this.c);
sb.append("', subAppId=");
sb.append(this.d);
sb.append(UrlTreeKt.componentParamSuffixChar);
return sb.toString();
}
public void d(String str) {
this.d = str;
}
public void c(String str) {
this.b = str;
}
public String c() {
return this.d;
}
public void b(String str) {
this.a = str;
}
public long b() {
return this.c;
}
public void a(long j) {
this.c = j;
}
public String a() {
return this.a;
}
}