CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 f0.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 f0 implements ExtensionElement {
public static String a = "x";
public static String f4299b = "http://akey.im/protocol/xmpp/presence/cleanmessage#cleanallmessageforuser";
private String f4300c;
public static class a extends ExtensionElementProvider<f0> {
@Override
public f0 parse(XmlPullParser xmlPullParser, int i) throws Exception {
f0 f0Var = new f0();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
f0Var.a(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals(f0.a)) {
z = true;
}
}
return f0Var;
}
}
protected void a(XmlPullParser xmlPullParser) throws Exception {
try {
this.f4300c = xmlPullParser.getText();
} catch (Exception unused) {
}
}
@Override
public String getElementName() {
return a;
}
@Override
public String getNamespace() {
return f4299b;
}
public String getProtobuf() {
return this.f4300c;
}
@Override
public String toXML() {
StringBuilder sb = new StringBuilder();
sb.append("<");
sb.append(getElementName());
sb.append(" xmlns=\"");
sb.append(getNamespace());
sb.append("\">");
if (!TextUtils.isEmpty(this.f4300c)) {
sb.append(this.f4300c);
}
sb.append("</");
sb.append(getElementName());
sb.append(">");
return sb.toString();
}
}