CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 j6.java 源代码,内容仅作参考
package y0;
import android.util.Log;
import com.alibaba.fastjson.JSONObject;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class j6 extends IQ {
private static final String f48425g = "j6";
private JSONObject f48426a;
private String f48427b;
private boolean f48428c;
private String f48429d;
private long f48430e;
boolean f48431f;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
j6 j6Var = new j6();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
j6Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("userexproperties")) {
z10 = true;
}
}
return j6Var;
}
}
public j6(JSONObject jSONObject) {
super("userexproperties", "http://akey.im/protocol/xmpp/iq/userexpropertiesset");
this.f48427b = "success";
this.f48426a = jSONObject;
setType(IQ.Type.set);
this.f48431f = true;
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48431f) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f48426a.toString());
} else {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f48429d);
}
return iQChildElementXmlStringBuilder;
}
public long getVersionCode() {
return this.f48430e;
}
public String getmResult() {
return this.f48429d;
}
public boolean isSuccess() {
return this.f48428c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
this.f48429d = xmlPullParser.getText();
Log.d(f48425g, "mResult :" + this.f48429d);
if (this.f48427b.equals(this.f48429d)) {
this.f48428c = true;
} else {
this.f48430e = Long.parseLong(this.f48429d);
}
} catch (Exception e10) {
e10.printStackTrace();
}
}
public j6() {
super("userexproperties", "http://akey.im/protocol/xmpp/iq/userexpropertiesset");
this.f48427b = "success";
}
}