CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 d5.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 d5 extends IQ {
private String a;
private String f4263b;
private String f4264c;
private String f4265d;
private String f4266e;
private boolean f;
boolean g;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
d5 d5Var = new d5();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
d5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucroom")) {
z = true;
}
}
return d5Var;
}
}
public d5(String str, String str2) {
super("mucroom", "http://akey.im/protocol/xmpp/iq/mucroom#sub");
this.a = "reason";
this.f4263b = "mucroomname";
this.f4264c = "success";
this.g = true;
this.f4265d = str;
this.f4266e = str2;
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();
try {
jSONObject.put(this.f4263b, this.f4265d);
jSONObject.put(this.a, this.f4266e);
} catch (JSONException e2) {
e2.printStackTrace();
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONObject.toString());
}
return iQChildElementXmlStringBuilder;
}
public boolean isSuccess() {
return this.f;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
if (this.f4264c.equals(xmlPullParser.getText())) {
this.f = true;
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
public d5() {
super("mucroom", "http://akey.im/protocol/xmpp/iq/mucroom#sub");
this.a = "reason";
this.f4263b = "mucroomname";
this.f4264c = "success";
}
}