CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 m6.java 源代码,内容仅作参考
package y0;
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 m6 extends IQ {
private ArrayList<String> f48561a;
boolean f48562b;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
m6 m6Var = new m6();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
Log.i("xml", "event: " + next + ", parser: " + xmlPullParser.getName() + ", content:" + xmlPullParser.getText());
if (next == 4) {
m6Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("query")) {
z10 = true;
}
}
return m6Var;
}
}
public m6(ArrayList<String> arrayList) {
super("query", "http://akey.im/protocol/xmpp/iq/search");
this.f48561a = new ArrayList<>();
setType(IQ.Type.get);
setTo("akeysearch." + ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
this.f48561a = arrayList;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
String str;
iQChildElementXmlStringBuilder.append(">");
if (this.f48562b) {
Iterator<String> it = this.f48561a.iterator();
while (it.hasNext()) {
iQChildElementXmlStringBuilder.optElement("name", it.next());
}
} else {
ArrayList<String> arrayList = this.f48561a;
if (arrayList != null) {
str = arrayList.toString();
} else {
str = "nothing";
}
iQChildElementXmlStringBuilder.optElement("result", str);
}
return iQChildElementXmlStringBuilder;
}
public ArrayList<String> getUserList() {
return this.f48561a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
this.f48561a.add(xmlPullParser.getText());
}
public void setUserList(ArrayList<String> arrayList) {
this.f48561a = arrayList;
}
public m6() {
super("query", "http://akey.im/protocol/xmpp/iq/search");
this.f48561a = new ArrayList<>();
}
}