CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 p4.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
import ak.im.utils.Log;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.json.JSONObject;
import org.xmlpull.v1.XmlPullParser;
public class p4 extends IQ {
private String a;
private JSONObject f4590b;
private String f4591c;
private boolean f4592d;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
p4 p4Var = new p4();
Log.i("QuerySecurityPhoneExtension", "parset :" + xmlPullParser.toString());
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
p4Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("securityphone")) {
z = true;
}
}
return p4Var;
}
}
public p4(String str) {
super("securityphone", "http://akey.im/protocol/xmpp/iq/securityphone#query");
this.a = "phonenum";
this.f4591c = "";
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(str);
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
return iQChildElementXmlStringBuilder;
}
public String getmPhoneNum() {
return this.f4591c;
}
public boolean isSuccess() {
return this.f4592d;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
JSONObject jSONObject = new JSONObject(xmlPullParser.getText());
this.f4590b = jSONObject;
if (jSONObject != null) {
this.f4591c = jSONObject.getString(this.a);
this.f4592d = true;
}
} catch (Exception e2) {
e2.printStackTrace();
this.f4592d = false;
}
}
public void setSuccess(boolean z) {
this.f4592d = z;
}
public p4() {
super("securityphone", "http://akey.im/protocol/xmpp/iq/securityphone#query");
this.a = "phonenum";
this.f4591c = "";
}
}