CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 x5.java 源代码,内容仅作参考
package y0;
import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
import org.jivesoftware.smack.packet.ExtensionElement;
import org.jivesoftware.smack.provider.ExtensionElementProvider;
import org.xmlpull.v1.XmlPullParser;
public class x5 implements ExtensionElement {
public static String f49020b = "x";
public static String f49021c = "http://akey.im/protocol/xmpp/presence/sessiongrouptopmessageconfirm";
private Akeychat.GroupTopMessageConfirmPresence f49022a;
public static class a extends ExtensionElementProvider<x5> {
private Akeychat.GroupTopMessageConfirmPresence a(String str) throws Exception {
try {
return Akeychat.GroupTopMessageConfirmPresence.parseFrom(e.e.decode(str));
} catch (Exception e10) {
e10.printStackTrace();
Log.w("TopMsgConfirmPresence", "parse result excp");
return null;
}
}
@Override
public x5 parse(XmlPullParser xmlPullParser, int i10) throws Exception {
x5 x5Var = new x5();
boolean z10 = false;
while (!z10) {
try {
int next = xmlPullParser.next();
String name = xmlPullParser.getName();
if (next == 4) {
x5Var.f49022a = a(xmlPullParser.getText());
} else if (next == 3 && name.equals("x")) {
z10 = true;
}
} catch (Exception e10) {
Log.w("TopMsgConfirmPresence", "parse excp");
e10.printStackTrace();
}
}
return x5Var;
}
}
@Override
public String getElementName() {
return f49020b;
}
@Override
public String getNamespace() {
return f49021c;
}
public Akeychat.GroupTopMessageConfirmPresence getPresenceProtoData() {
return this.f49022a;
}
@Override
public String toXML() {
StringBuilder sb2 = new StringBuilder();
sb2.append("<");
sb2.append(getElementName());
sb2.append(" xmlns=\"");
sb2.append(getNamespace());
sb2.append("\">");
if (this.f49022a != null) {
sb2.append("type:" + this.f49022a.toString());
} else {
sb2.append("packet hash:" + this);
}
sb2.append("</");
sb2.append(getElementName());
sb2.append(">");
return sb2.toString();
}
}