CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 o1.java 源代码,内容仅作参考
package y0;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.json.JSONException;
import org.json.JSONObject;
import org.xmlpull.v1.XmlPullParser;
public class o1 extends IQ {
private String f48624a;
private String f48625b;
private String f48626c;
private String f48627d;
private String f48628e;
private boolean f48629f;
private String f48630g;
boolean f48631h;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
o1 o1Var = new o1();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
o1Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucroom")) {
z10 = true;
}
}
return o1Var;
}
}
public o1(String str, String str2) {
super("mucroom", "http://akey.im/protocol/xmpp/iq/mucroom#akeyid");
this.f48624a = "akeyid";
this.f48625b = "mucroomname";
this.f48626c = "success";
this.f48627d = str;
this.f48628e = str2;
this.f48631h = true;
setType(IQ.Type.set);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48631h) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put(this.f48625b, this.f48627d);
jSONObject.put(this.f48624a, this.f48628e);
} catch (JSONException e10) {
e10.printStackTrace();
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONObject.toString());
}
return iQChildElementXmlStringBuilder;
}
public String getmResult() {
return this.f48630g;
}
public boolean isSuccess() {
return this.f48629f;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48630g = text;
if (this.f48626c.equals(text)) {
this.f48629f = true;
}
} catch (Exception e10) {
e10.printStackTrace();
}
}
public o1() {
super("mucroom", "http://akey.im/protocol/xmpp/iq/mucroom#akeyid");
this.f48624a = "akeyid";
this.f48625b = "mucroomname";
this.f48626c = "success";
}
}