CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 j3.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
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 j3 extends IQ {
private final String a;
private Akeychat.ComplainKeyResponse f4426b;
private String f4427c;
private boolean f4428d;
private String f4429e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
j3 j3Var = new j3();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
j3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("complain_key")) {
z = true;
}
}
return j3Var;
}
}
public j3() {
super("complain_key", "http://akey.im/protocol/xmpp/iq/complain_key");
this.a = j3.class.getSimpleName();
this.f4428d = true;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4428d) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, "");
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4427c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ComplainKeyResponse getmResponse() {
return this.f4426b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4427c = text;
this.f4426b = Akeychat.ComplainKeyResponse.parseFrom(ak.comm.d.decode(text));
String str = this.a;
Log.i(str, "result is " + this.f4426b.toString() + ",des is " + this.f4426b.getResult().getDescription());
} catch (Exception e2) {
e2.printStackTrace();
}
}
public j3(String str) {
super("complain_key", "http://akey.im/protocol/xmpp/iq/complain_key");
this.a = j3.class.getSimpleName();
this.f4428d = true;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
this.f4429e = str;
}
}