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