CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 a2.java 源代码,内容仅作参考
package y0;
import ak.im.utils.Log;
import org.jivesoftware.smack.packet.PacketExtension;
import org.json.JSONException;
import org.json.JSONObject;
public class a2 implements PacketExtension {
public static String f48040b = "x";
public static String f48041c = "http://jabber.org/protocol/muc#roomupdate";
private a f48042a;
public static class a {
private JSONObject f48043a;
public a(String str) {
try {
this.f48043a = new JSONObject(str);
} catch (JSONException e10) {
e10.printStackTrace();
}
}
public JSONObject getRoomData() {
return this.f48043a;
}
public void setRoomData(String str) {
try {
this.f48043a = new JSONObject(str);
} catch (Exception unused) {
Log.w("MUCRoomInfo", "set room info error");
}
}
public String toString() {
JSONObject jSONObject = this.f48043a;
if (jSONObject == null) {
return "Data is null";
}
return jSONObject.toString();
}
}
@Override
public String getElementName() {
return f48040b;
}
@Override
public String getNamespace() {
return f48041c;
}
public a getRoomInfo() {
return this.f48042a;
}
public void setRoomInfo(a aVar) {
this.f48042a = aVar;
}
@Override
public String toXML() {
StringBuilder sb2 = new StringBuilder();
sb2.append("<");
sb2.append(getElementName());
sb2.append(" xmlns=\"");
sb2.append(getNamespace());
sb2.append("\">");
if (getRoomInfo() != null) {
sb2.append("<roominfo>");
sb2.append(getRoomInfo().toString());
sb2.append("</roominfo>");
}
sb2.append("</");
sb2.append(getElementName());
sb2.append(">");
return sb2.toString();
}
}