CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 j3.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 j3 extends IQ {
private final String f48415a;
private Akeychat.ComplainKeyResponse f48416b;
private String f48417c;
private boolean f48418d;
private String f48419e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
j3 j3Var = new j3();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
j3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("complain_key")) {
z10 = true;
}
}
return j3Var;
}
}
public j3() {
super("complain_key", "http://akey.im/protocol/xmpp/iq/complain_key");
this.f48415a = j3.class.getSimpleName();
this.f48418d = true;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48418d) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, "");
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48417c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ComplainKeyResponse getmResponse() {
return this.f48416b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48417c = text;
this.f48416b = Akeychat.ComplainKeyResponse.parseFrom(e.e.decode(text));
Log.i(this.f48415a, "result is " + this.f48416b.toString() + ",des is " + this.f48416b.getResult().getDescription());
} catch (Exception e10) {
e10.printStackTrace();
}
}
public j3(String str) {
super("complain_key", "http://akey.im/protocol/xmpp/iq/complain_key");
this.f48415a = j3.class.getSimpleName();
this.f48418d = true;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
this.f48419e = str;
}
}