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