CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 s3.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.nf;
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.jxmpp.jid.impl.JidCreate;
import org.jxmpp.stringprep.XmppStringprepException;
import org.xmlpull.v1.XmlPullParser;
public class s3 extends IQ {
private boolean a;
private Akeychat.MucroomE2EKeyBundleQueryResponse f4659b;
private String f4660c;
String f4661d;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
s3 s3Var = new s3();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
s3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucroomkeysbundlequery")) {
z = true;
}
}
return s3Var;
}
}
public s3(String str) {
super("mucroomkeysbundlequery", "http://akey.im/protocol/xmpp/iq/mucroomkeysbundlequery");
setType(IQ.Type.get);
try {
setTo(JidCreate.from(ye.getInstance().getServer().getXmppDomain()));
setFrom(JidCreate.from(nf.getInstance().getUserMe().getJID()));
} catch (XmppStringprepException e2) {
e2.printStackTrace();
}
this.f4661d = str;
this.a = true;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (!this.a) {
String str = this.f4660c;
if (str != null) {
iQChildElementXmlStringBuilder.optElement("result", str);
}
} else {
Akeychat.MucroomE2EKeyBundleQueryRequest.b newBuilder = Akeychat.MucroomE2EKeyBundleQueryRequest.newBuilder();
newBuilder.setMucroom(this.f4661d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MucroomE2EKeyBundleQueryResponse getProtoResponse() {
return this.f4659b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4660c = text;
this.f4659b = Akeychat.MucroomE2EKeyBundleQueryResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
Log.w("QueryUGKeyBundleIQ", "encounter excp in parse results" + e2.getMessage());
}
}
public s3() {
super("mucroomkeysbundlequery", "http://akey.im/protocol/xmpp/iq/mucroomkeysbundlequery");
setType(IQ.Type.get);
this.a = false;
}
}