CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 v5.java 源代码,内容仅作参考
package ak.smack;
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 v5 implements ExtensionElement {
public static String a = "x";
public static String f4741b = "http://akey.im/protocol/xmpp/presence/sessiongrouptopmessageconfirm";
private Akeychat.GroupTopMessageConfirmPresence f4742c;
public static class a extends ExtensionElementProvider<v5> {
private Akeychat.GroupTopMessageConfirmPresence a(String str) throws Exception {
try {
return Akeychat.GroupTopMessageConfirmPresence.parseFrom(ak.comm.d.decode(str));
} catch (Exception e2) {
e2.printStackTrace();
Log.w("TopMsgConfirmPresence", "parse result excp");
return null;
}
}
@Override
public v5 parse(XmlPullParser xmlPullParser, int i) throws Exception {
v5 v5Var = new v5();
boolean z = false;
while (!z) {
try {
int next = xmlPullParser.next();
String name = xmlPullParser.getName();
if (next == 4) {
v5Var.f4742c = a(xmlPullParser.getText());
} else if (next == 3 && name.equals("x")) {
z = true;
}
} catch (Exception e2) {
Log.w("TopMsgConfirmPresence", "parse excp");
e2.printStackTrace();
}
}
return v5Var;
}
}
@Override
public String getElementName() {
return a;
}
@Override
public String getNamespace() {
return f4741b;
}
public Akeychat.GroupTopMessageConfirmPresence getPresenceProtoData() {
return this.f4742c;
}
@Override
public String toXML() {
StringBuilder sb = new StringBuilder();
sb.append("<");
sb.append(getElementName());
sb.append(" xmlns=\"");
sb.append(getNamespace());
sb.append("\">");
if (this.f4742c != null) {
sb.append("type:" + this.f4742c.toString());
} else {
sb.append("packet hash:" + this);
}
sb.append("</");
sb.append(getElementName());
sb.append(">");
return sb.toString();
}
}