CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 i3.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
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 i3 extends IQ {
private final String a;
private Akeychat.ComplainDetailsResponse f4398b;
private String f4399c;
private boolean f4400d;
private String f4401e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
i3 i3Var = new i3();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
i3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("complain_details")) {
z = true;
}
}
return i3Var;
}
}
public i3() {
super("complain_details", "http://akey.im/protocol/xmpp/iq/complain_details");
this.a = i3.class.getSimpleName();
this.f4400d = true;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4400d) {
Akeychat.ComplainDetailsRequest.b newBuilder = Akeychat.ComplainDetailsRequest.newBuilder();
newBuilder.setId(this.f4401e);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4399c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ComplainDetailsResponse getmResponse() {
return this.f4398b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4399c = text;
this.f4398b = Akeychat.ComplainDetailsResponse.parseFrom(ak.comm.d.decode(text));
String str = this.a;
Log.i(str, "result is " + this.f4398b.toString());
} catch (Exception e2) {
e2.printStackTrace();
}
}
public i3(String str) {
super("complain_details", "http://akey.im/protocol/xmpp/iq/complain_details");
this.a = i3.class.getSimpleName();
this.f4400d = true;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
this.f4401e = str;
}
}