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