CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 k4.java 源代码,内容仅作参考
package y0;
import ak.im.sdk.manager.bf;
import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.jxmpp.jid.impl.JidCreate;
import org.jxmpp.stringprep.XmppStringprepException;
import org.xmlpull.v1.XmlPullParser;
public class k4 extends IQ {
private boolean f48461a;
private Akeychat.E2EKeyBundleQueryResponse f48462b;
private String f48463c;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
k4 k4Var = new k4();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
k4Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("keysbundlequery")) {
z10 = true;
}
}
return k4Var;
}
}
public k4() {
super("keysbundlequery", "http://akey.im/protocol/xmpp/iq/keysbundlequery");
setType(IQ.Type.get);
try {
setTo(JidCreate.from(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain()));
setFrom(JidCreate.from(bf.getInstance().getUserMe().getJID()));
} catch (XmppStringprepException e10) {
e10.printStackTrace();
}
this.f48461a = true;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
String str;
iQChildElementXmlStringBuilder.append(">");
if (!this.f48461a && (str = this.f48463c) != null) {
iQChildElementXmlStringBuilder.optElement("result", str);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.E2EKeyBundleQueryResponse getProtoResponse() {
return this.f48462b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48463c = text;
this.f48462b = Akeychat.E2EKeyBundleQueryResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
Log.w("QueryChannelIQ", "encounter excp in parse results" + e10.getMessage());
}
}
}