CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 k6.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
import ak.im.utils.Log;
import java.util.ArrayList;
import java.util.Iterator;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class k6 extends IQ {
private ArrayList<String> a;
boolean f4459b;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
k6 k6Var = new k6();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
Log.i("xml", "event: " + next + ", parser: " + xmlPullParser.getName() + ", content:" + xmlPullParser.getText());
if (next == 4) {
k6Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("query")) {
z = true;
}
}
return k6Var;
}
}
public k6(ArrayList<String> arrayList) {
super("query", "http://akey.im/protocol/xmpp/iq/search");
this.a = new ArrayList<>();
setType(IQ.Type.get);
setTo("akeysearch." + ye.getInstance().getServer().getXmppDomain());
this.a = arrayList;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4459b) {
Iterator<String> it = this.a.iterator();
while (it.hasNext()) {
iQChildElementXmlStringBuilder.optElement("name", it.next());
}
} else {
ArrayList<String> arrayList = this.a;
iQChildElementXmlStringBuilder.optElement("result", arrayList != null ? arrayList.toString() : "nothing");
}
return iQChildElementXmlStringBuilder;
}
public ArrayList<String> getUserList() {
return this.a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
this.a.add(xmlPullParser.getText());
}
public void setUserList(ArrayList<String> arrayList) {
this.a = arrayList;
}
public k6() {
super("query", "http://akey.im/protocol/xmpp/iq/search");
this.a = new ArrayList<>();
}
}