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