CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 PubSubNamespace.java 源代码,内容仅作参考
package org.jivesoftware.smackx.pubsub.packet;
import ak.im.module.Group;
import java.util.Locale;
public enum PubSubNamespace {
BASIC(null),
ERROR("errors"),
EVENT("event"),
OWNER(Group.OWNER);
private final String fragment;
private final String fullNamespace;
PubSubNamespace(String str) {
this.fragment = str;
if (str != null) {
this.fullNamespace = "http://jabber.org/protocol/pubsub#" + str;
return;
}
this.fullNamespace = PubSub.NAMESPACE;
}
public static PubSubNamespace valueOfFromXmlns(String str) {
if (str.lastIndexOf(35) != -1) {
return valueOf(str.substring(str.lastIndexOf(35) + 1).toUpperCase(Locale.US));
}
return BASIC;
}
public String getFragment() {
return this.fragment;
}
public String getXmlns() {
return this.fullNamespace;
}
}