CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 h.java 源代码,内容仅作参考
package ak.smack;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.List;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class h extends b {
private final String a;
private String f4352b;
Akeychat.AllBotsInfoSyncResponse f4353c;
private List<Akeychat.BotSyncInfo> f4354d;
private boolean f4355e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
h hVar = new h();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
hVar.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("allbotsinfosync")) {
z = true;
}
}
return hVar;
}
}
public h(List<Akeychat.BotSyncInfo> list, q1 q1Var) {
super("allbotsinfosync", "http://akey.im/protocol/xmpp/iq/allbotsinfosync", q1Var);
this.a = "AllBotSyncIQ";
setType(IQ.Type.get);
this.f4355e = true;
this.f4354d = list;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4355e) {
Akeychat.AllBotsInfoSyncRequest.b newBuilder = Akeychat.AllBotsInfoSyncRequest.newBuilder();
newBuilder.addAllMyBot(this.f4354d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.AllBotsInfoSyncResponse getSyncResponse() {
return this.f4353c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4352b = text;
this.f4353c = Akeychat.AllBotsInfoSyncResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
this.f4353c = null;
e2.printStackTrace();
}
}
public h() {
super("allbotsinfosync", "http://akey.im/protocol/xmpp/iq/allbotsinfosync", null);
this.a = "AllBotSyncIQ";
}
}