CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 q0.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.packet.Session;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class q0 extends IQ {
private final String a;
private final String f4600b;
private Akeychat.ChatSessionDeleteResponse f4601c;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
q0 q0Var = new q0();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
q0Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals(Session.ELEMENT)) {
z = true;
}
}
return q0Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4600b != null) {
Akeychat.ChatSessionDeleteRequest.b newBuilder = Akeychat.ChatSessionDeleteRequest.newBuilder();
newBuilder.setSessionId(this.f4600b);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ChatSessionDeleteResponse getmDelSessionResult() {
return this.f4601c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4601c = Akeychat.ChatSessionDeleteResponse.parseFrom(ak.comm.d.decode(text));
Log.i("DeleteSessionExtension", "parse result text:" + text);
} catch (Exception e2) {
Log.w("DeleteSessionExtension", "encounter excp in parse results" + e2.getMessage());
}
}
private q0() {
super(Session.ELEMENT, "http://akey.im/protocol/xmpp/iq/session#delete");
this.a = "DeleteSessionExtension";
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4600b = null;
}
public q0(String str) {
super(Session.ELEMENT, "http://akey.im/protocol/xmpp/iq/session#delete");
this.a = "DeleteSessionExtension";
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4600b = str;
}
}