CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 t3.java 源代码,内容仅作参考
package y0;
import ak.im.sdk.manager.bf;
import ak.im.utils.Log;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.HashMap;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.jivesoftware.smack.util.ParserUtils;
import org.xmlpull.v1.XmlPullParser;
public class t3 extends IQ {
private final String f48845a;
private HashMap<String, JSONArray> f48846b;
private String f48847c;
private String f48848d;
private String f48849e;
private String f48850f;
private String f48851g;
private JSONArray f48852h;
private boolean f48853i;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
t3 t3Var = new t3();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
t3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("muchistory")) {
z10 = true;
}
}
return t3Var;
}
}
public t3(JSONArray jSONArray) {
super("muchistory", "http://akey.im/protocol/xmpp/iq/muchistory");
this.f48845a = "QueryGroupMessageIDListExtension";
this.f48847c = "return_code";
this.f48848d = "descrtiption";
this.f48849e = "muchistorys";
this.f48850f = ParserUtils.JID;
this.f48851g = "message_id_list";
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(bf.getInstance().getUserMe().getJID());
this.f48852h = jSONArray;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
JSONArray jSONArray = this.f48852h;
if (jSONArray != null) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONArray);
} else {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, "[]");
}
return iQChildElementXmlStringBuilder;
}
public HashMap<String, JSONArray> getQueryMsgsResult() {
return this.f48846b;
}
public boolean isQuerySuccess() {
return this.f48853i;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
JSONObject parseObject = JSON.parseObject(xmlPullParser.getText());
String string = parseObject.getString(this.f48847c);
String string2 = parseObject.getString(this.f48848d);
if (!string.equals("0")) {
Log.w("QueryGroupMessageIDListExtension", "return code is :" + string + ",des:" + string2);
return;
}
JSONArray jSONArray = parseObject.getJSONArray(this.f48849e);
if (this.f48846b == null) {
this.f48846b = new HashMap<>();
}
for (int i10 = 0; i10 < jSONArray.size(); i10++) {
try {
JSONObject jSONObject = jSONArray.getJSONObject(i10);
String string3 = jSONObject.getString(this.f48850f);
JSONArray jSONArray2 = jSONObject.getJSONArray(this.f48851g);
if (string3 != null && string3.length() > 4) {
this.f48846b.put(string3, jSONArray2);
}
} catch (Exception e10) {
e10.printStackTrace();
}
}
this.f48853i = true;
} catch (JSONException e11) {
e11.printStackTrace();
Log.w("QueryGroupMessageIDListExtension", "encounter excp in parse results" + e11.getMessage());
} catch (Exception e12) {
Log.w("QueryGroupMessageIDListExtension", "encounter excp in parse results" + e12.getMessage());
}
}
public t3() {
super("muchistory", "http://akey.im/protocol/xmpp/iq/muchistory");
this.f48845a = "QueryGroupMessageIDListExtension";
this.f48847c = "return_code";
this.f48848d = "descrtiption";
this.f48849e = "muchistorys";
this.f48850f = ParserUtils.JID;
this.f48851g = "message_id_list";
}
}