CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 r6.java 源代码,内容仅作参考
package y0;
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 r6 extends IQ {
private final String f48774a;
private boolean f48775b;
private String f48776c;
private String f48777d;
private String f48778e;
private Akeychat.VoIPType f48779f;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
r6 r6Var = new r6();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
r6Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("voipreadyrequest")) {
z10 = true;
}
}
return r6Var;
}
}
public r6(String str, Akeychat.VoIPType voIPType, String str2) {
super("voipreadyrequest", "http://akey.im/protocol/xmpp/iq/voipreadyrequest");
this.f48774a = "VoIPReadyRequestExtension";
this.f48775b = true;
this.f48776c = str;
this.f48777d = str2;
this.f48779f = voIPType;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(ak.im.utils.q5.getJidByName(ak.im.sdk.manager.f1.getInstance().getUsername()));
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48775b) {
Akeychat.VoipReadyRequest.b newBuilder = Akeychat.VoipReadyRequest.newBuilder();
newBuilder.setPeerJid(this.f48776c);
newBuilder.setVoipSessionId(this.f48777d);
newBuilder.setType(this.f48779f);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48778e);
}
return iQChildElementXmlStringBuilder;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
this.f48778e = xmlPullParser.getText();
Log.i("VoIPReadyRequestExtension", "we get voip invite request result:" + this.f48778e);
} catch (Exception e10) {
e10.printStackTrace();
}
}
public r6() {
super("voipreadyrequest", "http://akey.im/protocol/xmpp/iq/voipreadyrequest");
this.f48774a = "VoIPReadyRequestExtension";
this.f48775b = false;
}
}