CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 z3.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.xmlpull.v1.XmlPullParser;
public class z3 extends IQ {
private final String a;
private boolean f4823b;
private String f4824c;
private Akeychat.MessageManagementGetResponse f4825d;
Akeychat.MessageManagementGetRequest.b f4826e;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
z3 z3Var = new z3();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
z3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("messagemanagement")) {
z = true;
}
}
return z3Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4823b) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(this.f4826e.build().toByteArray()));
} else {
String str = this.f4824c;
if (str != null) {
iQChildElementXmlStringBuilder.optElement("result", str);
}
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MessageManagementGetResponse getmMsgMgmtResponse() {
return this.f4825d;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4824c = text;
this.f4825d = Akeychat.MessageManagementGetResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
Log.w("QueryMsgManagementExtension", "encounter excp in parse results" + e2.getMessage());
}
}
private z3() {
super("messagemanagement", "http://akey.im/protocol/xmpp/iq/messagemanagement");
this.a = "QueryMsgManagementExtension";
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4823b = false;
}
public z3(q1 q1Var, Akeychat.MessageManagementGetRequest.b bVar) {
super("messagemanagement", "http://akey.im/protocol/xmpp/iq/messagemanagement");
this.a = "QueryMsgManagementExtension";
setType(IQ.Type.get);
setTo(q1Var.getTo());
setFrom(q1Var.getFrom());
this.f4823b = true;
this.f4826e = bVar;
}
}