CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 r0.java 源代码,内容仅作参考
package y0;
import ak.im.module.Group;
import ak.im.sdk.manager.bf;
import ak.im.utils.Log;
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 r0 extends IQ {
private final String f48746a;
private final String f48747b;
private final boolean f48748c;
private String f48749d;
private long f48750e;
private long f48751f;
private final String f48752g;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
r0 r0Var = new r0();
Log.i("DestroyGroupExtension", "start parse iq result in DestroyGroupExtension");
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 2) {
String name = xmlPullParser.getName();
if ("result".equals(name)) {
r0Var.parseResults(xmlPullParser);
} else if (Group.VERSION_CODE.equals(name)) {
r0Var.a(xmlPullParser);
} else if (Group.LIST_VERSION_CODE.equals(name)) {
r0Var.b(xmlPullParser);
}
} else if (next == 3 && xmlPullParser.getName().equals("roomdestroy")) {
z10 = true;
}
}
Log.i("DestroyGroupExtension", "end parse iq result in destroy group ext:" + ((Object) r0Var.getChildElementXML()));
return r0Var;
}
}
protected void a(XmlPullParser xmlPullParser) throws Exception {
try {
this.f48750e = Long.parseLong(xmlPullParser.nextText());
} catch (Exception e10) {
Log.w(this.f48746a, "encounter excp in parse g-v-c:" + e10.getMessage());
}
}
protected void b(XmlPullParser xmlPullParser) throws Exception {
try {
this.f48751f = Long.parseLong(xmlPullParser.nextText());
} catch (Exception e10) {
Log.w(this.f48746a, "encounter excp in parse m-l-v-c:" + e10.getMessage());
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48747b != null) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("name", this.f48747b);
jSONObject.put(Group.NOTIFYING_GROUP_MEMBERS, this.f48748c);
} catch (JSONException e10) {
e10.printStackTrace();
Log.w(this.f48746a, "illegal group params,destroy group failed.");
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONObject.toString());
} else {
long j10 = this.f48750e;
if (j10 != -1) {
iQChildElementXmlStringBuilder.optElement(Group.VERSION_CODE, Long.valueOf(j10));
}
long j11 = this.f48751f;
if (j11 != -1) {
iQChildElementXmlStringBuilder.optElement(Group.LIST_VERSION_CODE, Long.valueOf(j11));
}
String str = this.f48749d;
if (str != null) {
iQChildElementXmlStringBuilder.optElement("result", str);
}
}
return iQChildElementXmlStringBuilder;
}
public long getmGroupVersionCode() {
return this.f48750e;
}
public long getmListVersionCode() {
return this.f48751f;
}
public boolean isDestroyGroupSuccess() {
return "success".equals(this.f48749d);
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
this.f48749d = xmlPullParser.nextText();
} catch (Exception e10) {
Log.w(this.f48746a, "encounter excp in parse results" + e10.getMessage());
}
}
public void setmGroupVersionCode(long j10) {
this.f48750e = j10;
}
public void setmListVersionCode(long j10) {
this.f48751f = j10;
}
private r0() {
super("roomdestroy", "http://akey.im/protocol/xmpp/iq/mucroom#roomdestroy");
this.f48750e = -1L;
this.f48751f = -1L;
this.f48752g = "success";
setType(IQ.Type.set);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(bf.getInstance().getUserMe().getJID());
this.f48747b = null;
this.f48746a = getClass().getSimpleName();
this.f48748c = false;
}
public r0(String str, boolean z10) {
super("roomdestroy", "http://akey.im/protocol/xmpp/iq/mucroom#roomdestroy");
this.f48750e = -1L;
this.f48751f = -1L;
this.f48752g = "success";
setType(IQ.Type.set);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(bf.getInstance().getUserMe().getJID());
this.f48747b = str;
this.f48746a = getClass().getSimpleName();
this.f48748c = z10;
}
}