CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 d6.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 d6 implements ExtensionElement {
public static String a = "x";
public static String f4267b = "http://akey.im/protocol/xmpp/iq/updatebot";
private Akeychat.BotInfoUpdatePresence f4268c;
public static class a extends ExtensionElementProvider<d6> {
private Akeychat.BotInfoUpdatePresence a(String str) throws Exception {
try {
return Akeychat.BotInfoUpdatePresence.parseFrom(ak.comm.d.decode(str));
} catch (Exception e2) {
e2.printStackTrace();
Log.w("UpdateBotPresence", "parse result excp");
return null;
}
}
@Override
public d6 parse(XmlPullParser xmlPullParser, int i) throws Exception {
d6 d6Var = new d6();
boolean z = false;
while (!z) {
try {
int next = xmlPullParser.next();
String name = xmlPullParser.getName();
if (next == 4) {
d6Var.f4268c = a(xmlPullParser.getText());
} else if (next == 3 && name.equals("x")) {
z = true;
}
} catch (Exception e2) {
Log.w("UpdateBotPresence", "parse excp");
e2.printStackTrace();
}
}
return d6Var;
}
}
public Akeychat.BotInfoUpdatePresence getBotInfoPresence() {
return this.f4268c;
}
@Override
public String getElementName() {
return a;
}
@Override
public String getNamespace() {
return f4267b;
}
@Override
public String toXML() {
StringBuilder sb = new StringBuilder();
sb.append("<");
sb.append(getElementName());
sb.append(" xmlns=\"");
sb.append(getNamespace());
sb.append("\">");
if (this.f4268c != null) {
sb.append("type:" + this.f4268c.toString());
} else {
sb.append("packet hash:" + this);
}
sb.append("</");
sb.append(getElementName());
sb.append(">");
return sb.toString();
}
}