jimu-decompiled/sources/com/tencent/wxop/stat/StatAccount.java
2025-05-13 19:24:51 +02:00

89 lines
2.1 KiB
Java

package com.tencent.wxop.stat;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class StatAccount {
public static final int CUSTOM_TYPE = 7;
public static final int DEFAULT_TYPE = 0;
public static final int EMAIL_TYPE = 6;
public static final int PHONE_NUM_TYPE = 5;
public static final int QQ_NUM_TYPE = 1;
public static final int QQ_OPENID_TYPE = 3;
public static final int WECHAT_ID_TYPE = 2;
public static final int WECHAT_OPENID_TYPE = 4;
private String a;
private int b;
private String c;
private String d;
public StatAccount(String str) {
this.a = "";
this.b = 0;
this.c = "";
this.d = "";
this.a = str;
}
public StatAccount(String str, int i) {
this.a = "";
this.b = 0;
this.c = "";
this.d = "";
this.a = str;
this.b = i;
}
public String getAccount() {
return this.a;
}
public int getAccountType() {
return this.b;
}
public String getExt() {
return this.c;
}
public String getExt1() {
return this.d;
}
public void setAccount(String str) {
this.a = str;
}
public void setAccountType(int i) {
this.b = i;
}
public void setExt(String str) {
this.c = str;
}
public void setExt1(String str) {
this.d = str;
}
public String toJsonString() {
JSONObject jSONObject = new JSONObject();
if (com.tencent.wxop.stat.common.l.c(this.a)) {
try {
com.tencent.wxop.stat.common.r.a(jSONObject, "a", this.a);
jSONObject.put("t", this.b);
com.tencent.wxop.stat.common.r.a(jSONObject, "e", this.c);
com.tencent.wxop.stat.common.r.a(jSONObject, "e1", this.d);
} catch (JSONException e) {
e.printStackTrace();
}
}
return jSONObject.toString();
}
public String toString() {
return "StatAccount [account=" + this.a + ", accountType=" + this.b + ", ext=" + this.c + ", ext1=" + this.d + "]";
}
}