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