CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 m6.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 m6 extends b {
private final String a;
private boolean f4512b;
private String f4513c;
private String f4514d;
private String f4515e;
private Akeychat.VoIPType f;
private String g;
private Akeychat.VoipInviteAckType h;
private Akeychat.VoipInviteAckResponse i;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
m6 m6Var = new m6();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
m6Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("voipinviteack")) {
z = true;
}
}
return m6Var;
}
}
public m6(String str, Akeychat.VoIPType voIPType, String str2, String str3, Akeychat.VoipInviteAckType voipInviteAckType, q1 q1Var) {
super("voipinviteack", "http://akey.im/protocol/xmpp/iq/voipinviteack", q1Var);
this.a = "VoIPInviteAckExtension";
this.f4512b = false;
this.f4512b = true;
this.f4513c = str;
this.f = voIPType;
this.f4515e = str2;
this.g = str3;
this.h = voipInviteAckType;
setType(IQ.Type.get);
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4512b) {
Akeychat.VoipInviteAckRequest.b newBuilder = Akeychat.VoipInviteAckRequest.newBuilder();
newBuilder.setPeerJid(this.f4513c);
newBuilder.setVoipSessionId(this.f4515e);
newBuilder.setType(this.f);
newBuilder.setSipUsername(this.g);
newBuilder.setAckType(this.h);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4514d);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.VoipInviteAckResponse getmResponse() {
return this.i;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4514d = text;
this.i = Akeychat.VoipInviteAckResponse.parseFrom(ak.comm.d.decode(text));
Log.i("VoIPInviteAckExtension", "we get VoipInviteAckResponse result:" + this.i);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public m6() {
super("voipinviteack", "http://akey.im/protocol/xmpp/iq/voipinviteack", null);
this.a = "VoIPInviteAckExtension";
this.f4512b = false;
}
}