思特奇智慧酒店云平台 v0.0.5版本的 MD5 值为:dedb172bb322639d79d7e0e26262fb5c
以下内容为反编译后的 ChatStateExtension.java 源代码,内容仅作参考
package org.jivesoftware.smackx.chatstates.packet;
import org.jivesoftware.smack.packet.ExtensionElement;
import org.jivesoftware.smack.util.XmlStringBuilder;
import org.jivesoftware.smackx.chatstates.ChatState;
public class ChatStateExtension implements ExtensionElement {
public static final String NAMESPACE = "http://jabber.org/protocol/chatstates";
public final ChatState state;
public ChatStateExtension(ChatState chatState) {
this.state = chatState;
}
public ChatState getChatState() {
return this.state;
}
@Override
public String getElementName() {
return this.state.name();
}
@Override
public String getNamespace() {
return "http://jabber.org/protocol/chatstates";
}
@Override
public XmlStringBuilder toXML(String str) {
XmlStringBuilder xmlStringBuilder = new XmlStringBuilder((ExtensionElement) this);
xmlStringBuilder.closeEmptyElement();
return xmlStringBuilder;
}
}