CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 o1.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
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 a;
private String f4553b;
private String f4554c;
private String f4555d;
private String f4556e;
private boolean f;
private String g;
boolean h;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
o1 o1Var = new o1();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
o1Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucroom")) {
z = true;
}
}
return o1Var;
}
}
public o1(String str, String str2) {
super("mucroom", "http://akey.im/protocol/xmpp/iq/mucroom#akeyid");
this.a = "akeyid";
this.f4553b = "mucroomname";
this.f4554c = "success";
this.f4555d = str;
this.f4556e = str2;
this.h = true;
setType(IQ.Type.set);
setTo(ye.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.h) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put(this.f4553b, this.f4555d);
jSONObject.put(this.a, this.f4556e);
} catch (JSONException e2) {
e2.printStackTrace();
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONObject.toString());
}
return iQChildElementXmlStringBuilder;
}
public String getmResult() {
return this.g;
}
public boolean isSuccess() {
return this.f;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.g = text;
if (this.f4554c.equals(text)) {
this.f = true;
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
public o1() {
super("mucroom", "http://akey.im/protocol/xmpp/iq/mucroom#akeyid");
this.a = "akeyid";
this.f4553b = "mucroomname";
this.f4554c = "success";
}
}