CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 s2.java 源代码,内容仅作参考
package y0;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.ArrayList;
import java.util.Iterator;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.xmlpull.v1.XmlPullParser;
public class s2 extends IQ {
private static String f48794e = "names";
private final String f48795a;
private ArrayList<String> f48796b;
private JSONArray f48797c;
boolean f48798d;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
s2 s2Var = new s2();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
s2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("multiusersearch")) {
z10 = true;
}
}
return s2Var;
}
}
public s2(ArrayList<String> arrayList) {
super("multiusersearch", "http://akey.im/protocol/xmpp/iq/multiusersearch");
this.f48795a = "MultiUserSearchExtension";
this.f48796b = new ArrayList<>();
setType(IQ.Type.get);
this.f48798d = true;
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(ak.im.sdk.manager.f1.getInstance().getUsername() + "@" + ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
this.f48796b = arrayList;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48798d) {
JSONObject jSONObject = new JSONObject();
JSONArray jSONArray = new JSONArray();
Iterator<String> it = this.f48796b.iterator();
while (it.hasNext()) {
jSONArray.put(it.next());
}
try {
jSONObject.put(f48794e, jSONArray);
} catch (JSONException e10) {
e10.printStackTrace();
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONObject);
}
return iQChildElementXmlStringBuilder;
}
public JSONArray getUsers() {
return this.f48797c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
this.f48797c = new JSONArray();
try {
this.f48797c = new JSONArray(xmlPullParser.getText());
} catch (JSONException e10) {
e10.printStackTrace();
}
}
public s2() {
super("multiusersearch", "http://akey.im/protocol/xmpp/iq/multiusersearch");
this.f48795a = "MultiUserSearchExtension";
this.f48796b = new ArrayList<>();
}
}