CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 z5.java 源代码,内容仅作参考
package y0;
import ak.im.utils.Log;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.json.JSONException;
import org.json.JSONObject;
import org.xmlpull.v1.XmlPullParser;
public class z5 extends IQ {
private static boolean f49099i;
private String f49100a;
private String f49101b;
private String f49102c;
private JSONObject f49103d;
private String f49104e;
private boolean f49105f;
private String f49106g;
boolean f49107h;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
z5 z5Var = new z5();
Log.i("UnBindSecurityPhoneExtension", "parset :" + xmlPullParser.toString());
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
z5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("cancelsecurityphone")) {
z10 = true;
}
}
return z5Var;
}
}
public z5(String str, String str2, String str3, boolean z10) {
super("cancelsecurityphone", "http://akey.im/protocol/xmpp/iq/cancelsecurityphone");
this.f49100a = "success";
f49099i = z10;
this.f49107h = true;
if (z10) {
setType(IQ.Type.get);
} else {
setType(IQ.Type.set);
this.f49101b = str2;
this.f49102c = str3;
}
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(str);
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
JSONObject jSONObject = new JSONObject();
try {
if (!f49099i) {
jSONObject.put("smscode", this.f49101b);
jSONObject.put("reqid", this.f49102c);
}
} catch (JSONException e10) {
e10.printStackTrace();
}
if (!f49099i) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONObject.toString());
}
return iQChildElementXmlStringBuilder;
}
public String getResult_reqId() {
return this.f49106g;
}
public boolean isSuccess() {
return this.f49105f;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
if (!f49099i) {
String text = xmlPullParser.getText();
this.f49104e = text;
if (this.f49100a.equals(text)) {
this.f49105f = true;
}
} else {
JSONObject jSONObject = new JSONObject(xmlPullParser.getText());
this.f49103d = jSONObject;
this.f49106g = jSONObject.getString("reqid");
this.f49105f = true;
}
} catch (Exception e10) {
e10.printStackTrace();
this.f49105f = false;
}
}
public void setSuccess(boolean z10) {
this.f49105f = z10;
}
public z5() {
super("cancelsecurityphone", "http://akey.im/protocol/xmpp/iq/cancelsecurityphone");
this.f49100a = "success";
}
}