CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 o6.java 源代码,内容仅作参考
package ak.smack;
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 o6 extends b {
private final String a;
private boolean f4572b;
private String f4573c;
private String f4574d;
private Akeychat.VoipKeepAliveResponse f4575e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
o6 o6Var = new o6();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
o6Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("voipkeepalive")) {
z = true;
}
}
return o6Var;
}
}
public o6(String str, q1 q1Var) {
super("voipkeepalive", "http://akey.im/protocol/xmpp/iq/voipkeepalive", q1Var);
this.a = "VoIPKeepAliveExtension";
this.f4572b = false;
this.f4572b = true;
setType(IQ.Type.get);
this.f4574d = str;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4572b) {
Akeychat.VoipKeepAliveRequest.b newBuilder = Akeychat.VoipKeepAliveRequest.newBuilder();
newBuilder.setVoipSessionId(this.f4574d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4573c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.VoipKeepAliveResponse getmResponse() {
return this.f4575e;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4573c = text;
this.f4575e = Akeychat.VoipKeepAliveResponse.parseFrom(ak.comm.d.decode(text));
Log.i("VoIPKeepAliveExtension", "we get VoipKeepAliveResponse result:" + this.f4575e);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public o6() {
super("voipkeepalive", "http://akey.im/protocol/xmpp/iq/voipkeepalive", null);
this.a = "VoIPKeepAliveExtension";
this.f4572b = false;
}
}