CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 y0.java 源代码,内容仅作参考
package ak.smack;
import android.text.TextUtils;
import org.jivesoftware.smack.packet.ExtensionElement;
import org.jivesoftware.smack.provider.ExtensionElementProvider;
import org.xmlpull.v1.XmlPullParser;
public class y0 implements ExtensionElement {
public static String a = "endsessioninfo";
public static String f4799b = "jabber:client";
public static String f4800c = "http://jabber.org/protocol/httpbind";
String f4801d;
public static class a extends ExtensionElementProvider<y0> {
@Override
public y0 parse(XmlPullParser xmlPullParser, int i) throws Exception {
y0 y0Var = new y0();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
y0Var.a(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals(y0.a)) {
z = true;
}
}
return y0Var;
}
}
protected void a(XmlPullParser xmlPullParser) throws Exception {
try {
this.f4801d = xmlPullParser.getText();
} catch (Exception unused) {
}
}
@Override
public String getElementName() {
return a;
}
@Override
public String getNamespace() {
return f4799b;
}
public String getmContent() {
return this.f4801d;
}
@Override
public CharSequence toXML() {
StringBuilder sb = new StringBuilder();
sb.append("<");
sb.append(getElementName());
sb.append(" xmlns=\"");
sb.append(getNamespace());
sb.append("\">");
if (!TextUtils.isEmpty(this.f4801d)) {
sb.append(this.f4801d);
}
sb.append("</");
sb.append(getElementName());
sb.append(">");
return sb.toString();
}
}