CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 h2.java 源代码,内容仅作参考
package y0;
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 h2 extends IQ {
private final String f48316a;
private boolean f48317b;
private String f48318c;
private Akeychat.MiyunDirectoryQueryResponse f48319d;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
h2 h2Var = new h2();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
h2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("miyundirectoryquery")) {
z10 = true;
}
}
return h2Var;
}
}
public h2() {
super("miyundirectoryquery", "http://akey.im/protocol/xmpp/iq/miyundirectoryquery");
this.f48316a = "MiYunDirectoryQuery";
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48317b) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, "");
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48318c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MiyunDirectoryQueryResponse getResponse() {
return this.f48319d;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48318c = text;
this.f48319d = Akeychat.MiyunDirectoryQueryResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public h2(String str) {
super("miyundirectoryquery", "http://akey.im/protocol/xmpp/iq/miyundirectoryquery");
this.f48316a = "MiYunDirectoryQuery";
this.f48317b = true;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
}