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